Package: eikosograms 1.0.0

eikosograms: Visualizing Probabilities, Frequencies, and Conditional Independence for Categorical Variates

An eikosogram (ancient Greek for probability picture) divides the unit square into rectangular regions whose areas, sides, and widths represent various probabilities associated with the values of one or more categorical variates. Rectangle areas are joint probabilities, widths are always marginal (though possibly joint margins, i.e. marginal joint distributions of two or more variates), and heights of rectangles are always conditional probabilities. Eikosograms embed the rules of probability and are useful for introducing elementary probability theory, including axioms, marginal, conditional, and joint probabilities, and their relationships (including Bayes' theorem as a completely trivial consequence). They provide advantages over Venn diagrams for this purpose, particularly in distinguishing probabilistic independence, mutually exclusive events, coincident events, and associations. They also are useful for identifying and understanding conditional independence structure. Eikosograms can be thought of as mosaic plots when only two categorical variates are involved; the layout is quite different when there are more than two variates. Only one categorical variate, designated the "response", presents on the vertical axis and all others, designated the "conditioning" variates, appear on the horizontal. In this way, conditional probability appears only as height and marginal probabilities as widths. The eikosogram is ideal for response models (e.g. logistic models) but equally useful when no variate is distinguished as the response. In such cases, each variate can appear in turn as the response, which is handy for assessing conditional independence in discrete graphical models (i.e. "Bayesian networks" or "BayesNets"). The eikosogram and its value over Venn diagrams in teaching probability is described in W.H. Cherry and R.W. Oldford (2003) <https://math.uwaterloo.ca/~rwoldfor/papers/eikosograms/paper.pdf>, its value in exploring conditional independence structure and relation to graphical and log-linear models is described in R.W. Oldford (2003) <https://math.uwaterloo.ca/~rwoldfor/papers/eikosograms/independence/paper.pdf>, and a number of problems, puzzles, and paradoxes that are easily explained with eikosograms are given in R.W. Oldford (2003) <https://math.uwaterloo.ca/~rwoldfor/papers/eikosograms/examples/paper.pdf>.

Authors:Wayne Oldford [aut, cre], Erle Holgersen [aut], Ben Lafreniere [aut], Tianlu Zhu [aut]

eikosograms_1.0.0.tar.gz
eikosograms_1.0.0.zip(r-4.7)eikosograms_1.0.0.zip(r-4.6)eikosograms_1.0.0.zip(r-4.5)
eikosograms_1.0.0.tgz(r-4.6-any)eikosograms_1.0.0.tgz(r-4.5-any)
eikosograms_1.0.0.tar.gz(r-4.7-any)eikosograms_1.0.0.tar.gz(r-4.6-any)
eikosograms_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
eikosograms/json (API)

# Install 'eikosograms' in R:
install.packages('eikosograms', repos = c('https://rwoldford.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/rwoldford/eikosograms/issues

Pkgdown/docs site:https://rwoldford.github.io

Datasets:

On CRAN:

Conda:

5.36 score 4 stars 19 scripts 525 downloads 1 exports 0 dependencies

Last updated from:1c5e25f6f6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK113
source / vignettesOK163
linux-release-x86_64OK111
macos-release-arm64OK116
macos-oldrel-arm64OK167
windows-develOK70
windows-releaseOK70
windows-oldrelOK86
wasm-releaseOK88

Exports:eikos

Dependencies:

Introduction to eikosograms
A picture of probability | Grad admissions to Berkeley (1973) | Conditional and marginal probabilites | geometry and probability | Marginal probabilities for the response | the water container metaphor | Bayes's theorem | Independence | Events | Coincident and complementary events | Mutually exclusive events | Positive and negative association | An association spectrum | Conditional Independence | Problems, puzzles, and paradoxes | References

Last update: 2026-01-15
Started: 2018-08-22

Data Analysis
tables | cross tabulation | listings (data frame rows) | fitted models | references

Last update: 2026-01-15
Started: 2018-08-21

Exploring Independence
Independence | Of two variates | Conditionally | Water container metaphor | Independence when there are more than two variates | A prefix notation for independence | Three variates | The set of possibilities | Case 1: All three 3-way diagrams are flat | Case 2: one 4-flat, two 2 by 2-flats | Case 3: two 2 by 2-flats, one no-flat | Case 4: three no-flats | Case 4.1: No flats; no marginal independence | Case 4.2: No flats; one marginal independence | Case 4.3: No flats; two marginal independences | Case 4.4: No flats; three marginal independences | References

Last update: 2026-01-11
Started: 2018-07-29