Towards a program
The Students t Distribution, n=degrees of freedom, has the expression:
____F(x) = k(n)*
*INTEGRAL (from -00 to x)(1 + x^2/n) ^ -(n+1)/2
The constant k(n) has the values:
___n________________k(n)
___2_____________0.707106721
___4_____________0.375000000
___6_____________0.255155182
___8_____________0.193349510
__10_____________0.155643354
_etc.
where, for n even,
____k(n)= gamma(u)/(b*gamma(v))
____a = gamma(u=(n+1)/2)) =
____ (u-1)*(u-2)*…*(1/2) * sqrt(pi)
____b = sqrt (pi * n)
____c = gamma (v=n/2) = (n/2-1)!
____licas (Luís A. Afonso)
REM "kstudent"
CLS
PRINT " STUDENT DISTRIBUTION "
: PRINT
PRINT " df K "
DEFDBL A-Z
FOR DF = 2 TO 30 STEP 2
PI = 4 * ATN(1)
PII = SQR(DF * PI)
y = INT(DF / 2)
YY = DF / 2 - y
GS = (DF + 1) / 2 - 1
UV = 1
FOR JI = 0 TO DF
TT = GS - JI
IF TT < 1 THEN GOTO 112
UV = UV * TT
NEXT JI
112 GNUM = UV * SQR(PI)
FOR JU = DF / 2 TO 1 STEP -1
GNUM = GNUM / JU
NEXT JU
PRINT USING " ## #.#########";
DF; GNUM / PII
NEXT DF
END
.
Relevant Pages
- Re: [opensuse] Linus loves GPL v2 ---- and is not on a crusade
... might consider that the difference (freedom) is still worth fighting "for". ... Open source doesn't just mean access to the source code. ... The license shall not restrict any party from selling or giving away the ... software as a component of an aggregate software distribution containing ... (SuSE) - Re: Using the Normal Distribution to Grade on a Curve
... As I tell my students, there is no theoretical nor practical reason why ... reward MOST of them with grades they don't deserve. ... The way I accomplish that kind of grade distribution is to set the ... You either set the standards and keep it ... (sci.stat.math) - Re: Using the Normal Distribution to Grade on a Curve
... As I tell my students, there is no theoretical nor practical reason why ... reward MOST of them with grades they don't deserve. ... The way I accomplish that kind of grade distribution is to set the ... You either set the standards and keep it ... (sci.stat.math) - Re: Using the Normal Distribution to Grade on a Curve
... As I tell my students, there is no theoretical nor practical reason why ... reward MOST of them with grades they don't deserve. ... The way I accomplish that kind of grade distribution is to set the ... You either set the standards and keep it ... (sci.stat.math) - Re: Using the Normal Distribution to Grade on a Curve
... As I tell my students, there is no theoretical nor practical reason why ... reward MOST of them with grades they don't deserve. ... The way I accomplish that kind of grade distribution is to set the ... You either set the standards and keep it ... (sci.stat.math) |
|