📚 Introductory Econometrics with MORISTAT

A Practical Guide to Empirical Analysis

Naguib Lallmahomed · naglal@linux-mauritius.com · 2026-06-14


Chapter 3: Simple Linear Regression

🎯 Learning Objectives

Upon completing this chapter, you will be able to:

3.1 Introduction to Simple Linear Regression

The Simple Linear Regression Model is:

Y = β₀ + β₁X + u

where:

3.2 OLS Estimators

β̂₁ = Σ(Xᵢ − X̄)(Yᵢ − Ȳ) / Σ(Xᵢ − X̄)²
β̂₀ = Ȳ − β̂₁X̄

3.3 Simple Regression with MORISTAT

3.3.1 Complete Example: Advertising and Sales

Suppose we have data on advertising spending and monthly sales:

Advertising (X)Sales (Y)
1.025
1.530
2.035
2.538
3.042
3.545
4.048
4.552
5.055

Run regression:

MORISTAT> LOAD advertising.csv
MORISTAT> LIST
MORISTAT> REGRESS Sales ~ Advertising

Interpretation:

3.4 Practice Lab

In this lab, you will:

# 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

3.5 Key Terms

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

3.6 What's Next?

In Chapter 4, we extend the model to multiple regression.

→ Proceed to Chapter 4

🔄 Ready to connect with MORISTAT?