Skip to content

Instantly share code, notes, and snippets.

@ryanorsinger
Created May 14, 2019 14:04
Show Gist options
  • Save ryanorsinger/ff115f49450b9715f084bec6e57b0a8d to your computer and use it in GitHub Desktop.
Save ryanorsinger/ff115f49450b9715f084bec6e57b0a8d to your computer and use it in GitHub Desktop.
Regression Warmup

Regression Warmup

  1. Using pydataset, load the faithful dataset and read it's documentation.
  2. What is pearson's r for the two variables?
  3. Visualize the relationship between the variables.
  4. Build a linear model that predicts eruptions based on waiting.
  5. Create a visualization with your predictions
    1. waiting should be on the x axis, and eruptions on the y
    2. Use color to differentiate the actual vs predicted values.
    3. Add a descriptive title.
    4. Change the y ticks such that they are all integers (i.e. no decimals)
    5. Add the root mean squared error of your predictions as an annotation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment