Sin-Lin-Reg

Published:

 

Simple Linear Regression

Y = A + B * X

B = (xy - x * y) / ( - x * x)

A = ( * y - x * xy) / ( - x * x) = y - B * x

R =          (xy - x * y)
R = ¾¾¾¾¾¾¾¾¾¾¾¾¾¾
R =  Ö ( - x * x)( - y * y)

  A - intercept, B - slope, R - correlation
    x - average of x values, - average of the x squared values
    y - average of the y values, - average of the y squared values
    xy - average of the x and y products

Example

1 - Data

xy
15
228
336
4106
5108
6122

 

2 - Data, Squared, and Product Values

xyxy
115255
242878456
39361296108
41610611236424
52510811664540
63612214884732

 

3 - Averages

xyxy
3.515.166767.56648.1667310.8333

 

4 - A, B and R Values

B = (310.8333 - (3.5 * 67.5)) / (15.1667 - (3.5 * 3.5))
B = 25.57

A = 67.5 - (25.57 * 3.5)
A = -22.00

R = (310.8333 - (3.5 * 67.5)) / Ö(15.1667 - (3.5 * 3.5))(6648.1667 - (67.5 * 67.5))
R = +0.9548

 

5 - Linear Equation

Y = A + B * X

Y = -22.00 + 25.57 * X

 

6 - Actual and Estimated Linear Values

xactual - ylinear - y
153.57
22829.14
33654.71
410680.28
5108105.85
6122131.42

Entry #64

Comments

This Blog entry currently has no comments.

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register