An election is being held. There are two candidates, A and B

QUESTION

An election is being held. There are two candidates, A and B, and thereare n voters. The probability of voting for Candidate A varies by city. There arem cities, labeled 1, 2, . . . , m. The jth city has njvoters, so n1+ n2+ · · · + nm= n.Let Xjbe the number of people in the jth city who vote for Candidate A, withXj|pj~ Bin(nj, pj). To re?ect our uncertainty about the probability of voting ineach city, we treat p1, . . . , pmas r.v.s, with prior distribution asserting that they arei.i.d. Unif(0, 1). Assume that X1, . . . , Xmare independent, both unconditionally andconditional on p1, . . . , pm. Let X = X1+ · · · + Xm.(a) Find the marginal distribution of X1and the posterior distribution of p1|X1= k1.(b) Find E(X) and Var(X) in terms of n and s, where s = n12+ n22+…+ nm2

 

ANSWER:

REQUEST HELP FROM A TUTOR

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00