Joint PMF
A stock market trader buys 100 shares of stock A and 200 shares of stock B. Let X and Y be the price changes of A and B respectively over a certain time period and assume that the joint PMF of X and Y is uniform over the set of integers x and y satisfying
-2≤ x ≤4 and -1 ≤ y-x ≤ 1
a. Find the marginal PMF and the means of X and Y
b. Find the mean of the Trader's profit.
A stock market trader buys 100 shares of stock A and 200 shares of stock B. Let X and Y be the price changes of A and B respectively over a certain time period and assume that the joint PMF of X and Y is uniform over the set of integers x and y satisfying
-2≤ x ≤4 and -1 ≤ y-x ≤ 1
a. Find the marginal PMF and the means of X and Y
b. Find the mean of the Trader's profit.
Method Employed
Method Employed
Probability[x+y==n,{x,y}ProductDistribution[DiscreteUniformDistribution[{-2,4}],DiscreteUniformDistribution[{-3,5}]]]
Out[]=
|
Probability[x+y==n,{x,y}ProductDistribution[DiscreteUniformDistribution[{-2,4}],DiscreteUniformDistribution[{-3,5}]]];DiscretePlot[%,{n,-5,9},ExtentSize1/3]
Out[]=
Examples referred to in Wolfram Documentation
Examples referred to in Wolfram Documentation
Two six-sided dice are thrown independently of each other. Find the density of the sum:
Probability[x+y==n,{x,y}ProductDistribution[{DiscreteUniformDistribution[{1,6}],2}]]
Out[]=
|
The waiting times for buying tickets and for buying popcorn at a movie theater are independent and they both follow the exponential distribution. The average waiting time for buying a ticket is 10 minutes and the average waiting time for buying popcorn is 5 minutes. Find the probability that a moviegoer waits for a total of less than 25 minutes before taking his or her seat:
=ProductDistribution[ExponentialDistribution[1/Quantity[10,"Minutes"]],ExponentialDistribution[1/Quantity[5,"Minutes"]]]
Out[]=
QuantityDistributionProductDistributionExponentialDistribution,ExponentialDistribution,
1
10
1
5
NProbability[x+y<Quantity[25,"Minutes"],{x,y}]
Out[]=
0.842568