About Me

My photo
Frisco, CO, United States
Hi, I'm Joel Levy owner of PC Applications. I have been providing quality Windows and MS Office Training and Consulting services to Central Colorado for over 16 Years. I have been specifically teaching computer classes since 1993 and bring incredible enthusiasm in a relaxed, laid back style that makes the learning fun and enjoyable. My personable teaching style makes it easy to understand concepts of how the software works, not just what buttons to click. My experience in working with Windows and ALL of the MS Office Applications at ALL levels allows me to explain things from a broad perspective comparing and contrasting MS Office features. Check out our website www.pcapplications.com

Sunday, June 20, 2010

Statistics Linear Regression Excel 2007

OK, so the weather has been so nice lately...

Let's see, how about for you statisticians or wannabe stat kinda guys or gals...you all remember r (linear correlation coefficient) or r2 (coefficient of determination) from statistics? Anyway, something about how well points fit a line. If r or r2 = 1, there is a perfect fit of the data to a line. In plain english, r is equal to the cross product of the sum of difference of each data point from it mean for x and y values divided by the number of data point minus 1 times the product of the standard deviation of the x and y values. Of course the line equation is y = mx + b (m is slope of the line and b is the y intercept).

In Excel after you have created a line chart (really could be several other types but makes most sense with a line chart (remember linear regression...). In Excel 2007 select the chart and the Chart Tools Layout Tab, the Analysis Command Group has Trendline, More Trendline Options (at the bottom of the list). By default, what we want in this case anyway, is Linear. This will add the best fit linear trendline to the chart. But now, maybe the best part...At the bottom of the trendline options dialog box are the options to force a Y intercept value (many times 0) and show the line equation and r2 values on the chart..pretty cool. I just think of all of the calculations to do this...

Otherwise, not into stats...never mind...

Have fun in the meantime until nextime, Joel

No comments:

Post a Comment