Probability Statistics

Cover

2 SAMPLING.pdf

Census and sampling fundamentals

This topic introduces the fundamental concepts distinguishing a census from sampling and outlines the primary reasons for employing sampling techniques, followed by the essential steps required for conducting a structured survey.

1.1 Census definition and characteristics

A census involves observing or measuring all the units within a defined population.

  • Outcome: A census produces the true values of the population parameters.

  • Limitations: It is typically expensive, time-consuming, and necessitates substantial training and support for execution.

1.2 Defining population and sample

Key terminology in survey methodology includes:

  • Population: This refers to the complete set of individuals, cases, or objects that share specific observable characteristics. A census is, by definition, a count of all elements within this population.

  • Target Population: This is the specific population to which a researcher ultimately intends to generalize the findings of their study.

  • Accessible Population: This population must be clearly defined and identified as a subset or reachable portion of the target population, providing the rationale for its selection.

  • Sample: A sample is simply a subset selected from a larger population.

  • Sampling: This is the statistical process dedicated to selecting a sample from a population, primarily intended to gather knowledge about the whole population, especially for making inferences based on statistical prediction.

Tip: Always ensure a clear, justified link between your accessible population and the broader target population when designing a study, as this dictates the scope of generalization.

1.3 Rationale for using sampling methods

Researchers often opt for sampling over conducting a full census due to several practical and logistical constraints:

  • Cost considerations.

  • Time efficiency, allowing for greater speed in data collection.

  • The destructive nature of certain tests, where testing every item would exhaust the population.

  • The pursuit of greater accuracy in results, often achievable with smaller, more manageable samples.

  • Physical impossibility of checking every item within a very large or infinite population.

  • Issues related to the general availability of all population elements.

1.4 Steps in conducting a survey

Conducting a robust survey requires a methodical, multi-stage approach, beginning with clear planning and concluding with analysis and reporting.

The essential steps are as follows:

  1. State the objective of the survey.

  2. Determine the population to be covered.

  3. Determine the specific data to be collected.

  4. Determine the required degree of precision.

  5. Select appropriate data collection tools (e.g., interview, questionnaire).

  6. Determine the sampling unit and the frame.

  • The frame is the list containing the sampling units. It is crucial that the frame be up to date, free from omissions, and free from duplication.
  1. Selection of the sampling plan (e.g., simple random sampling).

  2. Pretest the tools and conduct piloting.

  3. Training of enumerators and supervisors.

  4. Data collection.

  5. Inspection of the collected data.

  6. Data analysis.

  7. Report writing.

Example: If a researcher aims to estimate the average income of all residents in a city (Target Population), they might use voter registration lists as their Frame (Step 6) to select a statistically representative group of 1,000 individuals (Sample) for interviews (Step 5) 1.


Probability sampling methods

Probability sampling methods are selection techniques where every item or person within the population has a known, non-zero likelihood of being chosen for the sample. These methods are contrasted with non-probability sampling, which is used when representativeness is not the primary research goal.

2.1 Types of probability sampling

The document details three primary types of probability sampling methods: simple random, systematic random, and stratified random sampling.

2.1.1 Simple random sampling

Simple random sampling ensures that every individual or item in the total population has an equal chance of inclusion in the resulting sample.

Advantages:

  • It is straightforward to implement, particularly when utilizing computerized response systems or automatic dialing technologies.

Disadvantages:

  • A complete listing of all population elements is required for implementation.

  • The process can be time-consuming to execute.

  • It may necessitate larger overall sample sizes.

  • It tends to produce larger sampling errors compared to other methods.

  • It can be more expensive than alternative methods.

Cover

305Lecture27 - Logistic Regression.pdf

This study guide provides a comprehensive overview of logistic regression, its underlying theory, application to chronic kidney disease data, and estimation techniques.

introduction

This guide covers the specification, interpretation, and estimation of logistic regression models, focusing on their application in analyzing chronic kidney disease data 1 2.

learning outcomes

  • Specify the logistic regression model 2
  • Interpret the regression parameters (both β0\beta_0 and β1\beta_1) 2 19 20
  • Estimate the parameters using maximum likelihood methods when the response is in binary or binomial form 2 23

logistic regression models

model specification and interpretation

The logistic regression model is formulated for a binary outcome variable. For each patient ii, with i=1,…,200i=1,\dots,200, we define:

  • Yi=1Y_i = 1 if the patient has chronic kidney disease (CKD), and Yi=0Y_i = 0 otherwise 8 11.
  • The predictor variable is the packed cell volume (PCV), denoted as xix_i 7 8.
  • The probability of having CKD is given by πi=P(Yi=1)\pi_i = P(Y_i=1) 8.

The logistic regression model is based on the assumption:

log⁡πi1−πi=β0+β1xi\log\frac{\pi_i}{1-\pi_i} = \beta_0 + \beta_1 x_i

where β0\beta_0 (the intercept) and β1\beta_1 (the coefficient for PCV) are the model parameters 11.

Tip: This formulation ensures that the predicted probabilities πi\pi_i always lie between zero and one due to the properties of the logit function 16.

relationship with generalized linear models

