Write a Code in Java or Python, for the following scenario(s):
Consider three six-sided dice, and let random variable Y = the value of the face for each. The probability mass of function of Y is given by the following table:
y |
1 |
2 |
3 |
4 |
5 |
6 |
otherwise |
P(Y=y) |
0.35 |
0.30 |
0.25 |
0.05 |
0.03 |
0.02 |
0 |
A)
import numpy as np
import pylab as plt
N = 5 * 10**4
X = np.random.normal(size=N)
counts, bins = np.histogram(X,bins=50, density=True)
bins = bins[:-1] + (bins[1] - bins[0])/2
print(np.trapz(counts, bins))
B)
a = 1
b = 5 * 10**4
mean = (a+b)/2
print(mean)
C)
a = 1
b = 5 * 10**4
std = (b-a)**2/12
print(std)
D)
a = 2
b = 13
probabilty = 1/(b-a)
print(probability)
Write a Code in Java or Python, for the following scenario(s): Consider three six-sided dice, and...
Consider three six-sided dice, and let random variable Y = the value of the face for each. The probability mass of function of Y is given by the following table: y 1 2 3 4 5 6 otherwise P(Y=y) 0.35 0.30 0.25 0.05 0.03 0.02 0 Roll the three dice and let random variable X = sum of the three faces. Repeat this experiment 50000 times. Find the simulated probability mass function (pmf) of random variable X. Find the simulated...
You roll a pair of standard six–sided dice and record the largest of the two outcomes. Let X be random variable associated with the outcome of this experiment. (b) What is the probability mass function (PMF) of X? (c) What is the cumulative distribution function (CDF) of X?
Roll two fair four-sided dice. Let X and Y be the die scores from the 1st die and the 2nd die, respectively, and define a random variable Z = X − Y (a) Find the pmf of Z. (b) Draw the histogram of the pmf of Z. (c) Find P{Z < 0}. (d) Are the events {Z < 0} and {Z is odd} independent? Why?
Part I - Throwing a Dice with Six Faces (32 points) Consider a dice with six faces, i.e. a standard dice. The possible outcomes after throwing the dice once are 1, 2,3, 4,5,6 (a) Assume that the dice is thrown once. Let w represents the outcome. Explain why P(w-i) for i = i..6, when the dice is fair (b) The fair dice is thrown twice. Find the probability of occurance of at least one 6 The fair dice is thrown...
A fair tetrahedron (four-sided die) is rolled twice. Let X be the random variable denoting the total number of dots in the outcomes, and Y be the random variable denoting the maximum in the two outcomes. Thus if the outcome is a (2, 3) then X = 5 while Y = 3. (a) What are the ranges of X and Y ? (b) Find the probability mass function (PMF) of X and present it graphically. Describe the shape of this...
If you add random variables (such as add four dice) the new distribution has a mean and standard deviation of X=X1+X4+X3+X4 The mean and standard deviation for a fair 6-sided die and 10-sided die are: d 3.5 X210 = 5.5 Sa1o 2.031 Problem 1: Let Y be the sum of rolling three 6-sided dice (Bd6) plus two 10-sided dice (2410) Sds - 1.7078 Y = 3d6 + 2d10 la) What is the mean and standard deviation of Y? 1b) Using...
Two four-sided dice, one red and one white, will be rolled. List the possible values for the following random variable. Let Y = difference between the number on the red die and the number on the white die (red-white). a. Draw the probability histogram for this random variable. b. What is the most likely value of Y? c. What is the probability that the difference on the dice is negative? Use proper notation throughout. Write your answer as a decimal.
c-f on this page We were unable to transcribe this imagee) Deseribe the probabuiity histogram (symmetry, shape, center And the mean of this discrete random variable, Х. (Reminden This is asking you to find the mean or a random variable. .not a sample mean.) Show your 二つ、 e) Find the standard deviation of the random variable, X. (Reminder: This is asking you to find the standard deviation of a random variable...not a sample standard deviation.) Keep EXACT fractions throughout the...
please answer all and show working This is the whole question 2. (50 pts) Now, referring to the PMF that you found in Problem 1, you are asked to find mean and variance of the random variable X. (a) Find the mean of X. (25 pts) b) Find the variance of X. 1. (50 pts) There is a 5-digit binary number. Random variable X is defined as the number of O's in the binary number. (a) Draw the probability mass...
2. Two fair six-sided dice are tossed independently. Let M = the maximum of the two tosses (so M (1,5) = 5, M (3,3) = 3, etc). (a) I4 ptsl Find the probability mass function of M. (b) 14 pts] Find the cumulative distribution function of M and graph it. (c) 12 pts] Find the expected value of M (d) 12 pts] Find the variance of M. (e) 12 pts] Find the standard deviation of M.