In: Statistics and Probability
USE R AND SHOW CODES!!
1.a. There is a theorem that the ratios of blood types O, A, B and AB are 49:38:9:4,
respectively. A research team, investigating a small community and obtained the following frequencies of blood type.
Blood type
Blood Type O A B AB
Frequency 87 59 20 4
Test the hypothesis that the proportions in this community do not differ significantly
from those in the general theorem.
1.b. The severity of participants' migraines is clinically assessed. The following table
displays the severity classifications for patients assigned to the medical and the non
traditional therapies
Severity Classification
Therapy Minimal Moderate Severe
Medical 90 60 50
Non traditional 50 60 90
Is there any evidence that severity is independent of type of therapy?
The r-codes are shown below:
#question 1
f=c(87,59,20,4)
chisq.test(f, p=c(.49,.38,.09,.04))
#question 2
m1=c(90,60,50)
m2=c(50,60,90)
m=rbind(m1,m2) #creating the table
chisq.test(m)