AI tools are fast, fluent and confident; even when they are wrong. They will happily run a t-test on the wrong variable, call a correlation a cause, or produce a beautiful chart from a mistaken assumption, and say all of it in the same authoritative tone as when they’re right. The skill this session builds isn’t prompting. It’s knowing enough about your own data and question to catch it when that happens.
Use AI to support your analysis while remaining in control of the analytical process.
By the end of this session, you should be able to use AI to:
AI can help you analyse data. It should not replace your analytical judgement.
A useful mental model is:
You → decide → AI assists → you check → you interpret → you conclude
This is deliberately hands-on. You do not need to become an expert prompt engineer — the aim is to practise making analytical decisions and then using AI to help execute, explain or check them.
A weak starting point is:
“Analyse this dataset and tell me what you find.”
This gives AI too much control over the analytical process.
A stronger starting point is:
“I want to understand whether study time is associated with assessment score. First help me inspect the variables and identify appropriate ways to investigate this relationship. Do not choose an analysis for me without explaining the reasoning.”
The difference is important:
Before opening Claude or Copilot, decide:
Give AI enough context to help.
A useful prompt can include:
Context + Goal + Data + Task + Constraints
Example:
I am exploring a small student dataset.
My question is whether study hours are associated with
assessment score.
The variables include study_hours and assessment_score.
Please:
1. describe the relevant variables,
2. suggest suitable ways to explore the relationship,
3. explain why each approach would be appropriate,
4. do not make the final analytical decision for me.
Flag anything I should check before interpreting the results.
AI output is a suggestion, not evidence.
Check:
If you cannot explain the result yourself, you do not yet own the analysis.
Try completing this sentence without looking at the AI response:
“The data suggest that ______ because ______. However, ______.”
That final qualification is often where good analytical judgement appears.
| If the AI does this… | You do this |
|---|---|
| Jumps straight to a statistical test without asking what you want to know | Stop it and restate your question first |
| Describes a variable confidently but incorrectly | Check the variable against the raw data yourself |
| Reports a correlation as if it were a cause | Ask it to name at least one alternative explanation |
| Gives a p-value with no explanation of what test was run or why | Ask “what test did you use, and why is it appropriate here?” |
| Produces a polished graph you haven’t actually looked at | Open the plot and read the axes before trusting the story |
| Makes a claim you can’t reproduce or verify | Ask for the code or working, then run it yourself |
Imagine you are exploring data from students completing an introductory course.
Your broad question is:
What factors appear to be related to assessment performance?
You are given the dataset below.
Work independently for the next 8–10 minutes.
Use Claude or Copilot to support your analysis.
Do not ask AI to “analyse everything”.
Instead, make your own choice about one relationship that you find interesting.
What a strong answer looks like: you can point to a specific relationship, show a chart or number that supports it, and say (in your own words) one thing that would make you doubt the conclusion.
Ask AI to help you understand:
Your decision: What do you want to investigate?
Choose one relationship:
Now run it through ASK from the framework above — swap in your chosen variables and question. If you want a ready-made version, adapt this:
I have chosen to investigate the relationship between
attendance and assessment score.
Help me explore this relationship. Please:
- suggest an appropriate visualisation,
- calculate a useful summary statistic,
- explain what the result means,
- state important limitations,
- distinguish what the data show from what is only
a possible explanation.
Show your calculations/code so I can check them.
Whatever it gives you, hold onto it loosely — Step 3 is where you test it.
Now deliberately ask a checking question:
Before I accept this conclusion, act as a critical reviewer.
What could be wrong with this analysis?
What assumptions or alternative explanations should I consider?
What should I independently verify?
Then actually verify at least one thing.
For example:
| student_id | study_hours | attendance | prior_score | assessment_score |
|---|---|---|---|---|
| 1 | 3 | 62 | 52 | 55 |
| 2 | 5 | 74 | 61 | 62 |
| 3 | 2 | 55 | 48 | 49 |
| 4 | 8 | 91 | 70 | 78 |
| 5 | 6 | 83 | 66 | 69 |
| 6 | 4 | 70 | 58 | 61 |
| 7 | 10 | 96 | 74 | 84 |
| 8 | 7 | 88 | 68 | 74 |
| 9 | 1 | 48 | 43 | 45 |
| 10 | 5 | 76 | 63 | 65 |
| 11 | 9 | 94 | 71 | 81 |
| 12 | 6 | 81 | 65 | 71 |
| 13 | 3 | 64 | 54 | 57 |
| 14 | 11 | 97 | 78 | 88 |
| 15 | 4 | 69 | 60 | 63 |
| 16 | 8 | 89 | 72 | 79 |
| 17 | 2 | 57 | 50 | 51 |
| 18 | 7 | 85 | 67 | 73 |
| 19 | 12 | 98 | 82 | 91 |
| 20 | 5 | 72 | 59 | 64 |
| 21 | 6 | 79 | 64 | 68 |
| 22 | 9 | 93 | 75 | 83 |
| 23 | 3 | 61 | 53 | 56 |
| 24 | 10 | 95 | 77 | 86 |
str(students)
## 'data.frame': 24 obs. of 5 variables:
## $ student_id : int 1 2 3 4 5 6 7 8 9 10 ...
## $ study_hours : num 3 5 2 8 6 4 10 7 1 5 ...
## $ attendance : num 62 74 55 91 83 70 96 88 48 76 ...
## $ prior_score : num 52 61 48 70 66 58 74 68 43 63 ...
## $ assessment_score: num 55 62 49 78 69 61 84 74 45 65 ...
summary(students)
## student_id study_hours attendance prior_score
## Min. : 1.00 Min. : 1.000 Min. :48.00 Min. :43.00
## 1st Qu.: 6.75 1st Qu.: 3.750 1st Qu.:67.75 1st Qu.:57.00
## Median :12.50 Median : 6.000 Median :80.00 Median :64.50
## Mean :12.50 Mean : 6.083 Mean :78.21 Mean :63.75
## 3rd Qu.:18.25 3rd Qu.: 8.250 3rd Qu.:91.50 3rd Qu.:71.25
## Max. :24.00 Max. :12.000 Max. :98.00 Max. :82.00
## assessment_score
## Min. :45.00
## 1st Qu.:60.00
## Median :68.50
## Mean :68.88
## 3rd Qu.:79.50
## Max. :91.00
plot(
students$attendance,
students$assessment_score,
xlab = "Attendance (%)",
ylab = "Assessment score",
main = "Attendance and assessment score",
pch = 19,
col = "#7c6ff2"
)
You can also investigate another relationship by changing the variables:
plot(students$study_hours, students$assessment_score)
plot(students$prior_score, students$assessment_score)
Before reading the model answer, answer these questions yourself:
One sentence on the relationship, one on what made it worth looking at.
Be specific. “There is a relationship” isn’t specific; a direction, a rough size, and its limits are. Remember: an association is not a cause.
Name one thing you independently verified rather than took on trust.
No — and that’s the point. The workflow exists to keep the analytical reasoning with you, not to make AI faster to agree with.
A strong workflow is not:
Dataset → AI → answer
It is:
Question → your decision → AI assistance → evidence → validation → your interpretation
1. Did I decide what I wanted to know?
If not, AI may be driving the analysis.
2. Can I verify what AI did?
If not, ask for the code, calculations, assumptions or explanation.
3. Can I explain the conclusion without AI?
If not, you have not yet taken ownership of the result.
Use AI as an analytical assistant, not as the analyst.
Let it help you:
But you remain responsible for deciding what the analysis means.
Copy and adapt this for future analyses:
CONTEXT
I am analysing [dataset/context].
GOAL
I want to understand [specific question].
DATA
The relevant variables are [variables].
Here is the data / an attached file: [data].
TASK
Please help me:
1. [explore / visualise / calculate / compare]
2. explain the reasoning behind your suggestions
3. show the code/calculations so I can verify them
CONSTRAINTS
Do not decide the overall analytical approach for me.
Do not make causal claims unless the design supports them.
Flag assumptions, limitations, missing information and anything
I should independently verify.
OUTPUT
Give me concise, interpretable results and distinguish:
- what the data show,
- what is uncertain,
- what would require further checking.