How to Perform Logarithmic Regression by Hand?

Click For Summary
To perform logarithmic regression by hand, the model can be expressed as y = b1 + b2ln(x). This can be approached using the least squares method by transforming the variable x into x' = ln(x). By conducting a linear regression of y against x', the coefficients b1 and b2 can be determined. This method allows for the application of linear regression techniques to logarithmic data. Understanding this transformation is key to performing logarithmic regression manually.
Phox
Messages
36
Reaction score
0
I'm trying to write some code to do a regression on data weight (x) and time (y). As best as I can tell, the model should be y = b1 + b2ln(x), but I don't know how you can do this by hand (I know how to in R...). I also know how to do a simple linear regression by hand.

Can it be done using the least squares method?
 
Physics news on Phys.org
Well, this is a linear equation in x'=ln(x). So you could do a linear regression of y vs x'.
 
If there are an infinite number of natural numbers, and an infinite number of fractions in between any two natural numbers, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and an infinite number of fractions in between any two of those fractions, and... then that must mean that there are not only infinite infinities, but an infinite number of those infinities. and an infinite number of those...

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
3
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 64 ·
3
Replies
64
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K