Ruby commands Flashcards

1
Q

ddist(x, pars)

A

density function

gives the z-score for x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

pdist(u, pars)

A

cumulative distribution/probability function

gives the area under the curve and thus a probability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

qdist(alpha, pars)

A

alpha-quantile

also:
gives the value q such that pdist(q, par) = alpha

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

rdist(size, pars)

A

Gives random samples from the dist with parameter par

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Distributions in Ruby

A

norm
binom
pois
unif

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

mean(x)

A

Calculate the mean of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

var(x)

A

Calculate the variance of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

med(x)

A

Calculate the median of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

sd(x)

A

Calculate the standard deviation of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

quantile(x,a)

A

Calculate the a’th quantile of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

summary(x)

A

Gives several summarizing calculations of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

range(x)

A

Returns the min and max value of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

edcf(x)

A

Returns the empirical/cumulative distribution function of X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly