For random variables X and Y in Example 4.27, use Matlab to calculate E[X], E[Y], the correlation E[XY], and the covariance Cov[X, Y].
Example 4.27
At 24 bits (3 bytes) per pixel, a 10:1 image compression factor yields image files with B = 0.3XY bytes. Find the expected value E[B] and the PMF PB(b)..