Sign in to jmaths to print this page or save it as a PDF: jmaths-8ce638778fd6.herokuapp.com/maths/ai-sl/hypothesis-testing/13-4-4/problems/

jmaths

IB Mathematics: Applications and Interpretation SL · 13.4: Hypothesis Testing · 13.4.4

Name Date

Chi-squared test for independence Problem set A

Show the hypotheses, the degrees of freedom and the calculator output. Write each conclusion in context.

Difficulty: first skills applying them stretch

Skills

  1. A survey asks 237 students how they usually travel to school and which year group they are in. The results are shown. A chi-squared test for independence is carried out.

    TravelYear 9Year 10Year 11Walk312418Cycle122025Bus271914Car91622
    1. (a) State the null and alternative hypotheses.
    2. (b) Find the number of degrees of freedom.
  2. The table shows the sport chosen by 154 pupils. If the sport chosen is independent of gender, find the expected frequency of girls who chose tennis.

    SportBoysGirlsTotalHockey342155Tennis193857Swimming271542Total8074154
  3. Find the degrees of freedom for a chi-squared test for independence on a contingency table with: (a) 5 rows and 3 columns; (b) 2 rows and 6 columns; (c) 4 rows and 4 columns.

  4. A teacher records how often 175 students hand in homework on time, by gender. Use your calculator to find the expected frequencies, \(\chi^2\), the p-value and the degrees of freedom for a test of independence.

    HomeworkAlwaysSometimesNeverGirls412816Boys233532
  5. The curve shows the \(\chi^2\) distribution with 5 degrees of freedom. The shaded right tail has area 0.05.

    510150.050.10.15χ²df = 5
    1. (a) Find the critical value.
    2. (b) A test gives \(\chi^2=12.4\). Find the p-value.

In context

  1. A tour company asks 287 customers which type of holiday they chose and which age group they are in. At the 5% significance level, test whether holiday type is independent of age group.

    HolidayUnder 3030 to 55Over 55Beach443125City333522Walking283138
    1. (a) State the hypotheses.
    2. (b) Write down the number of degrees of freedom.
    3. (c) Use your calculator to find \(\chi^2\) and the p-value.
    4. (d) State the conclusion in context.
  2. A shop records 250 sales of two kinds of phone case, by the colour chosen. Test, at the 5% significance level, whether the case chosen is independent of the colour.

    CaseBlackBlueRedClearHard32452815Soft21384130
    1. (a) Find the value of \(\chi^2\).
    2. (b) The critical value is 7.81. State the conclusion in context.
  3. A gym asks 328 members how many days a week they visit and which membership they hold. The results are shown.

    Membership1 day2 days3 days4 or moreBasic48221510Standard30352528Premium17273833
    1. (a) Find the expected frequencies.
    2. (b) Find the cell that adds most to \(\chi^2\), and give its value of \((O-E)^2/E\).
    3. (c) Compare the observed and expected frequencies in that cell. Describe what this shows in context.

Stretch

  1. A doctor records whether 90 patients took a vitamin and whether they caught a cold in winter.

    VitaminColdNo coldTotalTook vitamin242145No vitamin192645Total434790
    1. (a) Find the expected frequency for patients who took the vitamin and caught a cold if the variables are independent.
    2. (b) State the degrees of freedom. Use your calculator to find \(\chi^2\), then use the critical value 3.84 to state the conclusion in context, at the 5% significance level.
  2. A test of whether favourite music is independent of age group gives a p-value of 0.032.

    1. (a) State the conclusion at the 5% significance level, in context.
    2. (b) State the conclusion at the 1% significance level, in context.

jmaths.xyz · AI SL · 13.4.4 Chi-squared test for independence