Hypothesis Testing Test Type What are we testing? πΆπ»πΌ (π 2 ) Goodness of Fit πΊππΉ How well (good) does the data provided “fit” the suggested model? π»0 : πππππ ππ ππππππππππ‘π π»1 : πππππ ππ ππππππππππππ‘π πΆπ»πΌ (π 2 ) Test for Independence 2ππ΄π Are the two variables given independent or dependent? π»0 : π£ππππππππ πππ πππππππππππ‘ π»1 : π£ππππππππ πππ πππππππππ‘ π‘ 1 − π πππππ Assuming the data is normally distributed (continuous and symmetrical), has the mean changed (more, less or different)? π»0 : π ππ ππ πππ£ππ π»1 : π ππππ ππ πππ π π‘βππ πππ£ππ π‘ 2 − π πππππ Are the means from two samples equal or different? Hypotheses Example: π»0 : π = 61ππ π»1 : π > 61ππ π1 = π2 π1 ≠ π2 πΆπ»πΌ π 2 πΊππΉ A newspaper vendor in Singapore is trying to predict how many copies of The Straits Times they will sell. The vendor forms a model to predict the number of copies sold each weekday. According to this model, they expect the same number of copies will be sold each day. To test the model, they record the number of copies sold each weekday during a particular week. This data is shown in the table. πππ‘ππ 460 A goodness of fit test at the 5% significance level is used on this data to determine whether the vendor’s model is suitable. The critical value for the test is 9.49 and the hypotheses are π»0 βΆ πβπ πππ‘π π ππ‘ππ ππππ π‘βπ πππππ. π»1 βΆ πβπ πππ‘π ππππ πππ‘ π ππ‘ππ ππ¦ π‘βπ πππππ. (a) Find an estimate for how many copies the vendor expects to sell each day. Expected (b) Monday Tuesday Wednesday 92 92 92 Thursday 92 Friday 92 (i) Write down the degrees of freedom for this test. 5 − 1 = 4 (ii) Write down the conclusion to the test. Give a reason for your answer. [1] [5] πΆπ»πΌ π Expected 92 2 92 πΊππΉ 92 92 92 Doing the Test: 1. Go to Statistics and Populate List 1 with the observed values and List 2 with the expected values. 2. Go to Test, Chi, GOF and change the degrees of freedom (in this case to 4). 3. Click EXE to complete the test. 4. Make your conclusion. (ii) Write down the conclusion to the test. Give a reason for your answer. π = π. ππππ [5] π. ππππ > π. ππ πππ πππππ ∴ ππππππππππππ ππππ ππππ ππ ππππππ ππππ ππππππππππ πππ πππππππ π ππππ πππ π πππ πππππππππ πππ πππ ππ πΆπ»πΌ π 2 2ππ΄π A ππ test for independence was performed on the collected data at the 1 % significance level. The critical value for the test is 13.277. π» : π£ππππππππ πππ πππ πππππππππ 0 (a) State the null and alternative hypotheses. πππ£πππ πππ πππππππππππ‘ π»1 : π£ππππππππ πππ πππ πππππππππ [1] πππ£πππ πππ πππππππππ‘ (b) Write down the number of degrees of freedom. πππ€π − 1 × ππππ’πππ − 1 = 2 × 2 = 4 (c) (i) Write down the π 2 test statistic. (ii) Write down the p-value. (iii) State the conclusion for the test in context. Give a reason for your answer. [1] [5] πΆπ»πΌ π 2 2ππ΄π Doing the test: 1. In Statistics, go to TEST, CHI and then 2WAY. Your screen should look like this: 2. When on observed, click F2 and DEL-ALL to clear any matrices you have populated already. 3. Click EXE on Mat A and then enter the dimensions of the table. In this case, 3 × 3. 4. Click EXE and then populate the numbers from the table given. 5. Now, click EXIT twice to return to test page. 6. Finally, click EXE to do the test and make your conclusions. π (i) Write down the ππ test statistic. π = ππ. πππ (ii) Write down the p-value. π = π. ππππππ (iii) State the conclusion for the test in context. Give a reason for your answer. π = π. ππππππ < π. ππ πππ πππππ ∴ ππππππππππ ππππ ππππ ππ ππππππ ππππ ππππππππππ πππ πππππππ π πππ πππππππππ πππ π πππππ πππ π‘ (1 − π πππππ) The heights of trees in a certain forest are known to be normally distributed with mean 23.6m. Zhao measured the heights of ten trees in a different forest, recording the following results (in metres): 13.6, 22.5, 18.0, 21.3, 28.7, 31.6, 12.8, 22.5, 18.9, 23.1 Assuming that the heights of trees in this forest are also normally distributed, use a t test to determine whether there is evidence, at the 10% significance level, that the trees in this forest are shorter on average. π»0 : π = 23.6π Doing the test: π»1 : π < 23.6π 1. In Statistics an populate List 1 with the sample. 2. Go to Test, t, 1-sample (because we are given 1 list). 3. Click F1 to make sure you are on List mode. 4. Set π0 = 23.6 (given in the question). 5. Change the inequality to < as we are testing if the heights are shorter. 6. Finally, scroll down and click EXE to do the test and make your conclusions. π = π. ππππ π. ππππ > π. π πππ πππππ ∴ ππππππππππππ ππππ ππππ ππ ππππππ ππππ ππππππππππ πππ πππππππ π ππππ πππ ππππ ππ ππ. π π‘ (2 − π πππππ) At Springfield University, the weights, in kg, of 10 chinchilla rabbits and 10 sable rabbits were recorded. The aim was to find out whether chinchilla rabbits are generally heavier than sable rabbits. The results obtained are summarized in the following table. A t-test is to be performed at the 5% significance level. π» :π =π 0 πβπππβππππ π ππππ (a) Write down the null and alternative hypotheses. π»0 : ππβπππβππππ > ππ ππππ (b) Find the p-value for this test. π = π. πππππ (c) Write down the conclusion to the test. Give a reason for your answer. Doing the test: 1. In Statistics an populate List 1 with the sample 1 and List 2 with sample 2. 2. Go to Test, t, 2-sample (because we are given 2 lists). 3. Change the inequality to > as we are testing if the chinchilla weights (List 1) are heavier. 4. Finally, scroll down and click EXE to do the test and make your conclusions. π = π. πππππ < π. ππ πππ πππππ ∴ ππππππππππ ππππ ππππ ππ ππππππ ππππ ππππππππππ πππ πππππππ π ππππ ππππππππππ πππππππ πππ πππππππππ πππππππ ππππ πππππ πππππππ