Package: prova 3.0.0

prova: Nonparametric Probabilistic-Statistical Variate Analysis

Calculate posterior joint and conditional probabilities, probability distributions of population frequencies, information-theoretic measures, and expected utilities, by means of Bayesian nonparametrics. Data can be any combination of nominal, ordinal, continuous, censored, rounded types. Data imputation is automatic and done in a principled way. Markov-chain Monte Carlo calculations are automatically handled and do not require user supervision. Applications range from statistical estimation, hypothesis testing, and association studies, to subgroup analysis, risk analysis, and probability calibration of machine-learning algorithms. Application disciplines range from astrophysics to medicine. For more details and examples see for instance Porta Mana & al. (2026) <doi:10.31219/osf.io/8nr56>, Dunson & Bhattacharya (2011) <doi:10.1093/acprof:oso/9780199694587.003.0005>, Lindley & Novick (1981) <doi:10.1214/aos/1176345331>, Bernardo & Smith (2000) <doi:10.1002/9780470316870>, Müller et al. (2015) <doi:10.1007/978-3-319-18968-0>. Data-training function requires the package 'Nimble'.

Authors:PierGianLuca Porta Mana [aut, cre, cph], Aurora Grefsrud [ctb], Håkon Mydland [ctb], Maksim Ohvrill [ctb], Torstein Sleire [ctb], Simen Hesthamar Hauge [ctb]

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

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

Bug tracker:https://github.com/pglpm/prova/issues

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

Datasets:

On CRAN:

Conda:

bayesianexchangeabilityimputationinferencemachine-learningmarkov-chain-monte-carlomutual-informationnonparametric-statisticsnonparametricsprobability-theorystatistics

6.69 score 6 stars 1 scripts 357 downloads 14 exports 0 dependencies

Last updated from:d4a7c0b6b0. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK144
source / vignettesOK418
linux-releaseOK128
macos-releaseOK100
macos-oldrelOK108
windows-develOK84
windows-releaseOK73
windows-oldrelOK107
wasm-releaseOK80

Exports:exputilitygetKlearnmetadatatemplatemutualinfomutualinfoFpplotPrpread.csvpwrite.csvqPrrPruseKvrtgrid

Dependencies:

Associations among variates and generating samples
Probabilities and associations | Generating and plotting new samples | Setup | Generating new samples | Example with a continuous and a discrete variate | Samples and plots for different subpopulations | Quantifying associations and correlations: mutual information | Pearson correlation coefficient and its limitations | Mutual information | Understanding mutual-information values | Mutual information for previous examples | Island and species | Body mass and species | Body mass and bill length | Mutual information within subgroups | Uncertainty about associations and revisability of mutual information | Appendices | References

Last update: 2026-11-15
Started: 2025-07-30

An introduction to probabilistic-statistical variate analysis
Before we start | Penguins | "Population"? | Sampling | How to use the sample data | A first, preliminary analysis | Metadata preparation | Why does Prova need metadata? | "Learning" and extrapolating from the sample data | Analysis example: frequencies of species | Estimating relative frequencies | Uncertainty of estimates: credibility intervals | A preliminary report on question Q1 | What if we're interested in more than one variate? | Analysis example: frequencies on different islands | Estimating frequencies of species, island-wise | A preliminary report on question Q2 | Differences from "null-hypothesis testing" and p-value methods | What if we're interested in combinations of subpopulations? | Set a default "K" object to save typing | Imputation of missing data | More samples | Updating what we've learnt | Updates in analysis and hypotheses | Updates in island-wise conditional frequencies | For Dream island | For Biscoe island: a surprising result | Final inferences | When the sampling is finished | Final results on overall species frequencies | Statistical differences in subpopulations | Q2a: species on Biscoe | Q2b: Adélie on three islands | Q2c: Body mass across the three species | Appendices | References and further reading | On exchangeability: | On Bayesian theory in general: | Credibility and coverage intervals | On medical decision-making: | Format for data and metadata files and their contents | Typical use of the learn() function

Last update: 2026-11-15
Started: 2026-06-23

Readme and manuals

Help Manual

Help pageTopics
Set or unset default values for 'K =' arguments, and retrieve "prova_K" objects."K" objects and arguments getK useK
Write and read CSV files in *Prova*data pread.csv pwrite.csv
Calculate expected utilities and their uncertaintiesexputility
Plot the revisability of an object of class "prova_mi" (mutual information) as a histogramhist.prova_mi
Plot the revisability of an object of class "prova_pr" (probability) as a histogramhist.prova_pr
Example 'K'nowledge object produced by learn()Kexample
Monte Carlo computation of posterior probability distributionlearn
Merge two objects of class "prova_pr" (probability)merge.prova_pr
Metadata file for "penguins" datasetmeta_penguins
Metadata and helper function to create a template metadata file or object.metadata metadatatemplate
Example metadata filemetadataExample
Calculate mutual information between groups of joint variatesmutualinfo mutualinfoF
Plot an object of class "prova_eu" (expected utility) and its revisabilityplot.prova_eu
Plot an object of class "prova_pr" (probability)plot.prova_pr
Plot numeric or character valuespplot
Calculate posterior probabilitiesPr
Print an object of class "prova_eu" (expected utility)print.prova_eu
Print summary of a "K" (more precisely "prova_K") objectprint.prova_K
Print an object of class "prova_mi" (mutual information) (mutual information)print.prova_mi
Print an object of class "prova_pr" (probability)print.prova_pr
Calculate quantilesqPr
Generate datapointsrPr
Subset variates of an object of class "prova_pr" (probability)subset.prova_pr
Create a grid of values for a variatevrtgrid