AI Hints
Home›Statistics & Math for ML Tutorial›Cross-Validation and Interviews
Statistics & Math for ML · Lesson 116 of 138

Interview Questions: Part 1

Statistics.

⏱ 2 min read▶ Video at 2:17:58🎓 Free
Watch this lesson in the Statistics & Math for ML courseWatch on YouTube ↗Full Statistics & Math for ML course

Data science and machine learning interviews almost always include a few statistics questions. Here are the most common ones, with short answers you could give in thirty seconds.

Interview Questions: Part 1
From the video: Interview Questions: Part 1
  • Stats questions are common
  • Short, clear answers
  • Thirty seconds each

Mean or median? And what is a p-value?

When would you use the median instead of the mean? When the data is skewed, or has outliers, like incomes. What is a p value? The probability of seeing data at least this extreme, if the null hypothesis were true. It's not the probability that the null is true.

keyvalue
Medianskewed data, outliers
p-valueP(data this extreme | null)
NotP(null is true)
Small pevidence against the null

Errors and intervals

What's the difference between type one and type two errors? Type one is a false alarm, rejecting a true null. Type two is a miss, failing to detect a real effect. What does a ninety five percent confidence interval mean? If we repeated the study many times, ninety five percent of the intervals would contain the true value.

keyvalue
Type Ifalse alarm, rate α
Type IIa miss, rate β
Power1 − β
95% CI95% of intervals catch the truth

Correlation and the CLT

Does correlation imply causation? No. A confounder can drive both variables, and only experiments can prove cause. What does the central limit theorem say? Sample means are approximately normal, whatever the original distribution, once the sample is large enough. That's why so many tests work.

keyvalue
Correlationnot causation
Confoundera hidden common cause
CLTsample means become normal
Why it matterstests and intervals

Summary

Know the mean versus median, p values, the two error types, confidence intervals, and the central limit theorem. Next, interview questions on the math behind machine learning.

Key takeaways
  • p-value meaning
  • Type I vs II
  • CLT
Next up: Interview Questions: Part 2 — math for ML