Skip to course content
Free Python statistics course

Statistical Data Analytics with Python

Module 02 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. Eight deliveries from three drivers means n is…

2. df.mean() on a column with missing values…

3. df.duplicated().sum() == 0 on a table with repeated measurements means…

4. In a statsmodels formula, C(plan) with levels economy, express and standard uses which reference?

5. A failed pre-test check on the analysis table should lead to…

---

Answer Key and Explanations

Check these only after attempting every question.

1. C — 8 or 3, depending on the stated unit

The same data supports two sample sizes, and every standard error divides by the square root of n.

2. B — silently skips them, so the effective n is unstated

count() is the aggregation that reports what was actually used.

3. B — only that no two rows are identical in every column

Repeated measurements are different values from the same unit. Compare len(df) with df[unit].nunique() instead.

4. B — economy, alphabetically first

Alphabetical order puts economy first, so every coefficient silently compares against it.

5. B — a question for the data owner

A duplicated id or an undersized group will not stop ttest_ind returning a confident answer.

Practical Check

Apply this module to your own work: complete the module activity for *Preparing Data for Statistical Analysis*, 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.