问题如下:
#a. Generate 100 data from the exponential distribution with mean 2.
#b. Obtain the MLE of the variance of the distribution based on the data.
我写了a中的程序:
library(MASS)
set.seed(1)
x=rexp(100,1/2)
var(x)
第二问中的MLE估计,不知怎么做,高手指教~~~


雷达卡



京公网安备 11010802022788号







