What is a recession?

Like pretty much every country that entered a coronavirus lockdown, the UK is now officially in a recession. But what is a recession and how are they measured?