Probability Statistics

Cover

5.pptx

1. Introduction to random variables and probability distribution properties

This section establishes the foundational concepts of random variables, distinguishing between discrete and continuous types, and details the essential probability distributions and summary statistics, including expected value and variance, applicable to discrete random variables.

1.1 Random variables and types

A Random Variable represents a possible numerical outcome resulting from a random experiment.

  • Discrete Random Variable: Takes on no more than a countable number of values.
    • Examples include the number of times a specific face appears when rolling a die twice, or the number of heads in five coin tosses (values can only be integers within a range).
  • Continuous Random Variable: Can take on any value within a specified interval, meaning its possible values are measured on a continuum.
    • Examples include the weight of packages or the temperature of a solution.

1.2 Probability distributions for discrete random variables

The Probability Distribution Function (PDF), denoted P(X=x)P(X=x), is a representation of the probabilities for all possible outcomes of a discrete random variable XX. This can be presented algebraically, graphically, or via a table.

For any possible value xx:

  1. The individual probabilities must be non-negative: P(X=x)≥0P(X=x) \ge 0.
  2. The sum of all individual probabilities must equal one: ∑all xP(X=x)=1\sum_{\text{all } x} P(X=x) = 1.

The Cumulative Probability Function (CDF), denoted F(x)F(x), shows the probability that the random variable XX takes a value less than or equal to a specific value xx: F(x)=P(X≤x)F(x) = P(X \le x).

A key derived relationship exists between the PDF and the CDF: P(X=x)=F(x)−F(x−)P(X=x) = F(x) - F(x^-) where F(x−)F(x^-) is the cumulative probability evaluated at the largest possible value less than xx.

Tip: The CDF is non-decreasing. For a discrete random variable, the CDF will appear as a step function, jumping only at the values where P(X=x)>0P(X=x) > 0.

1.3 Properties of discrete random variables: Expected Value and Variance

The central tendency and dispersion of a discrete random variable are quantified using the expected value and variance.

Expected Value (Mean)

The Expected Value (or mean) of a discrete random variable XX, denoted E(X)E(X) or μ\mu, is calculated as: μ=E(X)=∑all xxP(X=x)\mu = E(X) = \sum_{\text{all } x} x P(X=x)

Variance and Standard Deviation

The Variance of a discrete random variable XX, denoted Var(X)Var(X) or σ2\sigma^2, measures the dispersion around the mean: σ2=Var(X)=E[(X−μ)2]=∑all x(x−μ)2P(X=x)\sigma^2 = Var(X) = E[(X - \mu)^2] = \sum_{\text{all } x} (x - \mu)^2 P(X=x) An equivalent, often computationally simpler, form is: σ2=Var(X)=E(X2)−[E(X)]2\sigma^2 = Var(X) = E(X^2) - [E(X)]^2 where E(X2)=∑all xx2P(X=x)E(X^2) = \sum_{\text{all } x} x^2 P(X=x).

The Standard Deviation is the square root of the variance: σ=Var(X)\sigma = \sqrt{Var(X)}

Functions of Random Variables

If g(X)g(X) is some function of a discrete random variable XX, its expected value is: E[g(X)]=∑all xg(x)P(X=x)E[g(X)] = \sum_{\text{all } x} g(x) P(X=x)

For a Linear Function Y=aX+bY = aX + b, where aa and bb are constants:

  • The mean of YY is: E(Y)=E(aX+b)=aE(X)+bE(Y) = E(aX + b) = a E(X) + b
  • The variance of YY is: Var(Y)=Var(aX+b)=a2Var(X)Var(Y) = Var(aX + b) = a^2 Var(X)
  • The standard deviation of YY is: SD(Y)=∣a∣Var(X)SD(Y) = |a| \sqrt{Var(X)}

Example: If a random variable XX is constant, say X=cX=c, then E(X)=cE(X)=c and Var(X)=0Var(X)=0. If Y=5X−3Y=5X-3, and E(X)=10E(X)=10 and Var(X)=4Var(X)=4, then E(Y)=5(10)−3=47E(Y) = 5(10) - 3 = 47 and Var(Y)=52(4)=100Var(Y) = 5^2 (4) = 100.

1.4 Common Discrete Probability Distributions

Bernoulli Distribution

This is the simplest distribution, characterizing a single trial with exactly two outcomes: "success" (with probability PP) or "failure" (with probability 1−P1-P). The random variable XX is defined as X=1X=1 for success and X=0X=0 for failure.

  • Mean: E(X)=PE(X) = P
  • Variance: Var(X)=P(1−P)Var(X) = P(1-P)

Binomial Distribution

The Binomial distribution describes the number of successes (xx) in a fixed number (nn) of independent Bernoulli trials, where the probability of success (PP) is constant for each trial. Conditions for Application:

  1. A fixed number of observations, nn.
  2. Two mutually exclusive and collectively exhaustive outcomes (success/failure).
  3. The probability of success, PP, is constant for every observation.
  4. The observations are independent.

The probability mass function (PMF) for xx successes in nn trials is: P(X=x)=(nx)Px(1−P)n−xP(X=x) = \binom{n}{x} P^x (1-P)^{n-x} where (nx)=n!x!(n−x)!\binom{n}{x} = \frac{n!}{x!(n-x)!} is the number of ways to choose xx successes from nn trials.

  • Mean: E(X)=nPE(X) = nP
  • Variance: Var(X)=nP(1−P)Var(X) = nP(1-P)

