Distributions(3pm)
π Statistics::Distributions π
okay so bestie, you found the manual page for Statistics::Distributions, which lives in the User Contributed Perl Documentation section and is filed under Distributions(3pm). buckle up, we're doing stats today π
β¨ NAME β¨
Statistics::Distributions β a Perl module for calculating critical values and upper probabilities of common statistical distributions π
β¨ SYNOPSIS β¨
like, here's the whole vibe in code, no notes:
use Statistics::Distributions;
$chis=Statistics::Distributions::chisqrdistr (2,.05);
print "Chi-squared-crit (2 degrees of freedom, 95th percentile "
."= 0.05 level) = $chis\n";
$u=Statistics::Distributions::udistr (.05);
print "u-crit (95th percentile = 0.05 level) = $u\n";
$t=Statistics::Distributions::tdistr (1,.005);
print "t-crit (1 degree of freedom, 99.5th percentile = 0.005 level) "
."= $t\n";
$f=Statistics::Distributions::fdistr (1,3,.01);
print "F-crit (1 degree of freedom in numerator, 3 degrees of freedom "
."in denominator, 99th percentile = 0.01 level) = $f\n";
$uprob=Statistics::Distributions::uprob (-0.85);
print "upper probability of the u distribution (u = -0.85): Q(u) "
."= 1-G(u) = $uprob\n";
$chisprob=Statistics::Distributions::chisqrprob (3,6.25);
print "upper probability of the chi-square distribution (3 degrees "
."of freedom, chi-squared = 6.25): Q = 1-G = $chisprob\n";
$tprob=Statistics::Distributions::tprob (3,6.251);
print "upper probability of the t distribution (3 degrees of "
."freedom, t = 6.251): Q = 1-G = $tprob\n";
$fprob=Statistics::Distributions::fprob (3,5,.625);
print "upper probability of the F distribution (3 degrees of freedom "
."in numerator, 5 degrees of freedom in denominator, F = 6.25): "
."Q = 1-G = $fprob\n";
look at all those distributions getting their moment. iconic behavior honestly πΈ
β¨ DESCRIPTION β¨
okay so real talk: this Perl module calculates percentage points (5 significant digits) of the u (standard normal) distribution, the student's t distribution, the chi-square distribution and the F distribution. and that's not all β it can also calculate the upper probability (5 significant digits) of the u (standard normal), the chi-square, the t and the F distribution. β¨
why do you care? because these critical values are exactly what you need to perform statistical tests β like the u test, the t test, the F test and the chi-squared test β and to calculate confidence intervals. it's giving "foundational stats homework but make it Perl" π
if you're the type who wants more precise algorithms (respect), the author says you could look at:
- StatLib:
http://lib.stat.cmu.edu/apstat/; - Applied Statistics Algorithms by Griffiths, P. and Hill, I.D., Ellis Horwood: Chichester (1985)
β¨ BUGS β¨
this final version 1.02 has been released after more than one year without a bug report on the previous version 0.07. she's stable, she's thriving, we love to see it π«Ά
nevertheless β if you find any bugs or oddities, please do inform the author. no gatekeeping, bestie, tell them π
β¨ INSTALLATION β¨
see perlmodinstall for information and options on installing Perl modules. that's the whole tea. π
β¨ AVAILABILITY β¨
the latest version of this module is available from the Distribution Perl Archive Network (CPAN). please visit http://www.cpan.org/ to find a CPAN site near you, or see http://www.cpan.org/authors/id/M/MI/MIKEK/ . π¦
β¨ AUTHOR β¨
- Michael Kospach
<mike.perl@gmx.at> - Nice formating, simplification and bug repair by Matthias Trautner Kromann
<mtk@id.cbs.dk>
two legends, one module. periodt π
β¨ COPYRIGHT β¨
Copyright 2003 Michael Kospach. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π
β¨ SEE ALSO β¨
Statistics::ChiSquareStatistics::Table::tStatistics::Table::Fperl(1)
ngl if you made it this far you deserve a snack π go read those other modules, they're all in the same friend group.
and that's a wrap, bestie β this page came to you courtesy of perl v5.32.0, dated 2021-01-05, and it's the Distributions(3pm) page. slay, stay statistically significant, mwah πβ¨π
π¦ where this page comes from
- debian bookworm: libstatistics-distributions-perl 1.02-1.1
- debian trixie: libstatistics-distributions-perl 1.02-1.1
- ubuntu jammy: libstatistics-distributions-perl 1.02-1.1
- ubuntu noble: libstatistics-distributions-perl 1.02-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms