Week 10 • Tuesday

Block 94: Hypothesis Testing: t-tests

Test statistical hypotheses using t-tests in Python.

Concepts

Code Examples

See exercise below.

Exercise

One-sample test: is mean height of a sample significantly different from 170cm? Two-sample test: do male and female passengers on Titanic have different mean fares? Interpret p-value.

Homework

Explain Type I and Type II errors using a medical testing analogy. Which is worse for a cancer screening test? Wednesday