Poisson Distribution

The Poisson distribution models the probability of a specific number of events (xx) occurring within a given interval of time or space, assuming events occur independently and at a constant average rate (λ\lambda). Assumptions:

  1. The probability of an occurrence in any subinterval is very small.
  2. The probability o
Cover

6-Correlation and regression.pdf

Correlation analysis

Correlation analysis explores the relationship between two variables, providing insights into their direction and strength.

1. Correlation analysis

Correlation is utilized to assess the relationship between two variables, which can be either continuous or ordinal. It provides two key pieces of information: the direction of the relationship (positive or negative) and the strength of the relationship (weak, medium, or strong). Correlation is frequently explored visually using a scatterplot, where one variable is plotted on the X-axis and the other on the Y-axis. Each point on the scatterplot represents an observation with its corresponding values for the two variables 2 3.

1.1 The correlation coefficient

The correlation coefficient (often denoted as rr for Pearson's and ρ\rho for Spearman's) quantifies the strength and direction of the linear relationship between two variables 3.

1.1.1 Range of the correlation coefficient

The correlation coefficient ranges from -1 to 1 3.

1.1.2 Direction of the relationship

  • Positive correlation: If the correlation coefficient is positive, it indicates a positive association where an increase in one variable is associated with an increase in the other 4.
  • Negative correlation: If the correlation coefficient is negative, it indicates a negative association where an increase in one variable is associated with a decrease in the other 4.
  • Zero correlation: A value of zero suggests no linear association between the variables 4.

1.1.3 Strength of the relationship

The strength of the relationship is determined by how close the correlation coefficient is to 1 or -1. While different textbooks may present slightly varied cut-off values, a general guideline for interpreting the strength is as follows 5:

  • Perfect correlation: A value near ±1\pm 1.
  • Strong correlation: A coefficient value between ±0.50\pm 0.50 and ±1\pm 1.
  • Moderate correlation: A value between ±0.30\pm 0.30 and ±0.49\pm 0.49.
  • Small correlation: A value below ±0.29\pm 0.29.
  • No correlation: A value of zero.

Some scientists suggest the following interpretation guide, irrespective of the sign:

  • 0 to 0.19: Very weak
  • 0.2 to 0.39: Weak
  • 0.40 to 0.59: Moderate
  • 0.60 to 0.79: Strong
  • 0.80 to 1: Very strong

The significance of a correlation is typically determined by its p-value; a correlation is considered significant if the p-value is less than 0.05 5.

1.1.4 Coefficient of determination (R2R^2)

The coefficient of determination (R2R^2) represents the proportion of variance in one variable that can be explained by the other variable. It is calculated by squaring the correlation coefficient (r2r^2). For example, if r=−0.67r = -0.67, then R2=(−0.67)2=0.44R^2 = (-0.67)^2 = 0.44. This indicates that 44% of the variation in one variable (e.g., BMI) can be accounted for by knowing the value of the other variable (e.g., physical activity) 6.

Tip: Always plot your data using a scatterplot before conducting a correlation analysis to visually confirm if the relationship appears linear 6.

1.2 Types of correlation

The choice of correlation coefficient depends on the nature of the data.

1.2.1 Pearson's correlation coefficient (rr)

Pearson's correlation is appropriate for parametric data, meaning it is used for numerical variables that are normally distributed 6.

1.2.2 Spearman's rank correlation coefficient (ρ\rho)

Spearman's rho coefficient is used for ordinal data (ranked data) or when the assumptions of normality for the data are not met. It is considered the non-parametric equivalent of Pearson's correlation 6.

Tip: The decision tree for choosing a correlation test involves considering whether the data is bivariate/multivariable, assesses difference/correlation, involves independent/paired samples, the type of outcome variable (continuous, ordinal, and its normality), and the number of groups 2.

FeaturePearson's correlation (rr) (Parametric)Spearman's correlation (ρ\rho) (Non-parametric)
VariablesTwo numerical variablesOrdinal or numerical variables
Relationship TypeLinear relationshipMonotonic (linear or curvilinear) relationship
Data DistributionNormal distribution (for at least one of the two variables)No specific distribution assumption

1.2.3 When to use each

  • Pearson's correlation can be used for two numerical variables with a linear relationship and normally distributed data 6 7.
  • Spearman's correlation can be used for ordinal variables or when
Cover

6: Quantitative data analysis & visualisation

📚 Class 6_Quantitative data analysis & visualisation.pdf

Brief overview

This document introduces fundamental concepts of quantitative data analysis and visualization crucial for research and assessment. It details course structure, research principles, and the practical application of data analysis techniques, emphasizing effective reporting. Understanding these elements is key to success in subsequent research and data interpretation tasks.

Key points

  • Overview of course structure, assessment methods, and foundational research concepts.
  • Exploration of data analysis techniques, including measurement levels and frequency tables.
  • Detailed examination of grouped frequency tables and cross-tables with practical examples.
  • Guidance on effective reporting of quantitative findings using in-text citations, tables, and graphs.
  • Principles of good table and graph design and selection of appropriate chart types.

1. Course structure and assessment

