Goldilocks and machine learning

It’s a hot topic lately, but for many, machine learning is still a bit of a puzzle. This post looks at the key components, debugging and demystifying what is often seen as an overly technical concept, using the analogy of Goldilocks and the Three Bears to offer some practical insights into how it all actually works.

Machine learning: what is it exactly?

Creating a machine learning program is thought of as tremendously technical and exceedingly complex, and sometimes, it is. Generally, the difficulty is found in the parameter selection, program debugging, and the creativity and ingenuity required to create a highly accurate program.

But contrary to popular belief, the brain work behind this theory isn’t as hard as it sounds. At its core, machine learning is essentially trial and error.

Making sense of machine learning in 3 simple steps

Goldilocks and the Three Bears. This might seem a little strange, but in practice it can help to break up, and to simplify this unnecessarily complicated phenomenon. Let’s take the example of the three bowls of porridge.

  • First, Goldilocks tried one bowl of porridge, but her burning tongue indicated that it was too hot.
  • The logical move was to then try a cooler porridge, but the horrible texture taste indicated that it was too cold.
  • Lastly, Goldilocks tried the porridge in the middle bowl and it was delicious, indicating that the temperature was “just right”.

The various "types" of machine learning explained

Machine learning

This, in a nutshell, is the basis for reinforcement learning; whereby a machine picks an action and receives positive or negative feedback. This method has been used to train machines to play games, control robotic arms and to program self-driving cars – the latter having the obvious negative feedback reinforcement: do not crash.

Another common type of machine learning is supervised learning. In this case, the machine is given example data to train on. So, for example, much like Matilda’s Ms Trunchbull forcing a pupil to eat a whole chocolate cake, we might give Goldilocks one hundred bowls of porridge. After burning her tongue on all the bubbling bowls, and wincing in disgust at all the cold, gloopy porridge, she would work out that the bowl with the perfect temperature will be steaming, but not bubbling or gloopy.

The end goal

In practice, a machine takes an input, makes a prediction of the output, looks at how far out this prediction is from the actual answer and adjusts its parameters. This process is often repeated millions of times to ensure there is as little error as possible. To finish, let’s turn our minds back to the children’s story analogy. If Goldilocks was correctly programmed, she’d go straight for the perfect porridge. With enough iterations, she’d probably squeeze in a quick power nap on the perfect bed, then re-make it and cover her tracks so they’d never even know she was there. Genius!

References:

https://medium.freecodecamp.org/an-introduction-to-reinforcement-learning-4339519de419
https://machinelearningmastery.com/supervised-and-unsupervised-machine-learning-algorithms/
http://www.scholarpedia.org/article/Reinforcement_learning/
https://www.sas.com/en_gb/insights/analytics/machine-learning.html

Interested in our capabilities and want to find out more?

CRM is the world’s largest software market, and grew even more under lockdown

By Irina Obrazcova | July 21, 2020

In 2017, customer relationship management software revenue reached £31 billion and became the world’s largest software market. In this blog we discuss the advantages of effective CRM tools including increased sales, sales productivity, sales conversion rates as well as improved levels of customer retention and satisfaction. Find out how your business can leverage the power of CRM software.

Read More

Use the Lockdown Lull to Spring Clean your Data

By Libby Plowman | May 21, 2020

The lockdown has inspired a spring-cleaning trend, so now your house is in order, how about refreshing your data to ensure you get the most out of it? Are your customers feeling valued or could they do with some TLC too? Here are some tips to help you get started.

Read More

Automating RFM segmentation and labour-intensive tasks

By Irina Obrazcova | May 10, 2020

With the advancement of machine learning and artificial intelligence, automation is becoming more and more prevalent within the business world. However, there is still a big gap in our understanding of just how much can be automated. What is RFM and does your business need it?

Read More

CRM Strategy: How to build and maintain customer relationships

By Libby Plowman | April 7, 2020

Today, building a meaningful client base is more important than ever. When it comes to costs, acquiring new customers is five times more expensive than keeping existing ones. So how do you actually maintain lasting customer relationships? We’ve compiled some useful tips to help you grow and retain your hard-earned customers.

Read More

Simpson’s Paradox and segmentation: why analysis is crucial

By Irina Obrazcova | February 10, 2020

Simpson’s Paradox refers to a data phenomenon where a trend existing in groups reverses when the data is studied as a whole. When it comes to analytics, understanding this paradox is vital since it can completely alter any insights gained from the data itself. How does the relationship between Simpson’s Paradox and segmentation apply in business situations?

Read More