




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: STATISTICAL METHODS; Subject: STATISTICS; University: Texas A&M University; Term: Unknown 1989;
Typology: Study notes
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Hypothesis Testing for Proportions An example of a one-sample test for proportions: We could run a test of hypothesis to see if our data for Red M&M’s actually agrees with the advertised amount.s actually agrees with the advertised amount. In our experiment, we had an average of 10.7 or 19% Red. Variable | Obs Mean Std. Dev. Min Max ---------+----------------------------------------------------- Red | 83 10.73494 3.679489 3 22 pRed | 83 .1916867 .0651044 .05. Total | 83 56.06024 2.96051 44 63 Using the Steps in Hypothesis Testing:
What would happen if we only had one bag of M&M’s actually agrees with the advertised amount.s, and it was the bag of 60 with only 5 Red? Is this too few Red’s actually agrees with the advertised amount.s? Are there really less Red M&M’s actually agrees with the advertised amount.s than the advertised amount? Still using the Steps in Hypothesis Testing:
To test multiple proportions, we must run a ^2 Test. There is an Excel file, ‘wstataq\sp01\Chi2oneway.xls’s actually agrees with the advertised amount. to help. You just enter the hypothesized proportions and the actual (observed) counts, and it does all the calculations. Example of One-Way Chi-Square Test Null Hypothesis: Brown = 0.30, Yellow = 0.20, Red = 0.20, Green = 0.10, Blue = 0.10, Orange = 0. Color Ho: pi Obs Cnt Exp Cnt (E-O)^2/E Brown 0.3 18 16.8 0. Yellow 0.2 10 11.2 0. Red 0.2 11 11.2 0. Green 0.1 5 5.6 0. Blue 0.1 6 5.6 0. Orange 0.1 6 5.6 0. Total 1 56 56 0. chi-square 0. df 5 p-value 0. Since the p-value = 0.997, it seems that our data agrees with M&M. We use the ^2 for this type of test because we’s actually agrees with the advertised amount.re calculating a different test statistic. Here, we’s actually agrees with the advertised amount.re looking at the difference between what happened (the observed counts) and what we would expect if the null hypothesis is true (the expected counts). NOTE: Remember, since the proportion is just the count/total, ( p =x/n), then the expected count is just the true proportion*total (xexp = n). If the difference is small (0 would be the minimum in absolute difference), then the null is plausible and the p-value is large. A large difference would only happen rarely, so if it is so large that the chance of it happening (the p-value) is small (< ), we reject the null. There is also an Excel file, ‘wstataq\sp01\Chi2twoway.xls’s actually agrees with the advertised amount. which will run the two way table in Chapter 6 of Mind on Statistics.