Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DA 1.22: Choosing tools to find patterns

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

60 minutes

A hammer for every job?

A club leader wants to know if rain affects visits. A manager wants one screen of daily numbers. A researcher wants to test a theory.

One tool will not fit all three. Choosing well means asking what you need to find, what result you expect, and what you have to work with.

Key words

WordWhat it meansExample
Exploratory data analysisLooking through data to see what it holds before testing ideas.Draw graphs and count values
Time series forecastingUsing data over time to predict what comes next.Next month's visits
Hypothesis testingChecking if data supports or rejects an idea.Does rain cut visits?
Data miningSearching large data for hidden patterns.Which items are bought together
HistogramA graph of bars showing how many values fall in each band.How many ages in 10 to 19
Box plotA graph showing the middle, the spread and the odd values of a set of numbers.Spread of daily spend
Scatter graphA graph of dots showing if two measures move together.Rain against visits
QueryA question you ask a store of data.Sales for each day
SQLThe language used to write a query.select item from sales
Big dataData so large, fast or varied that ordinary tools struggle.Every till sale in a country
KPIA key performance indicator: a number showing how well something is going.Visits each day
DashboardOne screen of the main numbers and charts.A KPI board

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can give criteria for choosing tools and techniques, and match common ones to a brief.

Starter: what you already know

Have a go

Starter: what you already know

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Three selection criteria

CriterionAsk
PurposeWhy do I need the trend or pattern?
Expected outcomeGains, trends, regressions or derived data?
ResourcesWhat tools, skills, time and money do I have?

The cells students fill in are left blank in this preview.

Tools

ToolGood for
Programming language: Python, R, ScalaFlexible, repeatable analysis of any size
Dashboard: KPIs, financialWatching key numbers at a glance
Query tool: SQLAsking questions of stored tables
Scatter graph and trend lineSeeing if two measures are linked
Histogram and box plotSeeing the spread of values and odd ones

The cells students fill in are left blank in this preview.

Techniques

TechniqueUse it to
Exploratory data analysisGet to know the data first
Time series forecastingPredict the future from the past
Hypothesis testingTest an idea against the data
Data miningFind hidden patterns in big data

The cells students fill in are left blank in this preview.

Try it: a text histogram

Code: python
ages = [11, 12, 14, 15, 15, 16, 19, 22]
bands = [0, 0, 0]

for age in ages:
    if age < 10:
        bands[0] = bands[0] + 1
    elif age < 20:
        bands[1] = bands[1] + 1
    else:
        bands[2] = bands[2] + 1

print("0-9  ", "#" * bands[0])
print("10-19", "#" * bands[1])
print("20-29", "#" * bands[2])

# Try it: add three ages and press Run.

The lesson goes on

3 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.