Basic statistical concepts and terminology (part 1)

📚 S1100E.pdf

Brief overview

This document introduces fundamental statistical concepts and their applications. It covers essential terminology, methods for analyzing single and multiple variables, and the principles of probability. Understanding these elements is crucial for interpreting data and statistical findings.

Key points

  • Overview of basic statistical terminology, including populations, samples, and data types.
  • Methods for analyzing single variables with graphical and numerical summaries.
  • Understanding bivariate statistics, correlation, and simple linear regression.
  • Introduction to combinatorial analysis for counting possibilities.
  • Core concepts of probability, including conditional probability and Bayes' theorem.

1. Basic statistical concepts and terminology (part 1)

1.1 Introduction to statistics

  • Statistics: The science of collecting, analyzing, presenting, and interpreting data. It helps in making decisions under uncertainty. .
  • Two main areas:
    • Descriptive statistics: Methods for organizing, displaying, and describing data. .
    • Inferential statistics: Using sample results to make decisions about a population. .

1.2 Key terminology

A population is the entire group studied. A statistical unit is a single member of that group.

4. A sample is a smaller, representative part of the population.

The sample size (nn) is the number of observations in the sample. .

A census includes every member of the population. A sample survey collects data from a portion.

A representative sample closely reflects the population's characteristics. .

A statistical variable (or character) is a characteristic of individuals. Modalities are the specific values a variable can take.

.

A sample is chosen to represent the population. Sampling is the process of selecting it. .

Statistical series

  • Statistical series: All results of a study, showing values and their frequencies. .

Here are the types of statistical series:

