Presentation is loading. Please wait.

Presentation is loading. Please wait.

ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,

Similar presentations


Presentation on theme: "ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,"— Presentation transcript:

1

2 ContentFurther guidance

3

4  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample, performing a specific mathematical test, and then deciding whether or not the conjecture is true.  A conjecture must be stated in two parts: › The null hypothesis (H 0 ) – states that there is no significant difference between the two parameters being tested (they are “not related to” each other, i.e. independent) › The alternative hypothesis (H 1 ) states that this is a significant difference. (they are “related” in some way, i.e dependent)  The only hypothesis test covered by the Studies SL course is the Chi Squared test.

5  The Chi-square test itself is quite straight forward, your GDC can do it in two steps but you also must know the formula and be able to do it by hand  The hypothesis test which uses Chi-square determines whether or not two variables are related. It follows a general pattern: (1) Make a conjecture (2) Write the null hypothesis using “is not related to, or “independent”; and write the alternative hypothesis using is related to or “dependent” (3) Calculate the chi-square test (4) Determine reference values (5) Compare the two and either accept or reject the null hypothesis

6  You can find chi-squared on your GDC by using the statistics mode  Press Menu 6: Statistics  Press 7: Stat Tests  Select 8: x 2 2-way Test  Enter the name of the observed matrix  Note : You must have entered the data in to Matrix mode first and name the matrix!!

7 The table shows the results of a sample of 400 randomly selected adults classified according to gender and regular exercise. The observed table, called 2 by 2 contingency table, is given as: Regular exercise No regular exercise sum Male110106216 Female9886184 sum208192400 The test is used when we deal with two categorical variables and we wish to determine whether the variables are dependent, for example females may tend to exercise more regularly, or independent, where there is no evidence that the gender of person has an effect on whether they exercise regularly.

8 Enter the observed table as a matrix and save as a. Then use the chi squared test. After you enter the results will show.

9 How can we obtain the expected frequency table by hand?

10 For each cell, we multiply the row sum by the column sum and divide by the total. Regular exercise No regular exercise sum Male110106 216 Female9886 184 sum 208192400 Regular exercise No regular exercise sum Male 216 x 208 / 400216 Female 184 x 192 / 400184 sum 208192400 row sum total column sum

11 Regular exercise No regular exercise sum Male112.32103.68216 Female95.6888.32184 sum208192400 How do we calculate the chi squared? The chi squared test examines the difference between the observed values we obtained from the original sample, and the expected values we have calculated. This value will be obtained from your GDC. In this case x 2 =0.217

12

13

14 The critical value of chi squared depends on the significance level and degrees of freedom (size of the table). For a contingency table which has r rows and c columns, degrees of freedom df are:

15 Regular exercise No regular exercise sum Male110106216 Female9886184 sum208192400

16 As 0.217 is less than 3.841 we accept the null hypothesis and conclude that gender and regular exercise are independent.

17 Use critical chi squared value of 7.815

18 BLACKWHITEREDBLUETotal Male 51223324 130 Female 45362227 130 Total 96585551260

19 BLACKWHITEREDBLUETotal Male 130 Female 130 Total 96585551260 [48.,29.,27.5,25.5]

20

21 As 6.13 is less than 7.815 we accept the null hypothesis. Conclusion: The favourite colour is independent of gender. Calculate degrees of freedom: Number of rows r = 2 Number of column c = 4 df=(2-1)(4-1)= 3

22 Hand calculations of We use the formula, as given in your formula booklet:

23 51 48390.1875 22 29-7491.6897 33 27.55.530.251.1 24 25.5-1.52.250.08824 45 48-390.1875 36 297491.68966 22 27.5-5.530.251.1 27 25.51.52.250.08824 Total 6.13084 Hand calculations of chi squared. We need to construct the table:

24  From what Lauren observed, she believes that the number of hours exercised per week is dependent on gender. She collected data randomly and organised the results in the table shown.  Determine whether there is enough evidence to accept or reject the null hypothesis: › a) for α=0.01 › b) for α=0.05 › c) for α=0.10 Hours exercised per week Male51012 Female984

25  Write the null and alternative hypotheses › H 0 – The number of hours exercised each week independent on gender › H 1 – The number of hours exercised each week is dependent on gender  Calculate chi-square and the p- value X 2 Test X 2 = 4.69 (3sf) p = 0.0959 (3sf) df = 2 Hours exercised per week Male51012 Female984 Compare p-value to each signficance level a)0.09>0.01, hence accept null hypothesis b)0.09>0.05, hence accept null hypothesis c)0.09<0.10, hence we reject the null hypothesis Whilst it is not technically correct to say “accept H 0 ” it is still accepted in the IB.

26  This formula is on the IB formula sheet › f o is the observed frequencies (i.e the raw data) › f e is the expected frequencies  It is easiest to perform this sum calculation using a table one step at a time.

27  If you are comparing p-value with α-level then if: › p > α  accept the null hypothesis › p < α  reject the null hypothesis  If you are comparing X 2 with CV then if: › X 2 < CV  accept the null hypothesis › X 2 > CV  reject the null hypothesis


Download ppt "ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,"

Similar presentations


Ads by Google