Generalized linear models (GLMs) extend the linear regression framework to accommodate non-normal response distributions. Logistic regression is a specific case of a GLM where the response is binary, making it suitable for modeling outcomes such as the presence or absence of CKD 4 14.

Note: The logistic regression model is analogous to an alternative specification of the linear regression model, where instead of modeling the mean response directly, a transformation (logit) of the probability is modeled linearly 13 14.

binary distribution and interpretation

binary(π\pi) distribution

If a random variable YY follows a binary(π\pi) distribution, then it takes the values 0 ("failure") or 1 ("success") with probabilities P(Y=1)=πP(Y=1)=\pi and P(Y=0)=1−πP(Y=0)=1-\pi respectively 5.

interpretation of the model parameters

interpretation of β0\beta_0

The intercept β0\beta_0 represents the log-odds of having CKD when xi=0x_i = 0, i.e., when PCV is 0% (a theoretical scenario) 11 19.

interpretation of β1\beta_1

  • A one unit (or one percent) increase in PCV is associated with a change in the log-odds of CKD by β1\beta_1 20.
  • Expressing this in terms of odds, eβ1e^{\beta_1} represents the multiplicative factor by which the odds of CKD change for a one unit increase in PCV 20.
  • For example, if eβ1=2e^{\beta_1} = 2, then a one percent increase in PCV doubles the odds of CKD 20 21.

Important: Interpreting eβ1e^{\beta_1} is often more intuitive than β1\beta_1 since it provides a direct multiplicative change in odds 20.

graphical visualization and analysis considerations

visualizing the relationship

A simple scatterplot of the binary response YiY_i versus the continuous predictor xix_i (PCV) is generally uninformative because:

  • Points representing binary outcomes can overlap, making trends difficult to observe 9
  • The limited variation in YiY_i (only zeros and ones) does not reveal the underlying data trend 9

why logistic regression?

Due to the binary nature of the response variable and the difficulty in visualizing its relationship with the predictor, logistic regression becomes a reasonable modeling choice. It offers a robust way to directly model the probability of CKD as a function of PCV 10.

Cover

305Lecture29 - Logistic Regression with Multiple Predictors - Draft.pdf

This study guide covers the logistic regression model with multiple predictors used to analyze heart failure survival data.

Learning outcomes

The document outlines the learning outcomes for performing logistic regression analysis with multiple predictors, including the interpretation of regression coefficients, the construction of confidence intervals and hypothesis tests for single coefficients, and the implementation of the likelihood ratio test for multiple coefficients. 2

heart failure overview

Heart failure is defined as the inability of the heart to pump enough blood to meet the body’s demands. The study utilizes data on 299 patients from two medical centres in Faisalabad, Pakistan, all of whom had advanced heart failure (stage III or IV) and left ventricular systolic dysfunction.

Note: It is important to note that aside from the patients’ clinical conditions, there is limited information on the target or study population and the sampling protocol. 3

dataset description

The analysis focuses on a heart failure dataset where the response variable represents whether a patient survives beyond a 130-day study period. The response is binary (yes or no), and there are 11 predictor variables available; however, the discussion centers on four specific predictors:

  • Serum creatinine (in mg/dL)
  • Ejection fraction (in percentage)
  • Sex (coded as 11 for male and 00 for female)
  • Smoking status (coded as 11 for smoker and 00 for non-smoker)

The primary question of interest is to evaluate the effect of these four predictors on the probability that a patient survives. 4

specifying the model

The logistic regression model is set up to model the binary response variable YiY_i, where Yi=1Y_i = 1 if patient ii survives and 00 otherwise. The probability of survival is denoted by πi=P(Yi=1)\pi_i = P(Y_i = 1).

Tip: The logistic model assumes that the observations are independent and follow a Bernoulli distribution. 7

notation

The predictor variables are defined as:

  • x1ix_{1i}: Serum creatinine (mg/dL) for patient ii. 6
  • x2ix_{2i}: Ejection fraction (percentage) for patient ii. 6
  • x3ix_{3i}: Coded as 11 if patient ii is male and 00 otherwise. 6
  • x4ix_{4i}: Coded as 11 if patient ii is a smoker and 00 otherwise. 6

logistic regression model formulation

The logistic regression model is expressed as follows:

log⁡(πi1−πi)=β0+β1x1i+β2x2i+β3x3i+β4x4i\log\left(\frac{\pi_i}{1-\pi_i}\right) = \beta_0 + \beta_1 x_{1i} + \beta_2 x_{2i} + \beta_3 x_{3i} + \beta_4 x_{4i}

This formulation shows how the log odds of survival are modeled as a linear combination of the four predictors. 7

assessing independence

Even though detailed information about patient sampling is limited, it is assumed that each patient is measured only once and that there is no inherent order, which supports a cautious assumption of independence among the responses. 8

model fitting and interpretation

After fitting the logistic regression model, the regression output (R output) provides estimates for coefficients β^1\hat{\beta}_1 through β^4\hat{\beta}_4. 9

Reminder: Always verify that the assumptions (e.g., independence) hold, even if the sampling protocol is not entirely clear. 8

interpretation of regression coefficients

