Session Ready
Exercise

Putting It Together: Regression

Let's try to put it all together. You've conducted a study looking at how much money people have (dependent variable) and their education level (independent variable). Let's check some different things in your data!

Instructions
100 XP
  • Calculate the Pearson r correlation coefficient between your two variables
  • Calculate your regression coefficients and assign them to a new variable called line
  • Print the regression coefficients you have assigned
  • Make a scatterplot of your variables. Label the graph "My Scatterplot" (remember you can do this with the main = argument)
  • Add the regression line to your scatterplot