Solved

Determine slope intercept y=mx+b from 2 arrays

Posted on 2013-01-16
3
471 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
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 use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

706 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

20 Experts available now in Live!

Get 1:1 Help Now