London

81 Chancery Lane
London
WC2A 1DD
01235 821 160
View map

Edinburgh

1 Lochrin Square
92 Fountainbridge
Edinburgh
EH3 9QA
01235 821 160
View map

Dublin

24A Baggot Street Upper
Ballsbridge
Dublin
D04 V970
01235 821 160
View map

Administrative Office

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

Send us a message

CLOSE X
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

-->
Actuarial Modelling and Diversity & Inclusion

Mujtaba Syed discusses how a highly skilled and diverse group of people working on similar problems can contribute to very effective model building and problem solving.

READ MORE
VBA Mini-Series – Class Modules

In the first of our VBA mini-series, John Nicholls dives into class modules in a VBA context, comparing VBA to other languages with classes and recommending areas where regular actuarial work might benefit more from using them.

READ MORE
APR Wins Investors in People Gold Award

APR has recently been awarded the Gold award by Investors in People! James Nicholl discusses what this means to us and what’s still being done to make APR an even better employer.

READ MORE
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.

READ MORE
Debug
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!

READ MORE
APR Charity Day 2023

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

READ MORE
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?”

READ MORE
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.

READ MORE
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.

READ MORE
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?

READ MORE