CommencerCommencer gratuitement

Fitting logistic models

Many business problems require the prediction of a binary response variable. Your future employer may need to detect spam e-mails, credit card frauds, or rare diseases.

The logistic regression model is the go-to method for binary classification problems.

In this exercise, you will use Parkinson's dataset from the UCI repository. This dataset is composed of a range of biomedical voice measurements from people with and without Parkinson's disease.

You will use the following variables from the dataset:

  • status - 1 - if a person has Parkinson's disease, 0 - otherwise,
  • NHR - a measure of the ratio of noise to tonal components in the voice,
  • DFA - a signal fractal scaling exponent.

The dataset is available as parkinsons.

Cet exercice fait partie du cours

Practicing Statistics Interview Questions in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Plot status vs NHR
___(status ~ ___, data = ___)

# Plot status vs DFA
___(___ ~ ___, ___ = ___)
Modifier et exécuter le code