Type of seriesDescriptionExample
Individual seriesAll observations listed; each has a frequency of 1.10, 9, 12, 14
Discrete seriesObservations listed with their frequencies in a table.xi: 9, 10, 12, 14; ni: 1, 4, 2, 2
Continuous seriesClass intervals listed with their frequencies in a table.[2, 6[, [6, 10[; frequencies...

5.

  • Data set: A collection of observations for one or more variables. .

1.3 Types of variables

Variables are classified as qualitative or quantitative.

Qualitative or categorical variables

  • Cannot be numerical, but are classified into non-numeric categories. .
  • Data collected from them is called qualitative data. .
  • Nominal categories: No natural order (e.g., gender, religion). .
  • Ordinal variables: Categories have a natural order (e.g., small, medium, large). .

Quantitative variables

  • Can be measured numerically. .

  • Data collected is called quantitative data. .

  • Two types:

    TypeDescriptionExample
    Quantitative discreteValues are countable; no intermediate values between them.Number of students at LU
    Quantitative continuousCan assume any numerical value within an interval.Weight, employee salaries

[ -7] 6.

2.1 Basic notation in univariate analysis

  • Frequency (nin_i): The number of times a value (xix_i) appears. .
  • Total frequency (nn): The total number of observations. n=∑nin = \sum n_i. .
  • Relative frequency (fif_i): The proportion of times a value appears. fi=ni/nf_i = n_i / n. ∑fi=1\sum f_i = 1. 8.
  • Percentage (pip_i): Relative frequency multiplied by 100. pi=fi×100p_i = f_i \times 100. ∑pi=100\sum p_i = 100. .

Cumulative frequencies summarize data up to a certain value.

| Type | Notation | Description | | :------------------------------- | :------- | :----------------------------------------------------------------------------- | | Increasing cumulative frequency | NiN_i | Number of observations less than or equal to xix_i. Ni=∑j=iknjN_i = \sum_{j=i}^{k} n_j. | | Increasing cumulative rel. freq. | FiF_i | Relative frequency of observations ≤xi\leq x_i. Fi=∑j=ikfjF_i = \sum_{j=i}^{k} f_j. | | Decreasing cumulative frequency | Ni↓N_i \downarrow | Number of observations greater than or equal to xix_i. Ni↓=∑j=1injN_i \downarrow = \sum_{j=1}^{i} n_j. | | Decreasing cumulative rel. freq. | Fi↓F_i \downarrow | Relative frequency of observations ≥xi\geq x_i. Fi↓=∑j=1ifjF_i \downarrow = \sum_{j=1}^{i} f_j. |

9.

2.2 Graphs for univariate analysis

Graphs help visualize data distribution.

2.2.1 Graphs for nominal and ordinal qualitative variables

  • Nominal variables: No order to categories (e.g., blood type). .
  • Ordinal variables: Categories have an order (e.g., grades: good, very good). .
  • Cumulative frequencies only apply to ordinal variables. .

Common graphs:

| Graph | Description | | :--------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Bar chart | Rectangles represent modalities; height is proportional to frequency. Spaces between bars distinguish from histograms. Modalities on horizontal axis (no order for nominal). | | Pie chart | A circle represents total frequency. Each slice (angle) is proportional to its modality's frequency (αi=fi×360\alpha_i = f_i \times 360). [10-11] |

Bar charts are better for comparing values than pie charts. 11.

2.2.2 Graphs for quantitative discrete variables

  • Common graphs include the bar chart and the cumulative distribution function. 12.

Graphs for discrete variables:

| Graph | Description | | :---------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Strip chart (Bar chart) | Juxtaposed bars represent discrete values. Height shows frequency. Values are ordered on the x-axis. | | Frequency polygon | Obtained by joining the tops of the bars in a bar chart. [13](#page=13) | | Cumulative distribution function | Visualizes cumulative frequencies. Shows the number or proportion of observations ≤\leq a given value. Values on x-axis, cumulative frequencies on y-axis. |

2.2.3 Graphs for quantitative continuous variables

  • Values are grouped into classes for representation. 14.
  • Key terms for classes:
    • Lower bound (Ci−C^-_i) and upper bound (Ci+C^+_i) define a class. .
    • Midpoint (CiC_i): (Ci−+Ci+)/2(C^-_i + C^+_i) / 2. .
    • Width/amplitude (aia_i): Ci+−Ci−C^+_i - C^-_i. .

Common graphs:

| Graph | Description | | :------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Histogram | Juxtaposed rectangles where area is proportional to class frequency. If class widths are equal, height is proportional to frequency. If widths differ, height represents density (di=ni/aid_i = n_i / a_i). [15](#page=15) | | Frequency polygon | Joins the midpoints of classes. For equal amplitudes, height is frequency. For unequal amplitudes, use density. | | Cumulative frequencies curve (Ogive) | Plots points where the x-axis is the upper bound of the class and the y-axis is the cumulative frequency. The curve joins these points. [17](#page=17) |

2.2.4 Grouped data

  • Rules help determine the optimal number of classes (kk) and their amplitude (aa). .
  • Approximate rule for optimal number of classes: k≥ln⁡nln⁡2k \geq \frac{\ln n}{\ln 2}. .

The number of classes (kk) and class width (aa) are chosen to best represent the data. .

2.3 Numerical summary

Measures of central tendency and dispersion summarize data. These are used for quantitative variables.

.

2.3.1 Measures of central tendency

These describe the "middle" of a distribution.

| Measure | Description | Calculation (un-grouped data) | Calculation (grouped by frequency) | Calculation (grouped by class) | | :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----------------------------------------------------- | :---------------------------------------------------------- | :-------------------------------------------------------- | | Mean (xˉ\bar{x}) | Sum of all values divided by the number of values. Affected by extreme values. Sum of deviations from mean is zero. | xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n} \sum_{i=1}^{n} x_i | xˉ=1n∑i=1knixi\bar{x} = \frac{1}{n} \sum_{i=1}^{k} n_i x_i | xˉ=1n∑i=1knici\bar{x} = \frac{1}{n} \sum_{i=1}^{k} n_i c_i | | Mode (MoM_o) | The observation with the highest frequency. Can be qualitative or quantitative. May not exist or be unique. Sensitive to class amplitude changes. [-20] | Most frequent value. | Value with highest nin_i. | Modal class with highest frequency (or density if unequal widths). Formula provided for calculation. [19-20] | | Median (MeM_e) | The middle value when data is ordered. Divides data into two equal halves. | Middle value: x(n+1)/2x_{(n+1)/2} (odd nn) or average of xn/2x_{n/2} and xn/2+1x_{n/2+1} (even nn). | Find class where cumulative frequency NiN_i crosses n/2n/2. Formula provided for calculation. | Median class has N(Ci−)<n/2<N(Ci+)N(C^-_i) < n/2 < N(C^+_i). Formula provided. |

The median is found where cumulative frequency curves intersect. 20.

🔑 Important: The mean, mode, and median provide complementary views of the data's center. 18.

2. Basic statistical concepts and terminology (part 2)

2.1 Measures of dispersion

Measures of dispersion summarize how spread out data points are from the central tendency. They indicate the variability of observations.

Common measures include range, variance, standard deviation, coefficient of variation, and interquartile range.

2.1.1 Range

The range is the difference between the largest and smallest values in a dataset. It provides a quick idea of data spread but is sensitive to extreme values.

Range Formula: Range=max⁡(xi)−min⁡(xi)\text{Range} = \max(x_i) - \min(x_i)

📝 Example: For the set {2, 3, 3, 5, 5, 5, 8, 10, 12}, the range is 12−2=1012 - 2 = 10.

2.1.2 Variance and standard deviation

The variance (V(X)V(X)) measures the average squared difference of each data point from the mean. A larger variance indicates greater dispersion.

Variance Formulas:

For individual data points: V(X)=1n∑i=1n(xi−xˉ)2V(X) = \frac{1}{n} \sum_{i=1}^{n} (x_i - \bar{x})^2 For data with frequencies: V(X)=1n∑i=1kni(xi−xˉ)2V(X) = \frac{1}{n} \sum_{i=1}^{k} n_i (x_i - \bar{x})^2 For grouped data: V(X)=1n∑i=1kni(ci−xˉ)2V(X) = \frac{1}{n} \sum_{i=1}^{k} n_i (c_i - \bar{x})^2

🔑 Important: Variance is always non-negative.

The standard deviation (σ\sigma) is the square root of the variance. It has the same units as the data, making it easier to interpret.

Standard Deviation Formula: σ(X)=V(X)\sigma(X) = \sqrt{V(X)}

🔑 Important: A larger standard deviation means the data points are, on average, further from the mean 21.

Alternative Variance Formula: V(X)=1n∑i=1nxi2−xˉ2V(X) = \frac{1}{n} \sum_{i=1}^{n} x_i^2 - \bar{x}^2

📝 Example: For a dataset with a mean of 7.45 and a calculated variance of 22.66, the standard deviation is 22.66≈4.76\sqrt{22.66} \approx 4.76.

2.1.3 Coefficient of variation

The coefficient of variation (CV) is a standardized measure of dispersion. It is useful for comparing the variability of datasets with different units or scales.

Coefficient of Variation Formula: CV(X)=σ(X)xˉCV(X) = \frac{\sigma(X)}{\bar{x}}

  • Homogeneity: A CV less than 30% generally indicates homogeneous data.
  • Heterogeneity: A CV greater than 30% suggests heterogeneous data.

🔑 Important: The CV is unitless, allowing comparisons between variables with different units 22.

📝 Example: Comparing the dispersion of age (SD=1.92, Mean=37.1) and salary (SD=7.07, Mean=300).

  • Age CV = 1.92/37.1≈0.051.92 / 37.1 \approx 0.05 (5%)
  • Salary CV = 7.07/300≈0.027.07 / 300 \approx 0.02 (2%) The age data is more dispersed relative to its mean than the salary data.

2.1.4 Quantiles

Quantiles divide a distribution into equal parts. Common quantiles include quartiles, deciles, and percentiles.

  • Quartiles: Divide data into four equal parts.
    • Q1Q_1: First quartile (25th percentile). At least 25% of data is less than or equal to Q1Q_1.
    • Q2Q_2: Second quartile (50th percentile), which is the median.
    • Q3Q_3: Third quartile (75th percentile). At least 75% of data is less than or equal to Q3Q_3 23.

🔑 Important: Quartiles are found by ordering data and using specific calculations based on the sample size (nn) and the proportion (α\alpha) 24.

2.1.5 Interquartile range

The interquartile interval is the range between the first and third quartiles, [Q1,Q3][Q_1, Q_3]. The interquartile range (IQR) is the width of this interval and is a robust measure of spread, unaffected by extreme values.

[24-25]

Interquartile Range Formula: IQR=Q3−Q1\text{IQR} = Q_3 - Q_1

🔑 Important: IQR represents the range of the middle 50% of the data.

2.1.6 Boxplot

A boxplot is a graphical summary of data distribution. It displays the median, quartiles, minimum, and maximum values.

  • Basic Boxplot: Shows a box from Q1Q_1 to Q3Q_3, with a line for the median. Whiskers extend to the minimum and maximum values 25.
  • Modified Boxplot: Accounts for extreme values.
    • Whiskers extend to "adjacent values" within Q1−1.5×IQRQ_1 - 1.5 \times \text{IQR} and Q3+1.5×IQRQ_3 + 1.5 \times \text{IQR}.
    • Values outside this range are plotted as individual points (extreme values).

🔑 Important: Boxplots visually highlight central tendency, spread, and potential outliers. [25-26]

2.2 Measures of shape

Measures of shape describe the asymmetry and peakedness of a distribution. [26-27]

2.2.1 Skewness

Skewness measures the asymmetry of a distribution.

  • Zero Skewness (γ1=0\gamma_1 = 0): The distribution is symmetric. The mean, median, and mode are equal. [26-27]
  • Positive Skewness (γ1>0\gamma_1 > 0): The distribution is skewed to the right (tail extends to higher values). Mean > Median > Mode. [26-27]
  • Negative Skewness (γ1<0\gamma_1 < 0): The distribution is skewed to the left (tail extends to lower values). Mean < Median < Mode. [26-27]

Fisher's Skewness Coefficient Formula: γ1=m3σ3\gamma_1 = \frac{m_3}{\sigma^3} where m3=1n∑(xi−xˉ)3m_3 = \frac{1}{n} \sum (x_i - \bar{x})^3 26.

2.2.2 Kurtosis

Kurtosis measures the peakedness or flatness of a distribution relative to a normal distribution.

  • Mesokurtic (γ2=0\gamma_2 = 0): Normal distribution shape (bell-shaped).
  • Leptokurtic (γ2>0\gamma_2 > 0): Sharper peak and heavier tails than a normal distribution.
  • Platykurtic (γ2<0\gamma_2 < 0): Flatter peak and lighter tails than a normal distribution.

Fisher's Kurtosis Coefficient Formula: γ2=m4σ4−3\gamma_2 = \frac{m_4}{\sigma^4} - 3 where m4=1n∑(xi−xˉ)4m_4 = \frac{1}{n} \sum (x_i - \bar{x})^4 27.

2.3 Transformation of variables

A transformation of a variable involves applying a linear function yi=axi+by_i = ax_i + b to the original data xix_i.

  • Effect on Mean: The new mean yˉ\bar{y} is yˉ=axˉ+b\bar{y} = a\bar{x} + b.
  • Effect on Variance: The new variance V(Y)V(Y) is V(Y)=a2V(X)V(Y) = a^2V(X).
  • Effect on Standard Deviation: The new standard deviation σ(Y)\sigma(Y) is σ(Y)=∣a∣σ(X)\sigma(Y) = |a|\sigma(X).
  • Unaffected Measures: Skewness and kurtosis remain unchanged by linear transformations.

🔑 Important: Location measures (mean, median, mode) are affected by both scaling (aa) and shifting (bb), while dispersion measures are only affected by scaling 28.

2.4 Aggregation of means and variances

When data is divided into two groups (GA and GB) with sizes nAn_A and nBn_B, the overall statistics can be calculated from group statistics.

Aggregated Mean: xˉ=nAxˉA+nBxˉBnA+nB\bar{x} = \frac{n_A\bar{x}_A + n_B\bar{x}_B}{n_A + n_B}

Aggregated Variance: V(X)=nAσA2+nBσB2nA+nB+nA(xˉA−xˉ)2+nB(xˉB−xˉ)2nA+nBV(X) = \frac{n_A\sigma_A^2 + n_B\sigma_B^2}{n_A + n_B} + \frac{n_A(\bar{x}_A - \bar{x})^2 + n_B(\bar{x}_B - \bar{x})^2}{n_A + n_B}

🔑 Important: The aggregated variance has two components: the pooled variance within groups and the variance between group means 29.

🔑 Important: Measures of dispersion summarize data spread, while measures of shape describe distribution symmetry and peakedness. [26-27]

3. Bivariate statistics and regression

3.1 Data representation

  • Bivariate statistics: Analyzing relationships between two variables, X and Y.
  • Data format: A list of pairs (xi,yi)(x_i, y_i) for nn individuals.

3.1.1 Scatter plot

  • Purpose: Visualizing the relationship between two quantitative variables.
  • Method: Plotting each individual as a point (xi,yi)(x_i, y_i) on a coordinate system.
  • Insights: Shows data dispersion, the form of the relationship, and its direction.

3.1.2 Contingency table

  • Use case: For discrete variables or when nn is large, allowing repeated observations.
  • Structure: A table showing frequencies (nijn_{ij}) for each pair of distinct values (xi,yj)(x_i, y_j).
  • Total frequency: ∑i=1p∑j=1qnij=n\sum_{i=1}^p \sum_{j=1}^q n_{ij} = n.
  • Relative frequency: fij=nijnf_{ij} = \frac{n_{ij}}{n}, with ∑i=1p∑j=1qfij=1\sum_{i=1}^p \sum_{j=1}^q f_{ij} = 1.

📝 Example: A contingency table can show the joint distribution of children and siblings for 80 women.

3.2 Association between two quantitative variables

  • Goal: Understanding how variables relate, using marginal and conditional distributions.

3.2.1 Marginal distributions

  • Definition: Analyzing one variable while ignoring the other, creating univariate series.
  • Marginal series of X: {xi,i=1,...,n}\{x_i, i=1,...,n\}.
  • Marginal series of Y: {yi,i=1,...,n}\{y_i, i=1,...,n\}.
  • From contingency table:
    • Marginal distribution of X: Pairs (xi,ni.)(x_i, n_{i.}) where ni.=∑j=1qnijn_{i.} = \sum_{j=1}^q n_{ij}.
    • Marginal distribution of Y: Pairs (yj,n.j)(y_j, n_{.j}) where n.j=∑i=1pnijn_{.j} = \sum_{i=1}^p n_{ij}.
  • Sum of marginal frequencies: ∑i=1pni.=∑j=1qn.j=n\sum_{i=1}^p n_{i.} = \sum_{j=1}^q n_{.j} = n.
  • Marginal relative frequencies: fi.=ni.nf_{i.} = \frac{n_{i.}}{n} and f.j=n.jnf_{.j} = \frac{n_{.j}}{n}.

📝 Example: For a table of children (X) and siblings (Y), marginal distributions show total counts for each number of children or siblings.

3.2.2 Conditional distributions

  • Definition: Examining the distribution of one variable for a fixed value of the other.
  • Y given X= xix_i: The distribution of Y values for individuals with X=xiX=x_i. Found in the ii-th row of the contingency table.
    • Pairs: (yj,nij)(y_j, n_{ij}).
  • X given Y= yjy_j: The distribution of X values for individuals with Y=yjY=y_j. Found in the jj-th column of the contingency table.
    • Pairs: (xi,nij)(x_i, n_{ij}).
  • Conditional relative frequencies:
    • fj∣i=nijni.f_{j|i} = \frac{n_{ij}}{n_{i.}} (Y given X).
    • fi∣j=nijn.jf_{i|j} = \frac{n_{ij}}{n_{.j}} (X given Y).

📝 Example: The conditional distribution of siblings (Y) given a woman has 2 children (X=2) shows how sibling counts vary only for those with two children.

3.2.3 Analysis of marginal and conditional distributions

  • Methodology: Treated as univariate distributions, analyzed with graphical and numerical summaries.
  • Marginal means:
    • xˉ=1n∑i=1pni.xi\bar{x} = \frac{1}{n} \sum_{i=1}^p n_{i.}x_i
    • yˉ=1n∑j=1qn.jyj\bar{y} = \frac{1}{n} \sum_{j=1}^q n_{.j}y_j
  • Marginal variances:
    • σX2=V(X)=1n∑i=1pni.xi2−xˉ2\sigma_X^2 = V(X) = \frac{1}{n} \sum_{i=1}^p n_{i.}x_i^2 - \bar{x}^2
    • σY2=V(Y)=1n∑j=1qn.jyj2−yˉ2\sigma_Y^2 = V(Y) = \frac{1}{n} \sum_{j=1}^q n_{.j}y_j^2 - \bar{y}^2

🔑 Important: Conditional means and variances are calculated similarly to marginal ones but use the conditional frequencies.

3.2.4 Independence

  • Definition: Two variables are independent if the distribution of one does not depend on the other.
  • Conditions for independence:
    • fi∣j=fi.f_{i|j} = f_{i.} for all i,ji, j.
    • fj∣i=f.jf_{j|i} = f_{.j} for all i,ji, j.
    • nij=ni.n.jnn_{ij} = \frac{n_{i.}n_{.j}}{n} for all i,ji, j.
    • fij=fi.f.jf_{ij} = f_{i.}f_{.j} for all i,ji, j.

🔑 Important: Independence means knowing one variable's value provides no information about the other.

3.3 Relation between two variables

  • Goal: Quantifying the strength and defining the nature of the relationship between two variables.

3.3.1 Coefficient of linear correlation

  • Covariance: Measures the joint variability of two quantitative variables.
    • Formula: cov(X,Y)=1n∑i=1n(xi−xˉ)(yi−yˉ)\text{cov}(X,Y) = \frac{1}{n} \sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})
    • Formula (grouped data): cov(X,Y)=1n∑i=1p∑j=1qnij(xi−xˉ)(yj−yˉ)\text{cov}(X,Y) = \frac{1}{n} \sum_{i=1}^p \sum_{j=1}^q n_{ij}(x_i - \bar{x})(y_j - \bar{y})
  • Covariance properties:
    • Can be positive (increasing relation), negative (decreasing relation), or zero (no linear relation).
    • cov(X,Y)=cov(Y,X)\text{cov}(X,Y) = \text{cov}(Y,X).
    • cov(X,X)=V(X)\text{cov}(X,X) = V(X).
  • Linear correlation coefficient (ρ\rho): Standardizes covariance to measure the strength and direction of a linear relationship.
    • Formula: ρ(X,Y)=cov(X,Y)σxσy\rho(X,Y) = \frac{\text{cov}(X,Y)}{\sigma_x \sigma_y}
  • Properties of ρ\rho:
    • Ranges from -1 to 1.
    • Independent of units and linear transformations of variables.
    • Same sign as covariance.
  • Interpretation of ρ\rho:
    • ρ=1\rho = 1: Perfect positive linear correlation.
    • ρ=−1\rho = -1: Perfect negative linear correlation.
    • ρ=0\rho = 0: No linear correlation.
    • ∣ρ∣→1|\rho| \to 1: Strong linear correlation.
    • ∣ρ∣→0|\rho| \to 0: Weak linear correlation.

🔑 Important: Independence implies ρ=0\rho = 0, but ρ=0\rho = 0 does not necessarily imply independence.

3.3.2 Simple linear regression

  • Purpose: Modeling the linear relationship between a dependent variable (Y) and an independent variable (X).
  • Model: yi=axi+b+ϵiy_i = ax_i + b + \epsilon_i, where ϵi\epsilon_i is the error term.
  • Ordinary Least Squares (OLS): Method to estimate parameters aa and bb by minimizing the sum of squared errors.
    • Slope estimate: a^=Cov(X,Y)V(X)=σxyσx2\hat{a} = \frac{\text{Cov}(X,Y)}{V(X)} = \frac{\sigma_{xy}}{\sigma_x^2}
    • Intercept estimate: b^=yˉ−a^xˉ\hat{b} = \bar{y} - \hat{a}\bar{x}
  • Regression line equation: y^=a^x+b^\hat{y} = \hat{a}x + \hat{b}
  • Regression of X on Y: xi=cyi+d+uix_i = cy_i + d + u_i, with c^=Cov(X,Y)V(Y)\hat{c} = \frac{\text{Cov}(X,Y)}{V(Y)} and d^=xˉ−c^yˉ\hat{d} = \bar{x} - \hat{c}\bar{y}.
  • Coefficient of determination (R2R^2):
    • Measures the proportion of variance in Y explained by X.
    • R2=(ρ(X,Y))2R^2 = (\rho(X,Y))^2.
    • 0≤R2≤10 \le R^2 \le 1. A value close to 1 indicates a good fit.

🔑 Important: The regression line always passes through the mean point (xˉ,yˉ)(\bar{x}, \bar{y}).

3.3.3 Coefficient of correlation and Regression

  • Relationship between slope (a^\hat{a}) and correlation (ρ\rho):
    • a^=ρ(X,Y)σyσx\hat{a} = \rho(X,Y) \frac{\sigma_y}{\sigma_x}
    • The slope and correlation coefficient have the same sign.
  • Product of slopes: If a^\hat{a} is the slope of Y on X, and c^\hat{c} is the slope of X on Y, then ρ2=a^c^\rho^2 = \hat{a}\hat{c}.

🔑 Important: R2R^2 is the square of the correlation coefficient and indicates the proportion of variance explained.

4. Combinatorial analysis and probability

4.1 Combinatorial analysis

Combinatorial analysis uses methods to count and classify objects. It's vital for probability, helping to enumerate favorable and possible cases.

The goal is computation, not listing every outcome.

4.1.1 Tools for enumeration

  • Tables: Useful for two-sequence experiments. They show all possible outcomes systematically.
  • Lists: Can be long and prone to forgetting or duplicating items.
  • Trees: Schemas for describing and counting all experiment outcomes. They are safer than lists and can be completed partially 58.

Trees are safer than lists for counting outcomes.

4.1.2 The multiplication principle

If there are n1n_1 ways for operation 1, n2n_2 ways for operation 2, and so on up to nkn_k ways for operation k, then all operations can be performed in n1×n2×⋯×nkn_1 \times n_2 \times \dots \times n_k ways.

4.1.3 The addition principle

If there are n1n_1 ways for operation 1, n2n_2 ways for operation 2,..., and nkn_k ways for operation k, and these operations cannot be performed simultaneously, then at least one operation can be performed in n1+n2+⋯+nkn_1 + n_2 + \dots + n_k ways 59.

4.2 Enumeration methods

These methods help count possibilities in different scenarios: permutations, arrangements, and combinations.

4.2.1 Permutations

A permutation is an ordering of all objects in a set.

TypeFormulaDescription
Permutations without repetitionn!n!Ordering of nn distinct objects.
Permutations with repetitionn!n1!×⋯×nk!\frac{n!}{n_1! \times \dots \times n_k!}For nn objects with n1,…,nkn_1, \dots, n_k identical items.
Permutations around a roundtable(n−1)!(n-1)!Circular arrangements of nn objects.

4.2.2 Arrangements

Arrangements involve selecting and ordering a subset of objects 60.

TypeFormulaDescription
Arrangements with repetitionnkn^kOrdering kk objects from nn, with repetition allowed.
Arrangements without repetitionAnk=n!(n−k)!A_n^k = \frac{n!}{(n-k)!}Ordering kk distinct objects from nn.

4.2.3 Combinations

Combinations involve selecting a subset of objects where order does not matter.

TypeFormulaDescription
Combinations without repetitionCnk=n!(n−k)!k!C_n^k = \frac{n!}{(n-k)!k!}Selecting kk distinct objects from nn, order ignored.
Combinations with repetitionCn+k−1k=(n+k−1)!(n−1)!k!C_{n+k-1}^k = \frac{(n+k-1)!}{(n-1)!k!}Selecting kk objects from nn, with repetition allowed.

Combinations focus on the selection of objects, not their order.

Key points about ordering and repetition:

  • Arrangement without repetition: Each object is observed once.
  • Arrangement with repetition: Objects can be observed multiple times.
  • Combination: Characterized only by the chosen objects, not their order.
  • Choosing kk from nn without order: Same as choosing n−kn-k from nn without order 61.

4.3 Probability

4.3.1 Basic concepts

  • Random experiment: An experiment whose outcomes are unpredictable but repeatable under same conditions.
  • Universe (Ω\Omega): The set of all possible outcomes of a random experiment.
  • Event (A): A subset of the universe (Ω\Omega). An elementary event has only one outcome.
  • Certain event (Ω\Omega): An event that is guaranteed to occur.
  • Impossible event (∅\emptyset): An event that cannot occur.
  • Union (A∪BA \cup B): Occurrence of event A or event B (or both).
  • Intersection (A∩BA \cap B): Simultaneous occurrence of events A and B.
  • Complement (Aˉ\bar{A}): The event that A does not occur.
  • Incompatible events (A, B): Events that cannot occur simultaneously (A∩B=∅A \cap B = \emptyset) 62.

Probability of an event

If an experiment has n(Ω)n(\Omega) equally likely outcomes and event A has n(A)n(A) favorable outcomes, the probability of A is: P(A)=n(A)n(Ω)=Number of favorable casesNumber of possible casesP(A) = \frac{n(A)}{n(\Omega)} = \frac{\text{Number of favorable cases}}{\text{Number of possible cases}}.

Properties of probability:

  • 0≤P(A)≤10 \le P(A) \le 1 for any event A.
  • P(A)=0P(A) = 0 if A is impossible.
  • P(A)=1P(A) = 1 if A is certain.
  • P(Ω)=1P(\Omega) = 1.
  • P(∅)=0P(\emptyset) = 0.
  • P(Aˉ)=1−P(A)P(\bar{A}) = 1 - P(A).
  • If A⊆BA \subseteq B, then P(A)≤P(B)P(A) \le P(B).
  • P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B).
  • P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B) if A and B are incompatible 63.

4.3.2 Conditional probability

Conditional probability quantifies the likelihood of an event given that another event has occurred.

  • P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}: Probability of A given B.
  • P(B∣A)=P(A∩B)P(A)P(B|A) = \frac{P(A \cap B)}{P(A)}: Probability of B given A.

Independence: Two events A and B are independent if the occurrence of one does not affect the other. This means P(A∣B)=P(A)P(A|B) = P(A) and P(B∣A)=P(B)P(B|A) = P(B), or equivalently, P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B).

Independence means events don't influence each other's probabilities.

4.3.3 Bayes' Theorem

Bayes' theorem relates conditional probabilities and allows updating beliefs based on new evidence. It uses prior probabilities to calculate posterior probabilities.

A partition of a set S is a collection of subsets BiB_i such that their union is S and they are mutually exclusive (Bi∩Bj=∅B_i \cap B_j = \emptyset for i≠ji \neq j) 64.

For events B1,…,BnB_1, \dots, B_n forming a partition of S, and event A: P(Bi∣A)=P(A∣Bi)P(Bi)∑j=1nP(A∣Bj)P(Bj)P(B_i|A) = \frac{P(A|B_i)P(B_i)}{\sum_{j=1}^{n} P(A|B_j)P(B_j)}.

  • P(Bi)P(B_i) are prior probabilities.
  • P(Bi∣A)P(B_i|A) are posterior probabilities 65.

Bayes' theorem updates probabilities with new information.

🔑 Important: Combinatorial methods are essential for calculating the numerator and denominator in probability formulas 57.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also