wtdpapb: Creates input for the stochastic dominance function stochdom2

View source: R/wtdpapb.R

wtdpapbR Documentation

Creates input for the stochastic dominance function stochdom2


Stochastic dominance is a sophisticated comparison of two distributions of stock market returns. The dominating distribution is superior in terms of mean, variance, skewness and kurtosis respectively, representing dominance orders 1 to 4, without directly computing four moments. Vinod(2008) sec. 4.3 explains the details. The ‘wtdpapb’ function creates the input for stochdom2 which in turn computes the stochastic dominance. See Vinod (2004) for details about quantitative stochastic dominance.


wtdpapb(xa, xb)



Vector of (excess) returns for the first investment option A or values of any random variable being compared to another.


Vector of returns for the second option B



Weighted vector of probabilities for option A


Weighted vector of probabilities for option B


Vector of interval widths (distances) when both sets of data are forced on a common support


Function is needed before using stochastic dominance

In Vinod (2008) where the purpose of wtdpapb is to map from standard ‘expected utility theory’ weights to more sophisticated 'non-expected utility theory' weights using Prelec's (1998, Econometrica, p. 497) method. These weights are not needed here. Hence we provide the function prelec2 which does not use Prelec weights at all, thereby simplifying and speeding up the R code provided in Vinod (2008). This function avoids sophisticated ‘non-expected’ utility theory which incorporates commonly observed human behavior favoring loss aversion and other anomalies inconsistent with precepts of the expected utility theory. Such weighting is not needed for our application.


Prof. H. D. Vinod, Economics Dept., Fordham University, NY


Vinod, H. D.', 'Hands-On Intermediate Econometrics Using R' (2008) World Scientific Publishers: Hackensack, NJ. https://www.worldscientific.com/worldscibooks/10.1142/6895

Vinod, H. D. 'Ranking Mutual Funds Using Unconventional Utility Theory and Stochastic Dominance,' Journal of Empirical Finance Vol. 11(3) 2004, pp. 353-377.

See Also

See Also stochdom2


 ## Not run: 
## End(Not run)

generalCorr documentation built on May 1, 2023, 9:06 a.m.