# chi.probability: Calculation the Chi Squared probability. In Honguyen14/anything:

## Description

`chi.probability` computes the probability which the `Chi` of a given degree of freedom is greater than a specified value `x`. If `x` is a vector, in which case the function will return a vector of probabilities of the components of `x`. The `plot` option if chosen to be TRUE, then a plot of the density function of the `Chi Squared` with degree of freedom `df` will be created.

## Usage

 `1` ```chi.probability(x, df = 5, n = 1000, plot = FALSE) ```

## Arguments

 `x` specifies the value that should be evaluated in the Chi Square distribution. `df` degrees of freedom in the Chi Square distribution `n` number of random numbers for evaluating the distribution `plot` specifies whether a plot should be created or not

## Value

returns the probability that the `Chi` greater than `x` (area under the distribution which is greated than `x`).

## Author(s)

Nguyen Khanh Le Ho

## Examples

 `1` ```chi.probability(x= 5, df = 5, n = 1000, plot = TRUE) ```

Honguyen14/anything documentation built on May 7, 2019, 4:02 a.m.