Solved

Determine slope intercept y=mx+b from 2 arrays

Posted on 2013-01-16
3
472 Views
Last Modified: 2013-01-18
Hi All -

Ironically, I'm quite handy with data, but pretty bad at Math.  I'm in the process of building a revenue forecasting tool and have a good way to forecast calls.  What I want to do now is apply a slope intercept formula to forecasted calls to guess how many orders those calls will yield.  

See the attached spreadsheet for an example of what I'm talking about.  You can ignore the formulas as i just used them to generate some example data.  What I really want to understand is how Excel comes up with the y=mx+b formula that it shows on the graph.  

Please explain the math to me as if I were in 6th grade (like i said... not my strong point).  

Also - please don't offer any suggestions on spreadsheet formulas I could use to apply the slope intercept as the tool isn't Excel based.  I just need to understand the "paper and pencil math" so i can re-produce it in-memory
Slope-for-EE.xlsx
0
Comment
Question by:ducky801
  • 2
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 38785356
0
 
LVL 12

Accepted Solution

by:
PCableGuy earned 500 total points
ID: 38785378
0
 
LVL 84

Expert Comment

by:ozo
ID: 38785406
Minimizing the sum of the squares of the differences between mx+b and y
gives the maximum likelyhood estimator under the assumption that the y values were produced from mx+b  +  independent Gaussian errors.

Taking the derivatives of the sum of the squares of the differences with respect to m and b
and setting them to 0 finds the minimum.
Each constraint is a linear equation on m and b, and solving them simultaneously gives
the standard formula.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Have you ever thought of installing a power system that generates solar electricity to power your house? Some may say yes, while others may tell me no. But have you noticed that people around you are now considering installing such systems in their …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now