Skip to course content
Free Python statistics course

Statistical Data Analytics with Python

Module 06 Knowledge Check

5 questions. Pass mark 4 out of 5. Answer every question before checking the answer key below, then retry after reading the feedback.

1. stats.ttest_ind(a, b) in scipy defaults to…

2. Before-and-after measurements on the same people should use…

3. A significant chi2_contingency tells you…

4. After a significant f_oneway, the pairwise follow-up should be…

5. A non-significant result from 10 per group…

---

Answer Key and Explanations

Check these only after attempting every question.

1. B — the equal-variance (Student's) test

That is the opposite of R's default. On unequal spreads and sizes it gave p = 0.0019 where Welch gave p = 0.1086.

2. B — ttest_rel

In the lesson the independent test gave p = 0.706 and the paired test p = 0.012 on identical numbers.

3. B — that an association exists, and nothing about its direction

The standardised residuals give the direction: premium at +3.04 on churned, basic at −2.72.

4. B — pairwise_tukeyhsd from statsmodels

scipy offers no post-hoc, and unadjusted pairwise tests reintroduce the multiplicity the F-test controlled.

5. B — is close to uninformative, since a real 5-point effect would be missed 88% of the time

Power at n = 10 was 12%. The study was never capable of finding it.

Practical Check

Apply this module to your own work: complete the module activity for *Comparing Groups and Categorical Data*, then write one sentence naming what your result shows and one naming what it does not.

Strong Answer Pattern

A strong answer names the task, the evidence used, the check performed, and the remaining limitation. It avoids "proved", "guaranteed", or "always" unless the evidence genuinely supports it.