Opportunity Through Data Textbook
  • Opportunity Through Data Textbook
  • Introduction
    • What is Data Science?
    • Introduction to Data Science: Exploratory Musical Analysis
  • Module 1
    • Introduction to Programming
      • The Command Line
      • Installing Programs
      • Python and the Command Line
      • Jupyter Notebook
    • Introduction to Python
      • Building Blocks of Python - Data Types and Variables
      • Functions
      • Formatting and Syntax
    • Math Review
      • Variables and Functions
      • Intro to Graphs
  • Module 2
    • Data Structures
      • Lists
      • Dictionaries
      • Tables
    • Programming Logic
      • Loops
      • Logical Operators
      • Conditionality
  • Module 3
    • Introduction to Probability
      • Probability and Sampling
    • Introduction to Statistics
      • Mean & Variance
      • Causality & Randomness
  • Module 4
    • Packages
    • Intro to NumPy
      • NumPy (continued)
  • Module 5
    • Introduction to Pandas
      • Introduction to Dataframes
      • Groupby and Join
    • Working with Data
    • Data Visualization
      • Matplotlib
      • Introduction to Data Visualization
  • Appendix
    • Table Utilities
    • Area of More Complicated Shapes
    • Introduction to Counting
    • Slope and Distance
    • Short Circuiting
    • Linear Regression
    • Glossary
  • Extension: Classification
    • Classification
    • Test Sets and Training Sets
    • Nearest Neighbors
  • Extension: Introduction to SQL
    • Introduction to SQL
    • Table Operations
      • Tables and Queries
      • Joins
  • Extension: Central Limit Theorem
    • Overview
    • Probability Distributions
      • Bernoulli Distribution
      • Uniform Distribution (Discrete)
      • Random Variables, Expectation, Variance
      • Discrete and Continuous Distributions
      • Uniform Distribution (Continuous)
      • Normal Distribution
    • Central Limit Theorem in Action
    • Confidence Intervals
  • Extension: Object-Oriented Programming
    • Object-Oriented Programming
      • Classes
      • Instantiation
      • Dot Notation
      • Mutability
  • Extension: Introduction to Excel
    • Introduction to Excel
      • Terminology and Interface
      • Getting Started with Analysis and Charts
      • Basics of Manipulating Data
    • Additional Features in Excel
      • Macros
      • The Data Tab
      • Pivot Tables
Powered by GitBook
On this page

Was this helpful?

  1. Extension: Central Limit Theorem
  2. Probability Distributions

Uniform Distribution (Discrete)

The discrete uniform distribution has an outcome space over a range of values, each of which happens with equal probability.

P(X=x)={1/(b−a+1),x∈{a,...,b}0,x∉{a,...,b}P(X = x) =\begin{cases}1/(b - a + 1), &x \in \{a, ..., b\}\\0, &x \notin \{a, ..., b\}\end{cases}P(X=x)={1/(b−a+1),0,​x∈{a,...,b}x∈/{a,...,b}​

A real-world system this distribution can model is rolling a fair 6 sided die. Here, a = 1 and b = 6, meaning that the die roll can result in a value from 1 to 6, each with a 1/6 probability of occurring.

Which of the following can be reasonably modeled by the discrete uniform distribution?

(a) A biased coin flip where the probability of heads is less than the probability of tails

(b) Drawing a queen from a standard deck of 52 cards

(c) A raffle where each ticket corresponds to a unique person

(c) is the correct answer because every person is represented by one ticket, and hence everyone has an equal chance of winning. (a) and (b) are both events that occur with probabilities that are not equal to the probabilities of the other events in that outcome space.

PreviousBernoulli DistributionNextRandom Variables, Expectation, Variance

Last updated 4 years ago

Was this helpful?