Exercise

Predictor vs. Response Variable

When using regression, the response variable is the variable we attempt to predict, and the predictor variable is what we use to predict the response variable.

Let's say you run an experiment investigating the amount that people like you after you give them money. In your experiment you gave people different amounts of money, and afterwards measured how much they like you. One of these variables (liking or money) is the predictor variable, and one is the response variable. Which do you think is which based on our experiment? Let's label these!

Instructions

100 XP
  • Your script provides you with two vectors - one containing the amount of money you gave participants, one containing the amount participants liked you afterwards.
  • Based on which variable should be the 'predictor' variable, and which variable is 'response', label one vector as money and one as liking.
  • You can label a vector simply by writing money or liking to the left of the <- (make sure there is a space between <- and the label!)