Hypothesis Testing Population Proportion

## Description

Here, we will use R to perform a 1 proportion z test using the prop.test command.

The prop.test command takes parameters from these data to return a result. For a 1 proportion z test, we will use the following parameters:

• x: The number of successes, in other words $\hat{p} \cdot n$
• n: The sample size
• p: The proportion predicted by the null hypothesis
• alternative: Can be set to "two.sided", "greater" or "less", depending on the alternative hypothesis.
• conf.level: Sets the confidence level of the returned confidence interval.
• correct: Applies Yates's correction for continuity if TRUE. Does not apply if FALSE.

We will use the following specific parameters:

• x = 82
• n = 100
• p = 0.9
• alternative = "two.sided"
• correct = FALSE

## Sage Cell

#### Code

prop.test(x = 82, n = 100, p=0.9, alternative = "two.sided", correct = FALSE)


none

## Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

## Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

## Attribute

Permalink:

Author:

Date: 26 Apr 2019 02:14

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License