You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to implement as RPL expressions standard deviation of linear regression results as sLR vector.
Furthermore In the HP50g user guide (hp50g-ug-en.pdf) page 18-52/-53 there are formulas of confidence intervals - cfLR is the vector name here.
Input was merely possible as a direct expression (or more precise multiplication of 2 expressions), because e.g. (ΣSize) is needed in input mode for proper evaluation, but the brackets are removed on saved expression on stack. There seems to be also a clash with ΣX² and (ΣX)².
The workaround was to use local variables for the dubious acting parameters.
The following shown implementation works for cfLR without any bad indications, but sLR gets a wrong output every second time Correlation is evaluated in alternation!
Because of several other reference implementations I can be sure that for given ΣData the result of sLR has to be [ 2.846 1.0392 ], so Slope is 49/5 with std.dev. of 1.0392.
Note: The result of cfLR with [ 6.838 1.8441 ] is not a fully expected result, because it cannot be calculated from the std.dev. values for intercept and slope by a single factor. So either there is still a typing error in my code, or an error in the HP50g user guide. But in effect this function showed me also the side effect of Correlation call on the other function sLR.
The text was updated successfully, but these errors were encountered:
I tried to implement as RPL expressions standard deviation of linear regression results as
sLR
vector.Furthermore In the HP50g user guide (hp50g-ug-en.pdf) page 18-52/-53 there are formulas of confidence intervals -
cfLR
is the vector name here.Input was merely possible as a direct expression (or more precise multiplication of 2 expressions), because e.g.
(ΣSize)
is needed in input mode for proper evaluation, but the brackets are removed on saved expression on stack. There seems to be also a clash with ΣX² and (ΣX)².The workaround was to use local variables for the dubious acting parameters.
The following shown implementation works for
cfLR
without any bad indications, butsLR
gets a wrong output every second timeCorrelation
is evaluated in alternation!Because of several other reference implementations I can be sure that for given
ΣData
the result ofsLR
has to be[ 2.846 1.0392 ]
, so Slope is49/5
with std.dev. of1.0392
.Note: The result of
cfLR
with[ 6.838 1.8441 ]
is not a fully expected result, because it cannot be calculated from the std.dev. values for intercept and slope by a single factor. So either there is still a typing error in my code, or an error in the HP50g user guide. But in effect this function showed me also the side effect ofCorrelation
call on the other functionsLR
.The text was updated successfully, but these errors were encountered: