<< Chapter < Page Chapter >> Page >

Mean and variance of the compound demand

E [ D ] = E [ N ] E [ Y ] and Var [ D ] = E [ N ] Var [ Y ] + Var [ N ] E 2 [ Y ]

DERIVATION

E [ D ] = E n = 0 I { N = n } X n = n = 0 P ( N = n ) E [ X n ]
= E [ Y ] n = 0 n P ( N = n ) = E [ Y ] E [ N ]
E [ D 2 ] = n = 0 P ( N = n ) E [ X n 2 ] = n = 0 P ( N = n ) { Var [ X n ] + E 2 [ X n ] }
= n = 0 P ( N = n ) { n Var [ Y ] + n 2 E 2 [ Y ] } = E [ N ] Var [ Y ] + E [ N 2 ] E 2 [ Y ]

Hence

Var [ D ] = E [ N ] Var [ Y ] + E [ N 2 ] E 2 [ Y ] - E [ N ] 2 E 2 [ Y ] = E [ N ] Var [ Y ] + Var [ N ] E 2 [ Y ]
Got questions? Get instant answers now!

Mean and variance for [link]

E [ N ] = Var [ N ] = 8 . By symmetry E [ Y ] = 1 . Var [ Y ] = 0 . 25 ( 0 + 2 + 4 ) - 1 = 0 . 5 . Hence,

E [ D ] = 8 · 1 = 8 , Var [ D ] = 8 · 0 . 5 + 8 · 1 = 12
Got questions? Get instant answers now!

Calculations for the compound demand

We have m-procedures for performing the calculations necessary to determine the distribution for a composite demand D when the counting random variable N and the individual demands Y k are simple random variables with not too many values. In some cases, such as for a Poisson counting random variable, we are able to approximate by a simple random variable.

The procedure gend

If the Y i are nonnegative, integer valued, then so is D , and there is a generating function. We examine a strategy for computation which is implemented inthe m-procedure gend . Suppose

g N ( s ) = p 0 + p 1 s + p 2 s 2 + + p n s n
g Y ( s ) = π 0 + π 1 s + π 2 s 2 + + π m s m

The coefficients of g N and g Y are the probabilities of the values of N and Y , respectively. We enter these and calculate the coefficients for powers of g Y :

g N = [ p 0 p 1 p n ] 1 × ( n + 1 ) Coefficients of g N y = [ π 0 π 1 π m ] 1 × ( m + 1 ) Coefficients of g Y y 2 = conv ( y , y ) 1 × ( 2 m + 1 ) Coefficients of g Y 2 y 3 = conv ( y , y 2 ) 1 × ( 3 m + 1 ) Coefficients of g Y 3 y n = conv ( y , y ( n - 1 ) ) 1 × ( n m + 1 ) Coefficients of g Y n

We wish to generate a matrix P whose rows contain the joint probabilities. The probabilities in the i th row consist of the coefficients for the appropriate power of g Y multiplied by the probability N has that value. To achieve this, we need a matrix, each of whose n + 1 rows has n m + 1 elements, the length of y n . We begin by “preallocating” zeros to the rows. That is, we set P = zeros ( n + 1 , n * m + 1 ) . We then replace the appropriate elements of the successive rows. The replacement probabilitiesfor the i th row are obtained by the convolution of g Y and the power of g Y for the previous row. When the matrix P is completed, we remove zero rows and columns, corresponding to missing values of N and D (i.e., values with zero probability). To orient the joint probabilities as on the plane, we rotate P ninety degrees counterclockwise. With the joint distribution, we may then calculate any desired quantities.

A compound demand

The number of customers in a major appliance store is equally likely to be 1, 2, or 3. Each customer buys 0, 1, or 2 items with respective probabilities 0.5, 0.4, 0.1.Customers buy independently, regardless of the number of customers. First we determine the matrices representing g N and g Y . The coefficients are the probabilities that eachinteger value is observed. Note that the zero coefficients for any missing powers must be included.

