Numerical Inversion of a Bivariate Characteristic Function
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)
Zitieren als
Viktor Witkovsky (2025). 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. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxTags
Quellenangaben
Inspiriert von: CharFunTool: The Characteristic Functions Toolbox
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
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 |