Question 1
Question 1
Lambda = 0.1:
Variance of ML estimator: 0.0001
Fisher Information: 10000.0000
Lambda = 1.0:
Variance of ML estimator: 0.0010
Fisher Information: 1000.0000
Lambda = 10.0:
Variance of ML estimator: 0.0092
Fisher Information: 100.0000
% Define parameters
N = 300;
sigma_e2 = 1.5;
a = 4;
b = 5;
1
Y = a * X + b + epsilon; % Observed Y values
2
% Find ML estimates for a and b
[~, idx_a] = max(likelihood_values_a);
[~, idx_b] = max(likelihood_values_b);
% ML estimates
a_ML = a_values(idx_a);
b_ML = b_values(idx_b);
% Display results
fprintf('ML Estimate for a: %.4f\n', a_ML);