---
title: "Step Function in Intro to Probability"
description: "Step function in Intro to Probability is a piecewise constant graph that jumps at set values, often showing a CDF or discrete probability pattern."
canonical: "https://fiveable.me/introduction-probability/key-terms/step-function"
type: "key-term"
subject: "Intro to Probability"
unit: "Unit 6"
---

# Step Function in Intro to Probability

## Definition

A step function is a piecewise constant function that stays flat on intervals and jumps at specific points. In Intro to Probability, you often see it as the graph of a cumulative distribution function for a discrete random variable.

## What It Is

A step function in Intro to Probability is a function that stays at one constant value over an interval, then jumps to a new value at a specific point. That shape makes it a natural way to describe probability when outcomes come in separate chunks instead of smoothly changing across every real number.

The most common place you see a step function in this course is a cumulative distribution function, or CDF. For a random variable X, the CDF F(x) gives the probability that X is less than or equal to x. If X is discrete, F(x) rises in jumps at the values that X can actually take, and it stays flat everywhere else.

That flat parts-plus-jumps structure is the whole point. The jump size at a value equals the probability mass at that outcome. So if a random variable has a 0.2 chance of being 3, the CDF increases by 0.2 when x passes 3. Before 3, that probability is not counted yet. After 3, it is included.

A step function is always non-decreasing in this setting, because cumulative probability can only stay the same or go up as x gets larger. It never drops. That makes the graph easy to read once you know what to look for: the horizontal pieces show ranges with no new probability, and the vertical jumps mark the possible outcomes.

Here is a simple example. Suppose X can be 1, 2, or 4 with probabilities 0.3, 0.5, and 0.2. Then the CDF is 0 for x < 1, jumps to 0.3 at x = 1, jumps to 0.8 at x = 2, and jumps to 1 at x = 4. That CDF is a step function, and each step matches one outcome’s probability.

## Why It Matters

Step functions show you how probability builds up across possible values, which is exactly what you need when you move from a probability mass function to a cumulative distribution function. Instead of checking one outcome at a time, you can see the total probability collected up to any cutoff.

That makes step functions useful for reading probabilities off a graph. If a problem asks for P(X <= 2), you can look at the height of the CDF at 2. If it asks for P(1 < X <= 4), you take the difference F(4) - F(1). The step structure turns probability questions into visual and arithmetic ones.

They also make discrete random variables easier to compare. Two distributions can have the same total probability, but very different shapes of jumps. The size and placement of the jumps tell you where the random variable is concentrated, which matters when you study expected value, medians, and percentiles later in the course.

If you understand step functions early, CDF problems stop feeling abstract. You can tell whether a graph makes sense, whether a CDF is valid, and where the probability mass lives. That is a useful habit in homework, quizzes, and any problem where the distribution is given as a graph instead of a formula.

## Connections

### Cumulative Distribution Function (CDF)

A step function is often the graph of a CDF for a discrete random variable. The CDF shows accumulated probability, so each jump adds the probability of one outcome. If you can read the steps, you can answer cutoff questions like P(X <= x) without rebuilding the whole distribution.

### Probability Mass Function (PMF)

The PMF gives the probability at each individual value, while the step function CDF adds those probabilities as x increases. Each jump in the CDF comes from a PMF value. A common move in problems is to go from a PMF table to the step-shaped CDF.

### Piecewise Function

A step function is a special kind of piecewise function because it uses different constant rules on different intervals. The difference is that the graph stays flat on each piece and changes suddenly at certain points. That structure is what makes it useful for discrete probability.

### [inverse cdf](/introduction-probability/key-terms/inverse-cdf)

The inverse CDF goes the other way, from a probability level back to a cutoff value. With a step function, you often find the smallest x where the CDF reaches a target probability. That is the basic move behind percentile-style questions.

## On the AP Exam

A quiz problem may give you a table of discrete probabilities and ask you to sketch the step-shaped CDF, or it may give you the graph and ask for a probability like P(X <= 3). The move is to read the jump sizes and cumulative heights carefully. Don’t treat the graph like a smooth curve, because the flat parts matter just as much as the jumps.

If the question asks whether a proposed CDF is valid, check that it never goes down, starts at 0 on the far left, and ends at 1 on the far right. If it is a step function, each jump should match a probability mass and the total jump height should add to 1. On homework, this often shows up as matching a PMF table to its CDF or finding a percentile from a graph.

## Step Function vs Probability Mass Function (PMF)

A PMF gives the probability of each exact outcome, while a step function in this course usually means the CDF graph that accumulates those probabilities. The PMF is point-by-point, but the step function is cumulative. If you mix them up, you will read the wrong height from the graph.

## Key Takeaways

- A step function stays constant on intervals and jumps at specific x-values.
- In Intro to Probability, step functions most often appear as cumulative distribution functions for discrete random variables.
- The height of each jump matches the probability mass at that outcome.
- A CDF built from a step function never decreases, because cumulative probability only stays the same or goes up.
- You can use the graph to find probabilities, cutoffs, and percentiles by reading cumulative height.

