Question: I need help solving the question below. The question is to be solved in either C++ or Python. However, I want to understand the math
I need help solving the question below. The question is to be solved in either C++ or Python. However, I want to understand the math behind the Bernoulli Sequence and the code So please provide an explanation to the answer both in Math and in Code. 
For problems (1-2), provide the complete programming codes you use as an Appendix to the submitted solutions. Solutions of Problem (3) may be presented as an Excel Sheet. Problem (1): (20 points) Generate two different random Bernoulli sequences X and Y representing independent coin throws. Sequence X is for a fair coin and Y is for an unfair coin ( 2/3 heads and 1/3 tails). Each sequence will be of length N=10000. - Compute the PMF's P(X) and P(Y) for the two sequences and plot them as bar charts. - Compute the entropies H(X) and H(Y) of the two sequences and compare your results with the theoretical entropies expected from random Bernoulli variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
