Everyday Statistics for Programmers: Nonlinear Regression
sam-koblenski.blogspot.com
sam-koblenski.blogspot.com
The exponential fit, however, is non-linear.
From Wikipedia (http://en.wikipedia.org/wiki/Polynomial_regression)
> In statistics, polynomial regression is a form of linear regression...
For example lets take regression for an exponential relationship. If you transform your data with log, and then do linear regression you are assuming that your transformed data fits a line with normally distributed errors with 0 mean and constant variance. This means that you are assuming that your original data fits an exponential + normally distributed errors with 0 mean and exponentially increasing variance. This might be a good assumption, but it might not be. It depends on what your data is. If you look at his data [1] you see that the variance is increasing, so that indicates that his method is OK for that data.
What is going to happen with his method is that points far away from 0 are going to weigh far less into your regression than points near 0. It's not the same as doing a non-linear regression, which would assume that your data fits an exponential + normally distributed errors and constant variance. That would give all points equal weight.
[1] http://1.bp.blogspot.com/-jL4JsLT5M6o/VEXCNmFesaI/AAAAAAAAD3...
Think Stats: Probability and Statistics for Programmers http://greenteapress.com/thinkstats
Think Bayes: http://greenteapress.com/thinkbayes
CAREFUL!
Basically: the mean value of the logarithms is not the logarithm of the mean value.
1/n Σ ln xᵢ = 1/n ln (Π xᵢ) = ln ( n√(Π xᵢ) )
ln(p)/ln(1 - p) = α + Σßᵢxᵢ
where p is in the interval [0, 1] and E is .
Note: in logistic regression, the notation is generally p (as in probability of event), not y.