## ← 36-24 Regression_5

• 2 Followers
• 10 Lines

36-24 Regression_5

### Get Embed Code x Embed video Use the following code to embed this video. See our usage guide for more details on embedding. Paste this in your document somewhere (closest to the closing body tag is preferable): ```<script type="text/javascript" src='https://amara.org/embedder-iframe'></script> ``` Paste this inside your HTML body, where you want to include the widget: ```<div class="amara-embed" data-url="http://www.youtube.com/watch?v=lSRfCc3SXms" data-team="udacity"></div> ``` 3 Languages

Showing Revision 2 created 11/02/2015 by Udacity Robot.

1. The final thing I want to teach you is how to calculate a.
2. There is a simple formula as well, and the insight here is you already know b
3. and we know that bx+a results to y for all linear function.
4. Now, what happens to be true is if we take the average x and the average y,
5. then this equation is still correct.
6. Now, we can resort the terms--a=y-bar - b*-bar, so that's the formula for a.
7. Now, the formula for b and we have the formula for a. That's really cool.
8. Let's apply this here and see what your value for a would be.
9. Just give me the answer based on plugging the means
10. into the formula over here using the appropriate b.