Javascript Statistics Functions
Projects Lab, University of Utah

print

 

This page shows the results of various javascript functions used in statistical calculations on this site. Keep in mind that, in most instances, approximations were used to speed up calculations and accommodate the limitations of javascript. The accuracies of these algorithms are only meant to be sufficient for teaching purposes. Take the results with a grain of salt and use significant figures conservatively.

Miscellaneous Functions:

 

Erf(x)

x:
f(x):
o
e
r
f
1
-1
-33
x

 

Gamma(x)

x:
f(x):
o
g
a
m
10
0
0.015
x

 

Incomplete Gamma(v;x)

x:
v:
f(x):
o
g
a
m
i
1
0
05
x

 

Beta(x,y)

x:
y:
f(x):
o
b
e
t
a
5
0
0.015
x

 

Incomplete Beta(x,a,b)

x:
a:
b:
f(x):
o
b
e
t
a
1
0
01
x

 

Probability Density Functions:

 

Normal PDF

x:
mean:
stdev:
f(x):
o
p
d
f
0.5
0
-55
x

 

Log-Normal PDF

x:
mean:
stdev:
f(x):
o
p
d
f
1
0
0.018
x

 

Exponential PDF

x:
Gam:
f(x):
o
p
d
f
2
0
05
x

 

Student-t PDF

x:
v:
f(x):
o
p
d
f
0.5
0
-55
x

 

Chi-Square PDF

x:
v:
f(x):
o
p
d
f
0.5
0
0.017
x

 

F PDF

x:
v1:
v2:
f(x):
o
p
d
f
1
0
0.017
x

 

Cumulative Distribution Functions:

 

Normal CDF

x:
mean:
stdev:
f(x):
o
c
d
f
1
0
-55
x

 

Log-Normal CDF

x:
mean:
stdev:
f(x):
o
c
d
f
1
0
08
x

 

Exponential CDF

x:
Gam:
f(x):
o
c
d
f
1
0
05
x

 

Student-t CDF

x:
v:
f(x):
o
c
d
f
1
0
-55
x

 

Chi-Squared CDF

x:
v:
f(x):
o
c
d
f
1
0
07
x

 

F CDF

x:
v1:
v2:
f(x):
o
c
d
f
1
0
0.017
x

 

Anderson-Darling CDF

x:
f(x):
o
c
d
f
1
0
02
x

 

 

bo