Description Usage Arguments Details Examples
View source: R/XRandomVariable.R
PMF (Probability Mass Function) uses discrete random variables. PDF (Probability Density Function) uses continuous random variables. Based on studies, PDF is the derivative of CDF, which is the cumulative distribution function. CDF is used to determine the probability wherein a continuous random variable would occur within any measurable subset of a certain range
1 | XRandomVariable(X, n = 1, p)
|
X |
Random Variable Vector |
n |
Number of Trials |
p |
Probability Vector ( optional ) |
Sums and Differences of Random Variables: Effect on the Mean E(X + Y) = E(X) + E(Y)
E(X - Y) = E(X) - E(Y) Sums and Differences of Independent Random Variables: Effect on Variance Var(X + Y) = Var(X - Y) = Var(X) + Var(Y)
1 | XRandomVariable(1:6,n=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.