81 Chancery Lane
01235 821 160
View map


1 Lochrin Square
92 Fountainbridge
01235 821 160
View map


24A Baggot Street, Upper
Dublin 4
D 04 N5 28
01235 821 160
View map

Administrative Office

BH Office
Church Street
OX12 8QA
01235 821 160
View map

Send us a message

Contact Us

Quantity Street, or why there aren’t any Green Triangles left

This statistic measures how different the actual tin of sweets was from the expected one, with a bigger statistic meaning more differences. If we took a random number from the appropriate chi-squared distribution, it would be this big or bigger about 60% of the time. In other words, assuming that each type of sweet is as common as the next, this distribution for a particular tin isn’t too unusual.

Now, as I mentioned, journalists have started to take an interest in this question, and naturally they’ve asked Nestle how the makeup of each tin is determined. A Nestle spokesperson told the i newspaper in 2018 that each tub is split roughly into thirds according to three categories of sweet, with five different types of chocolates, four different toffees and fudges, and only two types of fruit creme. This gives us an alternative hypothesis to test: that there really are more Strawberry Delights and Orange Cremes than the others, since they are the only ones in their category.

We can re-run the same test as before, but calculating our expected numbers of sweets based on this new theory:

Here, we’ve calculated the expected number of each sweet by allocating 91 / 3 = 30.33 sweets to each of the three categories, and then dividing these equally among the types in that category. The test statistic this time is even lower, at 6.15, suggesting this hypothesis could be a better fit. A random tin would have a test statistic as big as this about 80% of the time, assuming the hypothesis about equal numbers of each category is correct.

Purely in the interests of scholarly research, I popped round to the local supermarket to pick up a tub of Quality Street for myself. My slightly smaller tub had a total of 66 sweets, and I re-ran the previous tests using a combined sample from Stephen Hull’s tin and my tub.

If the sweets were equally distributed, we would get a test statistic of 9.54 or bigger about half of the time, and if they were distributed by category we would get a statistic of 12.55 or bigger about one time in four. These are both definitely plausible.

So, based on this sample size, we can’t conclude much: the distribution might be biased to include equal numbers of each category, or it might not be biased at all. This analysis could be taken further by considering factors like cost, weight or nutritional information of each sweet, which Nestle have also suggested are taken into account in their plans. Alternatively, the same chi-squared tests could tell us more if we bought more tins of sweets to give us a bigger sample size, but since I’ve got a dentist’s appointment in a few weeks, I think I’d better leave it there. I hope you have a happy and peaceful holiday period, and find all your favourite sweets in the tin.

Michael Scanlon

December 2021

VBA Mini-Series – An Introduction

In this article John Nicholls introduces a series of planned articles that will perform a shallow dive into some more advanced concepts in VBA and how they might be useful in an actuarial context.

Talking with Pythons: How to Debug Failing Code

Stressed by tech glitches? Ellen Weise has the secrets for mastering the art of debugging, so you’ll never pull your hair out over broken code again!

APR Charity Day 2023

After another successful Charity Day for APR, Jennifer Claybourn summarises the charities we have donated to, and our reasons why.

The (Pricing) Nightmare before Christmas

This article tackles an important actuarial issue and may also help to get you in the festive spirit. Georgina and Patrick aim to answer the question that everyone has been asking: “How do you insure Santa’s sleigh?”

2023 Actuarial Conference Summary

In this article we share some of our personal highlights and takeaways from each of the IFoA Life Conference, GIRO Conference and SAI Annual Convention.

September 2023 Exam Results

The September 2023 exam results have been published and APR student staff achieved an impressive 76% pass rate across all IFoA exams. In this article, Moses Vaughan highlights our success this sitting.

Bank of England System-wide Exploratory Scenario Stress Test

In this article Alan Reed reviews the recently specified 2023 Bank of England System-wide Exploratory Scenario (SWES) stress test exercise. When is it happening, whom is taking part, how does it compare to prior stress test exercises and what features of this new exercise stand out?

IFoA Data Science Certification – Course Review

In this article, John Nicholls demonstrates outstanding dedication to content production by enrolling in the IFoA Data Science certification and producing a review that covers course content, length, assignments, and delivery. Hopefully this article will help those of you on the fence to be gently encouraged to fall off it.

The Magic of Productivity

Are distractions derailing your productivity? Dean Woodward explores the magic of focus with tips and techniques to boost your efficiency.

Python in Excel – an Analyst’s Dream?

What’s the world’s most iconic duo? Batman and Robin? Fish and chips? Morecambe and Wise? In fact it’s none of these: join Jacob as he talks about using Python in Microsoft Excel.