Let's suppose we have a function $Y=A\cdot t^B$ and the values for $Y$ are $30,60,90,120,150$ and the values for $t$ are respectively $0.974, 1.331, 1.718, 1.971, 2.356$. Can you find $A$ and $B$ with the method of linear regression? I have to do a lab work and this is a very small part of it, which does not count but I still have to do it and I have never done linear regression, I need this now? please?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Are you allowed to use a calculator or software or do you have to do this by hand? In either case, if you have $y=at^b$ then just take the logarithm of both sides and get $$\log(y)=\log(a)+b\log(t)$$ and then use linear regression using this form of the fitting function. So remember you won't put in your data points $y$ and $t$ as you have them above. You have to take their log and use $\log(y)$ and $\log(t)$. Then the slope of the fitted line will be your $b$ because that is the coefficient in front of $\log(t)$ and the y-intercept will be $\log(a)$ so exponentiate it to get $a$ and VOILA!
http://www.zweigmedia.com/RealWorld/calctopic1/regression.html look here it contains both linear regression and exponential regression