XRandomVariable: Discrete Random Variable Generic Distribution of n trials...

Description Usage Arguments Details Examples

View source: R/XRandomVariable.R

Description

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

Usage

1
XRandomVariable(X, n = 1, p)

Arguments

X

Random Variable Vector

n

Number of Trials

p

Probability Vector ( optional )

Details

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)

Examples

1
XRandomVariable(1:6,n=1)

EduardoJacob/xfunctions documentation built on March 12, 2021, 7:30 a.m.