Post Reply 
One line PredY ? Statistics 2Var
04-21-2021, 05:21 PM
Post: #1
One line PredY ? Statistics 2Var
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 ?
Find all posts by this user
Quote this message in a reply
04-21-2021, 10:44 PM
Post: #2
RE: One line PredY ? Statistics 2Var
If you are not in the spreadsheet app type it like this:

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

-road
Find all posts by this user
Quote this message in a reply
04-22-2021, 04:36 AM
Post: #3
RE: One line PredY ? Statistics 2Var
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.
Find all posts by this user
Quote this message in a reply
04-22-2021, 07:00 AM
Post: #4
RE: One line PredY ? Statistics 2Var
I understand my mistake, there were several functions PredY...

Thanks
Find all posts by this user
Quote this message in a reply
04-22-2021, 12:21 PM
Post: #5
RE: One line PredY ? Statistics 2Var
(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.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)