effect of serum creatinine

  • An increase of one unit (1 mg/dL) in serum creatinine is associated with an estimated increase of β^1=0.755\hat{\beta}_1 = 0.755 in the log odds of survival, while other predictors are held constant. 11
  • The odds of survival increase by a factor of e0.755≈2.13e^{0.755} \approx 2.13, meaning that, for patients with similar values in other predictors, a patient with a 1 mg/dL higher serum creatinine has about 2.13 times the odds of survival. 11

effect of smoking status

  • Smoking is associated with an estimated increase of β^4=0.0242\hat{\beta}_4 = 0.0242 in the log odds of survival, holding other predictors constant. 12
  • This corresponds to an odds ratio of e0.0242≈1.02e^{0.0242} \approx 1.02, indicating only a slight increase in the odds of survival for smokers compared to non-smokers when all other factors are equivalent. 12

fitted regression function and visualization

When dealing with multiple numeric predictors, visualizing the regression function can be challenging. One approach is to plot the estimated probability of survival against one predictor while holding the other predictors fixed. For example, for non-smoking patients with an ejection fraction fixed at 38 percent (the average in the dataset), the fitted regression function is provided by:

π^=11+e−(−0.599−0.755x1+0.0616×38+0.267x3)\hat{\pi} = \frac{1}{1 + e^{-(-0.599 - 0.755 x_1 + 0.0616 \times 38 + 0.267 x_3)}}

This expression allows the visualization of how serum creatinine influences the probability of survival for a specified group of patients. 13

Cover

37th_NSM_Quiz_Bee_Question_Bank (1).pdf

Table of contents

  1. Senior High School Statistics Quiz Bee Question Bank (50 Questions)
  2. Data Classification & Sampling in Tourism
  3. Descriptive Statistics & Data Summarization
  4. Advanced Analytics, Probability & Inferential Concepts

1. Senior High School Statistics Quiz Bee Question Bank (50 Questions)

1.1 Institutional trivia and theme specifications

This section covers trivia related to the National Statistics Month (NSM), including its coordinating body, celebration month, and official theme. It highlights the specific focus on tourism for the 37th NSM in 2026 1.

  • Coordinating body: The Philippine Statistics Authority (PSA) leads the nationwide celebration of the National Statistics Month.
  • Celebration month: The National Statistics Month is observed annually in October.
  • Theme tagline: The official theme for the 37th NSM in 2026 begins with "Tuklas Pilipinas".
  • Official theme: The complete theme is "Tuklas Pilipinas: Statistics as Beacon Towards Inclusive, Resilient, and Sustainable Tourism".
  • Legal directive: Presidential Proclamation No. 647, signed in 1990, established the annual observance of the National Statistics Month.
  • Theme pillars: The 37th NSM theme emphasizes three key attributes for tourism: Inclusive, Resilient, and Sustainable.
  • Economic sector focus: The 37th National Statistics Month is dedicated to the Tourism Industry.
  • Supporting agency: The Department of Tourism (DOT) works with the PSA to promote tourism data.
  • Metaphorical role: The theme uses "Beacon" to describe how statistics guide the tourism sector.
  • Inclusivity concept: Under the theme's objectives, "Inclusive Tourism" refers to the equitable distribution of tourism's economic benefits to marginalized communities 1.

2. Data Classification & Sampling in Tourism

2.1 Data classification in tourism

This section explores different types of quantitative variables and levels of measurement used in tourism research. It defines discrete and continuous variables, and nominal, ordinal, and interval levels of measurement 2 3.

  • Discrete variable: The number of foreign arrivals is a discrete variable because you can only have whole numbers of people.
  • Interval level: Recording the temperature of a pool in degrees Celsius uses the interval level of measurement.
  • Ordinal level: Rating flight experiences as "Excellent", "Good", "Fair", or "Poor" uses the ordinal level of measurement.
  • Continuous variable: The total monetary expenditure of a traveler is a continuous variable as it can be any amount of money.
  • Nominal level: Categorizing tourists by their country of origin (e.g., Japan, USA) uses the nominal level of measurement 2.
  • Qualitative/Categorical data: Data gathered from questions asking for a respondent's marital status is an example of qualitative or categorical data 3.

2.2 Sampling techniques in tourism

This part details various probability and non-probability sampling methods used in tourism research. It explains how samples are selected to represent larger populations and the errors that can occur 2 3.

  • Systematic Random Sampling: Selecting every 10th tourist exiting an airport terminal gate is an example of systematic random sampling.
  • Cluster Sampling: Dividing a province into regions and randomly selecting entire municipalities to survey is cluster sampling.
  • Stratified Random Sampling: Dividing tourists into age brackets and sampling proportionally from each group is stratified random sampling.
  • Convenience Sampling: Interviewing tourists simply because they are nearby and accessible at a beach lounge is convenience sampling 2.
  • Purposive/Judgmental Sampling: Using personal judgment to select tour guides with specialized environmental knowledge is purposive sampling 3.
Cover

3. Lecture Three - Measures of Location.pptx

