Logarithmic Regression Using Microsoft Excel

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

EGR 120

Introduction to Engineering
File: Logarithmic Regression.xls

Logarithmic Regression using Microsoft Excel


A logarithmic equation has the general form: y = m*ln(x) + b
Logarithmic data will exhibit a straight-line relationship when graphed with the x values
on a log scale and the y values on a linear scale.
Example: Plot y versus x and determine the equation of the logarithmic equation that best fits the data.
y
-2.50
-2.20
-1.50
-1.00
-0.33
0.00
0.45
1.02
1.53
1.99
2.45
3.07

1)
2)
3)
4)
5)

Graph the data using an xy (scatter) plot


Right-click on the data points or line on the graph and select "Add trendline"
Pick "Logarithmic" for the type of trendline.
Under the Options tab add checks to display the equations and R squared
Change the x-axis to a log scale and y-axis to a linear scale (right click on the axis)

Logarithmic Regression: y versus x


y = 1.2426Ln(x) + 0.3429
2
R = 0.9979

4.00
3.00
2.00

Series1
Log. (Series1)

1.00
y

x
0.10
0.15
0.22
0.34
0.50
0.75
1.10
1.70
2.60
3.80
5.80
8.90

0.00
-1.00
-2.00
-3.00
0.10

1.00
x

10.00

You might also like