Using Linear Regression Equations

Hi, I am new to Numbers and having some difficulty.

I made a calibration curve using a line graph and got the linear equation from it. I now need to solve for an "x" value from the "y=mx+b" equation.

First I tried using the "FORECAST" function, but it keeps telling me "Cannot divide by zero." I don't have values of just "0", however most of my values are "0.906" etc. Can Numbers not recognize the difference between 0 and 0.9?

Either way, I have the equation from the chart "y=0.0161x+0.8879". I am trying to rearrange the equation to solve for x, so it would be "x=(y-b)/m". In this, I would plug in my known y value, and then the b and m values from the equation of the line.

Can someone tell me how to do this in Numbers? Thanks so much.

2009 macbook pro, Mac OS X (10.6.2)

Posted on Jan 27, 2010 12:05 PM

Reply
12 replies

Jan 27, 2010 12:23 PM in response to KOENIG Yvan

Well, in Excel I was able to put into a cell an equation. For example, I could enter "=(y-b)/m" with values plugged into the variables and calculation would appear. So in this case, I'm trying to enter "=(0.615-0.12)/0.086" and then it tells me "Cannot divide by zero." Even using the "FORECAST" function, which allows you to plug numbers into the equation to forecast the slope of a linear equation, does not allow me to 0.9 in as a value. Can Numbers not recognize the difference?

Jan 27, 2010 12:27 PM in response to littlemissbis

bis,

I'll start you off with our standard advice to new Numbers users: Download the Numbers User Guide and the Formulas and Functions User Guide from the Help Menu and read them. They are written at a pretty basic level and will get you off on the right foot.

Here's my take on your problem...

User uploaded file

In the cell below the "X", enter: =IF(ISBLANK(B), "", (B-C)/D).

Enter your Y value, and X will be calculated according to the expression you asked about.

Regards,

Jerry

Jan 27, 2010 1:31 PM in response to littlemissbis

biss,

Thanks for the feedback.

Select View > Show Inspector and Click on the tab that has the number 42 in a box.

User uploaded file

With your result cell selected, you can now adjust the number of decimals displayed. This will not round the result, just the display of the result. If you are going to use the result in another formula and actually want to round the calculated number, then another formula will be required. Just ask.

Jerry

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using Linear Regression Equations

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.