A Practical Guide to Empirical Analysis
Naguib Lallmahomed · naglal@linux-mauritius.com · 2026-06-14
Upon completing this chapter, you will be able to:
Econometrics is the intersection of economics, mathematics, and statistics. It provides the tools to:
Econometrics is the application of statistical methods to economic data for the purpose of testing economic theories and forecasting economic phenomena.
A typical econometric analysis follows these steps:
MORISTAT is written in standard C and compiles on any system with a C compiler.
# Compile MORISTAT
gcc -o moristat moristat.c -lm
# Run MORISTAT
./moristat
Let's walk through a complete example:
MORISTAT> LOAD sales.csv
MORISTAT> SUMMARY
MORISTAT> EXIT
When you run a regression, MORISTAT produces a comprehensive output:
============================================================
REGRESSION RESULTS
============================================================
Dependent variable: Sales
Observations: 100, Regressors: 3
Variable Coeff Std Err t-stat p-value
-------- ------ ------- ------ -------
Intercept 10.2345 2.1456 4.7692 0.000005 ***
Advertising 2.3456 0.4567 5.1369 0.000001 ***
Price -1.2345 0.3456 -3.5718 0.000543 ***
R-squared: 0.8924, Adj R-squared: 0.8892
F-statistic: 412.34 (p=0.000000)
| Element | What it means | Interpretation |
|---|---|---|
| Coefficient | Estimated effect on Y | ΔY = β × ΔX |
| Std Error | Measure of precision | Smaller = more precise |
| t-statistic | Coefficient / Std Error | Tests if β ≠ 0 |
| p-value | Probability of observed result | p < 0.05 = significant |
| R-squared | % of variation explained | Higher = better fit |
| F-statistic | Overall model significance | Tests if all β = 0 |
LOAD <filename> # Load CSV data file
LIST # Display current data
SUMMARY # Summary statistics
CORR # Correlation matrix
REGRESS Y ~ X1 X2 # Multiple regression
VIF # Variance Inflation Factor
CI <level> # Confidence intervals
PREDICT # Make predictions
In this lab, you will:
sales.csv datasetLIST and SUMMARY# Step 1: Load the data
LOAD sales.csv
# Step 2: Examine the data
LIST
SUMMARY
# Step 3: Check diagnostics
DIAG
# Step 4: Save results
SAVE lab1_results.txt
Econometrics Dependent Variable Independent Variable OLS (Ordinary Least Squares) Coefficient Standard Error t-statistic p-value R-squared
In Chapter 2, we review statistics and probability concepts:
🔄 Ready to connect with MORISTAT?