A python script to plot a joint probability mass function table
codereview.stackexchange.com › questions › 230999Oct 19, 2019 · Suppose that 3 balls are randomly selected from an urn containing 3 red, 4 white, and 5 blue balls. If we let X and Y denote, respectively, the number of red and white balls chosen, then the joint probability mass function of X and Y, p ( i, j) = P { X = i, Y = j }, is given by This code is to plot such a joint probability mass function table.
Joint probability distribution - Wikipedia
https://en.wikipedia.org/wiki/Joint_probability_distributionSuppose each of two urns contains twice as many red balls as blue balls, and no others, and suppose one ball is randomly selected from each urn, with the two draws independent of each other. Let and be discrete random variables associated with the outcomes of the draw from the first urn and second urn respectively. The probability of drawing a red ball from either of the urns is 2/3, and the probability of drawing a blue ball is 1/3. The joint probability distribution is presen…