Question

In: Statistics and Probability

12. Political Party Affiliation and Class level Freshman Sophomore Junior Senior Total Democrat 1 4 5...

12. Political Party Affiliation and Class level

Freshman Sophomore Junior Senior Total

Democrat 1 4 5 3 13

Republican 4 8 4 2 18

Green 1 3 3 2 9

Libertarian 1 1 2 1 5

Peace/Freedom 2 3 3 2 10

Total 6 15 12 7 55

Perform a hypothesis test to determine whether there is an association between class levels and political party affiliation.

Solutions

Expert Solution

Assume a level of significance to be 5%

Chi-Square Independence test - Results
(1) Null and Alternative Hypotheses
The following null and alternative hypotheses need to be tested:
H0​: The two variables - class levels and political party affiliation are independent
Ha​: The two variables - class levels and political party affiliation are dependent

This corresponds to a Chi-Square test of independence.

(2) Degrees of Freedom
The number of degrees of freedom is df = (5 - 1) * (4 - 1) = 12

(3) Critical value and Rejection Region
Based on the information provided, the significance level is α=0.05, the number of degrees of freedom is df = (5 - 1) * (4 - 1) = 12, so the critical value is 21.0261.
Then the rejection region for this test becomes R={χ2:χ2>21.0261}.

(4)Test Statistics
The Chi-Squared statistic is computed as follows:

(5)P-value
The corresponding p-value for the test is p=Pr(χ2​>3.7892)=0.9869

(6)The decision about the null hypothesis
Since it is observed that χ2=3.7892<χ2_c​rit=21.0261, it is then concluded that the null hypothesis is NOT rejected.

(7)Conclusion
It is concluded that the null hypothesis Ho is NOT rejected. Therefore, there is NOT enough evidence to claim that the two variables - class levels and political party affiliation are dependent, at the 0.05 significance level.

Conditions:
a. The sampling method is simple random sampling.
b. The data in the cells should be counts/frequencies
c. The levels (or categories) of the variables are mutually exclusive.

Let me know in the comments if anything is not clear. I will reply ASAP! Please do upvote if satisfied!


Related Solutions

a) Write C code using if statements to display ‘Freshman, ‘Sophomore’, ‘Junior’ or ‘Senior’ based on...
a) Write C code using if statements to display ‘Freshman, ‘Sophomore’, ‘Junior’ or ‘Senior’ based on what value is in variable classification. Display ‘unknown ’ if classification does not contain ‘f’, ‘s’, ‘j’or ‘r’. Allow upper or lower case in variable color. In other words either ‘r’ or ‘R’ will display ‘Senior’. b) Write C code to do the same thing as the previous problem, but use a switch statement.
Considering a Character vector called statusDesc=c(“senior”,”sophomore”,”junior”,”freshman”). Write R code(s) to create a factor called statusFac that...
Considering a Character vector called statusDesc=c(“senior”,”sophomore”,”junior”,”freshman”). Write R code(s) to create a factor called statusFac that will take statusDesc as an argument and has four levels in the order of “freshman,” ”sophomore,” ”junior,” and “senior.” Use the following codes to generate 10 random numbers to represent 10 random ages. set.seed(1) ages=rnorm(10,24,24) Based on the variable ages, use cut() to create a factor called ageFac that has 4 levels “child”,”teen”,”adult”, and “senior”.   The corresponding age ranges are (3,13],(13,18],(18,60],and (60,120]. For example,...
4-5. List the junior level COSC courses (like COSC3xxx) and the name of the course. Use...
4-5. List the junior level COSC courses (like COSC3xxx) and the name of the course. Use the Course table. 4-6. Using the COUNT feature, determine whether there are duplicate names or student numbers in the Student table. 4-7. Assume all math courses start with MATH. How many math courses are there in the Section table? From the COUNT of courses, does it appear there are any math courses in the Section table not in the Course table? Again, using COUNTs,...
(9) Diagonalizing 4 0 1 -7 -5 5. -12 -6 7
(9) Diagonalizing 4 0 1 -7 -5 5. -12 -6 7
Use the SAMPLE-level data set to answer the questions: 12 6 9 10 4 5 11...
Use the SAMPLE-level data set to answer the questions: 12 6 9 10 4 5 11 8 7 4 a. Compute SS for this data set b. Compute s2 for this data set c. Compute s for this data set d. What is the definition for standard deviation?
1.Multiparty 2.Pulralistic society 3.Party in power 4.Minor party 5.Split-ticket voting 6.One-party System 7.Consensus 8.Splinter parties 9.Single-member...
1.Multiparty 2.Pulralistic society 3.Party in power 4.Minor party 5.Split-ticket voting 6.One-party System 7.Consensus 8.Splinter parties 9.Single-member district 10.Two-party system Practicing the Vocabulary by creating sentences only.
1.Multiparty 2.Pulralistic society 3.Party in power 4.Minor party 5.Split-ticket voting 6.One-party System 7.Consensus 8.Splinter parties 9.Single-member...
1.Multiparty 2.Pulralistic society 3.Party in power 4.Minor party 5.Split-ticket voting 6.One-party System 7.Consensus 8.Splinter parties 9.Single-member district 10.Two-party system Practicing the Vocabulary I'm complete sentences only.
first matrix A [ 2 -1 3 ] [-4 0 -2 ] [2 -5 12 ]...
first matrix A [ 2 -1 3 ] [-4 0 -2 ] [2 -5 12 ] [4 0 4 ] amd b [2] [-2] [5] [0] solve for Ax=b using tan LU factorization of A
Analysis of Potential Changes in Macroenvironment 1. Political 2. Social 3. Environmental 4. Technological 5. Legal
Hi, I am currently doing a paper on Philippine Retail Industry - Department Stores I am asking for your help in the following section of my paper Analysis of Potential Changes in Macroenvironment 1. Political 2. Social 3. Environmental 4. Technological 5. Legal
Case Study There two sets of questions for this module, 1-4 and 5-8, for a total...
Case Study There two sets of questions for this module, 1-4 and 5-8, for a total of eight questions. Using the concept of the epidemiological triangle to complete one of the following case studies: John J. is a school nurse at Jackson Elementary School, which was built in 1960. Nurse John has noticed that many students from Ms. Zee’s second grade class have come to the clinic complaining about coughing, sneezing, runny nose, and watery eyes. Nurse John has also...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT