image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Mathematics > General Math


Reply

image Regressions without calculator Share It Thread Tools Search this Thread image
Old Feb9-10, 03:08 PM                  #1
jmsdg7

jmsdg7 is Offline:
Posts: 3
Regressions without calculator

im a senior in highschool taking ap calculus, ive done regressions here and there with the calculator but i was wondering how do do it without the calculator, i obviously know how to get a linear equation out of 2 points, but how is it done with more points and higher degrees?

i understand that you need 2 points for a line, 3 for a quadradic, 4 for a cubic and 5 for a quartic but i was hoping someone could show me how it is done.
  Reply With Quote
Old Feb9-10, 04:59 PM                  #2
Gunthi

Gunthi is Offline:
Posts: 44
Re: Regressions without calculator

The simplest method i know is the Least Squares, there are many others.

I can show you the general form for any number of points and any type of equation, but it takes a little hard work and algebra.

In short therms, you have to find the parameters that minimize the difference LaTeX Code: \\sum [f(x)-q(x)]^2 , where LaTeX Code: q(x) is the function you want to minimize, and LaTeX Code: f(x) are the points you are given.

I'll try to post something more elaborate this week.
  Reply With Quote
Old Feb9-10, 05:42 PM                  #3
EnumaElish
 
EnumaElish's Avatar

EnumaElish is Offline:
Posts: 2,400
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: Regressions without calculator

Let the model be y = a + b x + u. Parameters of the model are a and b, u is the error term.

Variables y, x (and u) are each N-by-1 vectors.

Let X = [1 x] be the N-by-2 matrix. The first column of X is a vector of 1's. The second column of X is identical to vector x.

Let Z be the inverse of X'X. Z is a 2-by-2 matrix.

Then we can write [a b]' = ZX'y, which is 2-by-1. Parameter a is the first (top) element of ZX'y. Parameter b is the second element of ZX'y.

For higher order polynomials, substitute [x x^2 x^3 ...] for x, and [b1 b2 b3 ...] for b.
  Reply With Quote
Old Feb10-10, 01:37 PM                  #4
statdad

statdad is Offline:
Posts: 956
Recognitions:
Homework Helper Homework Helper
Re: Regressions without calculator

Of course, for simple regression, the matrix approach mentioned above is equivalent to the following equations:
The slope is given by

LaTeX Code: <BR>b = \\frac{\\sum{(x-\\bar x)(y - \\bar y)}}{\\sum (x-\\bar x)^2}<BR>

and the y-intercept is given by

LaTeX Code: <BR>a = \\bar y - b \\bar x<BR>
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Regressions without calculator
Thread Thread Starter Forum Replies Last Post
Help with HP 50g calculator? racerv Mechanical Engineering 0 Sep5-09 10:06 AM
Calculator help 1,1,2,3,5,8,13,21 Computing & Technology 4 Dec31-08 07:06 PM
Calculator, Q 17 - what it getting at thomas49th Precalculus Mathematics 4 Apr7-07 07:59 AM
Multivariate Regressions? mathias1979 Set Theory, Logic, Probability, Statistics 13 Feb1-07 11:49 AM
Do you really need a calculator? complexPHILOSOPHY General Math 21 Jan30-07 10:13 PM

Powered by vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. © 2010 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image