The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
PredX returns values outside of data range
04-17-2017, 08:39 AM (This post was last modified: 04-18-2017 03:44 PM by JMB.)
Post: #1
PredX returns values outside of data range
I'm using the App Statistics 2Var to do a quadratic fitting to the following data:

C1: 1, 1.05, 1.1, 1.14, 1.16
C2: 68, 67.2, 62.8, 59.1, 54.7

Once the fitting is done, using PredX and PredY in HOME I get:

PredY(1.1) -> 63.3070360465 OK
PredX(63.3070360465) -> 0.9 ??? I expected 1.1

After some investigation I realized that the fitting parabola is symmetrical with respect a vertical axis at x=1, so PredY(0.9)=PredY(1.1)=63.3070360465, and mathematically both PredX(63.3070360465)=0.9 and PredX(63.3070360465)=1.1 are correct solutions.

Perhaps in cases like this, when PredX has more than one solution, the calculator should favor a value that is inside the data range (1.1 in this case), instead of returning the first solution found (0.9 in this case).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PredX returns values outside of data range - JMB - 04-17-2017 08:39 AM



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