Statistics, Data Science, R Programming, Programming, Machine Learning.
called a Bernoulli trial or Bernoulli experiment and a sequence of outcomes is called a Bernoulli process. Example: Consider a coin toss where the probability of getting the head is 0.5 and getting a tail is 0.5. Code: We use dbern(x, prob) x= vector of length 1 prob= the probability of success for