Exploratory Data Analysis (EDA) in Python
Complete EDA workflow: load data, check quality, compute correlations, detect outliers, and visualize distributions — all with an AI data analyst.
What this AI workflow does
This AI Data Analyst workflow loads the scikit-learn diabetes dataset and summarizes its structure, feature names, and basic statistics. It generates correlation analysis across all features, including a full correlation matrix visualization. It detects per-feature outliers using the IQR method and identifies which features relate most strongly to the target with supporting plots and correlation coefficients.
Who this example is for
This is for analysts and students who want a repeatable EDA template for a small, well-known regression dataset. It helps you practice data quality checks, correlation inspection, and outlier detection in a conversational, code-generating notebook.
Expected analysis outcomes
These are the results the AI workflow is expected to generate.
- Dataset shape (442, 10) with feature names and summary stats
- 10x10 correlation heatmap of all features
- Outlier counts per feature using the IQR method
- Top 3 feature vs target scatter plots with correlation coefficients
Tools and libraries used
Main Python packages and tooling used to run this AI data analysis task.
- scikit-learn
- 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 the diabetes dataset (from sklearn) and show basic info
- 2plot a correlation matrix of all features
- 3detect outliers in each feature using the IQR method
- 4which features have the strongest relationship with the target variable?
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 |
|---|---|---|---|---|---|---|---|
| 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 | 9/10 | 2/2 | 2/2 | 2/3 | 2/2 | 1/1 | Open qwen3.5:397b conversation |
| gemma4:31b | 8/10 | 2/2 | 1/2 | 2/3 | 2/2 | 1/1 | Open gemma4:31b 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 gpt-5.4
This run uses AI with a step-by-step list of prompts to perform the analysis task Exploratory Data Analysis (EDA) in Python. Below, you can review the full conversation generated with gpt-5.4. After the conversation, we show detailed score cards for this run.
Score cards for gpt-5.4 for Exploratory Data Analysis (EDA) in Python
Total score: 10/10
Task Completion: 2/2
ExcellentAll major EDA steps were completed: dataset loading/basic info, correlation matrix, IQR outlier detection, and target-feature correlation ranking.
Execution Correctness: 2/2
ExcellentThe provided code is coherent and likely runnable, using valid sklearn, pandas, seaborn, and matplotlib operations without obvious syntax or logic errors.
Output Quality: 3/3
ExcellentOutputs match the expected outcomes semantically: dataset shape/info, a 10x10 feature correlation heatmap, outlier counts per feature, and strongest target relationships with correlation coefficients.
Reasoning Quality: 2/2
ExcellentThe explanations are accurate and helpful, correctly interpreting the correlation structure and identifying the strongest target associations.
Reliability: 1/1
ExcellentThe workflow is consistent and grounded in the dataset outputs, with no major 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.