82
3. n It is a vector of observations. 4. size It is the number of trials. 5. prob It is the probability of the success of each trial.
Binomial Distribution
The binomial distribution is also known as discrete probability distribution, which is used to find the probability of success of an event. The event has only two possible outcomes in a series of experiments. The tossing of the coin is the best example of the binomial distribution. When a coin is tossed, it gives either a head or a tail. The probability of finding exactly three heads in repeatedly tossing the coin ten times is approximate during the binomial distribution.
R allows us to create binomial distribution by providing the following function:
These function can have the following parameters:
S.No | Parameter | Description |
---|---|---|
1. | x | It is a vector of numbers. |
2. | p | It is a vector of probabilities. |