## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

# Time for action – testing the probability of success

We will use the R function `binom.test` for testing hypotheses problems related to p. This function takes as arguments `n` number of trials, `x` number of successes, `p` as the probability of interest, and `alternative` as one of `greater`, `less`, or `greater`.

1. Discover the details related to `binom.test` using `?binom.test`, and then run `example(binom.test)` and ensure that you understand the default example.
2. For the LCD panel manufacturer, we have `n` = 893 and `x` = 39. The null hypothesis occurs at `p` = 0.04. Enter this data first in R with the following code:
`n_lcd <- 893; x_lcd <- 39; p_lcd <- 0.04`
3. The alternative hypothesis is that the proportion of success `p` is greater than 0.04, which is listed to the `binom.test ...`

## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

No credit card required