SchoolWhool
Quizzes and saved progress, freeSign in freeSign in
Statistics · Module 2

EDA, Evidence and Misleading Statistics

Take each lesson, answer its quiz, then do its practice. After the last lesson come the module quiz, the project and the interview questions.

Lessons

  1. 2.1EDA Is a Sequence of DecisionsTurn a raw table into a short list of verified observations and the next questions to test.
  2. 2.2How Charts Can MisleadDetect when visual choices change the apparent size or shape of an effect without changing the underlying observations.
  3. 2.3Denominators, Base Rates and Missing GroupsCheck whether the reported numerator and denominator refer to the population the claim is about.
  4. 2.4Project Lab: End-to-End EDA for an ML DecisionProduce a reproducible data report that changes a modelling decision, not a gallery of attractive plots.

Module material

Take these after the last lesson, in this order. Next on each page leads through them.

  1. Module quiz15 questions across the whole module. Take it after the last lesson; your first pick on each question is the one that counts.
  2. Project: A One-Page, Training-Only Credit EDA ReportStated as a problem, with no template and no step-by-step instructions. Working out the steps is the point.
  3. NotebooksOpen them in Google Colab. Each answer is checked as you go: correct, wrong with the expected value, or not answered yet.
  4. Cheat sheetOne page of the module’s terms, rules and gotchas, with the output each rule produces.
  5. Interview questions28 questions interviewers ask on eda, evidence and misleading statistics, from first principles to the follow-ups. The first 3 model answers are free to read; Pro opens the rest.

Glossary

Every term the module introduces, with the lesson that introduces it.

exploratory data analysis (EDA)
Inspecting recorded data, its quality and its patterns before drawing conclusions. 2.1
unit of analysis (narration)
Whatever is counted once for the stated result; here, an included invoice on its recorded day. 2.1
schema
Field names and stored data types in a table, as df.info() shows them. 2.1
missingness
Absent recorded values in a stated field and set of rows: 135,080 lines have no CustomerID. 2.1
duplicate record
A row matching an earlier row on the compared fields: 5,268 exact repeats, to inspect, not delete silently. 2.1
data-quality check
A test for missing, repeated or invalid recorded values before a declared use. It records an issue; the decision about it comes after. 2.1
univariate view (narration)
A view of one variable on its own, such as the distribution of daily invoice counts. 2.1
bivariate view (narration)
A view of two variables together, such as each daily count against its date. 2.1
subgroup view (narration)
The same measure split by a declared category, such as recorded country. 2.1
evidence log (narration)
A record of each observation, a plausible alternative explanation and the next check. 2.1
unit
The quantity a chart's axis measures: pounds of gross positive invoice value, or a count of invoices. 2.2
relative change
Difference divided by the starting value: 22.57% between the weeks starting 2011-10-31 and 2011-11-07. 2.2
axis baseline
The value at the start of a chart axis. 2.2
truncated axis
An axis whose displayed range omits lower values. 2.2
bar encoding
Magnitude represented by length from the baseline, which is why a bar axis starts at zero. 2.2
displayed time window
The dates included on a chart. 2.2
incomplete interval
A displayed time bin extending beyond the source's recorded period, such as the week containing 2011-12-09. 2.2
aggregation window
The span of source dates combined into one reported value. 2.2
rate per week
An amount divided by the number of complete weeks it represents. 2.2
smoothing
Replacing nearby values with a declared local summary, such as a three-week moving average. 2.2
moving average (narration)
The mean of each value and its neighbors; a centered three-week one uses the week and the weeks either side. 2.2
frequency density
Bin count divided by bin width, used when histogram bins have unequal widths. 2.2
dual axes
Separate vertical scales placed on one plot; either can be rescaled until two lines look aligned. 2.2
source population
The recorded cases a summary begins with: 30,000 existing clients. 2.3
base rate
Event fraction in a stated starting population: 6,636 / 30,000 = 22.12%. 2.3
simulation (narration)
An explicit teaching rule or process applied to data and labelled as such; here the screen PAY_0 <= 0, not an actual lender rule. 2.3
selection
A rule determining which source rows enter a reported subset. 2.3
unobserved outcome
A result absent under the decision being evaluated, such as a rejected applicant's default. It is not a zero. 2.3
eligible denominator
The cases allowed into the stated rate under its selection rule: the simulated approvals. 2.3
group size, n
The number of cases in a stated group. 2.3
approval rate
Approved count divided by the stated group considered by the rule. 2.3
reported rate
A numerator and denominator plus the rule defining who is included. 2.3
teacher audit (narration)
Revealing, in a labelled teaching step, outcomes that the simulated process hides and a real lender could never recover. 2.3
population change
A changed set of cases in a summary. 2.3
denominator mismatch
A numerator and denominator that refer to different eligible sets, such as 3,207 approved defaults over all 30,000 rows. 2.3
missing outcome group
Cases whose result cannot be observed under the stated process. 2.3
survivorship bias
A summary distorted because only cases that passed a selection step were recorded: the simulated approvals default at 13.8%, the simulated rejects at 50.3%. 2.3
subgroup
Records selected by a declared category, such as department. 2.3
composition
How a group's cases are spread across subgroups. 2.3
weighted average (narration)
Subgroup rates combined according to each group's own subgroup shares; an overall rate is one. 2.3
Simpson's paradox
An overall comparison that reverses inside the subgroups because the groups have different compositions. 2.3
standardization (notebook)
Recomputing group rates under one declared subgroup mix. 2.3
target
The recorded outcome a future model is intended to predict: next-month default, coded 0 or 1. 2.4
holdout
Rows reserved from model-directed exploration for later evaluation: the 6,000 pinned IDs. 2.4
data-quality check
A test of recorded fields against the intended analysis. 2.4
base rate
Observed frequency of the target outcome in a stated set of rows: 5,317 / 24,000 = 22.15%. 2.4
feature code
A stored numeric value standing for a documented category or status. 2.4
EDA report
Reproducible observations linked to explicit limits and next checks. 2.4
causal claim
A claim about what would change if something were changed; the report can not make one from this file. 2.4
selective reporting
Showing only the results that found something, and leaving out the checks that did not. 2.4