Non-FictionWorkbookApplied Econometrics
Econometrics Excel Workbook eBook
Practice econometric problems with real Excel data
by Boucher Stan
Practice econometric problems with real Excel datasets. Includes hypothesis testing, multicollinearity checks, and residual analysis.
Formats
Free sample
Chapter 1: The Data Detective’s Toolkit--–- You have just been hired as a data analyst for a mid-sized real estate firm. The hiring manager, a sharp-eyed woman named Dr. Voss, slides a USB drive across the table. “Here are 2,000 property records from our county,” she says. “Some are missing sale prices.
A few have square footages listed as negative numbers. One property apparently sold for $1. I need a pricing model by Friday. Oh, and we use Excel.”You open the file. Columns of numbers stare back.
Some cells say #N/A. Others contain obvious typos. One row has a zip code in the price column. This is not a clean, textbook dataset. This is reality.Most econometrics books hand you perfectly polished data.
This workbook does the opposite. It starts you exactly where you begin every real analysis: in the mess. By the end of this chapter, you will transform that chaotic spreadsheet into a professional econometric workspace. You will learn to clean missing values, detect outliers, create categorical flags, and prepare time-series transformations — all in Excel. You will also install the tools that turn Excel from a basic spreadsheet into a powerful regression engine.Welcome to the first day of the rest of your data detective career.The Three Pillars of Your Excel Econometric Workspace Before you run a single regression, you need to configure Excel properly.
Think of this as setting up your laboratory bench: tools within reach, safety checks in place, everything calibrated. We will install three essential components. Each serves a distinct purpose, and together they transform Excel into a platform capable of handling everything from simple t-tests to maximum likelihood estimation.Pillar One: The Analysis Tool Pak The Analysis Tool Pak is a free add-in that ships with every modern version of Excel. It provides regression analysis, descriptive statistics, t-tests, F-tests, histograms, and random number generation. Without it, you would need to build many of these procedures manually using formulas — an instructive but tedious exercise.To enable the Tool Pak:Click File → Options → Add-ins At the bottom of the window, next to "Manage:", select Excel Add-ins and click Go Check the box for Analysis Tool Pak and click OKAfter enabling, a new button labeled Data Analysis appears in the Data tab, far right.
Click it, and you will see a list of about twenty statistical tools. We will use most of them across this book.Pillar Two: Solver Solver performs constrained optimization. While the Tool Pak handles standard regression, Solver allows you to estimate models that do not have closed-form solutions — for example, logit and probit models (Chapter 9), ridge regression (Chapter 6), and weighted least squares (Chapter 8). Solver finds the set of coefficients that minimize (or maximize) a target cell by adjusting decision variable cells, subject to optional constraints.To enable Solver:Follow the same path: File → Options → Add-ins In the Manage dropdown, select Excel Add-ins and click Go Check the box for Solver Add-in and click OKSolver will appear in the Data tab, near the Analysis Tool Pak button, under the "Analyze" group. We will revisit Solver repeatedly, and each time I will provide step-by-step instructions for configuring it correctly.Pillar Three: The Real Statistics Resource Pack The Tool Pak and Solver are excellent, but they have limitations.
They do not compute Variance Inflation Factors (VIFs) for multicollinearity diagnostics (Chapter 6). They do not perform unit root tests for time series (Chapter 10). They lack built-in Hausman tests for panel data. The free Real Statistics Resource Pack fills these gaps.Download the pack from www.real-statistics.com. Installation is straightforward: download the Excel file, open it, and click "Enable Macros" when prompted.
A new Real Statistics tab will appear in your ribbon. Within that tab, you will find tools for VIF, principal components, unit root tests, and dozens of other advanced procedures.Throughout this book, I will note when Real Statistics provides a one-click solution versus when we need to build a manual calculation. Use whichever method you prefer, but understand both. Automation saves time; manual calculation builds intuition.Data Cleaning: Turning Chaos into Evidence With your tools installed, you now face the real work: cleaning the dataset. Data cleaning is not glamorous.
No one writes academic papers about it. But experienced analysts know that 70 to 80 percent of project time goes into this stage. A model is only as good as the data fed into it. Garbage in, garbage out — the oldest truth in statistics.Open the file housing_raw.xlsx from the companion website (see Appendix C for the full dataset directory). You will see 2,000 rows and eight columns:Column Descriptionprice Sale price in dollarssqft Square footage of living areabedrooms Number of bedroomsbathrooms Number of bathroomsage Age of the house in yearslot_size Lot size in acreszip Zip code (categorical)sale_date Date of sale Scroll through the data.
Look for problems. You will notice:Some price cells show #N/A (missing data)One row has price = 1 (clearly a data entry error)Several sqft entries are blank One age value is 250 years in a region where the oldest house is 120 years Some zip codes are stored as numbers, others as text Your job is to make this dataset consistent, complete, and credible — without inventing data or introducing bias.Identifying and Handling Missing Values Missing values come in three flavors, and each requires a different response.Missing Completely at Random (MCAR) : The probability of missingness does not depend on any variable — a sensor failed, a file was corrupted. MCAR is the least threatening form of missingness because it does not bias coefficients, only reduces precision.Missing at Random (MAR) : Missingness depends on observed variables but not the missing value itself. For example, older houses might have more missing price data because records were stored poorly. If you control for age, the remaining missingness is effectively random.Missing Not at Random (MNAR) : Missingness depends on the unobserved value itself.
Wealthy homeowners might systematically refuse to report sale prices. MNAR is the most dangerous because it can bias estimates in unknown directions, and no simple fix exists beyond collecting better data.For now, assume our housing dataset exhibits MCAR (a reasonable starting assumption for a teaching dataset). Your first task: locate every missing value.Excel provides several functions for detecting missingness. The simplest is =ISBLANK(cell), which returns TRUE if the cell contains nothing. However, some datasets code missing values as #N/A, "NA", -999, or even a blank string "".
The function =ISNA(cell) specifically detects #N/A errors.To get a complete count of missing values per column:Create a new sheet named cleaning_log In cell A1, type Column; in B1, type Missing_Count Use =COUNTBLANK(range) for empty cells Use =SUMPRODUCT(--(ISNA(range))) for #N/A errors After running these counts, you find: price has 23 missing values, sqft has 12, age has 5, and the other columns are complete.Now decide how to handle each missing value. You have four standard options:Option 1: Delete the row (listwise deletion). Simple and conservative. Use when missingness is MCAR and the sample size remains adequate. To delete rows with any missing value in our dataset: select all data, press Ctrl+T to create an Excel Table, then filter each column to uncheck blanks and #N/A, then copy the filtered…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Boucher Stan
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Workbook, Applied Econometrics
- Released
- 2026-06-01
- Pages (approx.)
- 140
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Boucher Stan
Early Loss of Parent RecoveryBoucher Stan$11.99
ADHD Student Academic Stress GuideBoucher Stan$11.99
Stretching for Tight ShouldersBoucher Stan$11.99
The Recurrent Pregnancy Loss GuideBoucher Stan$11.99
Metta for Single ParentsBoucher Stan$11.99
The Baroque Brilliance of Johann Sebastian Bach: A Mind Palace of Musical GeniusBoucher Stan$11.99
Understanding Negative Rheumatoid Factor PolyarthritisBoucher Stan$17.99
Facility Operations LeadBoucher Stan$11.99
Executive Summary BoilerplateBoucher Stan$12.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99