STATISTIČKA ANALIZA SKRIPTA- NOVA!!

📚 STATISTIČKA ANALIZA SKRIPTA- NOVA!!.docx

Brief overview

This document provides a comprehensive overview of statistical analysis techniques crucial for understanding and interpreting data. It covers fundamental methods for analyzing relationships between variables, identifying and addressing common regression problems, and modeling time-dependent data for forecasting. Mastering these concepts is essential for drawing accurate conclusions from statistical studies.

Key points

  • Overview of variance analysis and correlation techniques including ANOVA and Pearson's correlation.
  • Application of simple, exponential, polynomial, and multivariable regression models.
  • Identification and resolution of heteroskedasticity and multicollinearity in regression.
  • Calculation and interpretation of various price and quantity index numbers.
  • Time series analysis covering means, trend modeling, seasonality, and forecasting models.

1. Analysis of variance and correlation techniques

1.1 Analysis of variance (ANOVA)

Analysis of variance (ANOVA) breaks down total variance into components attributed to specific factors and an unexplained residual part. It is used to test if the means of multiple groups are significantly different.

ANOVA with one factor:

  • Tests if multiple samples originate from the same population.
  • Assesses the significance of differences among means of several groups.

📝 Example: Testing if companies' debt levels differ significantly based on their industry.

  • Hypothesis: Null hypothesis states no significant difference in means; alternative states there is a difference.
  • Testing uses the F-test, comparing variance between groups to variance within groups.
  • Assumptions: Samples from normal populations with equal variances, though some deviation is tolerated with equal sample sizes.

ANOVA with two factors:

  • Examines the combined effect of two independent factors on a dependent variable.
  • Tests hypotheses about mean differences considering both factors.

📝 Example: Investigating if "Industry" and "Stock exchange listing" significantly impact company debt.

  • Hypotheses are tested using the F-test, comparing variances and comparing results to critical F-distribution values.

Key terms in hypothesis testing:

  • Type I error (alpha): Probability of rejecting a true null hypothesis.
  • Type II error (beta): Probability of accepting a false null hypothesis.

1.2 Linear correlation

Correlation measures the degree of association between random variables. It can be positive (variables move in the same direction) or negative (variables move in opposite directions).

  • Complete correlation implies a functional relationship.
  • Partial correlation indicates a stochastic or statistical link.

Pearson's coefficient of linear correlation (r):

  • Measures the strength and direction of a linear relationship between two interval or ratio variables.
  • Ranges from -1 to +1.
  • Assumes variables are normally distributed; can be used for large samples if not.

📝 Example: An r-value of 0.92 shows a strong positive correlation between income and employee numbers.

  • Testing significance uses a t-test, employing Student's t-distribution for small samples (n < 30) and a normal distribution for large samples (n > 30).
Correlation TypeCoefficient ValueInterpretation
Positiver > 0Variables tend to increase or decrease together.
Negativer < 0One variable increases as the other decreases.
Strongr
Moderate0.3 <r
Weakr
  • Partial correlation coefficient accounts for the influence of other variables on the observed correlation.

1.3 Rank correlation

Rank correlation uses the ranks of data instead of their actual values. It is useful for ordinal data or when Pearson's assumptions are not met.

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

  • A non-parametric measure of association between two ranked variables.
  • Calculated using the ranks of the data.

📝 Example: A high rank correlation suggests students who do well on a math test will also do well on a statistics test.

  • Ranges from -1 to +1.
  • Significance is tested using a t-test, similar to Pearson's coefficient.
Rank Correlation (ρ\rho)Interpretation
ρ\rho close to 1Strong positive rank correlation
ρ\rho close to -1Strong negative rank correlation
ρ\rho close to 0Little to no rank correlation

1.4 Linear regression

Regression analysis models the relationship between a dependent variable and one or more independent variables. It aims to find an equation to predict the dependent variable.

  • Simple linear regression involves one dependent and one independent variable.
  • Multiple linear regression involves one dependent and multiple independent variables.

Assumptions for linear regression:

  • Linearity: The relationship between variables is linear.
  • Homoscedasticity: Residuals have constant variance.
  • Independence: Residuals are independent of each other.
  • Normality: Residuals are normally distributed.

The model: Y=β0+β1X+eY = \beta_0 + \beta_1 X + e

  • YY: Dependent variable.

  • XX: Independent variable.

  • β0\beta_0: Intercept (constant term).

  • β1\beta_1: Slope (coefficient of determination).

  • ee: Error term.

  • Parameters are estimated using the method of least squares, which minimizes the sum of squared errors.

  • This method provides BLUE (Best Linear Unbiased Estimates) according to the Gauss-Markov theorem.

