ComeçarComece de graça

Calculating the variance

What is the variance of a binomial distribution where 25 coins are flipped, each having a 30% chance of heads?

Este exercício faz parte do curso

Foundations of Probability in R

Ver curso

Instruções do exercício

  • Calculate this using the exact formula you learned in the lecture: the variance of the binomial is size * p * (1 - p). Print this result to the screen.
  • Confirm with a simulation of 10,000 trials.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Calculate the variance using the exact formula


# Confirm with a simulation using rbinom
Editar e executar o código