Numerical Inversion of a Bivariate Characteristic Function

版本 1.24 (160.6 KB) 作者: Viktor Witkovsky
cf2Dist2D is a MATLAB algorithm for numerical inversion of a bivariate characteristic function which evaluates PDF and CDF from bivariate CF
20.0 次下载
更新时间 2021/4/14

查看许可证

cf2Dist2D calculates the CDF and PDF from the BIVARIATE characteristic function CF by using the Gil-Pelaez inversion formulae and the Riemann quadrature sum, as suggested in Shephard (1991).

The algorithm cf2Dist2D is a part of the MATLAB toolbox CharFunTool: https://github.com/witkovsky/CharFunTool

SYNTAX:
result = cf2Dist2D(cf,x)

EXAMPLE 1 (CDF/PDF of bivariate standard normal distribution)
cf = @(t) exp(-(0.9*t(:,1).^2 + 0.3*t(:,2).^2 +2*0.4*t(:,1).*t(:,2))/2);
result = cf2Dist2D(cf)
disp([result.x result.cdf])

% EXAMPLE 2 (CDF/PDF of a mixture of bivariate logistic distributions)
mu1 = [0 2];
beta1 = [1 2];
cf1 = @(t) cf2D_Logistic(t,mu1,beta1);
mu2 = [2 1];
beta2 = [2 1];
cf2 = @(t) cf2D_Logistic(t,mu2,beta2);
cf = @(t) 0.25*cf1(t) + 0.75*cf2(t);
options.xN = 51;
result = cf2Dist2D(cf,[],options)

引用格式

Viktor Witkovsky (2024). Numerical Inversion of a Bivariate Characteristic Function (https://www.mathworks.com/matlabcentral/fileexchange/90297-numerical-inversion-of-a-bivariate-characteristic-function), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.24

Removed prob as an input argument

1.23

Warning for the out-of-range values of the inputs x.

1.22

Improved dealing with the input argument x. Now we can set x = [], x = [x1 x2], and x = {x1, x2}.

1.21

Improved plot

1.2

Corrected error in dealing with input x

1.1

Corrected typographical errors

1.0