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 11.

    • 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 00 and 11).

    • Notation: Always capitalized (Bernoulli) as it is named after a person.

    • Parameters: It has one parameter, pp, which represents the probability of a success.

    • Outcomes: The outcome xx is either 00 or 11.

  • The Binomial Distribution

    • Definition: The binomial distribution represents the outcome of a set of multiple independent Bernoulli trials.

    • Parameters:

    • pp: The probability of success in any single trial.

    • nn: The total number of trials conducted.

    • Outcomes: The outcome xx is an integer representing the number of successes.

    • Calculation Example (Fish and Plastic):

    • Scenario: 11 in 33 fish contain plastic.

    • Null Hypothesis (H0H_0): Fish are equally likely to have plastic as not (p=0.5p = 0.5).

    • Possible outcomes for 33 fish: {33 yes/00 no, 22 yes/11 no, 11 yes/22 no, 00 yes/33 no}.

    • Probability of 33 fish with plastic: 0.5×0.5×0.5=0.1250.5 \times 0.5 \times 0.5 = 0.125.

    • Combination Rule (n choose k): For the outcome of 11 success in 33 trials, there are three distinct paths ({Y, N, N}, {N, Y, N}, {N, N, Y}). Each path has a probability of 0.1250.125. The total probability is the sum of these paths: 0.125+0.125+0.125=0.3750.125 + 0.125 + 0.125 = 0.375.

  • 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) where n is the total number of trials and k is the number of successes.

    • Example: For 33 fish and finding 22 with plastic, choose(3, 2) returns 33.

    • Example: For 55 fish and seeking 22 successes, choose(5, 2) returns 1010.

  • 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 −3-3 to 33, 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 44 sections would be 0.250.25.

  • Other Examples:

    • Fair dice: Each of the 66 sides has a probability of 16\frac{1}{6}.

    • 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):

    • Lambda (λ\lambda) is the rate parameter.

    • In a Poisson distribution, λ\lambda represents both the mean and the variance of the distribution.

    • Shifting λ\lambda changes the shape: higher λ\lambda 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 33 green turtles will be caught in fishing nets in 20252025?

    • Context: Turtles are non-target species (bycatch), making captures rare events.

    • Utilizing Prior Knowledge: If historical data (e.g., 20242024 and earlier) shows counts such as 0,1,3,00, 1, 3, 0, we can calculate a mean.

    • Calculation:

    • Prior mean (and thus λ\lambda) = 1.141.14.

    • Probability of observing 33 turtles given λ=1.14\lambda = 1.14 is calculated as approximately 0.080.08.

  • 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).