Numerical Inversion of a Bivariate Characteristic Function

버전 1.24 (161 KB) 작성자: Viktor Witkovsky
cf2Dist2D is a MATLAB algorithm for numerical inversion of a bivariate characteristic function which evaluates PDF and CDF from bivariate CF
다운로드 수: 23
업데이트 날짜: 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