Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Chi-Square Test(one) Chapter 8. 2 Content test of fourfold data test of R×C table Multiple comparison of sample rates test of paired fourfold data Fisher.

Similar presentations


Presentation on theme: "1 Chi-Square Test(one) Chapter 8. 2 Content test of fourfold data test of R×C table Multiple comparison of sample rates test of paired fourfold data Fisher."— Presentation transcript:

1 1 Chi-Square Test(one) Chapter 8

2 2 Content test of fourfold data test of R×C table Multiple comparison of sample rates test of paired fourfold data Fisher probabilities in fourfold data test of goodness of fit

3 objection to deduce if there is any discrimination of the ratio or structure ratio between two populations or among more than two populations multiple comparison of the ratio of multi-samples to deduce if there is any correlation between two class variables test of goodness of fit fit for :qualitative data

4 4 Section one test of fourfold data

5 5 objective : to judge if there is any discrimination of the rate or structure ratio between two populations ( equal to the u- test ) demand : the number of individuals from the two samples classified into two categories should be transformed into a fourfold data

6 6 ( 1 ) distribution is a continuous distribution : ( 2 ) one of the basic characters is that it can be plus to others : 1 The basic idea of test distribution

7 7

8 8 2. The basic idea of test eg 8-1 one hospital want to compare the curative effect of drug A ( Omeprazole ) and drug B (Ranitidine ) in treating the peptic ulcer. They devided 169 patients with peptic ulcer into two groups at random , the results are as follows (table 8-1). According to the data, whether the effective ratio is different ?

9 9 Table 8-1 the comparison of the healing ratio between two groups in healing peptic ulcer H 0 :  1 =  2 H 1 :  1   2

10 10 chart 8-2 the basic form of fourfold table data

11 11 The respected frequencies can be calculated by the following formula : T RC refers to the expected frequencies in Row R and Line C n R refers to the frequency sum of a certain row n C refers to the frequency sum of a certain column

12 12 Table 8-1 the comparison of the healing ratio between two groups in healing peptic ulcer

13 13 Basic idea : can be showed with the basic formula of test A means actual frequency , while T means theoretical frequency 。

14 14 Basic idea of  2 test Given a set of observed frequency distribution A 1, A 2, A 3 … to test whether the data follow certain theory. If the theory is true, then we will have a set of theoretical frequency distribution: T 1, T 2, T 3 … Comparing A 1, A 2, A 3 … and T 1, T 2, T 3 … If they are quite different, then the theory might not be true; Otherwise, the theory is acceptable.

15 15 the respected frequency is set by the hypothesis , and by the ratio after merging

16 16 the test statistic :the value of reflects the fitness of actual frequency and expected frequency

17 17 from formula 8-2,we can see that the value of also depends on the size of (exactly the size of ). is decided by the number of the grids, but not the sample size.

18 18 ( 1 ) establish hypothesis, and set the criteria of the test 。 H 0 :π 1 =π 2 H 1 :π 1 ≠ π 2 α=0.05 3. The process of hypothesis test

19 19 ( 2 ) to calculate the test statistic

20 20

21 21 4.The specific formula fourfold table data

22 22 distribution is a continuous one, while the fourfold table data is dispersible, the value of calculated by the latter is also dispersible, in order to improve the continuousness of the statistic distribution,the continuousness correcting is needed.

23 23

24 24 5.The corrected formula

25 25 the conditions in choosing test formula for the fourfold table data : , special formula ; , corrected formula ; , Fishier exact probabilities method 。

26 26 eg 8-2 one doctor want to compare the effect of treatment A (simple chemotherapy) and treatment B (complex chemotherapy) in curing Lymphoid tumor , he divided 40 patients with such illness into two groups at random,the results are in table 8-3, whether the remission rate of the two treatments are the same ?

27 27 in this case, n=40, 1<T 11 <5 , so the corrected formula can be used , through the critical value table of,we can find that 。 According to the test level 0.05, can’t be rejected,so we can’t say that the remission ratios of the two treatment are different.

28 28 If not corrected , then the conclusion is on the contrary

29 29 Section 2 -test of paired fourfold table

30 30 Table 8-7 the result of the two testing methods Example 8-5

31 31 a, d are the agreement of the two methods b, c are not agreement of the two methods Statistic:

32 32 Steps of the test :

33 33 Section 3 Chi square test for R×C table

34 34 R×C table ① multiple rate comparing , R ×2 table ; ② two constituent ratio comparing, 2×C table ③ multiple constituent ratio comparing, R ×C table

35 35 genereal formula

36 36 eg8-3 table 8-5 the cure rates of three treatments for chronic bronchitis 一、多个样本率的比较

37 37

38 38 eg8-4 Table 8-6 the blood type distribution between children acute leukemia patients and adults acute leukemia

39 39 Testing steps :

40 40 Caution: (1) Either 2  2 table or R  C table are all called contingency table. 2  2 table is a special case of R  C table (2) When R>2, “H 0 is rejected”only means there is difference among some groups. Does not necessary mean that all the groups are different. (3) The  2 test requires large sample, By experience, The theoretical frequencies should be greater than 5 in more than 4/5 cells; The theoretical frequency in any cell should be greater than 1. Otherwise, we can not use chi-square test directly.

41 41 If the above requirements are violated, what should we do? (1) Increase the sample size. (2) Re-organize the categories, Pool some categories, or Cancel some categories

42 42 Multiple comparison between multiple rates

43 43 Bonferroni method

44 44


Download ppt "1 Chi-Square Test(one) Chapter 8. 2 Content test of fourfold data test of R×C table Multiple comparison of sample rates test of paired fourfold data Fisher."

Similar presentations


Ads by Google