HP PPL and Statistical distributions
|
05-22-2021, 12:50 PM
Post: #17
|
|||
|
|||
RE: HP PPL and Statistical distributions
A nice thing about infinity, you can compress it, shift it, and it is still infinity.
cdf function, Φ(z) = 1/2 * (1+erf(z/√2)). We can substitute x=√2*z, and avoid calls to Φ(z), which internally called erf. XCas moyal.cc Wrote:static gen normal_cdf(const gen & g,GIAC_CONTEXT){ The substitution also simplified exp(-z*z/2) to exp(-x*x) Do the same way for outer integral, letting y = √2*s, and pull out the constants, we have: (d adjusted to offset effect of scaling: 4/√2 ≈ 2.8, 1/√2 ≈ 0.71) Code: #cas // Studentized P_Value, from q,k,v Cas> SRP_qkv(4.511, 8, 12) → 0.100017379208, finished in 0.085 second |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)