LoslegenKostenlos loslegen

Probability of a machine lasting X days

A new machine arrives in a factory. This type of machine is very unreliable: every day, it has a 10% chance of breaking permanently. How long would you expect it to last?

Notice that this is described by the cumulative distribution of the geometric distribution, and therefore the pgeom() function. pgeom(X, .1) would describe the probability that there are X working days before the day it breaks (that is, that it breaks on day X + 1).

Diese Übung ist Teil des Kurses

Foundations of Probability in R

Kurs anzeigen

Anleitung zur Übung

  • Use pgeom() to find the probability that the machine breaks on the 5th day or earlier.
  • Use pgeom() to find the probability that the machine is still working by the end of the 20th day.

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Find the probability the machine breaks on 5th day or earlier


# Find the probability the machine is still working on 20th day
Code bearbeiten und ausführen