Calculation for logarithmic slope

lmayo

New Member
Joined
Oct 15, 2010
Messages
2
I am trying to modify a spreadsheet so that we can plug the slope off of a log regression equation into a formula, however, I cannot figure out how excel is calculating slope. The given formula is y=-0.098ln(x)-0.3401. My max and min data points are (69,0.375758) and (585,0.157576) and the data is a pretty decent fit along that line (R2=.82). Any ideas on how they got from one to the other?

I need to get the slope into the form of ln/sec in order to plug it into my spreadsheet.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
The slope of y=-0.098ln(x)-0.3401 is -0.098

:confused:

EDIT, Sorry, I get it. Hold on a sec ...

EDIT2: =LINEST(y, LN(x))
 
Last edited:
Upvote 0
Yes, but I am wondering how you would actually calculate that using a regular calculator. What is the equation that they are using?
 
Upvote 0
It's a least-squares regression of y onto LN(x). You would solve it via matrix inversion, which would be a PITA on a calculator -- at least on the last calculator I used before I stopped using them.

EDIT: Actually, for a simple linear regression in one variable, it's simpler than that ...

EDIT2: See Help for the Slope function. Substitute LN(x) for x in the equation.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,136
Messages
6,129,080
Members
449,485
Latest member
greggy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top