gN = (1/3)*[0 1 1 1];    % Note zero coefficient for missing zero powergY = 0.1*[5 4 1];        % All powers 0 thru 2 have positive coefficientsgend  Do not forget zero coefficients for missing powersEnter the gen fn COEFFICIENTS for gN gN    % Coefficient matrix named gN Enter the gen fn COEFFICIENTS for gY gY    % Coefficient matrix named gYResults are in N, PN, Y, PY, D, PD, P May use jcalc or jcalcf on N, D, PTo view distribution for D, call for gD disp(gD)                  % Optional display of complete distribution         0    0.2917     1.0000    0.3667    2.0000    0.2250     3.0000    0.0880    4.0000    0.0243     5.0000    0.0040    6.0000    0.0003 EN = N*PN'EN =   2 EY = Y*PY'EY =  0.6000 ED = D*PD'ED =  1.2000                % Agrees with theoretical EN*EY P3 = (D>=3)*PD' P3  = 0.1167                [N,D,t,u,PN,PD,PL] = jcalcf(N,D,P);EDn = sum(u.*P)./sum(P); disp([N;EDn]')     1.0000    0.6000        % Agrees with theoretical E[D|N=n] = n*EY     2.0000    1.2000    3.0000    1.8000 VD = (D.^2)*PD' - ED^2VD =  1.1200                % Agrees with theoretical EN*VY + VN*EY^2
Got questions? Get instant answers now!

Questions & Answers

differentiate between demand and supply giving examples
Lambiv Reply
differentiated between demand and supply using examples
Lambiv
what is labour ?
Lambiv
how will I do?
Venny Reply
how is the graph works?I don't fully understand
Rezat Reply
information
Eliyee
devaluation
Eliyee
t
WARKISA
hi guys good evening to all
Lambiv
multiple choice question
Aster Reply
appreciation
Eliyee
explain perfect market
Lindiwe Reply
In economics, a perfect market refers to a theoretical construct where all participants have perfect information, goods are homogenous, there are no barriers to entry or exit, and prices are determined solely by supply and demand. It's an idealized model used for analysis,
Ezea
What is ceteris paribus?
Shukri Reply
other things being equal
AI-Robot
When MP₁ becomes negative, TP start to decline. Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of lab
Kelo
Extuples Suppose that the short-run production function of certain cut-flower firm is given by: Q=4KL-0.6K2 - 0.112 • Where is quantity of cut flower produced, I is labour input and K is fixed capital input (K-5). Determine the average product of labour (APL) and marginal product of labour (MPL)
Kelo
yes,thank you
Shukri
Can I ask you other question?
Shukri
what is monopoly mean?
Habtamu Reply
What is different between quantity demand and demand?
Shukri Reply
Quantity demanded refers to the specific amount of a good or service that consumers are willing and able to purchase at a give price and within a specific time period. Demand, on the other hand, is a broader concept that encompasses the entire relationship between price and quantity demanded
Ezea
ok
Shukri
how do you save a country economic situation when it's falling apart
Lilia Reply
what is the difference between economic growth and development
Fiker Reply
Economic growth as an increase in the production and consumption of goods and services within an economy.but Economic development as a broader concept that encompasses not only economic growth but also social & human well being.
Shukri
production function means
Jabir
What do you think is more important to focus on when considering inequality ?
Abdisa Reply
any question about economics?
Awais Reply
sir...I just want to ask one question... Define the term contract curve? if you are free please help me to find this answer 🙏
Asui
it is a curve that we get after connecting the pareto optimal combinations of two consumers after their mutually beneficial trade offs
Awais
thank you so much 👍 sir
Asui
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities, where neither p
Cornelius
In economics, the contract curve refers to the set of points in an Edgeworth box diagram where both parties involved in a trade cannot be made better off without making one of them worse off. It represents the Pareto efficient allocations of goods between two individuals or entities,
Cornelius
Suppose a consumer consuming two commodities X and Y has The following utility function u=X0.4 Y0.6. If the price of the X and Y are 2 and 3 respectively and income Constraint is birr 50. A,Calculate quantities of x and y which maximize utility. B,Calculate value of Lagrange multiplier. C,Calculate quantities of X and Y consumed with a given price. D,alculate optimum level of output .
Feyisa Reply
Answer
Feyisa
c
Jabir
the market for lemon has 10 potential consumers, each having an individual demand curve p=101-10Qi, where p is price in dollar's per cup and Qi is the number of cups demanded per week by the i th consumer.Find the market demand curve using algebra. Draw an individual demand curve and the market dema
Gsbwnw Reply
suppose the production function is given by ( L, K)=L¼K¾.assuming capital is fixed find APL and MPL. consider the following short run production function:Q=6L²-0.4L³ a) find the value of L that maximizes output b)find the value of L that maximizes marginal product
Abdureman
types of unemployment
Yomi Reply
What is the difference between perfect competition and monopolistic competition?
Mohammed
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?

Ask