Exercise 11: Chi-square and categorical association

Use data/employee_survey.csv.

  1. Create a contingency table of manager by department.
  2. Calculate row percentages.
  3. Run the chi-square test of independence.
  4. Inspect expected counts.
  5. Calculate Cramér’s V.
  6. Write two sentences interpreting the pattern without causal language.