Question 1 (5 Points). Is there a relationship between gender and political party support?
Data below shows counts of males and females in a sample population and political party they voted for.
• Create the observations matrix using the provided R syntax below
• Select the appropriate statistical test,
• Formulate the null hypothesis in your own words,
• Compute the test statistic,
• Find and interpret the statistical decision at the 0.01 significance level
# Gender and political affiliation
observed <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))
dimnames(observed) <- list(gender = c("F", "M"), party = c("Democrat", "Independent", "Republican"))
observed