Professional Documents
Culture Documents
Actuarial Modelling2 Lab 6
Actuarial Modelling2 Lab 6
Object:
Simulate 10 random sample of size n = 15 from Weibull’s distribution with pdf
𝑥 𝑗
𝑗𝑥 𝑗−1 exp [− (𝜃 )]
𝑓(𝑥; 𝑗; 𝜃) = 𝑤ℎ𝑒𝑟𝑒 𝑗 = 2 & 𝜃 = 20
𝜃𝑗
Find the estimator of J, 𝜃 and s(j) by percentile matching method with the following pairs of
percentiles(smooth)
a) 10th and 50th b) 15th and 75th c) 5th and 95th
Working:
Steps:
1) First we will generate 150 random numbers using Uniform (0,1). To get the random
sample values of size 15 we will use Inverse CDF of Weibull’s distribution by using
the following command:
=20*(-LN(1-B3))^0.5
For part (a): 10th and 50th percentile
To get the value of 𝜋𝑔1 and 𝜋𝑔2 for 10th and 50th percentile we will use the command
as:
=PERCENTILE(Q3:AE3,0.1) and =PERCENTILE(Q3:AE3,0.5)
2) For the estimation of j and 𝜃 we will use the following commands as derived in the
formula:
For j : =(LN(-LN(1-0.1))-LN(-LN(1-0.5)))/(LN(AF3/AG3))
For 𝜃: =((AF3)*(-LN(1-0.5))^0.5 + (AG3)*(-LN(1-0.1))^0.5)/(2*((-LN(1-0.1))^0.5)*((-
LN(1-0.5))^0.5))
3) Then we will calculate Mean and Variance of both for j and 𝜃. By using the following
commands:
Mean for j: =AVERAGE(AJ3:AJ12)
Mean for 𝜃: =AVERAGE(AK3:AK12)
Variance for j: =VAR(AJ3:AJ12)
Variance for 𝜃: =VAR(AK3:AK12)
J Ө
J Ө
1) Then we will calculate Mean and Variance of both for j and 𝜃. By using the following
commands:
Mean for j: =AVERAGE(AP3:AQ12)
Mean for 𝜃: =AVERAGE(AP3:AKQ12)
Variance for j: =VAR(AP3:AQ12)
Variance for 𝜃: =VAR(AP3:AQ12)
J Ө
J Ө
Percentiles
Mean Variance Mean Variance
10th and
50th 1.944705 0.45394 19.88191 27.48776
15th and
75th 2.179435 0.385449 20.67581 19.42549
5th and
95th 1.986592 0.150541 18.26823 26.81521
For both estimation of j and 𝜃 the 5th and 95th percentile matching methods gives
the best estimation for both parameters.