+ Reply to Thread
Results 1 to 7 of 7

Estimating a line of regression

  1. #1
    Registered User
    Join Date
    11-13-2006
    Posts
    9

    Estimating a line of regression

    Hi ive been asked to
    estiamte the regression line y = α + βx+ ε

    i have 2 sets of data
    y and x
    how can i do this in excel
    thanks for any advice

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Estimating a line of regression

    You can write that:

    β= (AVERAGE(B1:B29)-B1)/(AVERAGE(A1:A29)-A1)
    α + ε =AVERAGE(B1:B29)-β*AVERAGE(A1:A29) or =AVERAGE(B1:B29)-(AVERAGE(B1:B29)-A1)/(AVERAGE(A1:A29)-B1)*AVERAGE(A1:A29)

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Estimating a line of regression

    This is explanation of formula... of course, you can use:

    =TREND($B$1:$B$29;$A$1:$A$29;A30) where A30 is new value and B1:B29 are y values and A:A29 are x values

  4. #4
    Registered User
    Join Date
    11-13-2006
    Posts
    9

    Re: Estimating a line of regression

    is there no way of using the regression tool in the data analysis tab?
    and you said A30 is the new value, im not looking for a new value, so i dont know what to put there
    thanks to both of you for the responses

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,592

    Re: Estimating a line of regression

    You can try with =LINEST(B1:B29;A1:A29) wich will give you β

  6. #6
    Registered User
    Join Date
    11-13-2006
    Posts
    9

    Re: Estimating a line of regression

    It might be easier if i give you the 2 sets of data

    y
    11.2
    11.05
    6.84
    9.21
    9.42
    10.08
    9.45
    6.73
    7.24
    6.12
    7.63
    9.43
    9.46
    7.64
    6.92
    8.95
    9.33
    10.23
    11.77
    7.41


    x
    907
    926
    506
    741
    789
    889
    874
    510
    529
    420
    679
    872
    924
    607
    452
    729
    794
    844
    1010
    621


    Y is sales X is customers
    so what is the regression line y = α + βx+ ε
    of these 2 sets of data?
    thanks again

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Estimating a line of regression

    For a linear regression, there are just two parameters of the equation y = mx + b, m and b. If the x data is in A1:A10, and the y data in B1:B10, then select TWO cells, e.g., C1 and D1, and paste this in this formula bar:

    =LINEST(B1:B10, A1:A10)

    Then INSTEAD of pressing Enter, press and hold the Ctrl and Shift keys, then press Enter. (That's how an array formula is entered.)

    C1 has the slope and D1 the intercept.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1