# Y Hat: Definition

Y hat (written ŷ ) is the predicted value of y (the dependent variable) in a regression equation. It can also be considered to be the average value of the response variable.

The regression equation is just the equation which models the data set. The equation is calculated during regression analysis. A simple linear regression equation can be written as:

ŷ = b0 + b1x.

Since b0 and b1 are constants defined by your analysis, finding ŷ for any particular point simply involves plugging in the relevant value of x.

## Finding Y Hat for a Linear Regression Line

Suppose we want to predict first grade reading abilities from the number of hours per week a child spends reading in preschool. We have a set of data points: reading ability scores (on some hopefully unbiased scale) and survey data from homes which tell us hours per day of preschool reading. With this information, we use simple linear regression and the least squares method to find the regression equation that best fits the data. In almost all cases, you won’t do this by hand, but rather with software like SPSS or R.

Suppose our line is:

ŷ = 2.45 x -0.16

Let’s say ŷ is the predicted average reading level for a child who has read half an hour a day in preschool. To find this value, all we would need to do is to plug in x = 0.5. So we’d get

ŷ = 2.45 (0.5) -0.16 = 1.065

The result tell us that the regression line predicts that a child read to half an hour a day in preschool would have a 1.065 reading level in kindergarten (on our hypothetical, fictional reading scale).

## References

Page, Thomas. MSC 317 Class Notes: Simple Linear Regression. Retrieved from https://msu.edu/course/msc/317/slr-reg.htm on May 25, 2018.

Hughes, Elisha. Notes on Basic Practices of Statistics– Chapter 5. Regression. Retrieved from https://www.math.utah.edu/~hughes/Chapter_05.pdf on May 25, 2018

Saint-Germaine, Michelle. Simple Regression. PPA 696 Research Methods Class Notes. Retrieved from https://web.csulb.edu/~msaintg/ppa696/696regs.htm on May 27, 2018.

------------------------------------------------------------------------------

Need help with a homework or test question? Chegg offers 30 minutes of free tutoring, so you can try them out before committing to a subscription. Click here for more details.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments? Need to post a correction? Please post on our Facebook page.
Y Hat: Definition was last modified: June 1st, 2018 by