HP Forums
One line PredY ? Statistics 2Var - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: One line PredY ? Statistics 2Var (/thread-16715.html)



One line PredY ? Statistics 2Var - Schraf - 04-21-2021 05:21 PM

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 ?


RE: One line PredY ? Statistics 2Var - roadrunner - 04-21-2021 10:44 PM

If you are not in the spreadsheet app type it like this:

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

-road


RE: One line PredY ? Statistics 2Var - Wes Loewer - 04-22-2021 04:36 AM

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.


RE: One line PredY ? Statistics 2Var - Schraf - 04-22-2021 07:00 AM

I understand my mistake, there were several functions PredY...

Thanks


RE: One line PredY ? Statistics 2Var - jonmoore - 04-22-2021 12:21 PM

(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.