Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

Q1. Exponential family expectations: Let p(y|Φ) = c(Φ)h(y) exp{Φt(y)} be an exponential family model.

a) Take derivatives with respect to Φ of both sides of the equation ∫p(y|Φ) dy = 1 to show that E[t(Y)|Φ] = -c'(Φ)/c(Φ).

b) Let p(Φ) ∝ c(Φ)n_0en_0t_0Φ be the prior distribution for Φ. Calculate dp(Φ)/dΦ and, using the fundamental theorem of calculus, discuss what must be true so that E[-c(Φ)/c(Φ)] = t0.

Q2. Posterior prediction: Consider a pilot study in which n1 = 15 children enrolled in special education classes were randomly selected and tested for a certain type of learning disability. In the pilot study, y1 = 2 children tested positive for the disability.

a) Using a uniform prior distribution, find the posterior distribution of θ, the fraction of students in special education classes who have the disability. Find the posterior mean, mode and standard deviation of θ, and plot the posterior density.

Researchers would like to recruit students with the disability to participate in a long-term study, but first they need to make sure they can recruit enough students. Let n2 = 278 be the number of children in special education classes in this particular school district, and let Y2 be the number of students with the disability.

b) Find Pr(Y2 = y2|Y1 = 2), the posterior predictive distribution of Y2, as follows:

i. Discuss what assumptions are needed about the joint distribution of (Y1, Y2) such that the following is true:

Pr(Y2 = y2|Y1 = 2) = 01 Pr(Y2 = y2|θ)p(θ|Y1 = 2)dθ.

ii. Now plug in the forms for Pr(Y2 = y2|θ) and p(θ|Y1 = 2) in the above integral.

iii. Figure out what the above integral must be by using the calculus result discussed in Section 3.1.

c) Plot the function Pr(Y2 = y2|Y1 = 2) as a function of y2. Obtain the mean and standard deviation of Y2, given Y1 = 2.

d) The posterior mode and the MLE of θ, based on data from the pilot study, are both θ^ = 2/15. Plot the distribution Pr(Y2 = y2|θ = θ^), and find the mean and standard deviation of Y2 given θ = θ^. Compare these results to the plots and calculations in c) and discuss any differences. Which distribution for Y2 would you use to make predictions, and why?

Q3. Tumor counts: A cancer laboratory is estimating the rate of tumorigenesis in two strains of mice, A and B. They have tumor count data for 10 mice in strain A and 13 mice in strain B. Type A mice have been well studied, and information from other laboratories suggests that type A mice have tumor counts that are approximately Poisson-distributed with a mean of 12. Tumor count rates for type B mice are unknown, but type B mice are related to type A mice. The observed tumor counts for the two populations are

yA = (12, 9, 12, 14, 13, 13, 15, 8, 15, 6);

yB = (11, 11, 10, 9, 9, 8, 7, 10, 6, 8, 8, 9, 7).

a) Find the posterior distributions, means, variances and 95% quantile-based confidence intervals for θA and θB, assuming a Poisson sampling distribution for each group and the following prior distribution:

θA ∼ gamma(120,10), θB ∼ gamma(12,1), p(θA, θB) = p(θA) x p(θB).

b) Compute and plot the posterior expectation of θB under the prior distribution θB ∼ gamma(12 x n0, n0) for each value of n0 ∈ {1, 2, ... , 50} . Describe what sort of prior beliefs about θB would be necessary in order for the posterior expectation of θB to be close to that of θA.

c) Should knowledge about population A tell us anything about population B? Discuss whether or not it makes sense to have p(θA, θB) = P(θA) x P(θB).

Attachment:- Assignment.rar

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M91960584

Have any Question?


Related Questions in Engineering Mathematics

Assignment - introduction to math programmingdirections

Assignment - Introduction to Math Programming Directions - Formulate a linear programming model for the following description. Include definitions of decision variables, Objective function, and constraints. Augment your ...

All these questions should be answered in matlab 1 generate

All these questions should be answered in MATLAB !!! 1. Generate a set of 3 random patterns of dimension 12 where each value is +1 or -1.(3 random 12*12 matrix) 2. Create a 12-unit Hopfield network (a 12x12 matrix) from ...

Question suppose g is an undirected connected weighted

Question : Suppose G is an undirected, connected, weighted graph such that the edges in G have distinct edge weights. Show that the minimum spanning tree for G is unique.

Math assignment -q1 let fx -x3-cosx and p0 1 use newtons

Math Assignment - Q1. Let f(x) = -x 3 -cos(x), and p 0 = 1. Use Newton's method to find p 2 . Could p0=0 be used? Q2. Perform two iterations by Newton's method and the secant method to each of the following: a. e x + 2 - ...

Question 1 - many spas many componentsconsider 4 types of

Question 1 - Many spas, many components Consider 4 types of spa tub: Aqua-Spa (or FirstSpa, or P1), Hydro-Lux (or SecondSpa, or P2), ThirdSpa (or P3) and FourthSpa (or P4), with the production of products P1, ..., P4 in ...

Question suppose that g is a directed graph in class we

Question : Suppose that G is a directed graph. In class we discussed an algorithm that will determine whether a given vertex can reach every other vertex in the graph (this is the 1-to-many reachability problem). Conside ...

1 this problem concerns of the proof of the np-completeness

(1) This problem concerns of the proof of the NP-completeness of 300L a) Convert the formula F into a 300L graph b) Find a solution for the 300L instance of F and verify that it is a solution for F F = (Z 1 V Z 2 ) ^ (z ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet Problem 1: Cash Planning A startup investment project needs money to cover its cash flow needs. At the en ...

Clculus assignment -q1 find the total differential of w

CALCULUS ASSIGNMENT - Q1. Find the total differential of w = x 3 yz + xy + z + 3 at (x, y, z) = (1, 2, 3). Q2. Find the value of the double integral ∫∫ R (6x + 2y 2 )dA where R = {(x, y)| - 2 ≤ y ≤ 1, y 2 ≤ x ≤ 2 - y. Q3 ...

Numerical analysis assignment -q1 define the following

Numerical Analysis Assignment - Q1. Define the following terms: (i) Truncation error (ii) Round-off error Q2. Show that if f(x) = logx, then the condition number, c(x) = |1/logx|. Hence show that log x is ill-conditioned ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As