Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

survived no yes class age sex crew adult female 3 20 male 670 192 child female 0

ID: 2923628 • Letter: S

Question

                    survived no yes
class age   sex                   
crew   adult female        3 20
             male               670 192
       child female            0   0
             male               0      0
first adult female            4 140
             male            118 57
       child female            0   1
             male              0   5
second adult female           13 80
             male            154 14
       child female            0 13
             male              0 11
third adult female           89 76
             male            387 75
       child female           17 14
             male             35 13

what test should i use to answer the question below (i am thinking of fister test)

Are the survival rate of children significantly different from that of adult women? Please give me command of that test.

Explanation / Answer

yes , this is a case of fisher exact data , The relationship between variables in a contingency table are often investigated using Chi-squared tests.

you can perform this in R using the following commands , enter the data in a matrix form such as below

df = matrix(c(1,4,7,4), nrow = 2)

and then run

fisher.test(df)

Hypothesis

H0 : survival rate of children are not significantly different from that of adult women

H : survival rate of children are significantly different from that of adult women

if the p value of the test is less than 0.05 , then you reject null in favor of alternate hypothesis and conclude that

survival rate of children are significantly different from that of adult women

If the p value is not less than 0.05 , then we fail to reject null hypothesis and conclude survival rate of children are not significantly different from that of adult women