程序代写案例-MATH5905

欢迎使用51辅导,51作业君孵化低价透明的学长辅导平台,服务保持优质,平均费用压低50%以上! 51fudao.top
MATH5905 Term One 2021 Assignment One Statistical Inference
University of New South Wales
School of Mathematics and Statistics
MATH5905 Statistical Inference
Term One 2021
Assignment One
Given: Friday 26 February 2021 Due date: Friday 12 March 2021
Instructions: This assignment is to be completed collaboratively by a group of at most
3 students. The same mark will be awarded to each student within the group, unless I have
good reasons to believe that a group member did not contribute appropriately. This assignment
must be submitted no later than 11:59 pm on Friday, 12 March 2021. The first page of the sub-
mitted PDF should be this page. Only one of the group members should submit the PDF file
on Moodle, with the names of the other students in the group clearly indicated in the document.
I/We declare that this assessment item is my/our own work, except where acknowledged, and
has not been submitted for academic credit elsewhere. I/We acknowledge that the assessor of
this item may, for the purpose of assessing this item reproduce this assessment item and provide
a copy to another member of the University; and/or communicate a copy of this assessment
item to a plagiarism checking service (which may then retain a copy of the assessment item on
its database for the purpose of future plagiarism checking). I/We certify that I/We have read
and understood the University Rules in respect of Student Academic Misconduct.
Name Student No. Signature Date
1
MATH5905 Term One 2021 Assignment One Statistical Inference
Problem One
During the cold winter months, the principle of the Winterville School District must decide
whether to call off the next day’s school due to the snow conditions. If the principle fails to call
off school and there is snow, there are serious concerns for children and teachers not showing
up for school and high rates of accidents. However, if the principle does call off school and then
it does snow, the students undertake online classes and nothing is lost. On the other hand, if
the principle does call of school and it does not snow, the students must make-up the lost day
later in the year since it’s fine to go outside and students are unlikely to be able to focus in
the online class.
The principle decides that the costs of failing to close the school when there is snow is twice
the costs of closing the school when there is no snow. Therefore, the principle assigns two units
of loss to the first outcome and one to the second. If the principle closes the school when there
is snow or keeps it open when there is no snow, then no loss is incurred.
There are two local experts that provide the principle with independent and identically dis-
tributed weather forecasts. If there is snow, each expert will independently forecast snow with
probability 3/4 and no snow with probability 1/4. However, if there is to be no snow then each
expert independently predicts snow with probability 1/2. The principle will listen to both
forecasts and then make his decisions based on the data X which is the number of experts
forecasting snow.
a) There are two possible actions in the action space A = {a0, a1} where action a0 is to
keep the school open and action a1 is to close the school. There are two states of nature
Θ = {θ0, θ1} where θ0 = 0 represents “no snow” and θ1 = 1 represents “snow”. Define
the appropriate loss function L(θ, a) for this problem.
b) Compute the probability mass function (pmf) for X under both states of nature.
c) The complete list of all the non-randomized decisions rules D based on x is given by:
d1 d2 d3 d4 d5 d6 d7 d8
x = 0 a0 a1 a0 a1 a0 a1 a0 a1
x = 1 a0 a0 a1 a1 a0 a0 a1 a1
x = 2 a0 a0 a0 a0 a1 a1 a1 a1
For the set of non-randomized decision rules D compute the corresponding risk points.
d) Find the minimax rule(s) among the non-randomized rules in D.
e) Sketch the risk set of all randomized rules D generated by the set of rules in D. . You
might want to use R (or your favorite programming language) to make this sketch more
precise.
f) Suppose there are two decisions rules d and d′. The decision d strictly dominates d′ if
R(θ, d) ≤ R(θ, d′) for all values of θ and R(θ, d) < (θ, d′) for at least one value θ. Hence,
given a choice between d and d′ we would always prefer to use d. Any decision rules
which is strictly dominated by another decisions rule (as d′ is in the above) is said to be
2
MATH5905 Term One 2021 Assignment One Statistical Inference
inadmissible. Correspondingly, if a decision rule d is not strictly dominated by any other
decision rule then it is admissible. Show on the risk plot the set of randomized decisions
rules that correspond to the principle’s admissible decision rules.
g) Find the risk point of the minimax rule in set of randomized decision rules D and deter-
mine its minimax risk. Compare the minmax risk from the minimax decision rule in D
and D.
h) Define the minimax rule in the set D in terms of rules in D.
i) For which prior on {θ1, θ2} is the minimax rule in the set D also a Bayes rule?
j) Prior to listening to the forecasts, the principle believes there will be snow with probability
1/2. Find the Bayes rule and the Bayes risk with respect to this prior.
k) For a small positive = 0.1, illustrate on the risk set the risk points of all rules which
are -minimax. Write down all the vertices that define the region.
Problem Two
Suppose that X is a binomial random variable with parameters n and θ where the number of
trials n is assumed to be known. Calculate the Bayes rule (based on a single observation of X)
for estimating θ when the prior distribution is the uniform distribution on [0, 1] and the loss
function is given by
L(θ, d) =
1
θ(1− θ)(θ − d)
2.
Show that the rule you obtained is minimax.
Hint: The Beta function is given by
B(x, y) =
∫ 1
0
tx−1(1− t)y−1dt
and the following relation holds:
B(x+ 1, y)
B(x, y)
=
x
x+ y
.
Problem Three
Suppose X = (X1, . . . , Xn) are i.i.d. Exponential(θ) with density
f(x|θ) = θe−θx, x > 0, θ > 0
and let θ have a Gamma(α, β) prior distribution with density
τ(θ) =
1
Γ(α)βα
θα−1e−θ/β , α, β > 0, θ > 0.
a) Find the posterior distribution for h(θ|X). Use the notation s = ∑ni=1Xi.
3
MATH5905 Term One 2021 Assignment One Statistical Inference
b) Hence or otherwise determine the Bayes estimator of θ with respect to the quadratic loss
function L(a, θ) = (a− θ)2.
c) Suppose the following ten observations were observed:
0.12, 0.28, 0.43, 0.34, 0.47, 0.67, 0.82, 0.12, 0.30, 0.45
Two actions a0 (accept H0) and a1 (reject H0) are possible and the losses when using
these actions are given by:
L(θ, a0) =
{
0 if θ ∈ Θ0
2 if θ ∈ Θ1
and L(θ, a1) =
{
1 if θ ∈ Θ0
0 if θ ∈ Θ1
Using the loss function above and the parameters α = 2 and β = 1 for the prior, what
is your decision when testing H0 : θ ≤ 2.5 versus H1 : θ > 2.5. You may use the pgamma
function in R or another numerical integration routine from your favorite programming
package to answer this question.
Problem Four
Determine the form of the Bayes decision rule in an estimation problem with a one-dimensional
parameter θ ∈ R1 and loss function
L
(
θ, d
)
=
{
α
(
θ − d) if d ≤ θ,
β
(
d− θ) if d > θ,
where α and β are known positive constants.
4

欢迎咨询51作业君
51作业君

Email:51zuoyejun

@gmail.com

添加客服微信: abby12468