Login

Welcome, Guest. Please login or register.

November 01, 2025, 10:16:34 am

Author Topic: Least Squares  (Read 1051 times)  Share 

0 Members and 2 Guests are viewing this topic.

Visionz

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1185
  • Respect: +1
Least Squares
« on: April 24, 2010, 09:35:02 pm »
0
I need help.

Is y=ax+b the same as y=a+bx? In class we used y=ax+b but the textbook like to use the other one "because thats what statisticians do".
Now after looking at it all again I think my answers are wrong. Like I have been putting the A value where the B value should be.
eg. y=a+bx ... push-ups = 1 + 2 x sit-ups but the back of the book using y=a+bx would have something like push-ups = 2 + 1 x sit-ups. Can I just change the order of it after using y=ax+b so i fits y=a+bx, is A always the intercept and B always the slope? Im just really confused.

physics

  • Victorian
  • ATAR Notes Superstar
  • ******
  • Posts: 2397
  • Its anna :D
  • Respect: +65
Re: Least Squares
« Reply #1 on: April 24, 2010, 09:40:14 pm »
0
i think u should stick with what works best..the book is differnet in many ways. subbing the values according to their variables and swapping it because the alphabet values r rearragned willl only confuse u which is what ahs happened... i think i'm wrtiing jibberish..hope it makes sense :)
HELP ME GRADUATE!
If you know anyone pregnant let me know :)

My youtube channel:
http://www.youtube.com/Fairytailslilangel

Blakhitman

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1954
  • Respect: +7
Re: Least Squares
« Reply #2 on: April 24, 2010, 09:44:42 pm »
0
They're both the same, just need to sub in the values correctly. The two just swap where the a and b are

for example, if you find the least squares regression using the y=ax + b template from the menu, then you need to use the a value it gives you for a and the b value for b. similarly, if you use the y=a + bx, the value it gives you must be used for the a and b!

And you'll notice, they just switch the a and b, try it out! find the equation for the same set of data, using both ways.

Visionz

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1185
  • Respect: +1
Re: Least Squares
« Reply #3 on: April 25, 2010, 09:26:27 am »
0
They're both the same, just need to sub in the values correctly. The two just swap where the a and b are

for example, if you find the least squares regression using the y=ax + b template from the menu, then you need to use the a value it gives you for a and the b value for b. similarly, if you use the y=a + bx, the value it gives you must be used for the a and b!

And you'll notice, they just switch the a and b, try it out! find the equation for the same set of data, using both ways.

I think thats what I tried yesterday.

But doesnt y=ax+b give a different answer to y=a+bx? Oh wait. Is B the intercept for the y=a+bx equation? and A is the slope? That would answer errthing.

the.watchman

  • Victorian
  • ATAR Notes Superstar
  • ******
  • Posts: 2526
  • Respect: +10
Re: Least Squares
« Reply #4 on: April 25, 2010, 09:30:57 am »
0
The co-efficient of x is the slope, and the extra constant is the intercept
So for a y=a+bx eqn, b is the slope and a is the intercept :)
Remember, remember the 5th of November

2010 - MM CAS (47) - Cisco 1+2 (pass :P)
2011 - Eng - Phys - Chem - Spesh - Latin - UMAT
ATAR - 99.00+ plz... :)

Feel free to PM me for anything :D

Visionz

  • Victorian
  • Part of the furniture
  • *****
  • Posts: 1185
  • Respect: +1
Re: Least Squares
« Reply #5 on: April 25, 2010, 10:08:08 am »
0
So a is the slope and b is the intercept in the y=ax+b equation?

the.watchman

  • Victorian
  • ATAR Notes Superstar
  • ******
  • Posts: 2526
  • Respect: +10
Re: Least Squares
« Reply #6 on: April 25, 2010, 10:08:43 am »
0
So a is the slope and b is the intercept in the y=ax+b equation?

Correct
Remember, remember the 5th of November

2010 - MM CAS (47) - Cisco 1+2 (pass :P)
2011 - Eng - Phys - Chem - Spesh - Latin - UMAT
ATAR - 99.00+ plz... :)

Feel free to PM me for anything :D

stonecold

  • Victorian
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 5335
  • Respect: +255
  • School Grad Year: 2010
Re: Least Squares
« Reply #7 on: April 25, 2010, 10:59:44 am »
0
they are the same... i would use whichever one the cursor would land on haha!
2011-13: BBiomed (Microbiology & Immunology Major) @ UniMelb


VCE 2009'10: English 46 | English Language 49 | Chemistry 50 | Biology 50 | Further Mathematics 48 | Mathematical Methods CAS 39
ATAR: 99.85

"Failure is not when one falls down but rather when one fails to get up" - unknown