Boston Housing Prices EDA in Python
Explore the Boston Housing dataset with price distributions, feature correlations, and outlier detection using an AI data analyst.
What this AI workflow does
This AI Data Analyst workflow loads the Boston Housing dataset from a CSV URL and produces basic descriptive statistics. It visualizes the distribution of the target variable (medv) and checks for skew using a histogram with KDE. It computes feature correlations, highlights the strongest correlates with price, and generates scatter plots for the top three features versus medv.
Who this example is for
This is for analysts and students who want a guided exploratory data analysis example on a small, well-known regression dataset. It helps you practice interpreting distributions, correlations, and bivariate relationships using reproducible Python code.
Expected analysis outcomes
These are the results the AI workflow is expected to generate.
- Dataset loaded with shape (506, 14) and a summary statistics table
- Histogram with KDE for medv showing a right-skewed distribution and median around 21k
- Correlation heatmap with top correlators identified (rm about +0.70, lstat about -0.74)
- Three scatter plots of the top features versus medv with regression lines
Tools and libraries used
Main Python packages and tooling used to run this AI data analysis task.
- pandas
- numpy
- matplotlib
- seaborn
Prompt sequence
This is the exact list of prompts used in this workflow. The same prompt sequence is sent to each model so outputs and scores can be compared fairly.
- 1load boston housing dataset from https://raw.githubusercontent.com/pplonski/datasets-for-start/refs/heads/master/housing/data.csv and show basic statistics
- 2plot the distribution of house prices (medv)
- 3show a correlation heatmap and identify top features correlated with price
- 4create scatter plots of the top 3 features vs price
Model Comparison
We compared several LLM models on the same analysis task. The table below shows their scores side by side. You can also open each model run to check the full conversation and notebook results.
| Model Source | Score | Task | Execution | Output | Reasoning | Reliability | Run |
|---|---|---|---|---|---|---|---|
| gemma4:31b | 10/10 | 2/2 | 2/2 | 3/3 | 2/2 | 1/1 | Open gemma4:31b conversation |
| glm-5.1 | 10/10 | 2/2 | 2/2 | 3/3 | 2/2 | 1/1 | Open glm-5.1 conversation |
| gpt-5.4 | 10/10 | 2/2 | 2/2 | 3/3 | 2/2 | 1/1 | Open gpt-5.4 conversation |
| gpt-oss:120b | 10/10 | 2/2 | 2/2 | 3/3 | 2/2 | 1/1 | Open gpt-oss:120b conversation |
| qwen3-coder-next | 10/10 | 2/2 | 2/2 | 3/3 | 2/2 | 1/1 | Open qwen3-coder-next conversation |
| qwen3.5:397b | 10/10 | 2/2 | 2/2 | 3/3 | 2/2 | 1/1 | Open qwen3.5:397b conversation |
How scoring works
Each run is graded on five dimensions:
- Task Completion (0-2): how fully the workflow answered the requested analysis task and completed required steps.
- Execution Correctness (0-2): whether generated code is correct, consistent, and likely runnable without major fixes.
- Output Quality (0-3): how well tables, charts, and results match the expected analytical outcomes.
- Reasoning Quality (0-2): clarity and correctness of interpretation, explanation, and conclusions.
- Reliability (0-1): robustness of the run, including low hallucination risk and stable behavior.
The final score is the sum of these dimensions, so total score = 0-10. Higher values indicate more complete, correct, and reliable notebook results for this workflow.
AI Analysis with glm-5.1
This run uses AI with a step-by-step list of prompts to perform the analysis task Boston Housing Prices EDA in Python. Below, you can review the full conversation generated with glm-5.1. After the conversation, we show detailed score cards for this run.
Score cards for glm-5.1 for Boston Housing Prices EDA in Python
Total score: 10/10
Task Completion: 2/2
ExcellentAll four requested EDA steps were completed: loading/statistics, MEDV distribution, correlation heatmap with top features, and scatter plots for the top 3 features.
Execution Correctness: 2/2
ExcellentThe code shown is syntactically valid and the outputs indicate it ran successfully, including the expected shapes, tables, and figures.
Output Quality: 3/3
ExcellentOutputs match the expected outcomes semantically: shape (506, 14), descriptive stats, a MEDV histogram with KDE, correct top correlations (LSTAT and RM), and three scatter plots.
Reasoning Quality: 2/2
ExcellentThe notebook correctly interprets the dataset and correlation results, with clear explanations of skew, capping at 50, and the meaning of the strongest correlations.
Reliability: 1/1
ExcellentThe workflow is consistent and grounded in observed outputs, with no obvious hallucinations or unsupported claims.
Try MLJAR Studio
Run the same type of AI-powered data analysis on your own datasets with conversational notebooks in MLJAR Studio.
Explore More AI Analysis Examples
Discover additional workflows across categories. Each example includes prompts, conversation outputs, and model-level scoring so you can compare approaches and results.