BSD Ports

math/p5-Statistics-ChiSquare 1.0000 FreeBSD

How random is your data?

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
math, perl5
Package size
17.2 KiB, 45.1 KiB installed

Description

Suppose you flip a coin 100 times, and it turns up heads 70 times. Is the coin fair?

Suppose you roll a die 100 times, and it shows 30 sixes. Is the die loaded?

In statistics, the chi-square test calculates "how random" a series of numbers is. But it doesn't simply say "yes" or "no". Instead, it gives you a confidence interval, which sets upper and lower bounds on the likelihood that the variation in your data is due to chance. See the examples below.

There's just one function in this module: chisquare(). Instead of returning the bounds on the confidence interval in a tidy little two-element array, it returns an English string. This was a deliberate design choice---many people misinterpret chi-square results, and the string helps clarify the meaning.

-Anton <[email protected]>

In the other systems

SystemPortVersion
FreeBSDmath/p5-Statistics-ChiSquare1.0000
NetBSDmath/p5-Statistics-ChiSquare1.0000nb2
DragonFlymath/p5-Statistics-ChiSquare1.0000

Install

Binary package:

pkg install p5-Statistics-ChiSquare

From the ports tree:

cd /usr/ports/math/p5-Statistics-ChiSquare/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Statistics-ChiSquare>0:math/p5-Statistics-ChiSquare

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.00001.00001.00001.00001.0000
FreeBSD:14:quarterly1.00001.0000n/a1.00001.0000
FreeBSD:15:latest1.00001.0000n/a1.00001.0000
FreeBSD:15:quarterly1.00001.0000n/an/an/a
FreeBSD:16:latest1.00001.0000n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Statistics/ChiSquare.pm
  • %%PERL5_MAN3%%/Statistics::ChiSquare.3.gz
distinfo 1
FileSizeSHA256
Statistics-ChiSquare-1.0000.tar.gz28821255a5a38336d048ddb9077222691e000984e907aae09a4ea695a9cfd49a1ddd0
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.