PMF or probability mass function or probability law or probability discribuion of discrete random variable is a function that for given number give probability of that value.
To denote PMF used notations:
where X is a random variable on space Ω of outcomes which mapped to real number via X(ω).
Expected value of PMF is:
We write a ≤ X ≤ b for ∀ω ∈ Ωa ≤ X(ω) ≤ b.
If X ≥ 0 then E[X] ≥ 0.
if a ≤ X ≤ b then a ≤ E[X] ≤ b.
If Y = g(X) (∀ω ∈ ΩY(ω) = g(X(ω))) then:
Proof TODO:
Variance is a:
Standard deviation is a:
Property:
To prove theorem just multiply total probability theorem by x.
Joint PMF of random variables X1, ..., Xn is:
Properties:
Conditional joint PMF is:
So:
Conditional expectation of joint PMF is:
Proof:
Conditional expectation of joint PMF is random variable E[X|Y] defined as:
Property:
For invertible funtion h:
Proof:
Proof (using total expectation theorem):
Generalisation of Law of Iterated Expectations:
Proof, for each y ∈ Y:
Conditional variance of X on Y is r.v.:
or in another notation:
By applying expected value by Y on both sides:
on another hand:
By adding last two expression:
So:
r.v. X and Y is independent if:
So if two r.v. are independent:
If Z = X + Y and X and Y is independent r.v. then:
Proof:
Let Xi is independent equally distributed r.v. and let Y = ∑i = 1..N Xi, where N is r.v. Then:
Proof:
Variance of sum of a random number independent r.v.:
Proof:
Bernoulli random variable with parameter p is a random variable that have 2 outcomes denoted as 0 and 1 with probabilities:
This random variable models a trial of experiment that result in success or failure.
Indicator of r.v. event A is function:
I_A = 1 iff A occurs, else 0
Discret uniform random variable is a variable with parameters a and b in sample space x : a ≤ x ≤ b x ∈ ℕ with equal probability of each possible outcome:
Note
From Maxima:
sum(i^2,i,0,n), simpsum=true; 2 3 n + 3 n + 2 n --------------- 6 factor(b+3*b^2+2*b^3 - (a-1)-3*(a-1)^2-2*(a-1)^3); 2 2 (b - a + 1) (2 b + 2 a b + b + 2 a - a) factor((2*b^2 + 2*a*b + b + 2*a^2 - a)/6 - (b+a)^2/4), simp=true; (b - a) (2 - a + b) ------------------- 12
Binomialrandomvariable is a r.v. with parameters n (positive integer) and p from interval (0, 1) and sample space of positive integers from inclusive region [0, n]:
Binomial random variable models a number of success of n independent trails of Bernoulli experimants.
Geometric random variable is a r.v. with parameter p from half open interval (0, 1], sample space is all positive numbers:
This random variable models number of tosses of biased coin until first success.
Note
Maxima calculation:
load("simplify_sum"); simplify_sum(sum(k * x^k, k, 0, inf)); Is abs(x) - 1 positive, negative or zero? negative; Is x positive, negative or zero? positive; Is x - 1 positive, negative or zero? negative; x ------------ 2 x - 2 x + 1
Note
Maxima calculation:
load("simplify_sum"); (%i3) assume(x>0); (%o3) [x > 0] (%i4) assume(x<1); (%o4) [x < 1] (%i8) simplify_sum(sum(k^2 * x^k, k, 0, inf)); 2 x + x (%o8) - ------------------- 3 2 x - 3 x + 3 x - 1
So: