HP Forums

Full Version: One line PredY ? Statistics 2Var
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

No problem finding the value of y using the method below:

C1:={750,850} --> x1 and x2
C2:={55,65} --> y1 and y2

Predict y3 knowing x3=813.7 :

PredY(813.7) --> 61.37 (linear regression)

It's also ok when I use the data columns in Statistics 2Var App.

But in the documentation we can read: PredY(mode, x, parameters)

mode = 1 for linear regression (OK ?)
x = 813.7 (OK ?)
parameters ?? I try {{750,850},{55,65}} or the slope and Y-intercept but it does not work.

Do you have an idea ?
If you are not in the spreadsheet app type it like this:

Spreadsheet.PredY(1,X,{slope,intercept})

-road
Just to clarify, there are two different PredY functions.

Statistics_2Var.PredY() which appears to only take 1 X parameter and uses the fit type selected in Symb screen.

Spreadsheet.PredY() which takes the 3 parameters that you were trying to use.
I understand my mistake, there were several functions PredY...

Thanks
(04-22-2021 04:36 AM)Wes Loewer Wrote: [ -> ]Just to clarify, there are two different PredY functions.

Statistics_2Var.PredY() which appears to only take 1 X parameter and uses the fit type selected in Symb screen.

Spreadsheet.PredY() which takes the 3 parameters that you were trying to use.

I think this is one of those areas where the interactive help cards could be improved by including the Statistics and Spreadsheet prepend details. A very simple change but the clarity will be greatly improved.
Reference URL's