Table of contents

  1. Lecture 3: Measures of Location and Dispersion
  2. Measures of Central Tendency
  3. Class Exercise
  4. Quantiles
  5. Measures of Dispersion
  6. Standardized Variable: Z-score
  7. Graphical description of Distributions: Empirical Rule
  8. Box & Whisker Plot
  9. Shape of Distributions
  10. Shape of Distributions: Kurtosis

1. Lecture 3: Measures of Location and Dispersion

1.1 Purpose of descriptive statistics

Descriptive statistics uses numerical and graphic techniques to summarize data sets and present that information more manageably. It aims to answer three main questions about a distribution:

  • Centre: Where is the data located? This is addressed by measures like the mean, median, and mode.
  • Spread: How spread out are the data values? This is described by measures such as range, interquartile range, variance, and standard deviation.
  • Shape: What does the distribution look like? This refers to symmetry (skewed) and kurtosis.

1.2 Measures of central tendency

Measures of central tendency identify the location of the center of a data set. There are three primary measures: mean, median, and mode.

These can be calculated for both raw (ungrouped) and grouped data.

1.3 Mean

The sample mean, denoted as xˉ\bar{x}, is calculated by summing all data entries of a variable and dividing by the number of data entries (nn). It is the most popularly used measure of central tendency and is also known as the average or expected value.

A population mean is a parameter, while the sample mean for grouped and ungrouped data is a statistic.

TypeFormula
Population Meanμ=∑NN\mu = \frac{\sum N}{N}
Sample Mean (Raw Data)xˉ=∑nn\bar{x} = \frac{\sum n}{n}
Sample Mean (Grouped Data)xˉ=∑fm∑f\bar{x} = \frac{\sum f m}{\sum f}

Advantages of the mean:

  • It utilizes all data points within a data set.
  • It is easy to understand and accurately calculate using well-known formulas.

Disadvantages of the mean:

  • Requires understanding of the components within the formula for accurate calculation.
  • Manual calculation can be more difficult, as an error in any step affects the final answer.

1.4 Median

The median is the value that divides an ordered data set into two equal parts, with 50% of the data above it and 50% below it.

  • If the number of data entries (NN or nn) is odd, the median is the central value.
  • If the number of data entries (NN or nn) is even, the median is the average of the two middle observations.

Median for Ungrouped Data: To calculate the median for ungrouped data, first order the data set. Example: For the data set {32, 17, 1, 82, 62, 7}, the ordered set is {1, 7, 17, 32, 62, 82}.

Since there are six data points (an even number), the median is the average of the third and fourth values: (17+32)/2=24.5(17 + 32) / 2 = 24.5.

Median for Grouped Data:

  1. Identify the median interval: This is the class interval containing the observation at position n/2n/2.
  2. Calculate the median value using the formula: Median =L+(n2−CFf)×w= L + \left( \frac{\frac{n}{2} - CF}{f} \right) \times w where:
  • LL is the lower boundary of the median class.
  • nn is the total number of observations.
  • CFCF is the cumulative frequency of the class preceding the median class.
  • ff is the frequency of the median class.
  • ww is the class width.

1.5 Mode

The mode is the data value that occurs with the greatest frequency.

  • A data set may have no mode if all values occur with the same frequency.
  • A data set can have more than one mode (bimodal, trimodal, etc.).

Mode for Ungrouped Data:

  • Example: The set {1; 3; 8; 10; 2; 9; 15} has no mode.
  • Example: The set {2; 5; 7; 9; 9; 9; 10; 11} has a mode of 9.
  • Example: The set {2; 3; 4; 4; 4; 5; 7; 7; 7; 9} is bimodal with modes 4 and 7.

Mode for Grouped Data:

  1. Identify the modal interval: This is the class interval with the highest frequency.
  2. Calculate the modal value using the formula: Mode =L+(fm−fm−1(fm−fm−1)+(fm−fm+1))×w= L + \left( \frac{f_m - f_{m-1}}{(f_m - f_{m-1}) + (f_m - f_{m+1})} \right) \times w where:
  • LL is the lower boundary of the modal class.
  • fmf_m is the frequency of the modal class.
  • fm−1f_{m-1} is the frequency of the class before the modal class.
  • fm+1f_{m+1} is the frequency of the class after the modal class.
  • ww is the class width.

The relationship between the mean, median, and mode can indicate the shape of the distribution:

  • Normal distribution: Mean = Median = Mode.
  • Positively skewed distribution: Mode < Median < Mean.
  • Negatively skewed distribution: Mean < Median < Mode.

