Topic: Matrix Manipulation Problem / Level: intermediate

Problem: Write a program to calculate the expected value of a random variable using its probability matrix.

Run the code to see the output here...