Let us consider a random variable X is the element of U(0, a) sothat a has been obtained as a sample from a random variable A whichfollows a uniform distribution A is the element of U(0, l) withknown parameter value l.
Estimates of a based on 1) the method of moments, 2) the methodof maximum likelihood and 3) the Bayesian-based methods,respectively in R.
Read a data sample of r.v. X from the filesample_x.csv. Estimate a from such sample, knowingthat l = 10.
i. Using only the first sample.
ii. Using only the first 5 samples.
iii. Using only the first 10 samples.
iv. Using all the samples.
sample_x.csv contains these numbers, please copy thenumbers to excel file to write the estimators in R.
2.70251720663915
4.52533716919839
1.7231448657286
2.75834069244788
2.19003083976203
3.19190171690754
3.87230309952386
3.93239850995383
4.93477988922767
1.64963260015239
5.02497814716251
5.92375606054227
6.54048445225238
5.89274455816184
6.81183471748896
3.20217587502456
4.39968432805757
4.78356387178363
2.09551473182655
4.0451138126402
5.61321793564152
5.56420019695387
6.22983582402031
6.51275224747206
6.75733219590838
Please try at least for some estimators... Thank you :)