Home About us Mathematical Epidemiology Rweb EPITools Statistics Notes Web Design Contact us Links |

> Home > Statistics Notes > Probability > Complementary Events

But suppose we want to know how long we will have to wait for the first success. More precisely, we want to know what the chance is the first success will occur on the first trial, on the second trial, etc. In other words, we could let

The probability that a success will occur on any given trial is

The mean of the geometric distribution with success probability is

`dgeom(x,prob=p)`

gives you the probability that
there will be What is the chance that the success happens on the very first trial, if

```
> dgeom(0,prob=0.5)
```

What is the chance that the success happens on the third trial,
when the success probability is 1/6?```
> dgeom(2,prob=1/6)
```

You can use `rgeom`

to do a random experiment.
Suppose the success probability is 0.1. Simulate 1000 experiments:
```
> z <- rgeom(1000,prob=0.1)
```

> mean(z)

On to transformed random variables.

Return to statistics page.

Return to probability page.

Return to stochastic seminar.

All content © 2000 Mathepi.Com (except R and Rweb).

About us.