Compare two means and calculate p value with pivot table

akswartz85

New Member
Joined
Mar 31, 2010
Messages
49
Hi, I've built this table:

<style type="text/css"><!--br {mso-data-placement:same-cell;}--></style>[TABLE="width: 0"]
<tbody>[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "]s_male[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "]Values[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "][/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] , align: right"]0[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] , align: right"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "][/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "][/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "]hs_name1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "]AVERAGE of sat_composite[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "]STDEV of sat_composite[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "]COUNT of s_lasid[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "]AVERAGE of sat_composite[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "]STDEV of sat_composite[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=666666]#666666[/URL] "]COUNT of s_lasid[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Hope High School[/TD]
[TD="align: right"]986[/TD]
[TD="align: right"]600[/TD]
[TD="align: right"]639[/TD]
[TD="align: right"]979[/TD]
[TD="align: right"]630[/TD]
[TD="align: right"]579[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]James High School[/TD]
[TD="align: right"]837[/TD]
[TD="align: right"]568[/TD]
[TD="align: right"]473[/TD]
[TD="align: right"]830[/TD]
[TD="align: right"]612[/TD]
[TD="align: right"]428[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Juniper High School[/TD]
[TD="align: right"]789[/TD]
[TD="align: right"]525[/TD]
[TD="align: right"]538[/TD]
[TD="align: right"]722[/TD]
[TD="align: right"]577[/TD]
[TD="align: right"]466[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Kennedy High School[/TD]
[TD="align: right"]531[/TD]
[TD="align: right"]468[/TD]
[TD="align: right"]314[/TD]
[TD="align: right"]523[/TD]
[TD="align: right"]484[/TD]
[TD="align: right"]239[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]King High School[/TD]
[TD="align: right"]683[/TD]
[TD="align: right"]540[/TD]
[TD="align: right"]275[/TD]
[TD="align: right"]619[/TD]
[TD="align: right"]569[/TD]
[TD="align: right"]258[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Lincoln High School[/TD]
[TD="align: right"]842[/TD]
[TD="align: right"]538[/TD]
[TD="align: right"]354[/TD]
[TD="align: right"]933[/TD]
[TD="align: right"]534[/TD]
[TD="align: right"]279[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Meadowbrook High School[/TD]
[TD="align: right"]484[/TD]
[TD="align: right"]517[/TD]
[TD="align: right"]292[/TD]
[TD="align: right"]484[/TD]
[TD="align: right"]507[/TD]
[TD="align: right"]274[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]North Falls High School[/TD]
[TD="align: right"]1056[/TD]
[TD="align: right"]531[/TD]
[TD="align: right"]590[/TD]
[TD="align: right"]1046[/TD]
[TD="align: right"]547[/TD]
[TD="align: right"]564[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Orange High School[/TD]
[TD="align: right"]905[/TD]
[TD="align: right"]597[/TD]
[TD="align: right"]555[/TD]
[TD="align: right"]828[/TD]
[TD="align: right"]619[/TD]
[TD="align: right"]526[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Polk High School[/TD]
[TD="align: right"]680[/TD]
[TD="align: right"]569[/TD]
[TD="align: right"]567[/TD]
[TD="align: right"]691[/TD]
[TD="align: right"]568[/TD]
[TD="align: right"]501[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]South Falls High School[/TD]
[TD="align: right"]898[/TD]
[TD="align: right"]602[/TD]
[TD="align: right"]488[/TD]
[TD="align: right"]904[/TD]
[TD="align: right"]584[/TD]
[TD="align: right"]461[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Upper Hills High School[/TD]
[TD="align: right"]457[/TD]
[TD="align: right"]491[/TD]
[TD="align: right"]349[/TD]
[TD="align: right"]431[/TD]
[TD="align: right"]490[/TD]
[TD="align: right"]248[/TD]
[/TR]
[TR]
[TD="bgcolor: #f3f3f3"]Washington High School[/TD]
[TD="align: right"]795[/TD]
[TD="align: right"]609[/TD]
[TD="align: right"]482[/TD]
[TD="align: right"]818[/TD]
[TD="align: right"]635[/TD]
[TD="align: right"]401[/TD]
[/TR]
[TR]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] "]Grand Total[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] , align: right"]801[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] , align: right"]585[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] , align: right"]5916[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] , align: right"]796[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] , align: right"]603[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=d9d9d9]#d9d9d9[/URL] , align: right"]5224
[/TD]
[/TR]
</tbody>[/TABLE]

I now want to calculate if the average SAT_composite score for women (s_male=0) is statistically different than for men (s_male = 1).

I've been trying to figure this out and I am a little lost. Any help would be greatly appreciated. Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Statistics can be baffling. I think if you watch this video and the others in this large playlist on youtube from ExcelIsFun we might be able to figure how to test your hypothesis (i.e., SAT scores are statistically different between male homosapiens and female ones).

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://youtu.be/v7esBjWSAz4

playlist: [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://www.youtube.com/watch?v=_UHVGyGT1GM&list=PLrRPvpgDmw0ngx_uPhvasTbOWLOztsaBj[/FONT]<strike>
</strike>
[/FONT]
 
Upvote 0

Forum statistics

Threads
1,223,879
Messages
6,175,148
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top