MulaiMulai sekarang secara gratis

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).

Latihan ini adalah bagian dari kursus

Foundations of Probability in R

Lihat Kursus

Petunjuk latihan

  • 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.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

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


# Find the probability the machine is still working on 20th day
Edit dan Jalankan Kode