Академический Документы
Профессиональный Документы
Культура Документы
(O E)2 ;
E
O observed frequencies
E expected frequencies
- If situation occurs that when the expected frequency is so small (less than 5), it is recommended to apply any of the following:
a) Collapse some rows. Meaning, combine it with the other row logically. You may also disregard the row or column with
frequencies that are so small (most especially if zero).
b) for df = 1, use Yates correction, where
or the Fishers exact (for small sample size), where
O E 0.5
A B !C D ! A C !B D !
A! B!C! D! N !
Examples:
1. A researcher wants to determine if the hangout mall of Manila students
depend on the school where they study. The results are in the contingency
table (from hangout.xls) below. Test the hypothesis at 5% significance
level.
Hypotheses:
Ho: __________________________________________
Ha: __________________________________________
Test Statistic:
Conclusion: __________________________________________
2. In a study investigating the effect of rubella infections (German measles) on childbirth, a total of 578 pregnancies were classified in retrospect as
having been either normal or abnormal, the latter group including abortions, stillbirths, birth defects, and all infant deaths within two years.
Altogether, there were 86 abnormal pregnancies. The second variable looked at was
when the rubella infection occurredduring the first trimester or after the first trimester. It
was found that 59 out of the 86 abnormal births were among the 202 pregnancies
complicated during the first trimester; the remaining 27 were born to mothers who
contracted the virus after the first trimester. Can it be concluded that the risk of an
abnormal birth is associated when during the pregnancy the virus is contracted? Put up
the contingency table then test at = 0.01.
Hypotheses:
Ho: __________________________________________________________
Ha: __________________________________________________________
Test Statistic:
N AD BC
A B C D A C B D
2
Decision: _______________
Conclusion: _____________________________________________________________
Written by: Asst. Prof. Xandro Alexi A. Nieto of UST Faculty of Pharmacy
Suppose that the raw data below shows the income (A Upper Class; B Middle Class; C Lower Class), age (in years), usage Polgate as brand of
toothpaste, brushing teeth thrice a day, and existence of decayed, missing, or filled (DMF) teeth of the randomly selected Manila residents. Test all the
following hypotheses at 5% level of significance.
1. Do the data provide sufficient evidence that more customers in
Class C bracket use Polgate than in Class A?
Ho: _______________________________________________
Ha: _______________________________________________
test statistic:
decision: ____________
conclusion: _________________________________________
2. Do we have a reason to believe that 60% of the Manila
residents are brushing their teeth thrice a day?
Ho: _______________________________________________
Ha: _______________________________________________
test statistic:
decision: ____________
conclusion: _________________________________________
3. Is brushing of teeth thrice a day depends on the use of Polgate?
Ho: _______________________________________________
Ho: _______________________________________________
Ha: _______________________________________________
Ha: _______________________________________________
test statistic:
test statistic:
decision: ____________
conclusion: _________________________________________
decision: ____________
conclusion: _________________________________________
Written by: Asst. Prof. Xandro Alexi A. Nieto of UST Faculty of Pharmacy