One Proportion Z Test Calculator

Run a one-proportion Z test from success count, trial count, and hypothesized population proportion

Example Results

1 examples

Test a single conversion rate

Check whether 60 successes out of 100 trials differs from a hypothesized 50% rate

{
  "result": {
    "sampleProportion": 0.6,
    "zStatistic": 2,
    "pValue": 0.0455,
    "rejectNull": true
  }
}
View input parameters
{ "successCount": 60, "trialCount": 100, "hypothesizedProportion": 0.5, "alternative": "two-sided", "alpha": 0.05, "decimalPlaces": 4 }

Key Facts

Category
Math, Date & Finance
Input Types
number, select
Output Type
json
Sample Coverage
4
API Ready
Yes

Overview

The One Proportion Z Test Calculator allows you to quickly determine if an observed sample proportion significantly differs from a hypothesized population proportion. By entering your success count, total trials, and expected proportion, this tool calculates the sample proportion, Z-statistic, and P-value to help you evaluate your statistical hypothesis with precision.

When to Use

  • When comparing an observed conversion rate or success rate against a known industry standard.
  • When evaluating if a manufacturing defect rate significantly exceeds an acceptable baseline threshold.
  • When analyzing survey data to see if a specific demographic's response proportion differs from historical averages.

How It Works

  • Enter the number of successful events (Success Count) and the total number of observations (Trial Count).
  • Input the expected baseline rate as the Hypothesized Proportion (e.g., 0.5 for 50%).
  • Select your alternative hypothesis (two-sided, greater, or less) and set your desired significance level (Alpha).
  • The calculator computes the sample proportion, Z-statistic, and P-value, indicating whether to reject the null hypothesis.

Use Cases

A marketing team testing if a new landing page's conversion rate is significantly higher than their historical 5% baseline.
A quality assurance manager checking if a batch of products has a defect rate greater than the acceptable 2% limit.
A political analyst determining if the proportion of voters supporting a specific policy differs from a previously established 50% benchmark.

Examples

1. Evaluating Landing Page Conversion Rate

Digital Marketer
Background
A marketer launched a new landing page and wants to know if the conversion rate is significantly different from the historical average of 15%.
Problem
Determine if 45 conversions out of 250 visitors represents a statistically significant change.
How to Use
Set Success Count to 45, Trial Count to 250, and Hypothesized Proportion to 0.15. Keep the alternative hypothesis as two-sided with an Alpha of 0.05.
Example Config
Success Count: 45, Trial Count: 250, Hypothesized Proportion: 0.15, Alternative: two-sided, Alpha: 0.05
Outcome
The calculator outputs a sample proportion of 0.18, a Z-statistic of 1.328, and a P-value of 0.1841. Since the P-value is greater than 0.05, the marketer concludes the change is not statistically significant.

2. Testing Manufacturing Defect Rates

Quality Assurance Manager
Background
A factory produces widgets with an acceptable defect rate of 2%. A recent batch seems to have more defects than usual.
Problem
Check if finding 12 defects in a sample of 300 widgets means the defect rate is significantly greater than 2%.
How to Use
Input 12 for Success Count (defects), 300 for Trial Count, and 0.02 for Hypothesized Proportion. Change the Alternative Hypothesis to 'Greater Than'.
Example Config
Success Count: 12, Trial Count: 300, Hypothesized Proportion: 0.02, Alternative: greater, Alpha: 0.05
Outcome
The tool calculates a sample proportion of 0.04, a Z-statistic of 2.474, and a P-value of 0.0067. The null hypothesis is rejected, confirming the defect rate is significantly higher than 2%.

Try with Samples

math-&-numbers

Related Hubs

FAQ

What is a one-proportion Z-test?

It is a statistical test used to determine whether the proportion of successes in a single sample significantly differs from a known or hypothesized population proportion.

What is the difference between a two-sided and one-sided test?

A two-sided test checks for any difference (greater or less) from the hypothesized proportion. A one-sided test specifically checks if the sample proportion is strictly greater than or less than the hypothesized value.

What does the P-value indicate?

The P-value measures the probability of observing your sample results if the null hypothesis is true. A P-value lower than your Alpha (typically 0.05) suggests the difference is statistically significant.

What is the Alpha value?

Alpha is the significance level, representing the probability of rejecting the null hypothesis when it is actually true. The standard default is 0.05, which represents a 5% risk.

Can I use this calculator for small sample sizes?

The Z-test assumes a normal distribution, which is generally valid if both the expected number of successes and failures are at least 10. For very small samples, an exact binomial test is recommended instead.

API Documentation

Request Endpoint

POST /en/api/tools/one-proportion-z-test-calculator

Request Parameters

Parameter Name Type Required Description
successCount number No -
trialCount number No -
hypothesizedProportion number No -
alternative select No -
alpha number No -
decimalPlaces number No -

Response Format

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON Data: JSON Data

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-one-proportion-z-test-calculator": {
      "name": "one-proportion-z-test-calculator",
      "description": "Run a one-proportion Z test from success count, trial count, and hypothesized population proportion",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=one-proportion-z-test-calculator",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]