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

Free lesson

6.1 (4 of 4): How organisations use data

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

The shop that knew

A corner shop owner notices something. Every afternoon at four o'clock, students come in. They buy crisps and energy drinks. So at three o'clock the owner puts both on the front shelf and adds a small discount for the pair.

Sales go up. The owner did not guess. The owner used data. Here are five ways organisations use data.

Key words

WordWhat it meansExample
PatternSomething that happens again and again in the data.Crisps sell most at 4 pm
DatabaseAn organised store of data that a program can search.The shop's sales list
LoadHow much work a system is doing right now.500 people on a website
OutageA time when a system does not work.The website was down for an hour
ThroughputHow much work a system finishes in a set time.40 orders each minute
StatusA short answer to: is the system working right now?Green or red
CompetitorAnother company that sells the same things.The shop across the road
UpsellingOffering a bigger or better thing than the customer chose.Add a drink for 50p more
ComplianceFollowing the rules and the law.Keeping customer data as the law says

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

Match the use to the example

Have a go

Loading…

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

1. Find patterns

A pattern is something that repeats. Analysis means looking closely at data to find patterns.

A shop finds that milk sells every morning. A bus company finds that route 42 is full at 8:30 in the morning. Patterns help an organisation plan.

2. Check how the system performs

A system, such as a website, makes data about itself. Teams watch four things.

Load: how busy it is. Outage: when it stops working. Throughput: how many jobs it finishes. Status: is it working right now? It shows green or red.

3. Monitor users

Many systems record when a user logs in and logs out. They also record what the user opens.

A college uses this to see who needs help. A bank uses it to find a thief. A thief logs in at night from another country. The pattern looks wrong.

Quick check: which use?

Have a go

Quick check: which use?

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

4. Targeted marketing

A company uses your data to send you offers that fit you. This is targeted marketing.

You buy trainers (sports shoes). The shop sends you a discount on socks.

Then the shop offers you a better pair of trainers for £10 more. This is upselling.

5. Threats and opportunities

Note

Data also warns an organisation. A competitor with lower prices is a threat. A rise in failed logins is a security threat. A new law that the company must follow (compliance) is a threat too. A new trend in sales can be an opportunity.

Try it: ask the shop a question

Code: python
sales = [["milk", 3], ["crisps", 4], ["milk", 2], ["crisps", 5], ["crisps", 3]]

# Which product sold the most? Start by adding up the crisps.
total = 0
for sale in sales:
    if sale[0] == "crisps":
        total = total + sale[1]
print("Crisps sold:", total)

# Change "crisps" to "milk" and run it again.

Make a free account to save your work and track your progress.

Worked example: the shop total

ProductItems sold each timeItems added up
crisps4, 5, 34 + 5 + 3 = 12
milk3, 23 + 2 = 5
The answer12 is more than 5Crisps sold the most

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

Your turn: the top product

The shop owner asks: which product sold the most items in total? Each sale is a pair: the product name and the number sold. Fill in two functions. The first adds up one product. The second finds the best product. Press Run Tests to check.

Code: python
def total_sold(sales, product):
    # sales is a list of pairs: [product name, number sold].
    # Give back the total number sold of one product.
    return -1


def top_product(sales):
    # Give back the name of the product with the biggest total.
    # If two are equal, give back the one that comes first in the list.
    # An empty list gives back "".
    return None

Make a free account to save your work, or press Start lab to work through the whole lesson.

Your turn: watch the logins

A security team watches the logins. Each login is a pair: the username and True or False for worked. Fill in two functions. The first counts the failed logins for one user. The second lists the users who failed 2 times or more. Press Run Tests to check.

Code: python
def failed_count(logins, username):
    # logins is a list of pairs: [username, worked]. worked is True or False.
    # Give back how many times that user failed to log in.
    return -1


def watch_list(logins):
    # Give back a list of usernames who failed 2 times or more.
    # Each name appears once, in the order it first appears in logins.
    return None

Make a free account to save your work, or press Start lab to work through the whole lesson.

Extra: Try it: the same question in SQL

Code: sql
-- A real shop asks its database in SQL, a language for questions to a database.
-- Which product sold the most items?
SELECT product, SUM(quantity) AS items_sold
FROM sales
GROUP BY product
ORDER BY items_sold DESC;

-- Try: SELECT hour, SUM(quantity) FROM sales GROUP BY hour;

Make a free account to save your work and track your progress.

Is this data right for the job?

Having data is not enough. An organisation must ask: is this data right for the job? And was it made in a good way?

A shop wants to know what students buy. It only has sales from 7 am to 10 am. That data comes from the wrong time. It cannot answer the question.

Judge the data

Have a go

Judge the data

5 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

Watch: how organisations use data

Press Play on the short film below. It starts with a corner shop and its pattern. Then it shows the five uses, adds up the sales and ends with a myth.

Film: how organisations use data

How organisations use data

Every scene, as text

  1. The shop that knew. At 4 pm, students buy crisps and energy drinks (pattern: it happens every afternoon). At 3 pm, both go on the front shelf, with a discount (why: the pattern in the sales). Sales go up (why: the owner used data).
  2. Five ways organisations use data. Find patterns (example: route 42 is full at 8:30 am). Check system performance (watch: load, outage, throughput, status). Monitor users (watch: logins, logouts, what is opened). Targeted marketing (means: offers that fit you). Assess threats and opportunities (example: a competitor with lower prices).
  3. Check how the system performs. Load: how much work a system is doing right now (example: 500 people on a website). Outage: a time when a system does not work. Throughput: how much work a system finishes in a set time. Status: is the system working right now? (shows: green or red).
  4. Monitor users. Systems record logins, logouts and what each user opens. A thief logs in at night from another country (so: the pattern looks wrong).
  5. Worked example: the shop total. crisps: 4 + 5 + 3 = 12 (every sale: added up). milk: 3 + 2 = 5. 12 is more than 5 (so: crisps sold the most).
  6. Myth (false): having data is enough. That is not true: the data must be right for the job. A shop wants to know what students buy. It only has sales from 7 am to 10 am (so: it comes from the wrong time).

Key words crossword

Have a go

Loading…

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

Final check

Have a go

Final check

5 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

Remember

Important

Organisations use data to find patterns, check systems, watch users, target offers and spot threats. First check the data is right for the job.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.