Difference between revisions of "RegressionFitProb"
(category) |
m |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:Statistical Functions]] | + | [[Category: Statistical Functions]] |
− | [[Category:Analytic Distribution Functions]] | + | [[Category: Analytic Distribution Functions]] |
− | [[Category:Doc Status D]] | + | [[Category: Multivariate Distributions library functions]] |
+ | [[Category: Doc Status D]] | ||
− | = | + | == RegressionFitProb(Y, B,I, K'', C'') == |
− | Once you've obtained regression coefficients | + | Once you've obtained regression coefficients «C» (indexed by «K») by calling the [[Regression]] function, this function returns the probability that a fit this poor would occur by chance, given the assumption that the data was generated by a process of the form: |
− | + | :<code>Y = Sum( C*B, K) + Normal(0, S)</code> | |
If this result is very close to zero, it probably indicates that the assumption of linearity is bad. If it is very close to one, then it validates the assumption of linearity. | If this result is very close to zero, it probably indicates that the assumption of linearity is bad. If it is very close to one, then it validates the assumption of linearity. | ||
− | = Library = | + | == Library == |
− | + | Multivariate Distributions library functions ([[media:Multivariate Distributions.ana |Multivariate Distributions.ana]]) | |
− | Multivariate Distributions.ana | + | :Use [[File menu|File]] → '''Add Library...''' to add this library |
This is not a distribution function - it does not return a sample when evaluated in [[Evaluation Modes|Sample mode]]. However, it does complement the multivariate [[RegressionDist]] function also included in this library. | This is not a distribution function - it does not return a sample when evaluated in [[Evaluation Modes|Sample mode]]. However, it does complement the multivariate [[RegressionDist]] function also included in this library. | ||
− | = Example = | + | == Example == |
− | To use, first call the Regression function | + | To use, first call the Regression function to obtain the linear coefficients. You also need to estimate the measurement noise using the [[RegressionNoise]] function, unless you know it a priori: |
− | + | :<code>Var E_C := Regression(Y, B, I, K);</code> | |
− | + | :<code>Var S := RegressionNoise(Y, B, I, K, C);</code> | |
− | + | :<code>Var PrThisPoor := RegressionFitProb(Y, B, I, K, E_C, S)</code> | |
− | = See Also = | + | == See Also == |
* [[RegressionDist]] | * [[RegressionDist]] | ||
* [[RegressionNoise]] | * [[RegressionNoise]] | ||
* [[Regression]] | * [[Regression]] | ||
+ | * [[Multivariate distributions]] |
Latest revision as of 04:15, 2 May 2017
RegressionFitProb(Y, B,I, K, C)
Once you've obtained regression coefficients «C» (indexed by «K») by calling the Regression function, this function returns the probability that a fit this poor would occur by chance, given the assumption that the data was generated by a process of the form:
Y = Sum( C*B, K) + Normal(0, S)
If this result is very close to zero, it probably indicates that the assumption of linearity is bad. If it is very close to one, then it validates the assumption of linearity.
Library
Multivariate Distributions library functions (Multivariate Distributions.ana)
- Use File → Add Library... to add this library
This is not a distribution function - it does not return a sample when evaluated in Sample mode. However, it does complement the multivariate RegressionDist function also included in this library.
Example
To use, first call the Regression function to obtain the linear coefficients. You also need to estimate the measurement noise using the RegressionNoise function, unless you know it a priori:
Var E_C := Regression(Y, B, I, K);
Var S := RegressionNoise(Y, B, I, K, C);
Var PrThisPoor := RegressionFitProb(Y, B, I, K, E_C, S)
Enable comment auto-refresher