time-to-botec/js/node_modules/@stdlib/stats/base/dists/f/README.md

151 lines
5.2 KiB
Markdown
Raw Normal View History

<!--
@license Apache-2.0
Copyright (c) 2018 The Stdlib Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
# Fisher's F
> Fisher's F distribution.
<section class="usage">
## Usage
```javascript
var f = require( '@stdlib/stats/base/dists/f' );
```
#### f
Fisher's F distribution.
```javascript
var dist = f;
// returns {...}
```
The namespace contains the following distribution functions:
<!-- <toc pattern="*+(cdf|pdf|mgf|quantile)*"> -->
<div class="namespace-toc">
- <span class="signature">[`cdf( x, d1, d2 )`][@stdlib/stats/base/dists/f/cdf]</span><span class="delimiter">: </span><span class="description">F distribution cumulative distribution function.</span>
- <span class="signature">[`pdf( x, d1, d2 )`][@stdlib/stats/base/dists/f/pdf]</span><span class="delimiter">: </span><span class="description">F distribution probability density function (PDF).</span>
- <span class="signature">[`quantile( p, d1, d2 )`][@stdlib/stats/base/dists/f/quantile]</span><span class="delimiter">: </span><span class="description">F distribution quantile function.</span>
</div>
<!-- </toc> -->
The namespace contains the following functions for calculating distribution properties:
<!-- <toc pattern="*+(entropy|kurtosis|mean|median|mode|skewness|stdev|variance)*"> -->
<div class="namespace-toc">
- <span class="signature">[`entropy( d1, d2 )`][@stdlib/stats/base/dists/f/entropy]</span><span class="delimiter">: </span><span class="description">F distribution differential entropy.</span>
- <span class="signature">[`kurtosis( d1, d2 )`][@stdlib/stats/base/dists/f/kurtosis]</span><span class="delimiter">: </span><span class="description">F distribution excess kurtosis.</span>
- <span class="signature">[`mean( d1, d2 )`][@stdlib/stats/base/dists/f/mean]</span><span class="delimiter">: </span><span class="description">F distribution expected value.</span>
- <span class="signature">[`mode( d1, d2 )`][@stdlib/stats/base/dists/f/mode]</span><span class="delimiter">: </span><span class="description">F distribution mode.</span>
- <span class="signature">[`skewness( d1, d2 )`][@stdlib/stats/base/dists/f/skewness]</span><span class="delimiter">: </span><span class="description">F distribution skewness.</span>
- <span class="signature">[`stdev( d1, d2 )`][@stdlib/stats/base/dists/f/stdev]</span><span class="delimiter">: </span><span class="description">F distribution standard deviation.</span>
- <span class="signature">[`variance( d1, d2 )`][@stdlib/stats/base/dists/f/variance]</span><span class="delimiter">: </span><span class="description">F distribution variance.</span>
</div>
<!-- </toc> -->
The namespace contains a constructor function for creating a [Fisher's F][f-distribution] distribution object.
<!-- <toc pattern="*ctor*"> -->
<div class="namespace-toc">
- <span class="signature">[`F( [d1, d2] )`][@stdlib/stats/base/dists/f/ctor]</span><span class="delimiter">: </span><span class="description">F distribution constructor.</span>
</div>
<!-- </toc> -->
```javascript
var F = require( '@stdlib/stats/base/dists/f' ).F;
var dist = new F( 2.0, 4.0 );
var y = dist.cdf( 0.5 );
// returns ~0.36
```
</section>
<!-- /.usage -->
<section class="examples">
## Examples
<!-- TODO: better examples -->
<!-- eslint no-undef: "error" -->
```javascript
var objectKeys = require( '@stdlib/utils/keys' );
var f = require( '@stdlib/stats/base/dists/f' );
console.log( objectKeys( f ) );
```
</section>
<!-- /.examples -->
<section class="links">
[f-distribution]: https://en.wikipedia.org/wiki/F_distribution
<!-- <toc-links> -->
[@stdlib/stats/base/dists/f/ctor]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/ctor
[@stdlib/stats/base/dists/f/entropy]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/entropy
[@stdlib/stats/base/dists/f/kurtosis]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/kurtosis
[@stdlib/stats/base/dists/f/mean]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/mean
[@stdlib/stats/base/dists/f/mode]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/mode
[@stdlib/stats/base/dists/f/skewness]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/skewness
[@stdlib/stats/base/dists/f/stdev]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/stdev
[@stdlib/stats/base/dists/f/variance]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/variance
[@stdlib/stats/base/dists/f/cdf]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/cdf
[@stdlib/stats/base/dists/f/pdf]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/pdf
[@stdlib/stats/base/dists/f/quantile]: https://www.npmjs.com/package/@stdlib/stats/tree/main/base/dists/f/quantile
<!-- </toc-links> -->
</section>
<!-- /.links -->