Lab 06

Logistic regression

Mar 23, 2026

Review

A hospital is evaluating the use of a logistic regression model for detecting a disease. Below are the truth and predicted classifications for 200 patients.

Actual disease Present Actual disease Absent
Classified as disease present 50 20
Classified as disease absent 10 120
  • Compute sensitivity and interpret it in the context of the analysis.

  • Compute specificity and interpret it in the context of the analysis.

  • Compute the false positive rate and interpret it in the context of the analysis.

Options on how to work on lab

  • Individually

  • Work with 1 - 2 other students but everyone submits their own lab assignment

  • Collaborate with 1 - 2 other students using a single GitHub repo and submit a single lab assignment (include all names)

    • We can help you add all students to a single repo

Today’s lab

This lab focuses on using logistic regression to classify rice varieties based on data derived from images

🔗 sta210-sp26.github.io/labs/lab-06.html