| 
June 20th, 2009, 09:03 PM
| | Newbie | | Join Date: Jun 2009 Location: Port Jefferson, NY
Posts: 18
Country: Thanks: 14
Thanked 0 Times in 0 Posts
| | contingency tables I would really appreciate help on this. Thankyou
A random survey of 100 students (60 boys/40 girls) asked each student to select the most preferred form of recreational activity from 5 choices. Test whether the choice is independent of the gender of the respondent. Approximate the p-value of the test. Would we reject at  ? Recreational Choice
Basketball (Total=30): Male=21, Female=9
Baseball (Total=8): Male=5, Female=3
Swimming (Total=10): Male=9, Female=1
Running (Total=27): Male=12, Female=15
Tennis (Total=25): Male=13, Female=12
Thankyou!! | 
June 20th, 2009, 10:59 PM
|  | MHF Contributor | | Join Date: Feb 2009
Posts: 1,328
Country: Thanks: 95
Thanked 535 Times in 481 Posts
| | Instead of typing this up I did a search because I knew it had to be somewhere in the literature.
It took a dozen links for me to go with http://homepage.smc.edu/mcgraw_colle...lc%20Notes.pdf
Read the first two pages. | | The following users thank matheagle for this useful post: | |  | 
June 20th, 2009, 11:02 PM
|  | Senior Member | | Join Date: May 2009
Posts: 429
Country: Thanks: 39
Thanked 169 Times in 159 Posts
| | Our null hypothesis is that preference is independent of gender.
If preference is indeed independent of gender, we would expect, for example,  men to prefer basektball and  women to prefer basketball.
EDIT:
Calculate q.
Q follows a  -distribution with (2-1)(5-1) = 4 degrees of freedom (one less than the number of rows times one less than the number of columns)
The p-value for this test is  .
This is the smallest significance level at which the null hypothesis can be rejected. So if this value is less than 0.05, then there is enough evidence to reject the null hypothesis.
Last edited by Random Variable; June 20th, 2009 at 11:33 PM.
Reason: fixed a couple of errors
| | The Following 2 Users Say Thank You to Random Variable For This Useful Post: | |  | 
June 20th, 2009, 11:20 PM
|  | MHF Contributor | | Join Date: Feb 2009
Posts: 1,328
Country: Thanks: 95
Thanked 535 Times in 481 Posts
| | | | The Following 2 Users Say Thank You to matheagle For This Useful Post: | |  | 
June 27th, 2009, 10:18 AM
| | Newbie | | Join Date: Jun 2009 Location: Port Jefferson, NY
Posts: 18
Country: Thanks: 14
Thanked 0 Times in 0 Posts
| | I got q=8.309722222 and with 4 degrees of freedom, the calculator gave me 0.038262. This would mean I could reject the null hypothesis. Is there a formula or chart to find the p-value? I'm curious how that number came about. Thanks
Last edited by chrissy72; June 27th, 2009 at 10:31 AM.
Reason: To include my answer for q
| 
June 27th, 2009, 10:54 AM
|  | Senior Member | | Join Date: May 2009
Posts: 429
Country: Thanks: 39
Thanked 169 Times in 159 Posts
| | Quote:
Originally Posted by chrissy72 I got q=8.309722222 and with 4 degrees of freedom, the calculator gave me 0.038262. This would mean I could reject the null hypothesis. Is there a formula or chart to find the p-value? I'm curious how that number came about. Thanks | Are you sure you typed in the correct number? For your calculated q I get 0.080870.
According to the following table, the value is somewhere between 0.05 and 0.10. Table: Chi-Square Probabilities | | The following users thank Random Variable for this useful post: | |  | 
June 27th, 2009, 11:37 AM
|  | Senior Member | | Join Date: May 2009
Posts: 429
Country: Thanks: 39
Thanked 169 Times in 159 Posts
| | | | The following users thank Random Variable for this useful post: | |  | 
June 27th, 2009, 11:45 AM
| | Newbie | | Join Date: Jun 2009 Location: Port Jefferson, NY
Posts: 18
Country: Thanks: 14
Thanked 0 Times in 0 Posts
| | Thank you for helping! I typed in 8.30972 as the chi square value and 4 degrees of freedom into the calculator provided by matheagle. Thank you for the formula. I have to do a question very similar to this and don't want to get it all wrong. If your answer is correct (which I'm sure it is), then the null hypothesis that gender that preference is independent of gender is NOT rejected? | 
June 27th, 2009, 12:29 PM
|  | Senior Member | | Join Date: May 2009
Posts: 429
Country: Thanks: 39
Thanked 169 Times in 159 Posts
| | Quote:
Originally Posted by chrissy72 Thank you for helping! I typed in 8.30972 as the chi square value and 4 degrees of freedom into the calculator provided by matheagle. Thank you for the formula. I have to do a question very similar to this and don't want to get it all wrong. If your answer is correct (which I'm sure it is), then the null hypothesis that gender that preference is independent of gender is NOT rejected? | When I type those values into that calculator that matheagle provided, I get 0.080870. | 
June 27th, 2009, 12:33 PM
|  | Senior Member | | Join Date: May 2009
Posts: 429
Country: Thanks: 39
Thanked 169 Times in 159 Posts
| | And you usually don't want to calculate a p-value by integration because the integral is often very difficult. That's why there are tables. | 
June 27th, 2009, 12:34 PM
| | Newbie | | Join Date: Jun 2009 Location: Port Jefferson, NY
Posts: 18
Country: Thanks: 14
Thanked 0 Times in 0 Posts
| | You are totally right. I am so sorry. I must have written down the incorrect number. I am getting myself so confused. I have papers everywhere! Thank for everything. | 
June 27th, 2009, 12:37 PM
| | Newbie | | Join Date: Jun 2009 Location: Port Jefferson, NY
Posts: 18
Country: Thanks: 14
Thanked 0 Times in 0 Posts
| | since it is over 0.05, it fails to reject the null hypothesis. does this 0.05 just come from  ? | 
June 27th, 2009, 12:40 PM
|  | Senior Member | | Join Date: May 2009
Posts: 429
Country: Thanks: 39
Thanked 169 Times in 159 Posts
| | Quote:
Originally Posted by chrissy72 since it is over 0.05, it fails to reject the null hypothesis. does this 0.05 just come from  ? | yes, there is NOT enough evidence to reject the null hypothesis at the  significance level
Last edited by Random Variable; June 27th, 2009 at 01:11 PM.
| | The following users thank Random Variable for this useful post: | |  | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 10:14 PM. | | |