Classifiers#

The question and the claim#

Classification separates estimated event probabilities from decisions made using a threshold. Logistic regression models log-odds; LDA and QDA model class-conditional distributions. Compare performance with a relevant baseline and a loss reflecting the intended use.

What you should be able to do#

  • Specify the scientific target and the observations needed to address it.

  • Specify the positive class and cost of errors, choose a threshold using training-side evidence, and evaluate once on held-out participants.

  • Explain the assumptions, uncertainty, and limits of your conclusion.

Worked investigation#

Predict lexical-decision correctness for held-out participants. Compare majority prediction with logistic probabilities, confusion counts, Brier score, log loss, precision, and recall. The worked notebook is self-contained and uses documented teaching data. Its output is evidence about that example, not a finding about a human population.

Challenge the result#

High accuracy may reflect a dominant class. A probability threshold selected on the test set produces an optimistic evaluation. Before running an analysis, predict what this failure would change. After running it, distinguish a software check from a scientific justification.

Practice and verification#

Complete the exercise, then discuss the interpretation questions. Submit a runnable notebook, your assumptions, and a short evidence-based interpretation. The shared analysis workflow defines the reporting and assessment standard.

For AI assistance, first write your own target and expected behavior. Use generated suggestions as candidates, inspect the code or claims, and retain evidence of the checks you performed. The AI analysis guide includes a saved-output activity that requires no account or paid service.

Connection across lessons#

Extend continuous-outcome modeling to probabilities; mixed models then address the dependence within the trials.

Earlier lecture resources#

The recordings and slides below are retained from the earlier course edition and have not been revised. Use the written chapter, revised notebook, and exercise for current definitions and procedures; earlier examples may conflict with the corrections described here.

Required readings#

Chapter 4: Classification. James, G., Witten, D., Hastie, T., & Tibshirani, R. (2021). An Introduction to Statistical Learning: with Applications in R (2nd edition). New York: Springer.

Lecture (Video)#

Classifiers

Slides (PDF)#

Classifiers