How to Perform Logarithmic Regression by Hand?

Click For Summary
SUMMARY

The discussion focuses on performing logarithmic regression by hand, specifically using the model y = b1 + b2ln(x). The participant is familiar with executing this regression in R but seeks a manual method. It is confirmed that this can be accomplished using the least squares method by transforming the variable x to x' = ln(x) and then conducting a linear regression of y against x'.

PREREQUISITES
  • Understanding of logarithmic functions and their properties
  • Familiarity with linear regression concepts
  • Knowledge of the least squares method
  • Basic skills in statistical analysis
NEXT STEPS
  • Practice performing linear regression using transformed variables
  • Study the least squares method in depth
  • Explore statistical software options for regression analysis, such as R
  • Learn about the implications of using logarithmic transformations in regression models
USEFUL FOR

Statisticians, data analysts, students in statistics courses, and anyone interested in understanding regression techniques and their manual calculations.

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'.
 

Similar threads

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