1.1 Assessment breakdown

  • Multiple choice exam: Ninety percent of the total grade.
  • Excel exam: Ten percent of the total grade.
  • Bonus points: One extra point is awarded for completing all exercises on time.

1.2 Excel exam details

  • Date: April twenty-fourth at 13:30.
  • Content: Uses a dataset from a student budgeting survey.
  • Format: Similar to exercises provided on Canvas, requiring practice at home.

1.3 Multiple choice exam details

  • Date: Thursday, June eleventh at 08:30 AM.
  • Location: On campus.
  • Format: Thirty multiple-choice questions with four answer options, only one correct.
  • Passing score: Eighteen out of thirty correct answers is required to pass. This is equivalent to ten out of twenty.
  • Content: Covers all course material.
  • Question types: Apply concepts to situations (e.g., identify sampling methods, variable measurement levels, calculate modes), and true/false statements.

📝 Example: A question might describe a survey scenario and ask you to identify the dependent variable and its measurement level.

1.4 Studying and exam tips

  • Structure knowledge: Organize concepts into quantitative, qualitative, or both categories.
  • Create an overview: Develop a table of contents or visualize the research process flow.
  • Apply concepts: Understand definitions and be able to apply them, like identifying independent and dependent variables.
  • Understand differences: Distinguish between similar concepts, such as different sampling methods or research types.

During the exam:

  • Think before choosing: Mentally answer questions before looking at options.
  • Eliminate answers: Justify why incorrect options are wrong.
  • Read carefully: Pay attention to whether the question asks for the correct or incorrect answer.

🔑 Important: Making a list of all concepts from each class with their explanations is a highly effective study strategy.

1.5 Research process overview

  • Problem formulation: Define the research motivation and question.
  • Desk research: Review existing insights and knowledge.
  • Methodology: Decide on the type of research to conduct.
  • Data collection: Gather data through the chosen research method.
  • Data analysis: Process the collected data to find new insights.
  • Report & presentation: Present conclusions and recommendations.

🔑 Important: The research process follows a logical sequence from defining the problem to presenting the findings.

1.6 Data analysis and measurement levels

  • Measurement levels classify data based on their properties:

    • Nominal: Categories with no inherent order (e.g., colors). Can be dichotomous (two categories) or non-dichotomous.
    • Ordinal: Categories with a meaningful order, but the distance between them is not uniform (e.g., satisfaction ratings).
    • Metric: Represents quantifiable measurements.
      • (Quasi)interval: Has order and equal intervals, but no true zero point (e.g., temperature in Celsius).
      • Ratio: Has order, equal intervals, and a true zero point (e.g., height, age).
  • Continuous variables are typically metric and can take on infinite values.

  • Categorical variables (nominal and ordinal) take on a limited, fixed number of values.

Cover

6._Random_Variables_and_their_Distribution.pptx

1. Introduction to random variables and probability distributions (part 1)

This section introduces the foundational concepts of random variables, their classifications into discrete and continuous types, and the fundamental principles of their probability distributions and graphical representations, setting the stage for understanding statistical inference.

1.1 Random variables and sample space

A random variable (or stochastic variable) is a variable whose possible values are numerical outcomes of a random phenomenon. The sample space is defined as the set of all possible outcomes from a random experiment.

1.2 Types of random variables

Random variables can be broadly categorized into two main types:

  • Discrete random variables:

    • These variables take on a finite or countably infinite number of distinct, specific values.
    • Their probabilities are defined by a probability mass function (PMF), denoted as P(X=x)=p(x)P(X=x) = p(x).
    • An example is the outcome of rolling a die, where the possible values are 1, 2, 3, 4, 5, or 6.
  • Continuous random variables:

    • These variables can take on any value within a given interval, meaning they have an infinite number of possible values.
    • The probability of a continuous random variable taking on any exact single value is zero.
    • Probabilities are calculated over intervals using a probability density function (PDF), denoted as f(x)f(x).
    • Examples include the expected time to complete a task or the expected weight of an object.

1.3 Probability distributions

A probability distribution describes the likelihood of each possible value that a random variable can take.

  • For a discrete random variable, the probability distribution lists all possible values of the variable and their associated probabilities. The sum of all probabilities for a discrete random variable must equal 1.

    Example: Let XX be the number of times a student interacts with their phone in one hour. A probability distribution might be presented as:

    XX (Interactions)P(X=x)P(X=x)
    00.10
    10.25
    20.35
    30.20
    40.10

    The sum of probabilities is 0.10+0.25+0.35+0.20+0.10=1.000.10 + 0.25 + 0.35 + 0.20 + 0.10 = 1.00.

1.4 Graphs for discrete random variables

The probability distribution of a discrete random variable can be visually represented using a histogram.

  • The horizontal axis represents the possible values of the random variable.

  • The vertical axis represents the probabilities associated with each value.

  • Each bar in the histogram corresponds to a possible value, and its height indicates the probability of that value occurring.

  • Histograms allow for the examination of the shape, center, and variability of the distribution.

    Example: If XX is the number of languages spoken by a randomly selected college student, a histogram of its probability distribution can reveal insights into language diversity among students. The shape might be skewed, indicating that most students speak a certain number of languages, with fewer students speaking a significantly larger number.

1.5 Graphs for continuous random variables: Density curves

For continuous random variables, their probability distribution is represented by a density curve.

  • A density curve always lies above the horizontal axis.
  • The total area under a density curve is always equal to 1.
  • Density curves can take various shapes; a particularly important one in social sciences is the normal distribution.

1.5.1 The Normal Distribution

The normal distribution is a common model for variations observed in many human phenomena, including:

  • Physical attributes: Height, weight, shoe sizes.
  • Abilities: Memory capacity, IQ scores, critical reasoning skills, student grades.
  • Health metrics: Blood pressure.
  • Financial and economic indicators: Stock market returns, price fluctuations.
  • Social and political attitudes: Ideology, experiences with public services.

Characteristics of the Normal Distribution:

  • Symmetry: It is perfectly symmetric around its mean.
  • Central Tendency: The midpoint of the curve represents the mean, median, and mode.
  • Asymptotic Nature: The curve approaches the horizontal axis but never touches it.
  • Total Area: The total area under the curve is 1.
  • Parameters: Described by its mean (μ\mu) and standard deviation (σ\sigma).
    • An increasing σ\sigma leads to a wider, flatter curve, while a decreasing σ\sigma results in a narrower, more peaked curve around μ\mu.
  • Inflection Points: The curve exhibits inflection points at μ±σ\mu \pm \sigma.

A family of normal distributions exists, all sharing the same gener

Cover

91946-sam-2025.pdf

Table of contents

  1. Question one
  2. Question two

1. Question one

1.1 Advertising spending comparison

This section analyzes advertising spending data from Figures 1(a) and 1(b) to understand trends and inform business decisions.

  • Figure 1(a) analysis: This graph shows advertising spending across different media types in 2022. It allows for direct comparison of expenditure between categories like television and radio.
  • Figure 1(b) analysis: This graph focuses on spending for different products in New Zealand in 2024, providing insights into product-specific advertising investment 2.

1.2 Comparing and contrasting advertising expenditure

This subsection involves a detailed comparison of different advertising types based on Figure 1(a), identifying significant features, trends, and patterns.

  • Spending comparison: Analyze the relative amounts spent on various advertising types in 2022.
  • Significant features: Identify any notable aspects of the spending data, such as peaks, troughs, or unusual distributions.
  • Trends and patterns: Discuss any repeating patterns or general trends observed in the advertising expenditure over the period shown in Figure 1(a).
  • Statistical justification: Support statements with statistical reasoning, providing at least three distinct supporting comments based on the graph 3.

📝 In 2022, approximately how much more was spent on advertising on television compared to radio? 2

1.3 Using advertising data for business decisions 2

This section discusses how businesses can leverage advertising spending data from Figures 1(a) and 1(b) to make informed decisions about where to allocate their advertising budgets.

  • Data-driven decisions: Businesses can use the provided figures to understand where advertising money is currently being spent and its potential impact.
  • Evidence-based strategy: Justify advertising expenditure choices by referencing specific data points from both graphs.
  • Future predictions: Based on current trends and spending patterns, make a justified prediction about future advertising strategies or outcomes 4.
Advertising TypeApproximate Spending
Television—
Radio—
Product CategorySpending in New Zealand
Product A—
Product B—
Product C—

2. Question two

2.1 Comparing advertisement views

This section analyzes the number of views for 'commercial' versus 'self-made' advertisements based on Figure 2. 'Commercial' advertisements generally received a higher number of views compared to 'self-made' advertisements. For instance, the highest view count for a commercial ad was 250, while the highest for a self-made ad was 150. Conversely, the lowest view count for a commercial ad was 100, and for a self-made ad, it was 50. This suggests that professionally produced advertisements tend to attract more attention 5.

2.2 Recommendation for advertising companies

Kaia needs to choose an advertising company for her new online jewellery business. She requires an advertisement with a 3.5-minute video and five photos.

Table 2 shows three companies with different packages and costs.

CompanyVideo Length (minutes)Number of PhotosCost (USD)
Company A2.03100
Company B3.04150
Company C4.05200

Company C offers a 4.0-minute video and five photos for 200 USD. While Company B offers a 3.0-minute video and four photos for 150 USD, it does not meet Kaia's requirement for a 3.5-minute video.

Company A offers a 2.0-minute video and three photos for 100 USD, which also does not meet Kaia's needs. Therefore, Company C is the most suitable option as it provides the longest video length and the required number of photos, despite being the most expensive 6.

2.3 Cost and profit per customer analysis

This section compares the costs and profit per customer for the three advertising companies to recommend a social media advertising package to Kaia.

CompanyCost (USD)CustomersProfit per Customer (USD)
Company A100502.00
Company B150752.00
Company C2001002.00

All three companies have the same profit per customer of 2.00 USD. Company A costs 100 USD and serves 50 customers, resulting in a profit of 100 USD.

Company B costs 150 USD and serves 75 customers, also resulting in a profit of 150 USD. Company C costs 200 USD and serves 100 customers, yielding a profit of 200 USD.

Based on these figures, Kaia could choose any company if her primary goal is to achieve a profit per customer. However, if she aims for the highest total profit with the largest customer base, Company C would be the best choice 7.

Cover

ACI2601 STUDY GUIDE.pdf

Table of contents

  1. Teaching Data Handling in the Intermediate Phase

  2. Learning Unit 1: Unpacking the Curriculum and Assessment Policy Statements to Evaluate the Development of Data Handling and Probability Concepts in the Intermediate Phase

  3. Learning Unit 2: Demonstrating Knowledge of Statistical Concepts and the Ability to be Engaged in Critical Analysis of the Data-Collection and Analysing Processes in the Intermediate Phase

  4. Learning Unit 3: Demonstrating Knowledge of Probability in the Intermediate Phase

  5. Learning Unit 4: Integrating Technology in the Teaching and Learning of Statistics and Probability

1. Teaching Data Handling in the Intermediate Phase

1.1 Introduction

This module focuses on teaching data handling and probability within the intermediate phase. It emphasizes the importance of understanding curriculum policy statements to effectively develop these concepts in learners 1 2.

1.2 Overview of the curriculum

The South African curriculum aims to provide a comprehensive and equitable education. It seeks to develop learners' critical thinking, problem-solving, and analytical skills 2.

📝 Learners can collect data by conducting a survey on their classmates' favorite colors, organizing it using tally marks, and then representing it in a bar graph 2.

1.3 General aims of the South African curriculum

The general aims of the South African curriculum are to equip learners with knowledge and skills for personal development, active participation in society, and economic empowerment. It promotes social justice, environmental sustainability, and a democratic society 2.

1.4 Understanding data handling

Data handling involves collecting, organizing, representing, interpreting, and analyzing data to solve problems and make informed decisions. It is a fundamental aspect of statistical literacy 2.

1.5 Specific aims of data handling

The specific aims of data handling include developing learners' ability to:

  • Collect and organize data from various sources.

  • Represent data using different graphical methods.

  • Interpret and analyze data to identify patterns and trends.

  • Communicate findings effectively.

  • Make predictions and draw conclusions based on data 2.

1.6 Specific skills

Key skills developed through data handling include:

  • Data collection: Gathering relevant information.

  • Data organization: Sorting and classifying data.

  • Data representation: Using tables, charts, and graphs.

  • Data interpretation: Analyzing visual representations of data.

  • Data analysis: Identifying trends, patterns, and outliers.

  • Problem-solving: Using data to answer questions and solve problems 2.

📝 A student is asked to calculate the range of a set of test scores: 75, 82, 90, 68, 88. The range is 90−68=2290 - 68 = 22 3.

1.7 Focus of content areas

The content areas within data handling for the intermediate phase typically include:

  • Understanding different types of data.

  • Using various methods for data collection.

  • Constructing and interpreting different data representations.

  • Calculating measures of central tendency and dispersion.

  • Recognizing and addressing bias in data 2.

1.8 Specification of content (Phase overview)

The curriculum specifies content for data handling across different phases, ensuring a progressive development of concepts. For the intermediate phase, the focus is on building upon foundational knowledge and introducing more complex analytical tools 2.

1.9 Content sequencing and pacing

Effective teaching of data handling requires careful sequencing of content and appropriate pacing. Concepts should be introduced logically, building from simpler to more complex ideas 2.

1.10 Clarification of data-handling content

The data-handling content for the intermediate phase includes:

  • Data collection: Methods like surveys, observations, and experiments.

  • Data organization: Using tally marks, frequency tables, and lists.

  • Data representation: Creating and interpreting bar graphs, pictographs, pie charts, and stem-and-leaf plots.

  • Data analysis: Calculating the mean, median, and mode; identifying the range.

  • Probability: Understanding basic probability concepts and experimental probability 2 3.

Concept

Description

Data Collection

Gathering information through surveys, observations, or experiments.

Cover

A-First-Course-in-Probability.pdf

1. Introduction and combinatorial analysis (part 1)

This section introduces combinatorial analysis, the mathematical theory of counting, which is foundational for solving many problems in probability theory by determining the number of ways events can occur.

1.2 The basic principle of counting

The fundamental tool for solving counting problems is the basic principle of counting, which deals with performing sequential experiments.

Basic principle of counting (Two experiments)

If the first experiment can result in mm possible outcomes, and for each outcome of the first experiment, the second experiment can result in nn possible outcomes, then the total number of outcomes for the two experiments performed sequentially is m⋅nm \cdot n.

Example: Choosing one woman from 10 and one of her children from 3 results in 10×3=3010 \times 3 = 30 possible choices.

Generalized basic principle of counting (r experiments)

If rr experiments are performed sequentially, such that the first has n1n_1 outcomes, the second has n2n_2 outcomes for each outcome of the first, and so on, the total number of outcomes is the product of the outcomes for each step: n1⋅n2⋅…⋅nrn_1 \cdot n_2 \cdot \ldots \cdot n_r This principle applies to scenarios like forming committees or constructing license plates where choices are made sequentially from distinct categories 17.

Example: Forming a 7-place license plate with 3 letters (26 choices each) followed by 4 numbers (10 choices each) yields 26⋅26⋅26⋅10⋅10⋅10⋅10=175,760,00026 \cdot 26 \cdot 26 \cdot 10 \cdot 10 \cdot 10 \cdot 10 = 175,760,000 possibilities. If repetition is prohibited for numbers, the count becomes 26⋅25⋅24⋅10⋅9⋅8⋅7=78,624,00026 \cdot 25 \cdot 24 \cdot 10 \cdot 9 \cdot 8 \cdot 7 = 78,624,000.

1.3 Permutations

A permutation is an ordered arrangement of objects. The number of distinct permutations of nn distinguishable objects is n!n! (n factorial) 18. n!=n(n−1)(n−2)⋯3⋅2⋅1n! = n(n-1)(n-2) \cdots 3 \cdot 2 \cdot 1

Tip: If we are ranking nn distinct people, the number of possible rankings is n!n!.

Permutations with indistinguishable objects

If we have nn objects in total, but n1n_1 are alike, n2n_2 are alike, …\ldots, nrn_r are alike (where n1+n2+⋯+nr=nn_1 + n_2 + \cdots + n_r = n), the number of distinct permutations is given by the multinomial coefficient formula: n!n1!n2!⋯nr!\frac{n!}{n_1! n_2! \cdots n_r!}

Example: The number of distinct letter arrangements from PEPPER (6 letters total: 3 P's, 2 E's, 1 R) is 6!3!2!1!=60\frac{6!}{3! 2! 1!} = 60 19.

1.4 Combinations

A combination is a selection of rr objects from a set of nn objects where the order of selection is not relevant.

The number of different groups of rr objects that can be formed from nn objects is calculated by taking the number of ordered selections of rr items from nn (which is n(n−1)⋯(n−r+1)n(n-1) \cdots (n-r+1)) and dividing by the number of ways to order those rr items (r!r!), since order does not matter.

This is denoted by (nr)\binom{n}{r} or C(n,r)C(n, r), and the formula is: (nr)=n(n−1)⋯(n−r+1)r!=n!(n−r)!r!\binom{n}{r} = \frac{n(n-1) \cdots (n-r+1)}{r!} = \frac{n!}{(n-r)! r!}

Example: The number of ways to select a group of 3 items from 5 (A, B, C, D, E) when order is irrelevant is 5⋅4⋅33⋅2⋅1=10\frac{5 \cdot 4 \cdot 3}{3 \cdot 2 \cdot 1} = 10 20.

2. Introduction and combinatorial analysis (part 2)

This section covers the formal definitions and applications of combinations, multinomial coefficients, and finding the number of integer solutions to linear equations, concluding the foundational combinatorial analysis from Chapter 1.

2.1 Combinations and binomial coefficients

The notation (nr)\binom{n}{r} (read "nn choose rr") represents the number of possible combinations of nn objects taken rr at a time, where the order of selection is not considered relevant.

The formula for combinations is: (nr)=n!(n−r)!r!\binom{n}{r} = \frac{n!}{(n - r)! r!}

By convention:

  • 0!0! is defined as 1.
  • (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1.
  • (ni)=0\binom{n}{i} = 0 if i<0i < 0 or i>ni > n.

Example: Forming a committee of 3 from 20 people yields (203)=20⋅19⋅183⋅2⋅1=1140\binom{20}{3} = \frac{20 \cdot 19 \cdot 18}{3 \cdot 2 \cdot 1} = 1140 possibilities.

When forming multiple independent groups, the basic counting principle is applied multiplicatively. For a committee of 2 women from 5 and 3 men from 7, the possibilities are (52)(73)=10⋅35=350\binom{5}{2}\binom{7}{3} = 10 \cdot 35 = 350 21.

The combination formula is central to solving arrangement problems with constraints, such as ensuring no two defective items are consecutive among functional items. If n−mn-m functional items are arranged, there are n−m+1n-m+1 potential spaces (including ends) where defective items can be placed, at most one per space, resulting in (n−m+1m)\binom{n - m + 1}{m} orderings.

2.2 Combinatorial identity and the Binomial Theorem

A fundamental combinatorial identity relates binomial coefficients: (nr)=(n−1r−1)+(n−1r)(4.1)\binom{n}{r} = \binom{n - 1}{r - 1} + \binom{n - 1}{r} \quad (4.1) This identity is proven by considering a specific obje

Cover

AHHJ 3156 and AHHM 3158_Statistics _ lesson notes_Lesson 7.pdf

1. Introduction to statistics and data types

This section introduces the fundamental concepts of statistics, differentiating its plural and singular senses, distinguishing between descriptive and inferential branches, outlining the stages of a statistical investigation, and defining key terminology related to populations, samples, variables, parameters, and statistics.

1.1 Definition and senses of statistics

Statistics can be understood in two primary ways: in its plural sense and in its singular sense.

  • Plural sense: In this context, "statistics" refers to the collection of numerical facts, figures, or raw data itself. This is the more common understanding by laypeople. For instance, vital statistics (data on births, deaths, marriages) are examples. A single, isolated figure, such as one student's score, is not considered "statistics" because it cannot be compared or aggregated with other facts. Statistics, in this plural sense, are aggregates of facts 3 4.

  • Singular sense: In its singular sense, statistics is defined as the science that encompasses the methods for collecting, organizing, presenting, analyzing, and interpreting statistical data 5.

1.2 Branches of statistics

Statistics is broadly divided into two main branches: descriptive statistics and inferential statistics.

1.2.1 Descriptive statistics

Descriptive statistics involve methods used to collect, present, and characterize a set of data to describe its various features.

  • Purpose: To summarize and present data in a meaningful and easily interpretable way, making it easier to understand the characteristics of the data. Raw data often lacks pertinence until summarized by these tools 8.
  • Methods: These include graphic methods (e.g., bar charts, pie charts) and numerical measures (e.g., mean, median, variance).
  • Limitations: Descriptive statistics do not allow for making conclusions or inferences beyond the data that has been analyzed 7.

Example: If a biologist collects blood samples from 10 students and finds that 50% have blood type O, describing this proportion as 50% is an example of descriptive statistics. Creating a bar chart to show the frequency of each blood type in the sample is also descriptive.

1.2.2 Inferential statistics

Inferential statistics involve methods that facilitate the estimation of population characteristics or the making of decisions about a population based on sample results.

  • Purpose: To draw conclusions or make generalizations about a larger population based on data from a smaller sample.
  • Methods: Key techniques include estimation and hypothesis testing.

Example: Using the sample proportion of 50% for blood type O (from the previous example) to estimate the proportion of blood type O in the entire biology department class is an application of inferential statistics 10.

1.3 Stages in statistical investigation

A complete statistical investigation typically involves several sequential stages:

  1. Data collection: Acquiring relevant data pertinent to the problem under study.
  2. Organizing data: Classifying or sorting the collected data based on specific characteristics or attributes (e.g., age, sex, marital status).
  3. Presenting data: Using visual aids such as tables, graphs, and charts to display the organized data 11.
  4. Data analysis: A thorough examination of the data using statistical tools to reach conclusions or answer research questions. The complexity of the analysis depends on the nature of the answers required.
  5. Interpretation of the result: Drawing logical conclusions from the analysis to facilitate decision-making. This final step is referred to as interpretation 12.

1.4 Definition of key statistical terms

Understanding these fundamental terms is crucial for grasping statistical concepts.

  • Population: The entire group of elements, individuals, items, or objects about which characteristics are being studied. The specific population of interest is termed the target population.
  • Sample: A subset or portion of the population selected for study.
  • Sample survey: A method of collecting information from a sample drawn from a population.
  • Census survey: A survey that includes every member of the population.
  • Variable: A characteristic or attribute being studied that can assume different values for different elements within a population.

1.4.1 Types of variables

Variables can be classified based on their measurement scale and the nature of their values.

  • Quantitative variable: A variable that can be measured numerically. Data collected from such variables are called quantitative data.

    • Examples: Weight, height, number of students in a class, number of car accidents 13.
  • Qualitative variable (Categorical variable): A variable that cannot be measured numerically

Cover

An Introduction to Applied Multivariate Analysis with R.pdf

📚 An Introduction to Applied Multivariate Analysis with R.pdf

Brief overview

This document provides a comprehensive introduction to multivariate data analysis techniques and their implementation using the R statistical software. It equips readers with the statistical foundations and practical skills to analyze complex datasets across various disciplines.

Key points

  • Overview of multivariate data types, challenges, and foundational statistical concepts
  • Visualizing multivariate data distributions and relationships using R
  • Dimensionality reduction through Principal Components and Canonical Correlation Analysis
  • Representing proximity and categorical data with Multidimensional Scaling and Correspondence Analysis
  • Techniques for identifying latent structures and grouping observations via Factor and Cluster Analysis

1. Introduction to multivariate data and analysis (part 1)

1.1 Introduction to multivariate data

  • Multivariate data: Data where multiple measurements are taken on each unit.
  • Units can be subjects, objects, or any entities of interest.
  • These data are common across many research disciplines.
  • Often, analyzing variables together reveals more than analyzing them separately.

Data collected in research are usually multivariate, requiring simultaneous analysis.

  • Purpose: To understand structure, extract signals, and find patterns in data.
  • Multivariate analysis includes methods for exploration and formal inference.

1.2 History of multivariate analysis

  • Origins trace back to Galton and Pearson's work on correlation in the late 19th century.
  • Spearman laid foundations for factor analysis in the early 20th century.
  • Hotelling and Thurstone extended Spearman's work.
  • Fisher developed discriminant function analysis in the 1930s.
  • Multivariate analysis of variance (MANOVA) followed Fisher's ANOVA.

Early multivariate methods relied on extensive mathematics due to limited computation.

  • The advent of electronic computers in the late 20th century boosted practical applications.
  • Modern powerful computers and software enable routine application to large datasets.
  • "Data mining" is a term for extracting information from large datasets.

1.3 Variable types and missing values

  • Multivariate datasets are typically organized in a rectangular format (like spreadsheets).
  • Rows represent units, and columns represent variables.
  • Data can be represented as an n×qn \times q matrix XX, where nn is units and qq is variables.
  • xijx_{ij} denotes the value of the jthj^{th} variable for the ithi^{th} unit.

Data structure: nn units ×\times qq variables matrix.

  • Variables in a dataset are not always of the same type.
  • Four common measurement levels are distinguished:
    • Nominal: Unordered categories (e.g., sex, hair color).
    • Ordinal: Ordered categories with no equal distance (e.g., social class, health perception).
    • Interval: Equal differences, arbitrary zero (e.g., Celsius temperature).
    • Ratio: Equal differences, fixed zero (e.g., age, weight, Kelvin temperature).

Measurement levels can be pragmatic; ordinal data is often treated as interval.

1.3.1 Missing values

  • Missing values (NA) occur when data should be recorded but is not.
  • Reasons for missing values include non-response, dropouts, or unanswered questions.
  • Avoiding missing data during collection is the primary strategy.

Missing values complicate statistical analysis.

  • Complete-case analysis: Omitting any case with a missing value on any variable.
  • This can lead to substantial data loss with many variables.

Complete-case analysis: Removing entire rows with any missing data.

1.4 Covariances, correlations, and distances

  • Multivariate analysis uses relationships between variables to gain insights.
  • Separate univariate analyses might miss key data patterns.
  • Methods can be exploratory or used for statistical inference.
  • Exploratory methods focus on graphical displays and finding patterns.
  • Inferential methods assume data samples a population and test hypotheses.
  • The multivariate normal distribution is often assumed for inference.

Multivariate analysis combines variable information to reveal deeper structure.

  • The general aim is to uncover "signal" amidst "noise."
  • Exploratory techniques are often graphical and probabilistic models are absent.
  • Inferential techniques use sample data to make population statements.

Goal: Extract signal from noise.

Cover

Appendix A2 Binomial Distribution.pdf

📚 Appendix A2 Binomial Distribution.pdf

Brief overview

This document details binomial distribution probabilities across a range of sample sizes. Understanding these probabilities is crucial for analyzing discrete events with a fixed number of independent trials.

Key points

  • Binomial distribution probabilities for n=2 to 8.
  • Binomial distribution probabilities for n=13 to 16.
  • Binomial distribution probabilities for larger n values.
  • Calculation of outcome probabilities for varying sample sizes.

1. Binomial distribution probabilities for n=2 to 8

1.1 Understanding binomial probabilities

Binomial distribution probabilities help calculate the likelihood of a specific number of successes in a fixed number of independent trials. Each trial has only two possible outcomes: success or failure.

The probability of success remains constant for every trial. This summary focuses on these probabilities for n trials, where n ranges from 2 to 8.

The tables provided list probabilities for various outcomes x (number of successes) across different p values (probability of success). .

🔑 Important: Binomial probabilities are crucial for analyzing scenarios with binary outcomes and a fixed number of trials. .

1.2 Binomial probabilities for n=2 to 4

The tables present probabilities for different combinations of n (trials), x (successes), and p (probability of success). For instance, when n=2, the probability of getting 0 successes (x=0) with a success probability p=0.5 is 0.250.

Similarly, for n=3, the probability of 1 success (x=1) with p=0.25 is 0.422. .

1.2.1 Probability values for n=2

x (Successes)p=0.05p=0.1p=0.2p=0.25p=0.3p=0.4p=0.5
00.9020.8100.6400.5630.4900.3600.250
10.0950.1800.3200.3750.4200.4800.500
20.0020.0100.0400.0630.0900.1600.250

.

1.2.2 Probability values for n=3

x (Successes)p=0.05p=0.1p=0.2p=0.25p=0.3p=0.4p=0.5
00.8570.7290.5120.4220.3430.2160.125
10.1350.2430.3840.4220.4410.4320.375
20.0070.0270.0960.1410.1890.2880.375
30.0010.0080.0160.0270.0640.1250.216

.

1.2.3 Probability values for n=4

x (Successes)p=0.05p=0.1p=0.2p=0.25p=0.3p=0.4p=0.5
00.8150.6560.4100.3160.2400.1300.062
10.1710.2920.4100.4220.4120.3460.250
20.0140.0490.1540.2110.2650.3460.375
30.0040.0260.0470.0760.1540.2500.346
40.0020.0040.0080.0260.0620.1300.240

.

1.3 Binomial probabilities for n=5 to 8

These tables show probabilities for a greater number of trials. For example, with n=5, the probability of exactly 2 successes (x=2) when the success probability p=0.2 is 0.205.

For n=8, the probability of 4 successes (x=4) with p=0.5 is 0.232. [ 2]

1.3.1 Probability values for n=5

x (Successes)p=0.05p=0.1p=0.2p=0.25p=0.3p=0.4p=0.5
00.7740.5900.3280.2370.1680.0780.031
10.2040.3280.4100.3960.3600.2590.156
20.0210.0730.2050.2640.3090.3460.312
30.0010.0080.0510.0880.1320.2300.312
40.0060.0150.0280.0770.1560.2590.360
50.0010.0020.0100.0310.0780.1680.237

.

1.3.2 Probability values for n=6

x (Successes)p=0.05p=0.1p=0.2p=0.25p=0.3p=0.4p=0.5
00.7350.5310.2620.1780.1180.0470.016
10.2320.3540.3930.3560.3030.1870.094
20.0310.0980.2460.2970.3240.3110.234
30.0020.0150.0820.1320.1850.2760.312
40.0010.0150.0330.0600.1380.2340.311
50.0020.0040.0100.0370.0940.1870.303
60.0010.0040.0160.0470.1180.1780.262

.

1.3.3 Probability values for n=7

x (Successes)p=0.05p=0.1p=0.2p=0.25p=0.3p=0.4p=0.5
00.6980.4780.2100.1330.0820.0280.008
10.2570.3720.3670.3110.2470.1310.055
20.0410.1240.2750.3110.3180.2610.164
30.0040.0230.1150.1730.2270.2900.273
40.00