![Three frequency distribution curves illustrating the relationship between mean, median, and mode in skewed and normal distributions.](https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/71aaa1c4-2c23-4eec-95e2-0cf73db3a088/courses/0bb0da1a-7efe-44cd-80bd-ee470ffc8acd/figures/1a30a4f3-bb75-440b-96d8-d0dc1d5ea3fd/fig_011_01_ba660a99

Cover

4ffbddba-94e6-46c3-a637-c90afe1ac033.pdf

📚 4ffbddba-94e6-46c3-a637-c90afe1ac033.pdf

Brief overview

This document provides a foundational understanding of probability theory and its application in data analysis. It covers essential statistical concepts, common probability distributions, and methods for interpreting data, equipping readers with tools for statistical reasoning.

Key points

  • Overview of fundamental probability concepts and calculations for events.
  • Explanation of descriptive statistics including measures of central tendency and dispersion.
  • Exploration of probability distributions like binomial and normal, and their approximations.
  • Application of statistical theorems to interpret real-world data.
  • Data analysis using contingency tables and frequency distribution shapes.

1. Introduction to probability and basic concepts

1.1 Types of probability

  • Classical probability: Based on equally likely outcomes, often used for games of chance. Example: rolling a fair die.
  • Relative frequency probability: Based on observed data from past experiments or occurrences. Example: predicting weather based on historical data.
  • Subjective probability: Based on personal belief, intuition, or opinion. Example: a specialist's hunch about interest rates. .

1.2 Calculating basic probabilities

When selecting items randomly, the probability of an event depends on the total number of items and the number of favorable outcomes.

  • Scenario: 11 toys, 7 red and 4 green. Choosing two toys at random.

  • Probability of choosing two red toys:

    • Total ways to choose 2 toys from 11: (112)=11×102×1=55\binom{11}{2} = \frac{11 \times 10}{2 \times 1} = 55.
    • Ways to choose 2 red toys from 7: (72)=7×62×1=21\binom{7}{2} = \frac{7 \times 6}{2 \times 1} = 21.
    • P(two red)=2155≈0.38P(\text{two red}) = \frac{21}{55} \approx 0.38. .
  • Probability of choosing one red and one green toy:

    • Ways to choose 1 red from 7: (71)=7\binom{7}{1} = 7.
    • Ways to choose 1 green from 4: (41)=4\binom{4}{1} = 4.
    • Ways to choose 1 red AND 1 green: 7×4=287 \times 4 = 28.
    • P(one red, one green)=2855≈0.51P(\text{one red, one green}) = \frac{28}{55} \approx 0.51. .
  • Probability of choosing at least one green toy:

    • This is 1−P(no green toys)=1−P(two red toys)1 - P(\text{no green toys}) = 1 - P(\text{two red toys}).
    • P(at least one green)=1−2155=3455≈0.62P(\text{at least one green}) = 1 - \frac{21}{55} = \frac{34}{55} \approx 0.62. .
  • Probability of choosing a red then a green toy (order matters):

    • P(first red)=711P(\text{first red}) = \frac{7}{11}.
    • After picking one red, 10 toys remain (6 red, 4 green).
    • P(second green | first red)=410P(\text{second green | first red}) = \frac{4}{10}.
    • P(red then green)=P(first red)×P(second green | first red)=711×410=28110≈0.25P(\text{red then green}) = P(\text{first red}) \times P(\text{second green | first red}) = \frac{7}{11} \times \frac{4}{10} = \frac{28}{110} \approx 0.25. .

🔑 Important: When order matters, use permutations. When order does not matter, use combinations.

1.3 Mutually exclusive and independent events

Understanding the relationship between events is crucial for probability calculations.

  • Mutually exclusive events: Events that cannot occur at the same time. If A and B are mutually exclusive, then P(A and B)=0P(A \text{ and } B) = 0.
  • For mutually exclusive events, the probability of A OR B occurring is the sum of their individual probabilities: P(A or B)=P(A)+P(B)P(A \text{ or } B) = P(A) + P(B).
  • Complementary events: Two events that are mutually exclusive and together cover all possible outcomes. If A is an event, its complement is denoted as A̅. P(A) + P(A̅) = 1. Complementary events are mutually exclusive.
  • Independent events: The occurrence of one event does not affect the probability of the other event occurring. If A and B are independent, then P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B).
  • If events are dependent (not independent), P(A and B)=P(A)×P(B∣A)P(A \text{ and } B) = P(A) \times P(B|A) or P(B)×P(A∣B)P(B) \times P(A|B).

🔑 Important: If events A and B are mutually exclusive, P(A and B)=0P(A \text{ and } B) = 0, which is not greater than 0. Complementary events ARE mutually exclusive. If events are dependent, P(A and B)≠P(A)P(B)P(A \text{ and } B) \neq P(A)P(B). .

1.4 Calculating probabilities with given values

Given probabilities can be used to find other related probabilities.

  • Given probabilities:

    • P(A)=0.22P(A) = 0.22
    • P(B)=0.39P(B) = 0.39
    • P(C)=0.35P(C) = 0.35
    • P(C∣B)=0.55P(C|B) = 0.55
    • P(A and C)=0P(A \text{ and } C) = 0
    • P(A and B)=0.09P(A \text{ and } B) = 0.09
  • Calculations

Cover

5.1+Notes+Schoology(1).pptx.pdf

Table of contents

  1. Chapter 5 Probability: What Are the Chances?

1. Chapter 5 Probability: What Are the Chances?

1.1 Randomness, probability, and simulation

Chance behavior is unpredictable in the short term but follows a predictable pattern in the long run. The law of large numbers states that as we observe more repetitions of a chance process, the proportion of times a specific outcome occurs gets closer to a single value.

This value is the probability of that outcome, a number between 0 and 1 that represents the long-run relative frequency of the outcome 3.