## FAQs

### What is a step function in Intro to Probability?

It is a piecewise constant function that jumps at certain x-values. In probability, you usually see it as the CDF of a discrete random variable, where each jump adds the probability of one outcome.

### How is a step function different from a PMF?

A PMF gives the probability at each exact value, while a step function CDF gives the total probability up to that value. The PMF is about individual outcomes, and the step function is about accumulated probability. They are connected, but they are not the same graph.

### What do the jumps in a step function mean?

Each jump shows where probability gets added to the cumulative total. The size of the jump equals the probability of that outcome. If there is no jump at a point, then no new probability is being added there.

### How do I use a step function on a problem set?

Read the graph as a CDF. If the problem asks for P(X <= x), use the height of the step at that x-value. If it asks for a range like P(a < X <= b), subtract the two cumulative heights.

## Related Study Guides

- [6.3 Cumulative distribution functions](/introduction-probability/unit-6/cumulative-distribution-functions/study-guide/L9POXOBkJHjQX3Vv)

## About This Document

Canonical Fiveable pages are available as Markdown at the same path plus `.md`.

- [llms.txt](https://fiveable.me/llms.txt): index of Fiveable's sections and URL patterns
- [llms-full.txt](https://fiveable.me/llms-full.txt): complete subject and unit listing
- [MCP server](https://fiveable.me/mcp): call Fiveable as tools instead of fetching pages (`https://fiveable.me/api/mcp`)
- [MCP server for AP teachers](https://fiveable.me/mcp/teachers): a teacher's classes, assignments and AP-rubric grading (`https://fiveable.me/api/mcp/teacher`)

## Structured Data

```json
{"@context":"https://schema.org","@graph":[{"@type":"LearningResource","@id":"https://fiveable.me/introduction-probability/key-terms/step-function#resource","name":"Step Function in Intro to Probability","url":"https://fiveable.me/introduction-probability/key-terms/step-function","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/introduction-probability/key-terms/step-function#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-07-03T02:23:02.089Z","isPartOf":{"@type":"Collection","name":"Intro to Probability Key Terms","url":"https://fiveable.me/introduction-probability/key-terms"},"author":{"@type":"Organization","@id":"https://fiveable.me/editorial#content-team","name":"Fiveable Content Team","url":"https://fiveable.me/editorial","parentOrganization":{"@id":"https://fiveable.me/#organization"},"member":[{"@type":"Person","name":"Amanda DoAmaral","sameAs":["https://www.linkedin.com/in/adoamaral"]},{"@type":"Person","name":"Becky Bahr","sameAs":["https://www.linkedin.com/in/becky-bahr-b52743132"]}]},"publisher":{"@type":"Organization","name":"Fiveable","url":"https://fiveable.me"}},{"@type":"DefinedTerm","@id":"https://fiveable.me/introduction-probability/key-terms/step-function#term","name":"Step Function","description":"A step function is a piecewise constant function that stays flat on intervals and jumps at specific points. In Intro to Probability, you often see it as the graph of a cumulative distribution function for a discrete random variable.","url":"https://fiveable.me/introduction-probability/key-terms/step-function","inDefinedTermSet":{"@type":"DefinedTermSet","name":"Intro to Probability Key Terms","url":"https://fiveable.me/introduction-probability/key-terms"}},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is a step function in Intro to Probability?","acceptedAnswer":{"@type":"Answer","text":"It is a piecewise constant function that jumps at certain x-values. In probability, you usually see it as the CDF of a discrete random variable, where each jump adds the probability of one outcome."}},{"@type":"Question","name":"How is a step function different from a PMF?","acceptedAnswer":{"@type":"Answer","text":"A PMF gives the probability at each exact value, while a step function CDF gives the total probability up to that value. The PMF is about individual outcomes, and the step function is about accumulated probability. They are connected, but they are not the same graph."}},{"@type":"Question","name":"What do the jumps in a step function mean?","acceptedAnswer":{"@type":"Answer","text":"Each jump shows where probability gets added to the cumulative total. The size of the jump equals the probability of that outcome. If there is no jump at a point, then no new probability is being added there."}},{"@type":"Question","name":"How do I use a step function on a problem set?","acceptedAnswer":{"@type":"Answer","text":"Read the graph as a CDF. If the problem asks for P(X <= x), use the height of the step at that x-value. If it asks for a range like P(a < X <= b), subtract the two cumulative heights."}}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Intro to Probability","item":"https://fiveable.me/introduction-probability"},{"@type":"ListItem","position":2,"name":"Key Terms","item":"https://fiveable.me/introduction-probability/key-terms"},{"@type":"ListItem","position":3,"name":"Unit 6","item":"https://fiveable.me/introduction-probability/unit-6"},{"@type":"ListItem","position":4,"name":"Step Function"}]}]}
```
