l3- Exhaustive Notes on Discrete Probability Distributions
BIO-209: Secrets to Success and Quiz Strategies
Maximizing Quiz Scores
RStudio Utilization: If a quiz question requires choosing between code snippets to achieve a specific result, students are encouraged to open the RStudio server, execute the provided options, and observe the outputs to determine the correct answer.
Interface Troubleshooting: If students experience difficulty clicking UI elements within the Learn platform, zooming out the browser view often resolves selection issues.
Open-Resource Policy: Quizzes are designed to be completed with access to lecture notes, lab documents, lecture recordings, and other provided content. Memorization of every line of R code is not expected.
Professional Context: In professional statistical practice, practitioners often refer to resources rather than relying on rote memorization; the priority is the ability to interpret resources and apply code effectively.
Effective Note-Taking and Synthesis
Students should revisit and revise their notes after class to reinforce memory and clarify initial thoughts.
Reflection Questions: Every quiz includes a reflection question at the end; answering this question provides a free point toward the score.
Submission Updates: Students no longer need to upload lab documents for internal assessment.
Deadline Management: Deadlines are generally one week following the conclusion of the specific lab section; students must verify these dates on the Learn platform via their individual timetables.
Technical Infrastructure and RStudio Server Access
Network Limitations: While the IT department initially indicated the RStudio server would be accessible campus-wide, student personal computers on the student-specific WiFi network are not automatically recognized as being "on campus."
Workaround Methods: Accessing the server from personal machines currently requires logging into a remote desktop at UC. Instruction for two specific methods have been provided on the course site.
Future Updates: IT hopes to provide direct server access without the remote desktop workaround by the middle of the semester, though this is not guaranteed.
Support Contact: Technical issues should be directed to the course-specific email at
biology209canterbury.ac.nz.
Introduction to Null Distributions and Probability Functions
The Null Hypothesis (H₀)
The null hypothesis serves as a baseline comparison for observations. It is used to determine if experimental observations carry enough evidence to reject this baseline state.
To test a null hypothesis, a null distribution is required.
Defining Probability Distributions
A probability distribution is a mathematical function that links every possible outcome of a variable with a specific probability of that outcome occurring.
Every outcome is technically possible; the distribution identifies which are more or less likely.
The choice of a null distribution depends entirely on the variable type (e.g., continuous variables like height vs. categorical variables).
Probability Mass Function (PMF)
The PMF is a plot that shows the probability of each specific possible discrete outcome.
In a PMF, the x-axis represents the possible outcomes (e.g., number of successes), and the y-axis represents the probability of those specific observations.
Cumulative Distribution Function (CDF)
The CDF represents the sum of the probabilities of all outcomes up to a certain point.
As you move from left to right across the distribution, the cumulative probability increases until it reaches a total sum of .
This function provides an indication of the rate at which probability space is allocated across the range of outcomes.
Bernoulli and Binomial Distributions
The Bernoulli Distribution
Definition: A distribution representing a single observation of a binary variable (a variable with only two possible outcomes, often denoted as and ).
Notation: Always capitalized (Bernoulli) as it is named after a person.
Parameters: It has one parameter, , which represents the probability of a success.
Outcomes: The outcome is either or .
The Binomial Distribution
Definition: The binomial distribution represents the outcome of a set of multiple independent Bernoulli trials.
Parameters:
: The probability of success in any single trial.
: The total number of trials conducted.
Outcomes: The outcome is an integer representing the number of successes.
Calculation Example (Fish and Plastic):
Scenario: in fish contain plastic.
Null Hypothesis (): Fish are equally likely to have plastic as not ().
Possible outcomes for fish: { yes/ no, yes/ no, yes/ no, yes/ no}.
Probability of fish with plastic: .
Combination Rule (n choose k): For the outcome of success in trials, there are three distinct paths ({Y, N, N}, {N, Y, N}, {N, N, Y}). Each path has a probability of . The total probability is the sum of these paths: .
R Function:
choose(n, k)Used to calculate "n choose k," which is the total number of combinations to achieve a certain outcome.
Format:
choose(n, k)wherenis the total number of trials andkis the number of successes.Example: For fish and finding with plastic,
choose(3, 2)returns .Example: For fish and seeking successes,
choose(5, 2)returns .
Biological Examples:
Biological sex: Male vs. Female.
Disease status: Condition present vs. Condition absent.
Ecology/Survival: Alive vs. Dead.
Presence data: Species present vs. Not present in an area.
The Uniform Distribution
Definition: Represents a scenario where every possible discrete outcome has exactly the same probability of occurring.
Assumptions:
The outcome is a discrete variable.
All outcomes are "equiprobable" (equally probable).
Properties:
PMF: Visually resembles a flat box, as each outcome (from to , for example) has a constant height/probability.
CDF: Visually represents a straight diagonal line, because every new outcome adds an identical amount to the cumulative sum.
Biological Example (Seagrass Preference):
If testing if pipefish prefer specific seagrass densities (Bare, Sparse, Patchy, Dense), a null hypothesis would assume they are equally likely to be found in any section.
The probability of being in any of the sections would be .
Other Examples:
Fair dice: Each of the sides has a probability of .
Null expectations for hair color or eye color categories.
Time durations between events (discrete or continuous).
The Poisson Distribution
Definition: Ideal for modeling counts of events that occur over a fixed interval of time or space, particularly when those events are rare.
Notation: Capitalized (Poisson) as it is named after a person.
Outcome Variables: Discrete numeric (integers). It is bounded at zero (cannot be negative) and theoretically extends toward infinity.
Parameter ():
Lambda () is the rate parameter.
In a Poisson distribution, represents both the mean and the variance of the distribution.
Shifting changes the shape: higher values shift the peak to the right and lower the probability of a zero-count outcome.
Case Study: Green Turtles in Fishing Nets:
Question: What is the probability that green turtles will be caught in fishing nets in ?
Context: Turtles are non-target species (bycatch), making captures rare events.
Utilizing Prior Knowledge: If historical data (e.g., and earlier) shows counts such as , we can calculate a mean.
Calculation:
Prior mean (and thus ) = .
Probability of observing turtles given is calculated as approximately .
Comparison to Binomial:
A Poisson count (turtles caught in a year) can be reframed as a binomial distribution if we define "trials" (e.g., the number of fishing nets cast or boats sent out) and "successes" (a net containing a turtle). However, Poisson is preferred when the probability of success is very low (rare events).
Summary of Discrete Distributions
Uniform: Categorical outcomes with equal probability under the null hypothesis.
Bernoulli/Binomial: Success/Failure (Yes/No) outcomes; Binomial is used for series of multiple trials.
Poisson: Used for integer counts (typically rare events) and rates (counts over time).