Matplotlib histogram and estimated PDF in Python

Key focus: Shown with examples: let’s estimate and plot the probability density function of a random variable using Python’s Matplotlib histogram function. This post contains interactive python code which you can execute in the browser itself. Generation of random variables with required probability distribution characteristic is of paramount importance in simulating a communication system. Let’s … Read more

Plot histogram and estimated PDF in Matlab

Key focus: With examples, let’s estimate and plot the probability density function of a random variable using Matlab histogram function. Generation of random variables with required probability distribution characteristic is of paramount importance in simulating a communication system. Let’s see how we can generate a simple random variable, estimate and plot the probability density function … Read more

Random Variables, CDF and PDF

Random Variable: A random variable is a mapping from sample space $latex \Omega\$ to a set of real numbers. What does this mean ? Lets take the usual evergreen example of “flipping a coin”. In a “coin-flipping” experiment, the outcome is not known prior to the experiment, that is we cannot predict it with certainty … Read more