- #1

pyfgcr

- 22

- 0

I have known how to calculate linear regression.

Thanks in advanced.

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter pyfgcr
- Start date

- #1

pyfgcr

- 22

- 0

I have known how to calculate linear regression.

Thanks in advanced.

- #2

Stephen Tashi

Science Advisor

- 7,781

- 1,540

- #3

pyfgcr

- 22

- 0

I don't really understand

- #4

Stephen Tashi

Science Advisor

- 7,781

- 1,540

I don't really understand

Perhaps you haven't studied how the formulas for linear least squares regression are derived.

In linear regression there are [itex] n [/itex] data points [itex] {(x_1,y_2), (x_2,y_2),...(x_n,y_n) }. [/itex] The function to be minimized is [itex] G(A,B) = \sum_{i=1}^n (A x_i + B - y_i)^2 [/itex] and deriving the formulas involves taking the partial derivatives of [itex] G(A,B) [/itex] with respect to each of [itex] A [/itex] and [itex] B [/itex] and setting them equal to zero to obtain two simultaneous linear equations. Look up how that is done.

The method for the quadratic is similar. It involves minimzing a function of 3 variables [itex] G(A,B,C) [/itex].

Share:

- Last Post

- Replies
- 5

- Views
- 180

- Last Post

- Replies
- 3

- Views
- 84

- Replies
- 0

- Views
- 1K

- Replies
- 64

- Views
- 2K

- Last Post

- Replies
- 9

- Views
- 570

- Last Post

- Replies
- 3

- Views
- 517

- Last Post

- Replies
- 5

- Views
- 481

- Last Post

- Replies
- 8

- Views
- 1K

- Last Post

- Replies
- 1

- Views
- 718

- Replies
- 2

- Views
- 665