There are common myths about randomness that can be misleading. The myth of short-run regularity suggests that random phenomena should be predictable in the short term, but probability does not allow for such predictions.

The myth of the "law of averages" incorrectly assumes that past outcomes influence future ones; in reality, future outcomes are not affected by past behavior 4.

A simulation is the imitation of chance behavior using a model that accurately reflects the situation. To perform a simulation, one must:

  • State: Clearly define the question of interest about a chance process.
  • Plan: Describe how to use a chance device (like a calculator or random number table) to imitate one repetition of the process and what to record.
  • Do: Carry out many repetitions of the simulation.
  • Conclude: Use the simulation results to answer the original question 5.

Physical devices, random number tables, and technology can all be used to perform simulations 5.

1.2 Example: NASCAR collectible cards

A breakfast cereal company offers a promotion where each box contains one of five collectible NASCAR driver cards: Jeff Gordon, Dale Earnhardt, Jr., Tony Stewart, Danica Patrick, or Jimmie Johnson. The company claims each card is equally likely to appear in any box.

A fan buys boxes until she collects all five unique cards and is surprised it takes her 23 boxes. The question is: what is the probability that it takes 23 or more boxes to get a full set of 5 cards 6?

To simulate this, we can assign numbers 1 through 5 to represent each driver. Using a random number generator, such as randInt(1,5) on a calculator, we can simulate buying one box and recording the card.

We repeat this process, recording the number of boxes opened until all five unique numbers (1 to 5) have appeared 7.

After 50 repetitions of this simulation, the maximum number of boxes needed to collect all five cards was 22 9.

📝 The simulation results showed that in 50 repetitions, we never needed more than 22 boxes to get the full set of NASCAR drivers' cards. Therefore, our estimate for the probability of needing 23 or more boxes is approximately 0. The NASCAR fan should be surprised by how many boxes she had to buy 9.

The simulation results can be visualized using a dot plot, where the x-axis shows the number of boxes opened and the y-axis represents the frequency of each outcome 9.

A dot plot showing the number of boxes needed to collect a full set of NASCAR driver cards, with the x-axis representing the number of boxes and the y-axis representing the frequency of each outcome.

The simulation suggests that needing 23 or more boxes to complete the set is very unlikely 9.

The proportion of heads in coin tosses approaches 0.5 as the number of tosses increases, illustrating the law of large numbers 3.

Two line graphs illustrate the proportion of heads over tosses, demonstrating the law of large numbers.

Cover

5.2+Notes+Schoology.pptx+(1).pdf

Table of contents

  1. Probability: What Are the Chances?
  2. Two-way Tables and Probability
  3. General Addition Rule for Two Events
  4. Venn Diagrams and Probability
  5. Section Summary

1. Probability: What Are the Chances?

1.1 Probability models

A probability model describes a chance process and includes a sample space and a probability for each outcome. The sample space (S) is the set of all possible outcomes.

An event is any collection of outcomes from the sample process, which is a subset of the sample space. The probability of an event A is written as P(A).

A table displays the probability distribution of age groups for distance-learning college students.

1.2 Basic rules of probability 7 8

There are several fundamental rules that govern probabilities:

  • The probability of any event must be between 0 and 1, inclusive.
  • The sum of probabilities for all possible outcomes in the sample space must equal 1.
  • For equally likely outcomes, the probability of an event A is the number of outcomes in A divided by the total number of outcomes in the sample space.
  • The probability that an event does not occur is 1 minus the probability that it does occur (complement rule).
  • If two events have no outcomes in common (mutually exclusive), the probability that either one or the other occurs is the sum of their individual probabilities (addition rule for mutually exclusive events).

Two events are mutually exclusive (or disjoint) if they cannot happen at the same time, meaning their joint probability is 0.

RuleSymbolic FormDescription
Any event A0 ≤ P(A) ≤ 1Probability is between 0 and 1.
Sample space SP(S) = 1The probability of all outcomes is 1.
Equally likely outcomesP(A) = (Number of outcomes in A) / (Total number of outcomes)Calculates probability when all outcomes have the same chance.
Complement ruleP(A^C) = 1 – P(A)Probability of an event not happening.
Addition rule for mutually exclusive eventsIf A and B are mutually exclusive, P(A or B) = P(A) + P(B)Probability of either of two disjoint events occurring.

1.3 Applying probability rules

Probability models and rules can be used to calculate the likelihood of specific events. For instance, if we know the probability of a student being in a certain age group, we can calculate the probability of them not being in that group.

Example: Applying probability rules Consider distance-learning college students. If the probability of a randomly selected student being in the 18 to 23 age group is 0.57, the probability of a student not being in this age group is calculated using the complement rule: P(not 18 to 23 years) = 1 - P(18 to 23 years) = 1 - 0.57 = 0.43 9.

📝 The probability of a randomly selected distance-learning student being in the 18 to 23 age group is 0.57. The probability of a student not being in this age group is 1 - 0.57 = 0.43 9.

1.4 Modeling with two-way tables and Venn diagrams

Two-way tables and Venn diagrams are useful tools for visualizing and calculating probabilities involving two events. A two-way table organizes data by two categorical variables, showing the counts or probabilities for each combination of categories.

A Venn diagram uses overlapping circles to represent events and their relationships.

  • Two-way tables help calculate probabilities for events that are not mutually exclusive. For example, you can find the probability of event A occurring, event B occurring, or both occurring.
  • Venn diagrams visually represent the sample space and events. The overlap between circles shows the intersection of events (outcomes common to both).

These tools are essential for applying the general addition rule, which accounts for the possibility of overlapping events.

1.5 The general addition rule

The general addition rule allows us to calculate the probability that either event A or event B (or both) occurs. It is stated as: P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)

This rule is important because it subtracts the probability of the intersection (P(A and B)P(A \text{ and } B)) to avoid double-counting outcomes that are in both events. If events A and B are mutually exclusive, then P(A and B)=0P(A \text{ and } B) = 0, and the general addition rule simplifies to the addition rule for mutually exclusive events.

Illustrations of dice rolls showing different outcomes. 6

Cover

5a890255-8f8e-428b-abe6-c2bc44a4828a.pdf

📚 5a890255-8f8e-428b-abe6-c2bc44a4828a.pdf

Brief overview

This document provides a comprehensive guide to statistical inference, covering the foundational concepts of sampling distributions and their application in hypothesis testing and confidence intervals for means and proportions. It also delves into the analysis of relationships between variables through linear regression and correlation.

Key points

  • Overview of sampling distributions for sample mean and proportion.
  • Performing hypothesis tests for population proportions and means.
  • Conducting analysis of variance (ANOVA) for multiple groups.
  • Understanding linear regression and correlation analysis.
  • Practical application of statistical inference in various scenarios.

1. Sampling distributions of sample mean and proportion

1.1 Sampling distribution of the sample mean (xˉ\bar{x})

  • Population mean (μxˉ\mu_{\bar{x}}): The mean of the sampling distribution of the sample mean is equal to the population mean.
    • μxˉ=μ\mu_{\bar{x}} = \mu.
  • Population standard deviation (σxˉ\sigma_{\bar{x}}): This is also known as the standard error of the mean. It is calculated by dividing the population standard deviation by the square root of the sample size.
    • σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}.

1.1.1 Normality condition

  • The Central Limit Theorem (CLT) states that the sampling distribution of the sample mean can be approximated by a normal distribution if the sample size (nn) is sufficiently large.
    • Typically, n≥30n \geq 30 is considered large enough.
  • If the population itself is normally distributed, the sampling distribution of the sample mean will also be normal, regardless of the sample size.

🔑 Important: CLT allows us to use normal distribution methods even if the population isn't normal, as long as the sample is large.

1.1.2 Confidence intervals for the population mean (μ\mu)

  • Point estimate: The sample mean (xˉ\bar{x}) is the best point estimate for the population mean (μ\mu).
  • Critical values: These depend on the confidence level and whether the population standard deviation (σ\sigma) is known.
    • If σ\sigma is known or n≥30n \geq 30, use zz-scores.
    • If σ\sigma is unknown and n<30n < 30 (and population is normal), use tt-scores.
  • Confidence Interval formula:
    • When σ\sigma is known or n≥30n \geq 30: xˉ±zα/2(σn)\bar{x} \pm z_{\alpha/2} \left( \frac{\sigma}{\sqrt{n}} \right)
    • When σ\sigma is unknown: xˉ±tα/2,n−1(sn)\bar{x} \pm t_{\alpha/2, n-1} \left( \frac{s}{\sqrt{n}} \right)

🔑 Important: The choice between zz and tt critical values is crucial and depends on whether the population standard deviation is known.

1.1.2.1 Example: Confidence Interval

  • Scenario: Sample mean (xˉ\bar{x}) = 7, sample standard deviation (ss) = 2.5, sample size (nn) = 25, confidence level = 90%.
    • Since σ\sigma is unknown and n<30n < 30, we use the tt-distribution.
    • The critical value for 90% confidence with df=25−1=24df = 25 - 1 = 24 is t0.05,24=2.064t_{0.05, 24} = 2.064.
    • The margin of error is t×sn=2.064×2.525=2.064×0.5=1.032t \times \frac{s}{\sqrt{n}} = 2.064 \times \frac{2.5}{\sqrt{25}} = 2.064 \times 0.5 = 1.032.
    • The confidence interval is 7±1.0327 \pm 1.032, which is (5.968,8.032)(5.968, 8.032).
    • The upper limit is approximately 8.032.

1.1.2.2 Example: Upper limit calculation

  • Scenario: Sample mean (xˉ\bar{x}) = 6.8, sample standard deviation (ss) = 1.6, sample size (nn) = 16, confidence level = 95%.
    • Since σ\sigma is unknown and n<30n < 30, we use the tt-distribution.
    • The critical value for 95% confidence with df=16−1=15df = 16 - 1 = 15 is t0.025,15=2.131t_{0.025, 15} = 2.131.
    • The margin of error is t×sn=2.131×1.616=2.131×0.4=0.8524t \times \frac{s}{\sqrt{n}} = 2.131 \times \frac{1.6}{\sqrt{16}} = 2.131 \times 0.4 = 0.8524.
    • The confidence interval is 6.8±0.85246.8 \pm 0.8524, which is (5.9476,7.6524)(5.9476, 7.6524).
    • The upper limit is approximately 7.652.

