Sitemap
Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com

Member-only story

Nominal, Ordinal, Interval, Ratio, Explained With My Food Delivery Orders

16 min read3 days ago

--

The average of Indian food and Thai food is Italian food.

I didn't make that up for a laugh. Store four cuisines in a spreadsheet as numbers, ask a computer for the average of two of them, and that's the answer you get. The same computer will tell you my average postcode is 1215.6. It'll also happily agree that 20°C is twice as warm as 10°C. No warning, no red underline. Just a confident number with a decimal point.

Free Reading Link Here

None of that is a bug. Python did exactly what it was told. The trouble is that numbers come in four different kinds, and only the person holding them knows which kind they are. Mix them up in a class assignment and you lose a few marks. Mix them up in a science journal and the paper gets pulled, which really happened, and I'll tell you that story at the end.

Press enter or click to view image in full size
Cartoon chef blending an Indian curry and a Thai curry into Italian spaghetti while a robot cheers, a joke about levels of measurement
The robot is very proud. The chef has questions.

I noticed this with my own food orders. Most delivery apps let you download your history, so I grabbed ten orders and loaded them into pandas, which is Python's spreadsheet library. Each order has a postcode, a cuisine and a spice level (1, 2 or 3). It also has the stars I gave, the food's…

--

--

I write about machine learning, deep learning, and statistics with Python, making complex ideas ridiculously clear.

Towards AI
Towards AI

Published in Towards AI

We train AI Engineers. We deploy Enterprise AI. Join 100K+ AI practitioners at Towards AI Academy or reach out for help making your company AI native. towardsai.com