RSD: An R package to calculate stochastic dominance

Stochastic dominance is a classical method for comparing two random variables using their probability distribution functions. As for all stochastic orders, stochastic dominance does not always establish an order between the random variables, and almost stochastic dominance was developed to address such cases, thus extending the applicability of stochastic dominance to many real-world problems. We developed an R package that consists of a collection of methods for testing the first- and second-order (almost) stochastic dominance for discrete random variables. This article describes the package and illustrates these methods using both synthetic datasets covering a range of possible scenarios that can occur, and a practical example where the comparison of discrete random variables using stochastic dominance can be applied to aid decision-making.

Authors

Institutions

Publication Details

Journal
SoftwareX
Published
2026-01-30
DOI
https://doi.org/10.1016/j.softx.2025.102461
Primary Topic
Data Analysis with R
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

RSD: An R package to calculate stochastic dominance

Sigurður Ólafsson, Shayan Tohidi
SoftwareX
Data Analysis with R
article

RSD: An R package to calculate stochastic dominance

Sigurður Ólafsson, Shayan Tohidi
article en

Abstract

Stochastic dominance is a classical method for comparing two random variables using their probability distribution functions. As for all stochastic orders, stochastic dominance does not always establish an order between the random variables, and almost stochastic dominance was developed to address such cases, thus extending the applicability of stochastic dominance to many real-world problems. We developed an R package that consists of a collection of methods for testing the first- and second-order (almost) stochastic dominance for discrete random variables. This article describes the package and illustrates these methods using both synthetic datasets covering a range of possible scenarios that can occur, and a practical example where the comparison of discrete random variables using stochastic dominance can be applied to aid decision-making.

SoftwareXVol. 33
Iowa State University (US)
Peace, Justice and strong institutions
Openalex Percentile: Top 74%
Data Analysis with R
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.