SlideShare a Scribd company logo
1 of 2
Download to read offline
Could you please do it in R program? 1. Assume that we draw n data values independently from
an exponential distribution with rate parameter , ie. (1, n ~ Exp(A). The exponential distribution
is a positive and right skewed distribution function (see the Wikipedia entry here and the R help
output here) and the probability distribution function is given by It is well known that the mean
of the exponential distribution is EX- and the variance is Var(X] 2 . The median of the
exponential distribution is given by log(2) Now a statistician is considering using two statistics to
estimate the mean of the distribution . The two statistics are: . The sample mean T1 = X = M 72
. The sample median divided by log(2), i.e. T2-X/log(2) The statistician knows that because Xi,...
,Xn are independent and identically dis- nVar(X tributed (iid.), Var(T) = (a) Using the central
limit theorem, what is the asymptotic distribution of V n(-1)? (b) Using the lecture notes, what is
the asymptotic distribution of Vn(X - lo2)? (c) Using the property that Var(cT-cyar(T) for any
statistic T and scalar c, along with the answer in part a, derive the formula for the asymptotic
variance Var(T2) (d) If we were to compare the two statistics, what is the asymptotic relative
efficiency ar(T (e) Based upon part c, which statistic is the most efficient statistic to estimate 1?
Broadly speaking, discuss the advantages and disadvantages of both statistics? (f) Generate 1000
Exp(1) random variables using
Solution
X1,X2,…..,Xn is a random sample from Exp() distribution.
E(Xi)=1/ for i=1(1)n
V(Xi)=1/2 for i=1(1)n
(a)
Given T1= Xbar = (X1+X2+…..+Xn)/n
Then E(T1 ) =1/ and V(T1) = 1/n2
Using Lindeberg Levy Central limit theorem (clt) we get
(T1-1/)/(1/sqrt(n)) ~ N(0,1) asymptotically
=> sqrt(n)(T1-1/ ) ~ N(0,1) asymptotically
=> sqrt(n)( T1-1/ ) ~ N(0,1/2) asymptotically
(b)
The asymptotic distribution of sample median med(X) is normal distribution with mean =
population median and variance = 1/4n{f(pop med)}2
The population median is given as
med = log(2)/
Then f(log(2)/) = e-*log(2)/ = e-log(2) = /2
Then var=1/(4n*2/4) = 1/n2
Then med(X) ~ N(log(2)/,1/n 2) asymptotically.
=> med(X) – log(2)/ ~ N(0,1/n 2) asymptotically
=> sqrt(n){med(X)-log(2)/ ) ~ N(0, 1/2) asymptotically
(c)
V(T2) = V(med(X)/log(2))
= V(med(X))/{log(2)}2
= 1/n 2 {log(2)}2 asymptotically
(d)
ARE(T1,T2) = V(T1)/V(T2)
= {1/n2}/{1/n2(log(2))2}
= {log(2)}2
(e)
Note that E(T1)=1/ for all >0
But E(T2)= 1/ asymptotically
Also note that
ARE(T1,T2) = V(T1)/V(T2) < 1
=> V(T1) < V(T2) asymptotically
Though both T1 and T2 are unbiased for asymptotically, asymptotic variance of T1 is lesser
than that of T2 implying that T1 is better estimator of 1/ than T2 .
(f)
Using the following codes in R we get
Code:
x<-rexp(1000,1);summary(x)
The output is
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.001265 0.271700 0.746000 1.087000 1.509000 6.689000
Here we observe that sample mean is closer to the original mean value (1 in this case) than
median. This random sample also suggests that mean is a better estimator of population mean
than the one derived using median.

More Related Content

Similar to Could you please do it in R program 1. Assume that we draw n data v.pdf

Communication Theory - Random Process.pdf
Communication Theory - Random Process.pdfCommunication Theory - Random Process.pdf
Communication Theory - Random Process.pdfRajaSekaran923497
 
Econometrics 2.pptx
Econometrics 2.pptxEconometrics 2.pptx
Econometrics 2.pptxfuad80
 
lecture13.ppt
lecture13.pptlecture13.ppt
lecture13.pptarkian3
 
SimpleLinearRegressionAnalysisWithExamples.ppt
SimpleLinearRegressionAnalysisWithExamples.pptSimpleLinearRegressionAnalysisWithExamples.ppt
SimpleLinearRegressionAnalysisWithExamples.pptAdnanAli861711
 
Linear regression.ppt
Linear regression.pptLinear regression.ppt
Linear regression.pptbranlymbunga1
 
Slideset Simple Linear Regression models.ppt
Slideset Simple Linear Regression models.pptSlideset Simple Linear Regression models.ppt
Slideset Simple Linear Regression models.pptrahulrkmgb09
 
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapConfidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapFrancesco Casalegno
 
Let X1X2Xn be independent identically distributed nonn.pdf
Let X1X2Xn be independent identically distributed nonn.pdfLet X1X2Xn be independent identically distributed nonn.pdf
Let X1X2Xn be independent identically distributed nonn.pdfadityacomputers001
 
Common Fixed Theorems Using Random Implicit Iterative Schemes
Common Fixed Theorems Using Random Implicit Iterative SchemesCommon Fixed Theorems Using Random Implicit Iterative Schemes
Common Fixed Theorems Using Random Implicit Iterative Schemesinventy
 
Fixed Point Theorm In Probabilistic Analysis
Fixed Point Theorm In Probabilistic AnalysisFixed Point Theorm In Probabilistic Analysis
Fixed Point Theorm In Probabilistic Analysisiosrjce
 
Ch1 representation of signal pg 130
Ch1 representation of signal pg 130Ch1 representation of signal pg 130
Ch1 representation of signal pg 130Prateek Omer
 
Generating Chebychev Chaotic Sequence
Generating Chebychev Chaotic SequenceGenerating Chebychev Chaotic Sequence
Generating Chebychev Chaotic SequenceCheng-An Yang
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)irjes
 
Expectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptExpectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptAlyasarJabbarli
 
this materials is useful for the students who studying masters level in elect...
this materials is useful for the students who studying masters level in elect...this materials is useful for the students who studying masters level in elect...
this materials is useful for the students who studying masters level in elect...BhojRajAdhikari5
 
Numarical values
Numarical valuesNumarical values
Numarical valuesAmanSaeed11
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlightedAmanSaeed11
 

Similar to Could you please do it in R program 1. Assume that we draw n data v.pdf (20)

Communication Theory - Random Process.pdf
Communication Theory - Random Process.pdfCommunication Theory - Random Process.pdf
Communication Theory - Random Process.pdf
 
Econometrics 2.pptx
Econometrics 2.pptxEconometrics 2.pptx
Econometrics 2.pptx
 
lecture13.ppt
lecture13.pptlecture13.ppt
lecture13.ppt
 
SimpleLinearRegressionAnalysisWithExamples.ppt
SimpleLinearRegressionAnalysisWithExamples.pptSimpleLinearRegressionAnalysisWithExamples.ppt
SimpleLinearRegressionAnalysisWithExamples.ppt
 
Linear regression.ppt
Linear regression.pptLinear regression.ppt
Linear regression.ppt
 
lecture13.ppt
lecture13.pptlecture13.ppt
lecture13.ppt
 
lecture13.ppt
lecture13.pptlecture13.ppt
lecture13.ppt
 
Slideset Simple Linear Regression models.ppt
Slideset Simple Linear Regression models.pptSlideset Simple Linear Regression models.ppt
Slideset Simple Linear Regression models.ppt
 
lecture13.ppt
lecture13.pptlecture13.ppt
lecture13.ppt
 
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and BootstrapConfidence Intervals––Exact Intervals, Jackknife, and Bootstrap
Confidence Intervals––Exact Intervals, Jackknife, and Bootstrap
 
Let X1X2Xn be independent identically distributed nonn.pdf
Let X1X2Xn be independent identically distributed nonn.pdfLet X1X2Xn be independent identically distributed nonn.pdf
Let X1X2Xn be independent identically distributed nonn.pdf
 
Common Fixed Theorems Using Random Implicit Iterative Schemes
Common Fixed Theorems Using Random Implicit Iterative SchemesCommon Fixed Theorems Using Random Implicit Iterative Schemes
Common Fixed Theorems Using Random Implicit Iterative Schemes
 
Fixed Point Theorm In Probabilistic Analysis
Fixed Point Theorm In Probabilistic AnalysisFixed Point Theorm In Probabilistic Analysis
Fixed Point Theorm In Probabilistic Analysis
 
Ch1 representation of signal pg 130
Ch1 representation of signal pg 130Ch1 representation of signal pg 130
Ch1 representation of signal pg 130
 
Generating Chebychev Chaotic Sequence
Generating Chebychev Chaotic SequenceGenerating Chebychev Chaotic Sequence
Generating Chebychev Chaotic Sequence
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
Expectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.pptExpectation of Discrete Random Variable.ppt
Expectation of Discrete Random Variable.ppt
 
this materials is useful for the students who studying masters level in elect...
this materials is useful for the students who studying masters level in elect...this materials is useful for the students who studying masters level in elect...
this materials is useful for the students who studying masters level in elect...
 
Numarical values
Numarical valuesNumarical values
Numarical values
 
Numarical values highlighted
Numarical values highlightedNumarical values highlighted
Numarical values highlighted
 

More from ellanorfelicityri239

How to Read the City Evaluating evidence to generate informed urban .pdf
How to Read the City Evaluating evidence to generate informed urban .pdfHow to Read the City Evaluating evidence to generate informed urban .pdf
How to Read the City Evaluating evidence to generate informed urban .pdfellanorfelicityri239
 
How do transpiration, cohesion and adhesion all work together to pro.pdf
How do transpiration, cohesion and adhesion all work together to pro.pdfHow do transpiration, cohesion and adhesion all work together to pro.pdf
How do transpiration, cohesion and adhesion all work together to pro.pdfellanorfelicityri239
 
How can the Internet be used for competitive advantage in business .pdf
How can the Internet be used for competitive advantage in business .pdfHow can the Internet be used for competitive advantage in business .pdf
How can the Internet be used for competitive advantage in business .pdfellanorfelicityri239
 
give an example of an qualitative variablegive an example of.pdf
give an example of an qualitative variablegive an example of.pdfgive an example of an qualitative variablegive an example of.pdf
give an example of an qualitative variablegive an example of.pdfellanorfelicityri239
 
Dynamic biological process influence population density, dispersion a.pdf
Dynamic biological process influence population density, dispersion a.pdfDynamic biological process influence population density, dispersion a.pdf
Dynamic biological process influence population density, dispersion a.pdfellanorfelicityri239
 
Discuss some disadvantages of viable counts of microorganisms.So.pdf
Discuss some disadvantages of viable counts of microorganisms.So.pdfDiscuss some disadvantages of viable counts of microorganisms.So.pdf
Discuss some disadvantages of viable counts of microorganisms.So.pdfellanorfelicityri239
 
Describe the pathophysiology, clinical manifestations, diagnostic te.pdf
Describe the pathophysiology, clinical manifestations, diagnostic te.pdfDescribe the pathophysiology, clinical manifestations, diagnostic te.pdf
Describe the pathophysiology, clinical manifestations, diagnostic te.pdfellanorfelicityri239
 
Class diagrams are used to define the dynamic behavior of an executi.pdf
Class diagrams are used to define the dynamic behavior of an executi.pdfClass diagrams are used to define the dynamic behavior of an executi.pdf
Class diagrams are used to define the dynamic behavior of an executi.pdfellanorfelicityri239
 
Can someone please help me with my ICD 10 II assignment...A 47-yea.pdf
Can someone please help me with my ICD 10 II assignment...A 47-yea.pdfCan someone please help me with my ICD 10 II assignment...A 47-yea.pdf
Can someone please help me with my ICD 10 II assignment...A 47-yea.pdfellanorfelicityri239
 
CAD is a critical technology for an integrated product development p.pdf
CAD is a critical technology for an integrated product development p.pdfCAD is a critical technology for an integrated product development p.pdf
CAD is a critical technology for an integrated product development p.pdfellanorfelicityri239
 
Byzantine influence can be seen in Russian literature because the Ru.pdf
Byzantine influence can be seen in Russian literature because  the Ru.pdfByzantine influence can be seen in Russian literature because  the Ru.pdf
Byzantine influence can be seen in Russian literature because the Ru.pdfellanorfelicityri239
 
balance sheet Google Search MC Qu. 122 An example of an operating... .pdf
balance sheet Google Search MC Qu. 122 An example of an operating... .pdfbalance sheet Google Search MC Qu. 122 An example of an operating... .pdf
balance sheet Google Search MC Qu. 122 An example of an operating... .pdfellanorfelicityri239
 
Write a 1-2 page essay researching biological science and its famous.pdf
Write a 1-2 page essay researching biological science and its famous.pdfWrite a 1-2 page essay researching biological science and its famous.pdf
Write a 1-2 page essay researching biological science and its famous.pdfellanorfelicityri239
 
Why do plants in early stage exhibit high levels of tolerance Early .pdf
Why do plants in early stage exhibit high levels of tolerance Early .pdfWhy do plants in early stage exhibit high levels of tolerance Early .pdf
Why do plants in early stage exhibit high levels of tolerance Early .pdfellanorfelicityri239
 
Which researcher(s) paralyzed subjects using Scoline in a classical .pdf
Which researcher(s) paralyzed subjects using Scoline in a classical .pdfWhich researcher(s) paralyzed subjects using Scoline in a classical .pdf
Which researcher(s) paralyzed subjects using Scoline in a classical .pdfellanorfelicityri239
 
Which of the following statements is NOT accurate about Mycobacteriu.pdf
Which of the following statements is NOT accurate about Mycobacteriu.pdfWhich of the following statements is NOT accurate about Mycobacteriu.pdf
Which of the following statements is NOT accurate about Mycobacteriu.pdfellanorfelicityri239
 
Which of the following is likely to increase the electrical conductiv.pdf
Which of the following is likely to increase the electrical conductiv.pdfWhich of the following is likely to increase the electrical conductiv.pdf
Which of the following is likely to increase the electrical conductiv.pdfellanorfelicityri239
 
What is the difference between endogenous and exogenous infections .pdf
What is the difference between endogenous and exogenous infections  .pdfWhat is the difference between endogenous and exogenous infections  .pdf
What is the difference between endogenous and exogenous infections .pdfellanorfelicityri239
 
What is a scattergramscatterdotscatterplot (different names for sa.pdf
What is a scattergramscatterdotscatterplot (different names for sa.pdfWhat is a scattergramscatterdotscatterplot (different names for sa.pdf
What is a scattergramscatterdotscatterplot (different names for sa.pdfellanorfelicityri239
 
What is structureSolutionStuctureStucture is defined as .pdf
What is structureSolutionStuctureStucture is defined as .pdfWhat is structureSolutionStuctureStucture is defined as .pdf
What is structureSolutionStuctureStucture is defined as .pdfellanorfelicityri239
 

More from ellanorfelicityri239 (20)

How to Read the City Evaluating evidence to generate informed urban .pdf
How to Read the City Evaluating evidence to generate informed urban .pdfHow to Read the City Evaluating evidence to generate informed urban .pdf
How to Read the City Evaluating evidence to generate informed urban .pdf
 
How do transpiration, cohesion and adhesion all work together to pro.pdf
How do transpiration, cohesion and adhesion all work together to pro.pdfHow do transpiration, cohesion and adhesion all work together to pro.pdf
How do transpiration, cohesion and adhesion all work together to pro.pdf
 
How can the Internet be used for competitive advantage in business .pdf
How can the Internet be used for competitive advantage in business .pdfHow can the Internet be used for competitive advantage in business .pdf
How can the Internet be used for competitive advantage in business .pdf
 
give an example of an qualitative variablegive an example of.pdf
give an example of an qualitative variablegive an example of.pdfgive an example of an qualitative variablegive an example of.pdf
give an example of an qualitative variablegive an example of.pdf
 
Dynamic biological process influence population density, dispersion a.pdf
Dynamic biological process influence population density, dispersion a.pdfDynamic biological process influence population density, dispersion a.pdf
Dynamic biological process influence population density, dispersion a.pdf
 
Discuss some disadvantages of viable counts of microorganisms.So.pdf
Discuss some disadvantages of viable counts of microorganisms.So.pdfDiscuss some disadvantages of viable counts of microorganisms.So.pdf
Discuss some disadvantages of viable counts of microorganisms.So.pdf
 
Describe the pathophysiology, clinical manifestations, diagnostic te.pdf
Describe the pathophysiology, clinical manifestations, diagnostic te.pdfDescribe the pathophysiology, clinical manifestations, diagnostic te.pdf
Describe the pathophysiology, clinical manifestations, diagnostic te.pdf
 
Class diagrams are used to define the dynamic behavior of an executi.pdf
Class diagrams are used to define the dynamic behavior of an executi.pdfClass diagrams are used to define the dynamic behavior of an executi.pdf
Class diagrams are used to define the dynamic behavior of an executi.pdf
 
Can someone please help me with my ICD 10 II assignment...A 47-yea.pdf
Can someone please help me with my ICD 10 II assignment...A 47-yea.pdfCan someone please help me with my ICD 10 II assignment...A 47-yea.pdf
Can someone please help me with my ICD 10 II assignment...A 47-yea.pdf
 
CAD is a critical technology for an integrated product development p.pdf
CAD is a critical technology for an integrated product development p.pdfCAD is a critical technology for an integrated product development p.pdf
CAD is a critical technology for an integrated product development p.pdf
 
Byzantine influence can be seen in Russian literature because the Ru.pdf
Byzantine influence can be seen in Russian literature because  the Ru.pdfByzantine influence can be seen in Russian literature because  the Ru.pdf
Byzantine influence can be seen in Russian literature because the Ru.pdf
 
balance sheet Google Search MC Qu. 122 An example of an operating... .pdf
balance sheet Google Search MC Qu. 122 An example of an operating... .pdfbalance sheet Google Search MC Qu. 122 An example of an operating... .pdf
balance sheet Google Search MC Qu. 122 An example of an operating... .pdf
 
Write a 1-2 page essay researching biological science and its famous.pdf
Write a 1-2 page essay researching biological science and its famous.pdfWrite a 1-2 page essay researching biological science and its famous.pdf
Write a 1-2 page essay researching biological science and its famous.pdf
 
Why do plants in early stage exhibit high levels of tolerance Early .pdf
Why do plants in early stage exhibit high levels of tolerance Early .pdfWhy do plants in early stage exhibit high levels of tolerance Early .pdf
Why do plants in early stage exhibit high levels of tolerance Early .pdf
 
Which researcher(s) paralyzed subjects using Scoline in a classical .pdf
Which researcher(s) paralyzed subjects using Scoline in a classical .pdfWhich researcher(s) paralyzed subjects using Scoline in a classical .pdf
Which researcher(s) paralyzed subjects using Scoline in a classical .pdf
 
Which of the following statements is NOT accurate about Mycobacteriu.pdf
Which of the following statements is NOT accurate about Mycobacteriu.pdfWhich of the following statements is NOT accurate about Mycobacteriu.pdf
Which of the following statements is NOT accurate about Mycobacteriu.pdf
 
Which of the following is likely to increase the electrical conductiv.pdf
Which of the following is likely to increase the electrical conductiv.pdfWhich of the following is likely to increase the electrical conductiv.pdf
Which of the following is likely to increase the electrical conductiv.pdf
 
What is the difference between endogenous and exogenous infections .pdf
What is the difference between endogenous and exogenous infections  .pdfWhat is the difference between endogenous and exogenous infections  .pdf
What is the difference between endogenous and exogenous infections .pdf
 
What is a scattergramscatterdotscatterplot (different names for sa.pdf
What is a scattergramscatterdotscatterplot (different names for sa.pdfWhat is a scattergramscatterdotscatterplot (different names for sa.pdf
What is a scattergramscatterdotscatterplot (different names for sa.pdf
 
What is structureSolutionStuctureStucture is defined as .pdf
What is structureSolutionStuctureStucture is defined as .pdfWhat is structureSolutionStuctureStucture is defined as .pdf
What is structureSolutionStuctureStucture is defined as .pdf
 

Recently uploaded

How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Could you please do it in R program 1. Assume that we draw n data v.pdf

  • 1. Could you please do it in R program? 1. Assume that we draw n data values independently from an exponential distribution with rate parameter , ie. (1, n ~ Exp(A). The exponential distribution is a positive and right skewed distribution function (see the Wikipedia entry here and the R help output here) and the probability distribution function is given by It is well known that the mean of the exponential distribution is EX- and the variance is Var(X] 2 . The median of the exponential distribution is given by log(2) Now a statistician is considering using two statistics to estimate the mean of the distribution . The two statistics are: . The sample mean T1 = X = M 72 . The sample median divided by log(2), i.e. T2-X/log(2) The statistician knows that because Xi,... ,Xn are independent and identically dis- nVar(X tributed (iid.), Var(T) = (a) Using the central limit theorem, what is the asymptotic distribution of V n(-1)? (b) Using the lecture notes, what is the asymptotic distribution of Vn(X - lo2)? (c) Using the property that Var(cT-cyar(T) for any statistic T and scalar c, along with the answer in part a, derive the formula for the asymptotic variance Var(T2) (d) If we were to compare the two statistics, what is the asymptotic relative efficiency ar(T (e) Based upon part c, which statistic is the most efficient statistic to estimate 1? Broadly speaking, discuss the advantages and disadvantages of both statistics? (f) Generate 1000 Exp(1) random variables using Solution X1,X2,…..,Xn is a random sample from Exp() distribution. E(Xi)=1/ for i=1(1)n V(Xi)=1/2 for i=1(1)n (a) Given T1= Xbar = (X1+X2+…..+Xn)/n Then E(T1 ) =1/ and V(T1) = 1/n2 Using Lindeberg Levy Central limit theorem (clt) we get (T1-1/)/(1/sqrt(n)) ~ N(0,1) asymptotically => sqrt(n)(T1-1/ ) ~ N(0,1) asymptotically => sqrt(n)( T1-1/ ) ~ N(0,1/2) asymptotically (b) The asymptotic distribution of sample median med(X) is normal distribution with mean = population median and variance = 1/4n{f(pop med)}2 The population median is given as med = log(2)/ Then f(log(2)/) = e-*log(2)/ = e-log(2) = /2
  • 2. Then var=1/(4n*2/4) = 1/n2 Then med(X) ~ N(log(2)/,1/n 2) asymptotically. => med(X) – log(2)/ ~ N(0,1/n 2) asymptotically => sqrt(n){med(X)-log(2)/ ) ~ N(0, 1/2) asymptotically (c) V(T2) = V(med(X)/log(2)) = V(med(X))/{log(2)}2 = 1/n 2 {log(2)}2 asymptotically (d) ARE(T1,T2) = V(T1)/V(T2) = {1/n2}/{1/n2(log(2))2} = {log(2)}2 (e) Note that E(T1)=1/ for all >0 But E(T2)= 1/ asymptotically Also note that ARE(T1,T2) = V(T1)/V(T2) < 1 => V(T1) < V(T2) asymptotically Though both T1 and T2 are unbiased for asymptotically, asymptotic variance of T1 is lesser than that of T2 implying that T1 is better estimator of 1/ than T2 . (f) Using the following codes in R we get Code: x<-rexp(1000,1);summary(x) The output is Min. 1st Qu. Median Mean 3rd Qu. Max. 0.001265 0.271700 0.746000 1.087000 1.509000 6.689000 Here we observe that sample mean is closer to the original mean value (1 in this case) than median. This random sample also suggests that mean is a better estimator of population mean than the one derived using median.