Question

Let n be the unknown number of customers that visit a store on the day of...

Let n be the unknown number of customers that visit a store on the day of a sale. The number of customers that make a purchase is Y | n ~ Binomial(n, theta) where theta is the known probability of making a purchase given the customer visited the store. The prior is n ~ Poisson(5). Assuming theta is known and n is the known parameter, plot the posterior distribution of n for all combinations of Y=0,5,10 and theta=0.2,0.5 and comment on the effect of Y and theta on the posterior.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

hl 2 ) 2 od (5つ) n-2 セフ): beremes sum b exponent 4-1 hnt NIY ~ Poisson (5-50丿 Poisson (4 ) for Y:0, wen 冫0.2

above is the required theory for this problem.

following is the required code in R to plot the posterior densities with varying theta and y:

for(theta in c(0.2,0.5)) 14 15 16 17 18 19 20 21 for(k in c(0,5,10)) x<-k:50 y<-exp(- (5-5*theta)) C(5-5*theta)A(x-k))/factorial(x-k) plot (x , y , xl í m=c(0,50).ylim=c(0,1),x1ab-k , main-theta,ylab=posterior density)following are the plots when

theta=0.2(x labels are the y values, header in the theta value)

0.2 0 0 10 20 30 40 50 0

0.2 0 10 20 30 40 50 5

0.2 0 10 20 30 40 50 10

from these above plots(when theta=0.2) with increasing y values the posterior distribution shifts to the right.

when theta=0.5(x labels are the y values, header in the theta value)

posterior density 0.0 04 08 8 8posterior density 0.0 04 08

0.5 0 10 20 30 40 50 10here also with increasing y the posterior distribution shifts to the right.

it is to be noted that as theta increases mode also increases for the posterior density.

Add a comment
Know the answer?
Add Answer to:
Let n be the unknown number of customers that visit a store on the day of...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The number of customers entering a store on a given day is Poisson distributed with mean...

    The number of customers entering a store on a given day is Poisson distributed with mean 150 . The amount spent in the store by a customer is exponential with mean 200. The amount spent is independent from number of customers . Estimate the probability that the store takes in at least $20,000. Leave the answer in terms of the distribution of he standard normal random variable.

  • 5. The number of customers entering a store on a given day is a random variable...

    5. The number of customers entering a store on a given day is a random variable N with mean a > 0 and variance b > 0. The amount of money spent by customer i is a random variable Xi with mean c0 and variance d2 〉 0. The m ean c and variance d2 are the same for all customers. The variables X2, are independent across the customers and are also independent of N. Find the correlation of N...

  • 5 Boutique Store Consider a boutique store in a busy shopping mall. Every hour, a large number of...

    Please answer all parts a-c. Thanks. 5 Boutique Store Consider a boutique store in a busy shopping mall. Every hour, a large number of people visit the mall, and each independently enters the boutique store with some small probability. The store owner decides to model X, the number of customers that enter her store during a particular hour, as a Poisson random variable with mean 2. Suppose that whenever a customer enters the boutique store, they leave the shop without...

  • Bayesian updating Suppose that we have the model y|μ ~ N(μ, τ-1) where τ > 0 is known and μ is an unknown parameter...

    Bayesian updating Suppose that we have the model y|μ ~ N(μ, τ-1) where τ > 0 is known and μ is an unknown parameter (iii) Suppose that we have a prior μ ~ N(a, b-1) where b > 0, Show that the prior distribution π(A) verifies r(11) x exp (iv) Show that the posterior π(μ|y) verifies (v) which distribution is π(μ|y)? Bayesian updating Suppose that we have the model y|μ ~ N(μ, τ-1) where τ > 0 is known and...

  • Customers enter a store according to a Poisson process of rate λ = 5 per hour....

    Customers enter a store according to a Poisson process of rate λ = 5 per hour. Independently, each customer buys something with probability p = 0.8 and leaves without making a purchase with probability q = 1 − p = 0.2. Each customer buying something will spend an amount of money uniformly distributed between $1 and $101 (independently of the purchases of the other customers). What are the mean and the standard deviation of the total amount of money spent...

  • A store offers a new seasonal featured product. Let N be the random variable which designates...

    A store offers a new seasonal featured product. Let N be the random variable which designates the number of customers who come to the store during the season, where N ∼ Poi (30). It is estimated that the probability that a customer will buy this new product is 0,7 and this independently of one customer to another. a) It is assumed here that the store has an unlimited stock of this product. Let X and Y be the random variables...

  • (5.) You run a store that sells Christmas trees for Sd each. Suppose the number of...

    (5.) You run a store that sells Christmas trees for Sd each. Suppose the number of customers that enter your store on a given day is described by a Poisson random variable with parameter λ. Further, suppose that each customer buys a tree with probability p, and that all customers are independent. (a) What is the expected number of customers that enter your store on a given day? (b) What is your expected revenue for a single day (revenue is...

  • 5.90 During any particular day, the number of customers that arrive at Grandma's Fudge Shoppe has...

    5.90 During any particular day, the number of customers that arrive at Grandma's Fudge Shoppe has a P(2) distribution. Some customers simply watch the fudge makers work and leave without making a purchase. Suppose that an arriving customer makes a purchase with probability p, independent of other arriving customers. Determine and identify the probability distribution of the number of purchasing customers in a day.

  • 1. The number of customers waiting for gift-wrap service at a department store is an RV...

    1. The number of customers waiting for gift-wrap service at a department store is an RV X with possible values 0, 1, 2, 3, 4 and corresponding probabilities .1, .2, .3, .25, .15. A randomly selected customer will have 1, 2, or 3 packages for wrapping with probabilities .6, .3, and .1, respectively. Let Y be the total number of packages to be wrapped for the customers waiting in line (assume that the number of packages submitted by one customer...

  • A store selling newspapers orders only n = 5 copies of a certain newspaper every day...

    A store selling newspapers orders only n = 5 copies of a certain newspaper every day because of lack of demand. If the number of requests per day (each request is to purchase a copy of the newspaper) follows a Poisson distribution with mean 4.0.   a) what is the probability that there are at least three requests to purchase the newspaper in a day? b) what is the expected value of the number sold in a day? Note: The answer...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT