Probability Statistics

Cover

Poisson_Distribution.pptx

1. Introduction to Poisson distribution

This section introduces the Poisson distribution as a probability model for rare events occurring within a specific interval.

1.1 Origin and purpose of the Poisson distribution

The Poisson distribution was developed in 1837 by the French mathematician Simeon Denis Poisson. It is specifically designed to model the behavior of rare events, earning it the moniker "the law of improbable events." This distribution is invaluable when analyzing phenomena where the total number of possible outcomes is difficult or impossible to determine, yet the number of occurrences (successes) can be counted.

Note: The Poisson distribution is particularly useful in scenarios where the binomial distribution is not applicable due to the difficulty in defining or counting the total number of trials or potential "failures."

1.2 Examples of Poisson experiments

Poisson experiments are characterized by outcomes that can be counted as a numerical value representing the number of occurrences within a defined time interval or spatial region. Common examples include:

  • The number of telephone calls received by an office per hour.
  • The number of typing errors found on a specific printed page.
  • The number of deaths occurring in a particular district over a given year.
  • The count of cars arriving at a toll gate within a fixed period.
  • The number of defective items, such as screws or blades, produced in a manufacturing batch.
  • The arrival of customers at a supermarket checkout counter during a specified time frame.

1.3 Contrast with the binomial distribution

While both the binomial and Poisson distributions deal with counts of events, they differ significantly in their applicability and underlying assumptions.

  • Binomial Distribution: This distribution is suitable for experiments where there is a fixed number of independent trials, each with two possible outcomes (success or failure), and a constant probability of success. It allows for the counting of both successes and failures.
  • Poisson Distribution: This distribution is used when the number of trials is very large and the probability of success is very small, making it impractical to define or count the total number of trials or failures. The Poisson distribution focuses solely on the number of successes (occurrences) within a given interval.

Example: Consider traffic accidents at a busy intersection. We can easily count the number of accidents (successes) within an hour. However, it is virtually impossible to count the number of "non-accidents" (failures) that could have happened but didn't. In such cases, the Poisson distribution is more appropriate than the binomial distribution.

1.4 Defining Poisson experiments and random variables

A Poisson experiment is an experiment that yields a numerical value for a random variable representing the number of outcomes (or "successes") occurring within a specific time interval or a defined region.

A Poisson random variable, denoted by XX, is a random variable that represents the number of outcomes that occur in a Poisson experiment.

The Poisson distribution is the probability distribution associated with a Poisson random variable. It describes the probability of observing a specific number of events within a given interval, assuming these events occur with a known average rate and independently of the time since the last event.

Important: The Poisson distribution inherently assumes that the events are rare and occur independently. The rate at which these events occur is assumed to be constant over the interval of interest.

2. Limiting case and questions en Answers to practice questions

This section details the limiting case of the Poisson distribution and provides practice questions with their corresponding solutions, illustrating the application of the Poisson distribution to problems involving rare events.

2.1 Limiting case of the Poisson distribution

The Poisson distribution is a discrete probability distribution that expresses the probability of a given number of events occurring in a fixed interval of time or space if these events occur with a known constant mean rate and independently of the time since the last event. It is particularly useful for modeling rare events, where the probability of an event occurring in a small interval is very low, but the number of intervals is large.

The Poisson distribution can be viewed as a limiting case of the binomial distribution under specific conditions. Consider a binomial experiment with nn trials and probability of success pp. If nn is large and pp is small, such that the product npnp remains constant, the binomial distribution can be approximated by the Poisson distribution. Let λ=np\lambda = np. The probability mass function (PMF) of the binomial distribution is: P(X=k)=(nk)pk(1−p)n−kP(X=k) = \binom{n}{k} p^k (1-p)^{n-k} As n→∞n \to \infty and p→0p \to 0 with np=λnp = \lambda,

Cover

POPULATION VS.docx

Table of contents

  1. Population vs. Sample and Measurement Scales
  2. Percent vs. Percentage Point and Stock Returns
  3. Descriptive Statistics: Measures of Location
  4. Descriptive Statistics: Measures of Dispersion and Association between Variables
  5. Covariance and Correlation
  6. Probability and Random Variables
  7. Continuous Probability Distributions
  8. Sampling and Statistical Inference
  9. t Distributions

1. Population vs. Sample and Measurement Scales

1.1 Population and Sample

The distinction between a population and a sample is fundamental in statistical inference. A population encompasses all elements of interest for a given study, while a sample is a subset of that population that is actually examined.

  • Population: The complete set of all elements under consideration.
  • Examples include all adults in the U.S. or all possible monthly stock returns.
  • Sample: A subset of the population from which data is collected.
  • Examples include 1000 randomly selected adults for an opinion poll or 72 months of stock returns.
  • Population parameter: A numerical characteristic describing a population.
  • Example: The percentage of all U.S. adults who believe AI does more harm than good.
  • Sample statistic: A numerical characteristic describing a sample, used to estimate a population parameter.
  • Example: In a sample of 3270 U.S. adults, 39% believed AI does more harm than good.

1.2 Measurement Scales

Measurement scales categorize the type of data collected and dictate the statistical analyses that can be performed. These scales range from simple categorical labels to quantitative measures with meaningful ratios.

ScalePropertiesExamples
NominalUses labels or categories to define attributes.Nationality, gender
OrdinalHas nominal properties and allows ranking or ordering.Food safety ratings (e.g., poor, fair, good), education level
IntervalHas ordinal properties and equal intervals between data points, but no true zero.Temperature in degrees Fahrenheit or Celsius
RatioHas interval properties and a true zero, allowing for meaningful ratios.Height, weight, income, median sales price

1.3 Qualitative vs. Quantitative Data

Data can be broadly classified based on the measurement scale used to obtain it. This classification is crucial for selecting appropriate analytical methods.

Data TypeAssociated Measurement Scales
Qualitative dataNominal, Ordinal
Quantitative dataInterval, Ratio

1.4 Percentage Point vs. Percent Change

Distinguishing between percentage point changes and percent changes is vital for accurate interpretation of numerical shifts, especially in financial and economic contexts.

  • A percentage point change refers to the absolute difference between two percentages.
  • A percent change refers to the relative change between two values, expressed as a percentage of the original value.

📝 If the price of a latte increases from $2 to $3, the percent change is 50% (($3 - $2) / $2 * 100%). It does not make sense to discuss a percentage point change in this context, as the initial values are not percentages. If an interest rate increases from 10% to 12%, it increased by 2 percentage points (12% - 10%) or 20 percent ( (12% - 10%) / 10% * 100%).

2. Percent vs. Percentage Point and Stock Returns

2.1 Percent vs. Percentage Point

The distinction between percentage point changes and percent changes is crucial for accurate interpretation of financial and statistical data. A percentage point change refers to the absolute difference between two percentages, while a percent change describes the relative change of one percentage with respect to another.

  • Percentage point change: This is the direct subtraction of one percentage from another. It is used when comparing two rates or proportions directly.
  • Percent change: This measures the relative increase or decrease of a value. It is calculated as the difference between the new and old value, divided by the old value, and then multiplied by 100.

2.2 Stock Returns

Stock returns quantify the profitability of an investment in a stock over a specific period. They account for both capital appreciation and any income generated, such as dividends.

The formula for calculating the stock return (RR) for a single period is: Rt=(Pt−Pt−1)+DtPt−1R_t = \frac{(P_t - P_{t-1}) + D_t}{P_{t-1}}

Where:

  • Pt−1P_{t-1} is the stock price at the beginning of the period.
  • PtP_t is the stock price at the end of the period.
  • DtD_t represents any dividends paid during the period.

📝 Suppose you purchased a stock at the beginning of year 1 for $20 per share. The stock's price at the end of year 1 was $10, and at the end of year 2, it was $22. Calculate the returns for year 1 and year 2.

Cover

Practice Exam Statistics 1_A__xid-2180042_1.pdf

📚 Practice Exam Statistics 1_A__xid-2180042_1.pdf

Brief overview

This document provides a focused review of fundamental statistical concepts essential for understanding data analysis and study design. It then progresses to practical applications of hypothesis testing, preparing the reader for common statistical problem-solving scenarios.

Key points

  • Overview of variable types and study designs.

  • Introduction to hypothesis testing and probability calculations.

  • Exploration of normal distributions, means, standard deviations, and percentiles.

  • Application of the central limit theorem and variance calculations.

  • Practical hypothesis testing scenarios with P-value interpretation.


1. Introduction to statistical concepts and study design

1.1 Variables and study types

  • Qualitative variables describe categories or qualities.

    • Nominal variables have no inherent order (e.g., weather types: sunny, cloudy, rainy).

    • Ordinal variables have a natural order but the difference between categories is not standardized (e.g., satisfaction levels: low, medium, high).

  • Quantitative variables represent numerical values.

    • Discrete variables can only take specific, separate values, often counts (e.g., number of visitors).

    • Continuous variables can take any value within a range (e.g., height, weight).

Variable types: Qualitative (nominal, ordinal) vs. Quantitative (discrete, continuous).

  • Experimental studies involve manipulating variables to observe effects.

  • Observational studies record data without intervention.

    • In observational studies, the units are the subjects or items being measured (e.g., days, individuals).

    • The population is the entire group of interest, while a sample is a subset of that population.

Study unit: The item being measured (e.g., a day, a person).

1.2 Hypothesis testing and probability

  • A null hypothesis (H_0H\_0) is a statement of no effect or no difference.

  • An alternative hypothesis (H_aH\_a) is what the researcher wants to find evidence for.

  • A statistical test uses sample data to decide whether to reject H_0H\_0.

  • The significance level (alpha\\alpha) is the probability of rejecting H_0H\_0 when it is actually true (Type I error).

Hypothesis testing: H_0H\_0 (no effect) vs. H_aH\_a (effect exists).

  • Probability of events:

    • Let A be reading newspapers and B be watching TV news.

    • P(A)=0.45P(A) = 0.45, P(B)=0.80P(B) = 0.80.

    • P(AcapB)=0.30P(A \\cap B) = 0.30 (probability of both).

  • The probability of neither A nor B is P(textnotAtextandnotB)=1−P(AcupB)P(\\text{not } A \\text{ and not } B) = 1 - P(A \\cup B).

  • Using the inclusion-exclusion principle: P(AcupB)=P(A)+P(B)−P(AcapB)P(A \\cup B) = P(A) + P(B) - P(A \\cap B).

    • P(AcupB)=0.45+0.80−0.30=0.95P(A \\cup B) = 0.45 + 0.80 - 0.30 = 0.95.

    • P(textneitherAnorB)=1−0.95=0.05P(\\text{neither A nor B}) = 1 - 0.95 = 0.05.

Probability of neither: 1−P(AcupB)=1−(P(A)+P(B)−P(AcapB))1 - P(A \\cup B) = 1 - (P(A) + P(B) - P(A \\cap B)).

  • Mutually exclusive events cannot occur at the same time (P(AcapB)=0P(A \\cap B) = 0).

  • Independent events mean the occurrence of one does not affect the probability of the other (P(AcapB)=P(A)P(B)P(A \\cap B) = P(A)P(B)).

  • Events A and B are not mutually exclusive (P(AcapB)=0.30neq0P(A \\cap B) = 0.30 \\neq 0).

  • They are not independent because P(A)P(B)=0.45times0.80=0.36neqP(AcapB)=0.30P(A)P(B) = 0.45 \\times 0.80 = 0.36 \\neq P(A \\cap B) = 0.30.

Independence check: P(AcapB)P(A \\cap B) vs. P(A)timesP(B)P(A) \\times P(B).

1.3 Probability distributions

  • Binomial distribution is used for the number of successes in a fixed number of independent trials, each with two outcomes.

    • If nn is the number of trials and pi\\pi is the probability of success, the distribution is Bin(n,pi)Bin(n, \\pi).
  • Normal distribution is a continuous distribution, bell-shaped and symmetric.

    • It is characterized by its mean (mu\\mu) and standard deviation (sigma\\sigma).

    • The probability density function is f(x)=frac1sigmasqrt2pie−frac12(fracx−musigma)2f(x) = \\frac{1}{\\sigma\\sqrt{2\\pi}}e^{-\\frac{1}{2}(\\frac{x-\\mu}{\\sigma})^2}.

Normal distribution: Symmetric, defined by mu\\mu and sigma\\sigma.

  • For a normal distribution, probabilities can be found using Z-scores: Z=fracx−musigmaZ = \\frac{x - \\mu}{\\sigma}.

  • The variance of a random variable is the average of the squared differences from the mean, denoted as sigma2\\sigma^2.

  • If a variable yy has variance sigma_y2\\sigma\_y^2, and a new variable w=y+cw = y + c (where cc is a constant), the variance of ww is sigma_w2=sigma_y2\\sigma\_w^2 = \\sigma\_y^2. Adding or subtracting a constant does not change the variance.

  • If w=cyw = cy, then sigma_w2=c2sigma_y2\\sigma\_w^2 = c^2 \\sigma\_y^2.

  • If w=x−yw = x - y and x and y are independent, then sigma_w2=sigma_x2+sigma_y2\\sigma\_w^2 = \\sigma\_x^2 + \\sigma\_y^2. The standard deviation is sigma_w=sqrtsigma_x2+sigma_y2\\sigma\_w = \\sqrt{\\sigma\_x^2 + \\sigma\_y^2}.

Cover

[Prem_S._Mann]_Introductory_Statistics7 (3).pdf

Table of contents

  1. Chapter 2: Organizing and graphing data
  2. Chapter 3: Numerical descriptive measures
  3. Chapter 4: Probability
  4. Chapter 5: Discrete random variables and their probability distributions
  5. Chapter 6: Continuous random variables and the normal distribution
  6. Chapter 7: Sampling distributions
  7. Chapter 8: Estimation of the mean and proportion
  8. Chapter 9: Hypothesis tests about the mean and proportion
  9. Chapter 10: Estimation and hypothesis testing: Two populations
  10. Chapter 11: Chi-square tests
  11. WHAT IS YOUR favorite season?
  12. Chapter 13: Simple linear regression
  13. Chapter 14: Multiple regression
  14. Appendix A: Sample surveys, sampling techniques, and design of experiments
  15. Appendix B: Explanation of data sets
  16. Appendix C: Statistical tables

1. Chapter 2: Organizing and graphing data

1.1 Key terms and calculations

This section introduces fundamental terms and calculations used in organizing and describing data. These include relative frequency, percentage of a class, class midpoint, class width, cumulative relative frequency, and cumulative percentage.

  • Relative frequency of a class: The proportion of observations falling into a specific class. It is calculated as the frequency of the class divided by the total number of observations.
  • Percentage of a class: The relative frequency of a class multiplied by 100.
  • Class midpoint or mark: The average of the upper and lower limits of a class interval. It is calculated as (Upper limit + Lower limit) / 2.
  • Class width: The difference between the upper and lower boundaries of a class interval.
  • Cumulative relative frequency: The sum of the relative frequencies for a class and all preceding classes.
  • Cumulative percentage: The cumulative relative frequency multiplied by 100 3.

1.2 Formulas for descriptive statistics 3

This section outlines key formulas for calculating descriptive statistics, including measures of central tendency and dispersion for both ungrouped and grouped data.

StatisticFormula for Ungrouped DataFormula for Grouped Data
Meanxˉ=∑xn\bar{x} = \frac{\sum x}{n} or μ=∑xN\mu = \frac{\sum x}{N}xˉ=∑mfn\bar{x} = \frac{\sum mf}{n} or μ=∑mfN\mu = \frac{\sum mf}{N}
Variances2=∑x2−(∑x)2nn−1s^2 = \frac{\sum x^2 - \frac{(\sum x)^2}{n}}{n-1} or σ2=∑x2−(∑x)2NN\sigma^2 = \frac{\sum x^2 - \frac{(\sum x)^2}{N}}{N}s2=∑m2f−(∑mf)2nn−1s^2 = \frac{\sum m^2f - \frac{(\sum mf)^2}{n}}{n-1} or σ2=∑m2f−(∑mf)2NN\sigma^2 = \frac{\sum m^2f - \frac{(\sum mf)^2}{N}}{N}
Standard Deviations=s2s = \sqrt{s^2} or σ=σ2\sigma = \sqrt{\sigma^2}s=s2s = \sqrt{s^2} or σ=σ2\sigma = \sqrt{\sigma^2}
RangeLargest value - Smallest value—

📝 For grouped data, the mean is calculated as xˉ=∑mfn\bar{x} = \frac{\sum mf}{n}, where mm is the class midpoint and ff is the frequency of the class 3.

1.3 Chebyshev's Theorem and Empirical Rule

These statistical rules provide insights into the distribution of data relative to the mean and standard deviation. Chebyshev's Theorem applies to any distribution, while the Empirical Rule is specific to bell-shaped distributions.

  • Chebyshev's Theorem: For any distribution and any value k>1k > 1, at least 1−1k21 - \frac{1}{k^2} of the data values lie within kk standard deviations of the mean.
  • Empirical Rule: For a bell-shaped distribution:
  • Approximately 68% of the data falls within 1 standard deviation of the mean (μ±1σ)(\mu \pm 1\sigma).
  • Approximately 95% of the data falls within 2 standard deviations of the mean (μ±2σ)(\mu \pm 2\sigma).
  • Approximately 99.7% of the data falls within 3 standard deviations of the mean (μ±3σ)(\mu \pm 3\sigma) 3.

📝 For any distribution, at least 1−1k21 - \frac{1}{k^2} of the data values lie within kk standard deviations of the mean. For k=2k=2, at least 1−122=0.751 - \frac{1}{2^2} = 0.75 or 75% of the data lies within 2 standard deviations of the mean 3.

1.4 Quartiles and Percentiles

Quartiles and percentiles are measures used to divide a ranked data set into specific portions, indicating the position of a value within the distribution.

  • Q1 (First Quartile): The median of the lower half of the ranked data set.
  • Q2 (Second Quartile): The median of the entire ranked data set.
  • Q3 (Third Quartile): The median of the upper half of the ranked data set.
  • Interquartile Range (IQR): The difference between the third and first quartiles (IQR=Q3−Q1IQR = Q3 - Q1). It measures the spread of the middle 50% of the data.
  • kth Percentile: The value below which kk% of the data falls. It is found by identifying the value of the kn100\frac{kn}{100}th term in a ranked data set.
  • Percentile Rank of xix_i: The percentage of values in the data set that are less than xix_i. It is calculated as Number of values less than xiTotal number of values×100\frac{\text{Number of values less than } x_i}{\text{Total number of values}} \times 100 3.

1.5 Standard Normal Distribution Table

The sta

Cover

Presentation_APSTF_02_04_2026_2.pdf

📚 Presentation_APSTF_02_04_2026_2.pdf

Brief overview

This document introduces exponential smoothing methods, tracing their evolution and applications in time series analysis. It covers foundational techniques like Simple Exponential Smoothing, Holt's method for trends, and Holt-Winters for seasonality, alongside broader time series modeling methodologies. Understanding these methods is crucial for accurate forecasting across various domains.

Key points

  • Overview of exponential smoothing methods and their historical development
  • Principles and application of Simple Exponential Smoothing (SES)
  • Holt's method for time series with trends and Holt-Winters for seasonality
  • Box-Jenkins methodology for time series model identification, estimation, and validation
  • Introduction to classical time series forecasting models like AR, MA, ARMA, and ARIMA

1. Introduction to exponential smoothing methods

1.1 Overview of exponential smoothing

Exponential smoothing methods emerged more recently than classical time series techniques, initially developed for industrial applications like inventory management. These methods have demonstrated significant forecast accuracy, often surpassing expectations.

The evolution of these techniques includes:

  • Simple exponential smoothing (SES): suitable for time series lacking trend or seasonality.
  • Holt's method: incorporates trend for series with linear evolution.
  • Winters method (Holt-Winters): handles series with both trend and seasonal components, additively or multiplicatively.

The selection of an appropriate exponential smoothing method is guided by the observed structure of the time series, typically identified by examining its time plot (chronogram).

  • Series Type | Appropriate Method ---|--- Locally constant | Simple exponential smoothing Linear trend | Holt smoothing Seasonal (with or without trend) | Winters smoothing 3.

1.2 Simple exponential smoothing (SES)

Simple exponential smoothing (SES) is applied to time series exhibiting neither trend nor seasonality. The core of SES involves estimating a smoothed level for the series.

  • Smoothing Formula: St=αYt+(1−α)St−1S_t = \alpha Y_t + (1-\alpha)S_{t-1}
  • StS_t: smoothed level at time tt.
  • α\alpha: smoothing constant (0<α<10 < \alpha < 1).
  • YtY_t: observed value at time tt.
  • S0S_0: initial value, often set to Y1Y_1 or an initial average.
  • The forecast for hh periods ahead is Y^t+h=St\hat{Y}_{t+h} = S_t.

This formula can be interpreted as a local weighted regression on a constant model, where Yt=α+ϵtY_t = \alpha + \epsilon_t.

An alternative formulation updates the smoothed level using the forecast error:

  • St=St−1+αet−1S_t = S_{t-1} + \alpha e_{t-1}
  • et−1=Yt−Y^t−1e_{t-1} = Y_t - \hat{Y}_{t-1} is the forecast error at time t−1t-1.

This formulation indicates that the new forecast is a corrected version of the previous forecast, with the magnitude of correction proportional to the last forecast error 5.

The exponential formulation reveals SES as a weighted sum of past observations: St=αYt+∑j=1t−1α(1−α)jYt−j+(1−α)tS0S_t = \alpha Y_t + \sum_{j=1}^{t-1} \alpha(1-\alpha)^j Y_{t-j} + (1-\alpha)^t S_0 This represents a weighted average of past values, where weights decrease exponentially over time. The sum of weights equals 1.

If α=0\alpha=0, St=S0S_t=S_0; if α=1\alpha=1, St=YtS_t=Y_t 6.

1.2.1 ARIMA representation of SES

SES can be represented as an ARIMA(0,1,1) model. The basic SES formulation is St=αYt+(1−α)St−1S_t = \alpha Y_t + (1-\alpha)S_{t-1}, with forecast error et=Yt−Y^t−1=Yt−St−1e_t = Y_t - \hat{Y}_{t-1} = Y_t - S_{t-1}.

By substituting the expressions for StS_t and St−1S_{t-1}, we derive the ARIMA form:

  • Yt−Yt−1=et−(1−α)et−1Y_t - Y_{t-1} = e_t - (1-\alpha)e_{t-1}

Using the difference operator ∇\nabla and lag operator BB:

  • ∇Yt=(1−(1−α)B)et\nabla Y_t = (1 - (1-\alpha)B)e_t
  • ∇Yt=(1−B)Yt=Yt−Yt−1\nabla Y_t = (1-B)Y_t = Y_t - Y_{t-1} 7.

1.3 Application in R

The forecast package in R can be used to apply exponential smoothing methods. For example, fitting SES to the AirPassengers dataset:

  • library(forecast)
  • plot(AirPassengers)
  • ses_model <- ses(AirPassengers, h=12)
  • summary(ses_model)

The summary output provides model information, smoothing parameters (e.g., alpha), initial states, error measures, and forecasts. The point forecast for each future period remains constant in SES if the model is fitted to a series without trend or seasonality.

Forecast method: Simple exponential smoothing Model Information: Simple exponential smoothing Call: ses(y = AirPassengers, h = 12) Smoothing parameters: alpha = 0.9999 Initial states: l = 111.9892 sigma: 33.8299 AIC AICc BIC 1733.787 1733.958 1742.696 Er

Cover

Primer zavrsnog ispita_917729fe019414b26513d9666ac7e531.pdf

📚 Primer zavrsnog ispita_917729fe019414b26513d9666ac7e531.pdf

Brief overview

This document serves as a primer for a final exam, covering essential statistical concepts and their practical applications. It aims to equip students with the knowledge to analyze data, conduct hypothesis tests, and interpret statistical models relevant to various fields.

Key points

  • Overview of hypothesis testing for proportions and independence, including regression parameter estimation.
  • Understanding index numbers and time series analysis, addressing base selection and seasonal variations.
  • Rules for selecting appropriate probability distributions and assessing hypothesis testing errors.
  • Application of statistical concepts in analyzing trade data and income-shopping frequency relationships.
  • Introduction to descriptive statistics, inferential statistics, and probability spaces.

1. Hypothesis testing for proportions and independence

1.1 Testing hypotheses for proportions

This section covers hypothesis tests for population proportions, comparing proportions between two groups, and testing for independence between categorical variables. These tests help determine if observed differences or associations in sample data are statistically significant.

1.1.1 Comparing two proportions

Hypothesis tests are used to compare proportions from two independent samples. The goal is to see if the proportion in one group is significantly different from the proportion in another group.

Key idea: We compare sample proportions to make inferences about population proportions.

  • Scenario: A sample of 100 female traders found 30 would trade stocks. A sample of 150 male traders found 75 would trade stocks.
  • Test objective: At a 5% significance level, test if the proportion of women traders is less than the proportion of men traders.

1.1.2 Testing for independence

This involves testing if there is a statistically significant association between two categorical variables. The null hypothesis is that the variables are independent, meaning there is no relationship between them.

Key idea: We check if two categories, like income and shopping frequency, are linked.

  • Scenario: A survey of 100 respondents about monthly income and shopping frequency.
Shopping frequencyUp to three timesThree or more times
Up to 40 thousand1618
40-80 thousand1312
Over 80 thousand2021
  • Test objective: Calculate the test statistic for the hypothesis that monthly income and shopping frequency are dependent variables.
  • Test details: Determine the degrees of freedom and the critical value for the test statistic at a 10% significance level.

Key concept: The Chi-squared test is commonly used for testing independence.

1.2 Simple linear regression and confidence intervals

This section focuses on estimating parameters for a simple linear regression model. It also includes calculating a confidence interval for the change in product supply based on price.

1.2.1 Estimating regression parameters

Simple linear regression models the relationship between a dependent variable and a single independent variable. The model assumes a linear relationship.

Key idea: We find the best-fitting line to describe how one variable changes with another.

  • Data: Product price (in thousands of dollars) and product supply (in thousands of units) from six products.
    • Prices: 36, 42, 54, 58, 66, 72
    • Supplies: 116, 120, 128, 130, 138, 152
  • Task: Estimate the parameters of the simple linear regression model and interpret the slope coefficient.

1.2.2 Confidence interval for product supply change

A confidence interval provides a range of plausible values for a population parameter. Here, it's used to estimate the average change in product supply for a specific change in price.

Key concept: This interval quantifies the uncertainty in our estimate of how supply changes with price.

  • Task: With 95% confidence, estimate the average change in product supply per five thousand dollar increase in price.

Key idea: We use the regression model to predict changes in supply for a given price change.

🔑 Important: Understanding regression allows us to quantify and predict relationships between variables.

Cover

Probabilidad_Liliana Blanco.PDF

1. Conceptos básicos y fundamentación histórica de la probabilidad (part 1)

Este apartado inicial establece las bases históricas de la teoría de la probabilidad, define los conceptos fundamentales como experimento aleatorio y espacio muestral, y comienza la construcción formal de los espacios de probabilidad a través de σ\sigma-álgebras.

1.1. Fundamentación histórica y desarrollo conceptual

La teoría de la probabilidad tiene sus raíces en los juegos de azar, con registros que datan de la época del emperador romano Augusto (63 A.C.-14 D.C.).

  • Desarrollo Clásico: En el siglo XVI, Gerolamo Cardano comenzó a tratar el azar matemáticamente. Los siglos XVII y XVIII vieron avances significativos impulsados por el cálculo infinitesimal.

    • Ley de los Grandes Números: Debido a James Bernoulli, indica que en experimentos con dos resultados (éxito/fracaso), la proporción de éxitos tiende a estabilizarse alrededor de la probabilidad de éxito al aumentar las repeticiones.
    • Teorema de DeMoivre-Laplace (1733, 1785, 1812): Establece que para nn grande, una variable aleatoria binomial con parámetros nn y pp se aproxima a una distribución normal con media npnp y varianza np(1−p)np(1-p) 11.
  • Claridad Conceptual Temprana: A pesar de los avances, la definición inicial de probabilidad de Laplace (cociente de casos favorables sobre casos posibles, asumiendo equiprobabilidad) carecía de rigor.

    • Existieron debates sobre "igualmente probables": Karl Stumpf lo asoció a la falta de conocimiento del resultado, mientras que Johann von Kriess exigía conocimiento objetivo (como saber que las bolas en una urna son iguales en número).
  • Axiomatización: A principios del siglo XX, la probabilidad aún no era una disciplina matemática consolidada.

    • En 1900, David Hilbert propuso como sexto problema la axiomatización del cálculo de probabilidades.
    • Primera Aproximación (Bohlmann, 1901): Definió p(E)p(E) como un número no negativo tal que: i) p(evento seguro)=1p(\text{evento seguro}) = 1, y ii) si E1E_1 y E2E_2 son mutuamente excluyentes, p(E1 o E2)=p(E1)+p(E2)p(E_1 \text{ o } E_2) = p(E_1) + p(E_2) 12.
    • Precursor de Kolmogorov: Ugo Broggi presentó un trabajo doctoral donde se afirmaba erróneamente la equivalencia entre aditividad y σ\sigma-aditividad.
    • Concepto de Medida: Wiman introdujo el concepto de medida en la probabilidad geométrica, aunque Borel advirtió que la proporcionalidad a longitud/área/volumen era solo una convención, no una definición de probabilidad .
    • Axiomatización de Kolmogorov: Andrei Nikolaevich Kolmogorov formalizó la teoría usando la teoría de la medida en su libro "Grundbegriffe der Wahrscheinlichkeitsrechnung". Esto definió rigurosamente el espacio de probabilidad, eventos, variables aleatorias, independencia y probabilidad condicional. También estableció las bases de los procesos estocásticos, incluyendo el teorema de consistencia 13 .
  • Aplicaciones Relevantes: La probabilidad es fundamental en física (ej. movimiento browniano, modelado por Einstein en 1905 y matemáticamente por Bachelier en 1900), finanzas (ej. modelo de Samuelson, fórmula Black-Scholes/Merton) y es crucial para modelar fenómenos aleatorios en diversas ciencias 14.

1.2. Conceptos fundamentales del espacio de probabilidad

El objetivo inicial es desarrollar la medida de probabilidad y sus propiedades básicas, comenzando por definir qué tipo de experimentos se estudian 15.

1.2.1. Experimento aleatorio y espacio muestral

  • Experimento aleatorio: Un experimento cuyo resultado no se puede predecir de antemano.
  • Espacio muestral (Ω\Omega): El conjunto de todos los posibles resultados de un experimento aleatorio. Sus elementos w∈Ωw \in \Omega se llaman puntos muestrales.

Example: Experimento: Lanzamiento de una moneda corriente. Ω={cara (c), sello (s)}\Omega = \{\text{cara (c), sello (s)}\}. Example: Experimento: Observar el número de lanzamientos hasta obtener la primera cara. Ω={1,2,…,∞}=N∪{∞}\Omega = \{1, 2, \ldots, \infty\} = \mathbb{N} \cup \{\infty\}, donde ∞\infty significa que nunca se obtiene cara.

  • Clasificación del Espacio Muestral: Se llama discreto si Ω\Omega es finito o numerable. El experimento es entonces finito (discreto) 16.

1.2.2. Definición de evento y σ\sigma-álgebra

Un evento es un subconjunto del espacio muestral para el cual se puede definir una probabilidad. No todos los subconjuntos de Ω\Omega son eventos; la colección de eventos debe tener la estructura de una σ\sigma-álgebra.

  • Definición 1.8 (σ\sigma-álgebra): Sea Ω≠∅\Omega \neq \emptyset. Una colección S\mathcal{S} de subconjuntos de Ω\Omega es una σ\sigma-álgebra sobre Ω\Omega si satisface las siguientes propiedades: i) Ω∈S\Omega \in \mathcal{S} (El evento seguro está en S\mathcal{S}). ii) Si A∈SA \in \mathcal{S}, entonces Ac∈SA^c \in \mathcal{S} (Cierre bajo complemento). iii) Si $A_1, A_2, \ldots \in \mat
Cover

Probabilité prof Malek.pdf

Table of contents

  1. Theory of Sets
  2. Counting Methods
  3. Elements of Probability
  4. Random Variables and Probability Laws
  5. Some Discrete and Continuous Probability Laws

1. Theory of Sets

1.1 Set

A set is defined as a collection of elements. The empty set is a set that contains no elements 3.

1.2 Union

The union of two sets, A and B, denoted as A∪BA \cup B, is the set containing all elements that belong to either A or B (or both). Mathematically, A∪B={x∈E∣x∈A or x∈B}A \cup B = \{x \in E \mid x \in A \text{ or } x \in B\} 3.

📝 If A={1,2,3,a,b,c}A = \{1, 2, 3, a, b, c\}, then Card(A)=6Card(A) = 6 4.

1.3 Intersection

The intersection of two sets, A and B, denoted as A∩BA \cap B, is the set containing all elements that are common to both A and B. Mathematically, A∩B={x∈E∣x∈A and x∈B}A \cap B = \{x \in E \mid x \in A \text{ and } x \in B\} 3.

1.4 Difference

The difference between two sets, A and B, denoted as A−BA - B, is the set containing all elements that are in A but not in B. Mathematically, A−B={x∈E∣x∈A and x∉B}A - B = \{x \in E \mid x \in A \text{ and } x \notin B\} 4.

📝 If A={1,2,3}A = \{1, 2, 3\} and B={3,4,5}B = \{3, 4, 5\}, then A−B={1,2}A - B = \{1, 2\} 4.

1.5 Complement

The complement of a set A within a universal set E, denoted as Aˉ\bar{A} or AcA^c, is the set of all elements in E that are not in A. Mathematically, Aˉ={x∈E∣x∉A}\bar{A} = \{x \in E \mid x \notin A\} 4.

1.6 Disjoint sets

Two sets, A and B, are considered disjoint (or incompatible) if they have no elements in common 4.

1.7 Cardinality

The cardinality of a set E, denoted as Card(E)Card(E), is the number of elements it contains. For example, if A={1,2,3,a,b,c}A = \{1, 2, 3, a, b, c\}, then Card(A)=6Card(A) = 6 4.

2. Counting Methods

2.1 Experiments with multiple steps

An experiment described by a sequence of kk steps, where the first step has n1n_1 possible outcomes, the second step has n2n_2 possible outcomes, and so on, has a total of nn possible outcomes. This total is calculated by multiplying the number of outcomes for each step: n=n1×n2×⋯×nkn = n_1 \times n_2 \times \dots \times n_k 5.

📝 An individual has two suits, two shirts, two pairs of shoes, and two ties. The total number of ways this person can dress is 2×2×2×2=162 \times 2 \times 2 \times 2 = 16 5.

2.2 Permutations

A permutation of nn elements is an ordered arrangement of these nn elements. The number of permutations of nn distinct elements is denoted by n!n! (n factorial), which is calculated as n!=n×(n−1)×(n−2)×⋯×2×1n! = n \times (n-1) \times (n-2) \times \dots \times 2 \times 1.

Two permutations are distinct if they differ in the order of their elements 5.

📝 For the set E={a,b,c}E = \{a, b, c\}, the possible permutations are {abc,acb,bac,bca,cab,cba}\{abc, acb, bac, bca, cab, cba\}. The number of permutations is 3!=3×2×1=63! = 3 \times 2 \times 1 = 6 5.

2.3 Arrangements without repetition

An arrangement of order pp of nn elements without repetition is an ordered set of pp of these nn elements, where p≤np \le n. The number of such arrangements is given by Anp=n!(n−p)!A^p_n = \frac{n!}{(n-p)!}.

When p=np = n, this simplifies to Ann=n!A^n_n = n! 6.

📝 For the set E={a,b,c,d}E = \{a, b, c, d\}, the number of arrangements of order 2 without repetition is A42=4!(4−2)!=4!2!=12A^2_4 = \frac{4!}{(4-2)!} = \frac{4!}{2!} = 12. The arrangements include {ab,ac,ad,ba,bc,bd,ca,cb,cd,da,db,dc}\{ab, ac, ad, ba, bc, bd, ca, cb, cd, da, db, dc\} 6.

2.4 Arrangements with repetition

An arrangement of order pp of nn elements with repetition allows each element to be repeated up to nn times. The total number of such arrangements is npn^p 6.

📝 For the set E={a,b,c,d}E = \{a, b, c, d\}, the number of arrangements of order 2 with repetition is 42=164^2 = 16. These include {aa,ab,ac,bb,ba,bc,cc,ca,cb,cd,dd,da,db,dc}\{aa, ab, ac, bb, ba, bc, cc, ca, cb, cd, dd, da, db, dc\} 6.

2.5 Combinations without repetition

A combination of order pp of nn elements without repetition is a set formed by choosing pp elements from nn without regard to order and without repetition, where p≤np \le n. The number of such combinations is given by Cnp=n!p!(n−p)!C^p_n = \frac{n!}{p!(n-p)!}. CpnC^n_p represents the number of ways to select pp elements from nn without ordering them 7.

📝 For the set E={a,b,c,d}E = \{a, b, c, d\}, the number of combinations of order 3 without repetition is C43=4!3!(4−3)!=4!3!1!=4C^3_4 = \frac{4!}{3!(4-3)!} = \frac{4!}{3!1!} = 4. The combinations are {abc,abd,acd,bcd}\{abc, abd, acd, bcd\} 7.

2.6 Combinations with repetition

A combination of order pp of nn elements with repetition is a set formed by choosing pp elements from nn, allowing repetition, and without regard to order. The number of such combinations is given by Cpn+p−1C^{n+p-1}_p 7.

Cover

PROBABILITY AND STATISTICS.pdf

1. Binomial distribution and its calculations

This section details the binomial distribution, its probability mass function, expected value, and variance, along with calculations for various probabilistic scenarios, and introduces the normal distribution.

1.1 The binomial distribution

The binomial distribution is a discrete probability distribution that describes the probability of obtaining a specific number of successes in a fixed number of independent Bernoulli trials. A Bernoulli trial is an experiment with only two possible outcomes: success and failure.

1.1.1 Key parameters and notation

  • n: The fixed number of trials.
  • p: The probability of success in a single trial.
  • q: The probability of failure in a single trial, where q=1−pq = 1 - p.
  • X: The random variable representing the number of successes in nn trials.

The binomial distribution is denoted as B(x;n,p)B(x; n, p), where xx is the number of successes.

1.1.2 Probability mass function (PMF)

The probability of obtaining exactly xx successes in nn trials is given by the probability mass function (PMF): P(X=x)=(nx)pxqn−x=n!x!(n−x)!pxqn−xP(X=x) = \binom{n}{x} p^x q^{n-x} = \frac{n!}{x!(n-x)!} p^x q^{n-x} where xx can take values 0,1,2,…,n0, 1, 2, \ldots, n.

1.1.3 Expected value (Mean)

The expected value, or mean, of a binomial distribution represents the average number of successes expected in nn trials. It is calculated as: μ=E(X)=np\mu = E(X) = np This can also be derived using the definition of expected value: E(X)=∑x=0nx⋅P(x)E(X) = \sum_{x=0}^{n} x \cdot P(x).

1.1.4 Variance and standard deviation

The variance of a binomial distribution measures the spread or dispersion of the number of successes around the mean. It is calculated as: ω2=Var(X)=npq\omega^2 = \text{Var}(X) = npq The standard deviation, denoted by ω\omega, is the square root of the variance: ω=npq\omega = \sqrt{npq} This can also be derived using the definition of variance: Var(X)=E[(X−μ)2=∑x=0n(x−μ)2⋅P(x)\text{Var}(X) = E[(X-\mu)^2 = \sum_{x=0}^{n} (x-\mu)^2 \cdot P(x).

1.1.5 Calculating probabilities

Calculating probabilities for a binomial distribution involves substituting the values of nn, pp, and xx into the PMF. This can include probabilities for specific outcomes (P(X=x)P(X=x)), cumulative probabilities (P(X≤x)P(X \le x) or P(X≥x)P(X \ge x)), or probabilities within a range (P(a≤X≤b)P(a \le X \le b)).

Example: For n=5n=5 and p=18/38p = 18/38: P(X=0)=5!0!(5−0)!(1838)0(2038)5−0≈0.0438P(X=0) = \frac{5!}{0!(5-0)!} (\frac{18}{38})^0 (\frac{20}{38})^{5-0} \approx 0.0438 or 4.38%4.38\%. P(X=1)=5!1!(5−1)!(1838)1(2038)5−1≈0.18174P(X=1) = \frac{5!}{1!(5-1)!} (\frac{18}{38})^1 (\frac{20}{38})^{5-1} \approx 0.18174 or 18.2%18.2\%. P(X≤2)=P(X=0)+P(X=1)+P(X=2)P(X \le 2) = P(X=0) + P(X=1) + P(X=2). If P(X=2)≈0.32713P(X=2) \approx 0.32713, then P(X≤2)≈0.04039+0.18174+0.32713=0.54926P(X \le 2) \approx 0.04039 + 0.18174 + 0.32713 = 0.54926.

Example: For n=10n=10 and p=3/4=0.75p = 3/4 = 0.75: The PMF is P(X=x)=10!x!(10−x)!(34)x(14)10−xP(X=x) = \frac{10!}{x!(10-x)!} (\frac{3}{4})^x (\frac{1}{4})^{10-x} for x=0,1,…,10x = 0, 1, \ldots, 10. P(X≤5)=∑x=05P(X=x)≈0.07813P(X \le 5) = \sum_{x=0}^{5} P(X=x) \approx 0.07813. P(X=5)=10!5!(10−5)!(34)5(14)10−5≈0.05840P(X=5) = \frac{10!}{5!(10-5)!} (\frac{3}{4})^5 (\frac{1}{4})^{10-5} \approx 0.05840. P(X≥5)=1−P(X≤4)P(X \ge 5) = 1 - P(X \le 4). If P(X≤4)≈0.01973P(X \le 4) \approx 0.01973, then P(X≥5)≈1−0.01973=0.98027P(X \ge 5) \approx 1 - 0.01973 = 0.98027. The mean is μ=np=10×(3/4)=7.5\mu = np = 10 \times (3/4) = 7.5. The variance is ω2=npq=10×(3/4)×(1/4)=1.875\omega^2 = npq = 10 \times (3/4) \times (1/4) = 1.875. The standard deviation is ω=1.875≈1.369\omega = \sqrt{1.875} \approx 1.369.

1.2 Properties and calculations for various binomial scenarios

The binomial distribution can be used to calculate probabilities for a wide range of scenarios, including specific values, cumulative probabilities, and ranges.

1.2.1 Specific probabilities

Calculating the probability of an exact number of successes (P(X=x)P(X=x)).

1.2.2 Cumulative probabilities

Calculating the probability of at most a certain number of successes (P(X≤x)P(X \le x)) or at least a certain number of successes (P(X≥x)P(X \ge x)).

  • P(X≤x)=∑i=0xP(X=i)P(X \le x) = \sum_{i=0}^{x} P(X=i)
  • P(X≥x)=∑i=xnP(X=i)=1−P(X<x)=1−P(X≤x−1)P(X \ge x) = \sum_{i=x}^{n} P(X=i) = 1 - P(X < x) = 1 - P(X \le x-1)

1.2.3 Probabilities within a range

Calculating the probability of the number of successes falling between two values (P(a≤X≤b)P(a \le X \le b)).

  • P(a≤X≤b)=P(X≤b)−P(X≤a−1)P(a \le X \le b) = P(X \le b) - P(X \le a-1)

Example: For B(x;15,0.40)B(x; 15, 0.40):

  • P(X≤7)≈0.78690P(X \le 7) \approx 0.78690.
  • P(X>10)=P(X≥11)=1−P(X≤10)P(X > 10) = P(X \ge 11) = 1 - P(X \le 10). If P(X≤10)≈0.99065P(X \le 10) \approx 0.99065, then P(X>10)≈1−0.99065=0.00935P(X > 10) \approx 1 - 0.99065 = 0.00935.
  • P(X=6)=P(X≤6)−P(X≤5)P(X = 6) = P(X \le 6) - P(X \le 5). If P(X≤6)≈0.60981P(X \le 6) \approx 0.60981 and P(X≤5)≈0.40322P(X \le 5) \approx 0.40322, then P(X=6)≈0.60981−0.40322=0.20659P(X = 6) \approx 0.60981 - 0.40322 = 0.20659.
  • P(4≤X≤8)=P(X≤8)−P(X≤3)P(4 \le X \le 8) = P(X \le 8) - P(X \le 3). If P(X≤8)≈0.90495P(X \le 8) \approx 0.90495 and P(X≤3)≈0.09050P(X \le 3) \approx 0.09050, then P(4≤X≤8)≈0.90495−0.09050=0.81445P(4 \le X \le 8) \approx 0.90495 - 0.09050 = 0.81445.

Example: For B(x;10,0.50)B(x; 10, 0.50):

  • P(X<4)=P(X≤3)≈0.17188P(X < 4) = P(X \le 3) \approx 0.17188.
  • P(X=4)=P(X≤4)−P(X≤3)P(X = 4) = P(X \le 4) - P(X \le 3). If P(X≤4)≈0.37695P(X \le 4) \approx 0.37695 and P(X≤3)≈0.17188P(X \le 3) \approx 0.17188, then P(X=4)≈0.37695−0.17188=0.20507P(X = 4) \approx 0.37695 - 0.17188 = 0.20507.
Cover

Probability Booklet.docx

Table of contents

  1. Theoretical probability
  2. Experimental probability
  3. Venn diagrams and two-way tables
  4. Compound events

1. Theoretical probability

1.1 Definition of theoretical probability

Theoretical probability is a branch of mathematics that deals with calculating the likelihood of an event occurring based on logical reasoning and the assumption that all possible outcomes are equally likely. It is determined by the ratio of the number of favorable outcomes to the total number of possible outcomes.

  • Theoretical probability: it is calculated using mathematical reasoning and assumes that each outcome in a sample space has an equal chance of occurring.
  • Formula for theoretical probability: P(E)=Number of favorable outcomesTotal number of possible outcomesP(E) = \frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}.

📝 If you roll a standard six-sided die, the probability of rolling a 4 is 16\frac{1}{6} because there is one favorable outcome (rolling a 4) and six total possible outcomes (1, 2, 3, 4, 5, 6).

1.2 Sample space and events

The sample space is the set of all possible outcomes of an experiment. An event is a specific outcome or a set of outcomes within the sample space.

Understanding these terms is crucial for calculating probabilities.

  • Sample space: it includes every single possible result of a random process. For example, when flipping a coin, the sample space is {Heads, Tails}.
  • Event: it is a subset of the sample space, representing a particular result or set of results we are interested in. For instance, getting "Heads" is an event.

1.3 Calculating probability for simple events

To calculate the theoretical probability of a simple event, you identify the number of ways that specific event can happen and divide it by the total number of possible outcomes. This ratio gives you the probability, often expressed as a fraction, decimal, or percentage.

  • Favorable outcomes: these are the specific results that satisfy the condition of the event you are interested in.
  • Total outcomes: this is the complete set of all possible results from an experiment or situation.

1.4 Oefening 1: Waterstofbrugvorming in ammoniak

This exercise likely involves calculating probabilities related to molecular interactions, such as hydrogen bonding in ammonia. The specific question would detail the scenario and what probability needs to be determined.

  • Concept tested: Application of theoretical probability principles to a specific chemical scenario.
  • Task: To calculate the probability of a particular outcome based on the given conditions of ammonia molecules and their potential interactions.

1.5 Oefening 2: Kansen met een dobbelsteen

This exercise focuses on calculating probabilities using a standard die. It might involve single rolls, multiple rolls, or combinations of outcomes.

  • Concept tested: Basic probability calculations with discrete outcomes.
  • Task: To determine the likelihood of specific results when rolling a die, such as the probability of rolling an even number or a number greater than 4.
OutcomeProbability
Rolling a 11/6
Rolling a 21/6
Rolling a 31/6
Rolling a 41/6
Rolling a 51/6
Rolling a 61/6

2. Experimental probability

2.1 Experimental probability

Experimental probability is determined by conducting experiments and observing the outcomes. It is calculated as the ratio of the number of times an event occurs to the total number of trials.

This type of probability is based on actual observations rather than theoretical possibilities.

  • Experimental probability: the ratio of the number of favorable outcomes to the total number of trials in an experiment.
  • It is also known as empirical probability.
  • The more trials conducted, the closer the experimental probability tends to get to the theoretical probability.

📝 If you flip a coin 100 times and it lands on heads 53 times, the experimental probability of getting heads is 53/100.

2.2 Oefening 1: Waterstofbrugvorming in ammoniak

This exercise likely tests the understanding of hydrogen bonding in ammonia, a concept related to intermolecular forces. It would involve identifying the conditions for hydrogen bond formation and possibly calculating or describing its effects.

2.3 Oefening 2: Waterstofbrugvorming in ammoniak

Similar to the previous exercise, this one also focuses on hydrogen bonding in ammonia. It might involve a different aspect of the concept, such as comparing its strength to other intermolecular forces or explaining its role in the properties of ammonia.

2.4 Oefening 3: Waterstofbrugvorming in ammoniak

This third exercise continues to explore hydrogen bonding in ammonia. It could be a more complex problem requiring the application of learned principles to a specific scenario or a question that asks for a detailed explanation of the phenomenon.

3. Venn di