lab 3

profileFancy
Lab3Class_Summer23_S1.xlsx

Sheet1

Should Marijuana Be Legal
So, for your expected frequencies, you are going to multiply the row marginal (male or female) by the column marginal for either "yes" or "no" and divide by the total (210).
Observed Expected
Legalize Marijuana Legalize Marijuana
Gender Yes No Row Marginal Gender Yes No Row Marginal
Male 50 24 74 Male 46.5142857143 74
Female 82 54 136 Female 136
Column Marginal 132 78 210 Column Marginal 132 78 210
Chi-Square Statistics
Legalize Marijuana
Gender Yes No Row Marginal
Male 0.2612144612 X2 statistic
Female Df= (r-1)(c-1)
Column Marginal P value
Remember: to calculate your chi-square statistic per group, take the (observed frequency- expected frequency)²/ expected frequency