提供高质量的essay代写,Paper代写,留学作业代写-天才代写

首頁 > > 詳細

代做355H1S調試R、R調試、代做R程序

Final assessment STA355H1S
Instructions:
1. Solutions to problems 1–3 are to be submitted on Quercus (PDF files only) – the
deadline is noon on April 8, 2020.
2. This is an open-book test so you are free to use material from the lectures and other
published sources; in the event that you make use of material that was not covered in
the lectures, you must cite your source or sources. Show all relevant work (including
R code and output, when appropriate) to receive full credit.
3. Obtaining or providing unauthorized assistance (which includes working in groups)
is considered an academic offence as outlined in the University of Toronto’s Code of
Behaviour on Academic Matters.
1. A piece of software contains an unknown number (N) of bugs. To estimate N , the software
is used by m users and each user records the number of bugs observed in their session. Our
data thus consists of x1, · · · , xm, the number of bugs observed by the m users.
Suppose that we can model our data as outcomes of independent Binomial random variables
X1, · · · , Xm with parameters N and θ where both N and θ are unknown parameters:
P (Xi = x;N, θ) =
(
N
x
)
θx(1− θ)N−x for x = 0, · · · , N
Data from m = 54 users is given in a file bugs.txt on Quercus. Use these data to answer
parts (a) and (b).
(a) Use the sample mean and sample variance of x1, · · · , x54 to give method of moments
estimates of θ and N . Give standard error estimates for these two estimates. (In this part,
you may consider N to be a continuous parameter.)
(b) Suppose we put the following prior distribution on N and θ:
pi(N, θ) =
12(1− θ)
pi2N2
for 0 < θ < 1 and N = 1, 2, 3, · · ·
(Note that
∞∑
N=1
∫ 1
0
pi(N, θ) dθ = 1.)
Compute the posterior probability P (N ≥ 10|x1, · · · , x54).
Hint: You may find the following identity useful:∫ 1
0
θa−1(1− θ)b−1 dθ = Γ(a)Γ(b)
Γ(a+ b)
for a, b > 0.
2. Suppose that X1, · · · , Xn are independent positive random variables with common cdf
F (x). The Atkinson index of F is defined by
A(F ) = 1− 1
EF (X)
exp [EF (ln(X))]
(a) Suppose that F is a log-normal distribution, that is, ln(X) ∼ N (µ, σ2). Find an expres-
sion for A(F ). (Hint: This expression will depend only on σ.)
(b) A sample of 200 observations from a distribution F is given in a file incomes.txt on
Quercus. Assuming a log-normal model for these data, give an estimate of A(F ) and an
estimate of its standard error. (There are several approaches to doing this so justify your
method.)
3. Suppose that X1, · · · , X100 are independent Exponential random variables with pdf
f(x;λ) = λ exp(−λx) for x ≥ 0
where λ > 0. However, you do not observe all 100 random variables, only the order statistics
X(20) and X(50).
(a) Suppose you want to estimate µ = Eλ(Xi) = 1/λ using only X(20) and X(50). Consider
estimators of the form
µ? = a1X(20) + a2X(50)
for some constants a1 and a2. Show that µ? is an unbiased estimator of µ if
a1
20∑
k=1
1
100− k + 1 + a2
50∑
k=1
1
100− k + 1 = 1.
(b) Find the values of a1 and a2 that minimize the variance of µ? for a1 and a2 satisfying the
unbiasedness condition in part (a).
Hint: Use the fact that if X1, · · · , Xn are independent Exponential random variables with
pdf f(x;λ) given above then the normalized spacings
Y1 = nX(1), Y2 = (n− 1)(X(2) −X(1)), Y3 = (n− 2)(X(3) −X(2)), · · · , Yn = X(n) −X(n−1)
提供高质量的essay代写,Paper代写,留学作业代写-天才代写 are independent Exponential random variables with pdf f(x : λ).

聯系我們
  • QQ:1067665373
  • 郵箱:1067665373@qq.com
  • 工作時間:8:00-23:00
  • 微信:Badgeniuscs
熱點文章
程序代寫更多圖片

聯系我們 - QQ: 1067665373 微信:Badgeniuscs
? 2021 uk-essays.net
程序代寫網!

在線客服

售前咨詢
售后咨詢
微信號
Essay_Cheery
微信
全优代写 - 北美Essay代写,Report代写,留学生论文代写作业代写 北美顶级代写|加拿大美国论文作业代写服务-最靠谱价格低-CoursePass 论文代写等留学生作业代做服务,北美网课代修领导者AssignmentBack 北美最专业的线上写作专家:网课代修,网课代做,CS代写,程序代写 代码代写,CS编程代写,java代写北美最好的一站式学术代写服务机构 美国essay代写,作业代写,✔美国网课代上-最靠谱最低价 美国代写服务,作业代写,CS编程代写,java代写,python代写,c++/c代写 代写essay,作业代写,金融代写,business代写-留学生代写平台 北美代写,美国作业代写,网课代修,Assignment代写-100%原创 北美作业代写,【essay代写】,作业【assignment代写】,网课代上代考