Login

Welcome, Guest. Please login or register.

November 01, 2025, 10:00:17 am

Author Topic: Linear regression on the CAS  (Read 738 times)  Share 

0 Members and 1 Guest are viewing this topic.

black

  • Victorian
  • Adventurer
  • *
  • Posts: 16
  • Respect: 0
Linear regression on the CAS
« on: November 03, 2011, 09:26:59 pm »
0
quick question

what's the difference between using mx + b, and a + bx

i know that a+ bx is least squares regressions, but i ended up with the wrong equation for a trend line, when using a + bx, when asked for the equation of a least squares line for a set of data

thanks, and good luck to everyone tomorrow :)

extcar

  • Victorian
  • Forum Regular
  • **
  • Posts: 81
  • Respect: 0
Re: Linear regression on the CAS
« Reply #1 on: November 03, 2011, 09:30:33 pm »
0
no difference i think, pretty sure a and m are both the gradient for the equation
did you check if the x axis started at 0?
« Last Edit: November 03, 2011, 09:33:53 pm by extcar »

black

  • Victorian
  • Adventurer
  • *
  • Posts: 16
  • Respect: 0
Re: Linear regression on the CAS
« Reply #2 on: November 03, 2011, 09:45:04 pm »
0
ahhh there we go, my bad

so if it starts at zero, we use mx + b? and a + bx for the others?

extcar

  • Victorian
  • Forum Regular
  • **
  • Posts: 81
  • Respect: 0
Re: Linear regression on the CAS
« Reply #3 on: November 03, 2011, 09:51:36 pm »
0
it doesnt matter which equation you use,
but just know the one before 'x' is the gradient
so in mx+b, the gradient would be m
and in a+bx, the gradient would be b

i think you should just stick to one equation, but yeah they are the same thing, the b in both equations are different though and don't relate to each other