Exp 2
Exp 2
Name:
Roll No:
Date:
Aim: Write a program for the calculation of CDF, PMF, Mean, Mean Square
value, RMS value, Variance and Standard deviation for discrete random variables
and plots of CDF and PMF using Python.
Language: Python
Theory:
CDF = F(xi) = Accumulation of the probabilities of the random variables
from -∞ to xi = P (x ≤ xi)
PMF = P (xi)
Mean = Ʃ xi P (xi)
Mean Square Value = Ʃ (xi)2 P (xi)
RMS value = Positive square root of mean square value
Variance = Mean square value – (mean)2
Standard deviation = Positive square root of variance
Program Code:
Simulation Results:
Conclusion: