Get startedGet started for free

Simple Linear Regression

The fundamental phenomenon suggested by the study is that better looking teachers are evaluated more favorably.

Let's create a scatterplot to see if this appears to be the case.

This exercise is part of the course

Data Analysis and Statistical Inference

View Course

Exercise instructions

  • Create a scatterplot for the average beauty rating of a professor bty_avg (x value) and score (y value).
  • Before drawing conclusions, compare the number of observations in the data frame with the approximate number of points on the scatterplot. Do you notice anything awry?

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# The evals data frame is already loaded into the workspace

# Create a scatterplot for score and bty_avg:
Edit and Run Code