📝 Example: A 1unitincreaseindebt(1 unit increase in debt (X)decreasesrevenues() decreases revenues (YUSD) by 101.05 million dollars.

Model fit:

  • Coefficient of determination (R2R^2): Proportion of variance in the dependent variable explained by the model. Ranges from 0 to 1.
  • Adjusted coefficient of determination: R2R^2 adjusted for the number of predictors and sample size.
MetricFormulaInterpretation
Coefficient of Determination (R2R^2)R2=SSRSSTR^2 = \frac{SSR}{SST}Percentage of variance in Y explained by X.
Adjusted R2R^2Radj2=1−(1−R2)(n−1)n−k−1R_{adj}^2 = 1 - \frac{(1-R^2)(n-1)}{n-k-1}R2R^2 adjusted for the number of predictors (kk) and sample size (nn).
  • Significance of the overall regression model is tested using an F-test.

1.5 Exponential regression

Exponential regression models relationships where the dependent variable changes at a rate proportional to its current value.

The model: Y=β0eβ1XY = \beta_0 e^{\beta_1 X}

  • Often linearized by taking the logarithm: log⁡(Y)=log⁡(β0)+β1X\log(Y) = \log(\beta_0) + \beta_1 X.
  • Parameters are estimated using least squares on the transformed data.

📝 Example: For a unit increase in production (XX), costs (YY) decrease by 0.926%.

  • This model describes how an absolute change in XX affects the relative change in YY.
  • The coefficient of determination (R2R^2) indicates the proportion of variance in log⁡(Y)\log(Y) explained by XX.

1.6 Polynomial and non-linear regression

Non-linear regression models are used when the relationship between variables cannot be adequately represented by a straight line.

  • True non-linear models cannot be linearized through transformations.
  • Transformable non-linear models can be converted into linear forms.
  • Linearity is crucial in parameters, not necessarily in variables.
  • Non-linear least squares or iterative methods are used for estimation when linearization is not possible.

Polynomial regression:

  • Uses polynomial functions to model curvilinear relationships.
  • The model includes higher powers of the independent variable(s).

The model: Y=β0+β1X+β2X2+⋯+βkXk+eY = \beta_0 + \beta_1 X + \beta_2 X^2 + \dots + \beta_k X^k + e

  • Parameters are estimated using least squares, often via matrix calculations.

📝 Example: For a unit increase in production (XX), income (YY) decreases by 2.76 million dollars at X=0X=0.

Double-logarithmic (Cobb-Douglas) model:

  • Models how a relative change in XX affects the relative change in YY.

The model: log⁡(Y)=β0+β1log⁡(X)\log(Y) = \beta_0 + \beta_1 \log(X)

  • β1\beta_1 represents elasticity.

📝 Example: A 1% increase in liquid assets (XX) decreases average interest rates (YY) by 0.72%.

  • The coefficient of determination (R2R^2) and adjusted R2R^2 are used to assess model fit, similar to linear regression.

1.7 Multiple regression

Multiple regression extends simple regression to include two or more independent variables.

The model: Y=β0+β1X1+β2X2+⋯+βkXk+eY = \beta_0 + \beta_1 X_1 + \beta_2 X_2 + \dots + \beta_k X_k + e

  • YY: Dependent variable.

  • X1,…,XkX_1, \dots, X_k: Independent variables.

  • β0,…,βk\beta_0, \dots, \beta_k: Regression coefficients.

  • Parameter estimation uses a matrix approach, similar to polynomial regression.

  • The overall significance of the model is tested with an F-test.

  • Individual coefficients can be tested for significance using t-tests.

📝 Example: An increase in illiteracy rate (X1X_1) and physicians per capita (X2X_2) influences birth rate (YY).

Variable selection methods:

  • Forward selection: Starts with no variables and adds them one by one based on significance.
  • Backward elimination: Starts with all variables and removes them based on insignificance.
  • Stepwise selection: Combines forward and backward steps, the most common method.
  • Enter method: All selected variables are entered into the model simultaneously.
  • Test method: Tests a subset of variables using changes in the coefficient of determination.

🔑 Important: Regression analysis helps understand how multiple factors collectively influence an outcome, but careful variable selection is crucial to avoid overfitting and multicollinearity.

2. Problems in regression analysis: heteroskedasticity and multicollinearity

2.1 Heteroskedasticity

Heteroskedasticity means the variance of the random error (residuals) is not constant across all observations. This violates a key assumption of regression analysis (homoskedasticity).

  • Problem:
  • Estimates from the ordinary least squares (OLS) method become inefficient.
  • Standard errors of estimates are incorrect, usually underestimated.
  • T-tests become unreliable, potentially leading to false conclusions about parameter significance.

Homoskedasticity assumes the variance of residuals is constant for all observations.

Heteroskedasticity: Residual variance is unequal.

2.1.1 Detecting heteroskedasticity

Several statistical tests can identify heteroskedasticity.

  • Spearman's rank correlation test:
  • Correlates the ranks of absolute residuals with the ranks of a suspected regressor variable.
  • Gold-Quandt test:
  • Assumes the standard deviation of the probability distribution is proportional to a variable's value.
  • Compares the start and end of a data series, often omitting the middle.
  • Glejser test:
  • Examines alternative functional forms to find a suitable relationship.

Tests: Spearman, Gold-Quandt, Glejser.

2.1.2 Resolving heteroskedasticity

Solutions aim to restore the homoskedasticity assumption.

  • Transforming observations:
  • If the standard deviation of residuals (σ\sigma) is known, divide each observation by σ\sigma. This results in residuals with a variance of 1.
  • The transformed model becomes: yiσi=β01σi+β1xi1σi+⋯+ϵi1σi\frac{y_i}{\sigma_i} = \beta_0 \frac{1}{\sigma_i} + \beta_1 \frac{x_{i1}}{\sigma_i} + \dots + \epsilon_i \frac{1}{\sigma_i}.
  • The new error term ϵiσi\frac{\epsilon_i}{\sigma_i} has a population variance of 1, fulfilling homoskedasticity.
  • Using non-linear functions:
  • Transforming a model to a log-log or log-linear form can stabilize the variance.

Solution: Transform data or use non-linear models.

2.2 Multicollinearity

Multicollinearity occurs when two or more predictor variables in a regression model are highly correlated. This violates the assumption of independent predictor variables.

  • Problem:
  • Leads to distorted and unrealistic estimates of individual predictor variable contributions.
  • The regression matrix (XTXX^T X) can become singular or near-singular.
  • This prevents a unique solution for parameter estimates or makes them highly sensitive to small data changes ("ill-conditioned matrix").

Multicollinearity: Predictors are highly correlated.

2.2.1 Consequences of multicollinearity

High correlation between predictors has significant impacts on model interpretation.

  • Impact on estimates:
  • Diagonal elements of the matrix (XTX)−1(X^T X)^{-1} become large.
  • This leads to large standard errors for estimated parameters.
  • Small t-statistic values result, incorrectly suggesting parameters are not statistically significant.

Large standard errors decrease parameter significance.

2.2.2 Detecting multicollinearity

Identifying multicollinearity is an ongoing challenge in statistical theory.

  • Variance Inflation Factor (VIF):
  • Measures how much the variance of an estimated regression coefficient is increased due to collinearity.
  • VIF is calculated as VIFj=11−Rj2VIF_j = \frac{1}{1 - R_j^2}, where Rj2R_j^2 is the coefficient of determination from regressing the jj-th predictor on all other predictors.
  • A common rule of thumb is that a VIF greater than 5 or 10 indicates problematic multicollinearity.
  • Tolerance (TOL):
  • Equivalent to TOLj=1−Rj2TOL_j = 1 - R_j^2.
  • Problematic multicollinearity exists if TOLj<0.1TOL_j < 0.1 (or VIF>10VIF > 10).
  • Farrar-Glauber test:
  • Tests the hypothesis of no multicollinearity (H0H_0) versus the presence of multicollinearity (HaH_a).
  • Uses the determinant of the correlation matrix (det(R)det(R)) between predictor variables.
  • The test statistic is χ2=−(n−1−2k+56)ln⁡(det(R))\chi^2 = -(n - 1 - \frac{2k+5}{6}) \ln(det(R)), which follows a chi-squared distribution.

VIF and Tolerance: Detect multicollinearity via R2R^2.

2.2.3 Resolving multicollinearity

Addressing multicollinearity often involves data or model adjustments.

  • Increase sample size:
  • More observations can sometimes reduce collinearity, but this is often impractical.
  • Use external estimates:
  • Incorporate prior knowledge or estimates about parameters.
  • Remove predictor variables:
  • Exclude one or more highly correlated predictor variables from the model.

Solutions: Increase sample size, use external data, or remove variables.

🔑 Important: Heteroskedasticity and multicollinearity violate core regression assumptions, leading to unreliable parameter estimates and significance tests. Understanding how to detect and address them is crucial for valid analysis.

3. Time series analysis: means, trend, seasonality, and forecasting

3.1 Means of time series

  • Arithmetic mean: This is used for interval time series. It represents the average value per unit of time. It is suitable only if the frequencies do not vary systematically over time. If a trend exists, the arithmetic mean can over- or underestimate the series.
  • Chronological mean: This is used for instantaneous time series. It is a weighted average of the frequencies at specific time points. Ponderations are assigned based on half the time interval between adjacent values.
  • Geometric mean: This is rarely used for interpretation. Its main use is calculating the average rate of change. It considers only the first and last values, which is a limitation.
Mean typeUse caseCalculation approach
Arithmetic meanInterval time seriesAverage value per time unit.
Chronological meanInstantaneous time seriesWeighted average of frequencies.
Geometric meanAverage rate of changeUses first and last values; limited interpretation otherwise.

3.2 Trend modeling

Time series can be stationary or contain a trend, indicating a long-term rise or fall. Time is always the independent variable.

  • Polynomial trends: These are additive models, often estimated using the method of least squares. A linear trend (k=1k=1) assumes a constant absolute change per unit time. Higher-degree polynomials fit more complex curves.
  • Exponential trends: These models describe a constant percentage change over time. They can be linearized through logarithmic transformation for estimation.
Trend typeModel formEstimation method (common)Notes
Polynomial (kk-th degree)Y=β0+β1X+...+βkXkY = \beta_0 + \beta_1 X +... + \beta_k X^kLeast squaresLinear in parameters.
ExponentialY=β0eβ1XY = \beta_0 e^{\beta_1 X}Log transform + least squaresY=β0(1+β1)XY = \beta_0 (1+\beta_1)^X for discrete time.
HyperbolicY=1β0+β1XY = \frac{1}{\beta_0 + \beta_1 X}Reciprocal transform + least squaresFits declining or saturating patterns.
Asymptotic (Growth)Non-linear; often models reach a limit.Three points or sumsModified exponential, logistic, Gompertz are examples.
  • Asymptotic trends: These models, also known as growth models, approach a limiting value (an asymptote). They are inherently non-linear and require methods like the three-point method or partial sums for estimation.
  • Modified exponential trend: This model is functional and estimated using partial sums or three selected points.
  • Logistic trend: Similar estimation methods are used, but with reciprocal values of the original data. This is useful for product life cycles.
  • Gompertz trend: This model uses logarithms of the original values and applies similar estimation techniques. It is used for economic phenomena like growth phases.

🔑 Important: Asymptotic trend models are non-linear and require specialized estimation methods beyond simple least squares.

3.3 Seasonality and irregular components

Time series are composed of several components:

  • Trend: Long-term rise or fall.
  • Cyclical: Periodic movements over two or more years.
  • Calendar: Variations due to different numbers of days or weeks in months/quarters.
  • Seasonal: Systematic movements within a year that repeat annually, often due to climate or holidays.
  • Irregular (random): Unpredictable influences.

Models for seasonality include additive, multiplicative, and mixed forms.

📝 Example: Easter's moving date can significantly impact economic analyses like retail sales and tourism due to its timing within the lunar calendar.

  • Moving averages: This method smooths the time series to estimate seasonal components. Centered moving averages are used, with the order matching the seasonal period (e.g., 12 for monthly data).
  • Seasonal index: This indicates the extent to which a period's value is higher or lower than the average due to seasonal effects.
  • Deseasonalized value: This is the original value adjusted to remove seasonal influences.
  • Residual deviation index: This represents the irregular or random component's influence.

3.4 Forecasting models

Forecasting models aim to predict future values based on historical data.

  • Autocorrelation: Measures the linear relationship between series values separated by a time lag.
  • Partial autocorrelation: Measures the relationship at a specific lag, excluding the influence of other lags.
  • Slow decay of autocorrelation coefficients indicates non-stationarity.
  • Fast decay suggests stationarity.

Key linear forecasting models include:

Model typeDescriptionNotation
AutoregressiveCurrent value depends on previous values of the same variable.AR(P)
Moving AverageCurrent value depends on past forecast errors.MA(Q)
Autoregressive Moving AverageCombines AR and MA components.ARMA(p,q)
Autoregressive Integrated MAARMA model with differencing (d) applied to achieve stationarity.ARIMA(p,d,q)
Seasonal Autoregressive Int. MAExtends ARIMA to account for seasonal components with seasonal differencing (D) and seasonal lag (s).SARIMA(p,d,q)x(P,D,Q)s
  • The Box-Jenkins procedure is used for selecting, estimating, and testing ARIMA models.

🔑 Important: Stationarity is crucial for most time series models; differencing is a common technique to achieve it.

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

See also