0% found this document useful (0 votes)
10 views

Exp 2

Uploaded by

akshatravi12315
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Exp 2

Uploaded by

akshatravi12315
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

ITC Experiment 2

Name:
Roll No:
Date:

Calculation of CDF, PMF, Mean, Mean Square value, RMS


value, Variance and Standard deviation for discrete random
variables-Python program.

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:

You might also like