1.1.3 Hypothesis testing for the population mean (μ\mu)

  • Test statistic: Calculated to determine how far the sample mean is from the hypothesized population mean.
    • When σ\sigma is known or n≥30n \geq 30: z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}
    • When σ\sigma is unknown: t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}}
  • Rejection region:
Cover

5 Chi-Square Tests F26.pdf

Table of contents

  1. Outline
  2. Hardy Weinberg Equilibrium
  3. Kaplan-Meier Survival Analysis
  4. Up Next…

1. Outline

1.1 Today's topics

  • Today's topics include Chi-Square Tests, such as Goodness of Fit, Test of Independence, McNemar’s Test, Stuart-Maxwell Test, One-Sample Variance Test, and Multisample Median Test.
  • Special cases covered are Hardy-Weinberg Equilibrium and Kaplan-Meier Survival Analysis 2.

1.2 Chi-Square Tests: General Information

  • Chi-Square tests are used with nominal independent and dependent data, typically summarized in contingency tables.
  • A contingency table has r rows representing categories of one variable and c columns representing categories of a second variable 3.

📝 The Test of Independence assesses whether two variables are related across their categories 4.

1.3 Chi-Square Goodness of Fit Test

  • The Goodness of Fit test determines if a sample follows a particular distribution, assessing if one variable exhibits a predicted frequency pattern across its categories 4.
  • This test requires counts of categories as actual frequencies, not percentages or proportions.
  • It assumes independent samples and requires at least 5 values for each observation category, though it is robust to this assumption for uniform distributions.
  • The degrees of freedom (df) are calculated as (number of categories – 1) 5.
  • The calculated χ2\chi^2 value is obtained by summing (O–E)2/E(O – E)^2/E for each category, where O is the observed count and E is the expected count.
  • This calculated value is then compared to a critical χ2\chi^2 value for a specific alpha level and df 6.
  • If the null hypothesis (H0H_0) is rejected, the largest (O–E)2/E(O – E)^2/E residual value can indicate which category differs from expectations, potentially leading to additional chi-square tests 7.

1.4 Chi-Square Test of Independence

  • The Test of Independence assesses whether two variables are related across their categories 4.
  • It uses counts of categories for two variables as actual frequencies.
  • The test assumes random samples and requires at least 5 values for each observation category, with robustness for uniform distributions.
  • Degrees of freedom (df) are calculated as (r–1)∗(c–1)(r – 1)\ast(c – 1), where r is the number of categories for one variable and c is for the second 8.
  • The expected count (E) for each cell is calculated as (row total ×\times column total)/n 9.

📝 For a 2x2 table with cell counts a, b, c, and d, the Odds Ratio is calculated as a×db×c\frac{a \times d}{b \times c} 11.

1.5 Continuity Correction

  • For a degrees of freedom of 1 in Chi-Square tests, a continuity correction is applied as an approximation of the Fisher Exact Test 10.

1.6 Chi-Square Effect Size

  • Effect size measures quantify the magnitude of the observed effect in Chi-Square tests 11.
MeasureFormulaNotes
Fei (for goodness of fit)N×∑(O−E)2EN \times \sum \frac{(O-E)^2}{E}N = total number of observations
Cramer’s V (for test of independence)χ2N×(k−1)\sqrt{\frac{\chi^2}{N \times (k-1)}}N = total number of observations, k = min(number of rows, number of columns)
Odds Ratio (for 2x2 tables)a×db×c\frac{a \times d}{b \times c}Where a, b, c, d are cell counts in a 2x2 table.

1.7 McNemar’s Test

  • McNemar’s Test compares the proportions of two groups of paired samples, most commonly used for before/after or positive/negative sampling designs.
  • The test focuses on discordant pairs (where the outcome differs between the paired observations) 12.
  • Degrees of freedom (df) are calculated as (r–1)∗(c–1)(r – 1)\ast(c – 1).
  • A continuity correction is applied if b+c<25b + c < 25, where b and c represent the counts in the off-diagonal cells of the contingency table 13.
—After +After –Row Totals
Before +aba + b
Before –cdc + d
Column Totalsa + cb + dn

1.8 Stuart-Maxwell Test

  • The Stuart-Maxwell Test compares the proportions of two or more groups of paired samples.
  • This test is computationally complex and often revisited using statistical software.
  • Cramer’s V is used for effect size calculation with this test 14.

1.9 One Sample Variance Test

  • This test compares the sample variance to an expected population variance.
  • The formula involves the expected population variance (σE2\sigma_E^2) and degrees of freedom (df) calculated as n–1n – 1 15.

1.10 Multisample Median Test

  • The Multisample Median Test checks if all medians are the same across multiple samples.
  • If all medians are equal, each sample should have an equal number of observations above and below the grand median (the median of all combined samples).
  • This test utilizes the framework of the Test of Independence.
  • Ob