0.2.1 • Published 12 months ago

@stdlib/stats-base-dists-studentized-range v0.2.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

Studentized Range

NPM version Build Status Coverage Status

Studentized range distribution.

Installation

npm install @stdlib/stats-base-dists-studentized-range

Usage

var tukey = require( '@stdlib/stats-base-dists-studentized-range' );

tukey

Studentized range distribution.

var dist = tukey;
// returns {...}

The namespace contains the following distribution functions:

Examples

var tukey = require( '@stdlib/stats-base-dists-studentized-range' );

/*
* Let's consider an example where we are analyzing the test scores of students in a class.
* We're interested in using the Studentized Range Distribution to analyze the range of scores.
* The distribution has parameters: r (number of means), v (degrees of freedom), and n (number of ranges).
*/

var r = 5.0;
var v = 20.0;
var n = 3.0;

// CDF can be used to calculate the cumulative distribution function at a specific value:
var out = tukey.cdf( 2.0, r, v, n );
// returns ~0.074

// Quantile can also be used to calculate the quantile function at a specific probability:
out = tukey.quantile( 0.9, r, v, n );
// returns ~4.433

Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.

Community

Chat


License

See LICENSE.

Copyright

Copyright © 2016-2024. The Stdlib Authors.