When you need a chart or dashboard that highlights the key message clearly.
Scatter Plot with Regression Line AI Prompt
Scatter Plot with Regression Line is a intermediate prompt for visualization. This prompt helps the AI turn raw data into charts or dashboards that communicate insight clearly. It goes beyond simply plotting values by asking for chart choice, layout, annotations, and business interpretation. Use it when you need visuals that are ready for exploration, reporting, or stakeholder communication. It is best suited for direct execution against a real dataset. The requested output can include more technical detail, prioritization, and interpretation while still staying practical.
Create an annotated scatter plot showing the relationship between two key variables: 1. Identify the two most interesting numeric variables to compare (ideally a cause and an effect) 2. Create a scatter plot with: - Each point representing one row - A linear regression line with confidence band (95%) - The R² value displayed in the top corner 3. Color points by a categorical variable if one exists (e.g. region, product type) 4. Label the top 5 and bottom 5 outlier points with their identifier 5. Add axis labels that describe what each variable measures, including units 6. If the relationship is non-linear, also fit and plot a polynomial regression line Write a one-sentence interpretation below the chart: what does the relationship mean in business terms?
When to use this prompt
When a table alone is not enough for stakeholders to understand the result.
When you want a presentation-ready visual with labels, annotations, and styling guidance.
When comparing segments, trends, correlations, or composition visually.
What the AI should return
The AI should return the recommended chart specification, plotting code when appropriate, and a short interpretation of what the visual is meant to show. Titles, labels, annotations, and layout choices should be explicit so the output is presentation-ready rather than generic. If multiple charts are requested, they should be organized in a logical order and tied back to a single story. The final answer should make it clear what the viewer should notice first.
How to use this prompt
Open your data context
Load your dataset, notebook, or working environment so the AI can operate on the actual project context.
Copy the prompt text
Use the copy button above and paste the prompt into the AI assistant or prompt input area.
Review the output critically
Check whether the result matches your data, assumptions, and desired format before moving on.
Chain into the next prompt
Once you have the first result, continue deeper with related prompts in Visualization.
Frequently asked questions
What does the Scatter Plot with Regression Line prompt do?+
It gives you a structured visualization starting point for data analyst work and helps you move faster without starting from a blank page.
Who is this prompt for?+
It is designed for data analyst workflows and marked as intermediate, so it works well as a guided starting point for that level of experience.
What type of prompt is this?+
Scatter Plot with Regression Line is a single prompt. You can copy it as-is, adapt it, or use it as one step inside a larger workflow.
Can I use this outside MLJAR Studio?+
Yes. The prompt text works in other AI tools too, but MLJAR Studio is the best fit when you want local execution, visible Python code, and reusable notebooks.
What should I open next?+
Natural next steps from here are Auto Exploratory Dashboard, Bar Chart with Ranking, Correlation Heatmap.