explain.binomial {LearningRlab}R Documentation

Binomial Distribution Function Explained

Description

Step by step demonstration of the binomial distribution calculus.

Usage

explain.binomial(n,x,p)

Arguments

x

Should be a numbers.

n

Should be a numbers.

p

Should be a numbers.

Details

To calculate the binomial distribution, the user should give three number (the number of trials, probability of success and binomial random variable). The result is a discrete probability distribution that counts the number of successes in a sequence of n independent Bernoulli trials with a fixed probability p of occurrence of success between trials. We can saw the binomial distribution formule in the binomial_ help document.

Value

Numeric result and the process of this calculus explained.

Note

Each variable is a number. Example: n <- 3 | x <- 2 | p <- 0.7

Author(s)

Jose Manuel Gomez Caceres, josemanuel.gomezc@edu.uah.es
Juan Jose Cuadrado, jjcg@uah.es
Universidad de Alcala de Henares

Examples

  
  #data creation
  n = 3
  x = 2
  p = 0.7
    
  explain.binomial(n,x,p)
  
    

[Package LearningRlab version 2.4 Index]