利用least-square参数估计法与Copula函数计算联合概率分布 (matlab code)(The joint probability distribution (Matlab, code) is calculated by using the least-square parameter estimation method and the Copula function)
% using least-square parameter estimation method and Copula function to calculate joint probability distribution
%parameter, estimation, for, Weibull, distribution, and, estimate, the,, parameter, for, Copula
Clear; clc;
N=20;
H=[8.7, 12.8, 9.9, 10.3, 7.5, 12.3, 10.3, 7.5, 9.3, 12.7, 6.8, 7.4, 12.6,, 12.2, 8.7, 13.2, 11.8, 11,, 10.5;
S=[39.9, 40.3, 41.7, 28.5, 26.4, 47.1, 40.5, 22.9, 40.5, 42.2, 23.8, 23.6, 38.2,, 45.8, 34.2, 31.2, 35.2, 41.2,, 41.5;
%--------determine Weibull distribution-----------------------------------
H_sort=sort (H);
S_sort=sort (s);
X_hi=log (h_sort);
X_si=log (s_sort);
For k=1:20
MR (k) &#