A Practical Guide to Empirical Analysis
Naguib Lallmahomed · naglal@linux-mauritius.com · 2026-06-14
Upon completing this chapter, you will be able to:
The Simple Linear Regression Model is:
where:
Suppose we have data on advertising spending and monthly sales:
| Advertising (X) | Sales (Y) |
|---|---|
| 1.0 | 25 |
| 1.5 | 30 |
| 2.0 | 35 |
| 2.5 | 38 |
| 3.0 | 42 |
| 3.5 | 45 |
| 4.0 | 48 |
| 4.5 | 52 |
| 5.0 | 55 |
Run regression:
MORISTAT> LOAD advertising.csv
MORISTAT> LIST
MORISTAT> REGRESS Sales ~ Advertising
Interpretation:
In this lab, you will:
advertising.csv dataset# Step 1: Load the data
LOAD advertising.csv
# Step 2: Examine the data
LIST
SUMMARY
# Step 3: Run regression
REGRESS Sales ~ Advertising
# Step 4: Confidence intervals
CI 0.95
# Step 5: Diagnostics
DIAG
Simple Linear Regression Dependent Variable Independent Variable Intercept (β₀) Slope (β₁) Error Term (u) OLS Residual (û) R-squared Gauss-Markov Theorem Standard Error t-statistic p-value
In Chapter 4, we extend the model to multiple regression.
🔄 Ready to connect with MORISTAT?