Explainer

How the clustering decision is made

What is a cluster for, what makes stores count as similar, how many clusters do you set up? Turnover tells you how much a store sells, not what it sells. Plus the business constraints and the trade's four most common mistakes.

Store Grouping · 2 / 6

We ended the last article on a one-sentence definition: a store cluster is a group of stores with similar sales mixes, which the plan and the initial allocation treat as a single unit. In this article we take that decision apart. There are no formulas; we build the rules in the third article and the machine learning in the fourth. The job of this article is to pin down which questions those methods will answer.

What a cluster is for

A clusterA group of stores with similar sales mixes. The plan and the initial allocation treat the stores in a cluster as one unit. is not a decision on its own; it is the unit of other decisions. In retail it is the unit of at least four.

The plan. If the plan is built by cluster, each cluster gets one category mix: how much of this cluster’s sales will be dresses, how much trousers? A store’s size decides only its own total. In Pelin’s grid Istanbul 13 and Istanbul 10 are in the same cell; the two of them would have got the same mix.

The assortment. Which product is sold in which store. Leaving oversized products out of a store that sells a lot of oversized fit is losing the sale before it starts. Building the assortment is the job of a separate stage; in this series we do not touch it, and the products the stores carry are fixed.

Initial allocation. In the Initial Allocation series Lumoda’s rule split a new product across the stores by their shares in the category plan. If the plan is built by cluster, the share comes from the cluster too. More interestingly, a method that looks at the history of similar products may see in a cluster the fine differences it cannot see in single stores: one store may not have enough history, but the seven stores in the same cluster will. That is a hypothesis; we set it up and test it in the fifth article.

Markdown. When to mark down, and by how much, is also decided group by group in most chains. The same product may be selling at full price in one cluster and sitting on the rail in another.

In all four the question is the same: which stores can be treated together?

What to look at: mix, not scale

The answer Lumoda has ready to hand is turnover. The sales volume gradeRanking stores by turnover over the last twelve months and splitting them into three, A, B and C. It says how much a store sells, not what it sells. is built on net turnover over the last twelve months: 13 stores are A, 20 are B and 34 are C. The lower bound of grade A is TRY 116.4 million; B’s is TRY 53.4 million.

“A big store sells differently,” says Pelin. “A big store’s customer can’t be the same as a small store’s.”

“Why not?” says Pars. “Let’s open two stores.”

Istanbul 8 is a mall store, 717 square metres, grade B. Its turnover over the last twelve months is TRY 95.0 million. Konya 3 is a high street store, 407 square metres, grade C; its turnover is TRY 36.1 million. One is Ali’s, the other Veli’s.

Share of Basic and NOSIstanbul 8Konya 3
Relaxed fit22.4%18.9%
Mid price segment44.8%43.8%
Shorts2.2%2.0%

Istanbul 8 sells far more than Konya 3, but it sells the same things. In the clusters found from the sales mix the two are in the same cluster.

“A big store and a small store can sell the same thing,” says Pars. “Turnover only tells you how much it sells.”

That is why, when we build the clusters, we look not at a store’s size but at its sales mixHow a store's sales are spread across subcategories, price segments and fits. It describes not how much a store sells but what it sells.: how its sales are spread across subcategories, price segments and fits. The Product hierarchy article explains subcategory and fit. The mix is measured in shares; the shares add up to the same total in every store, so a big store does not stand out just for being big. Scale is not lost; it comes in at the second step of the plan, when the cluster’s plan is split across its stores.

How will we know a grouping is good?

In real life this question has no easy answer. There is no answer key showing a store’s customer. At Lumoda there is, because I generated the data: every store has a customer profile that does not appear in the published data. The decisions never see this profile; I use it only to measure afterwards.

The measure is a simple number: how well does a grouping agree with the answer key? 1 means perfect, a split exactly the same as the key. 0 means the agreement you would get by grouping the stores at random. The measure is called ARI (the adjusted Rand index).

The sales volume grade’s agreement is 0.035. No different from a random grouping. Region’s agreement is 0.209; it knows something, but not much.

What is a chain with no answer key to do? Look at measures that need no key: how well separated the clusters are, how well they hold from season to season and, most important, whether decisions made by cluster are better. In this series we measure all three, because in real life these are all you will have.

How many clusters

There were 12 cells in Pelin’s grid. The method that looks at the sales mix found five clusters.

“Five?” says Pelin. “I proposed twelve cells, and Ali and Veli wanted to bring it down to two. What do we choose the right number by?”

“Not by the number, but by how alike the stores in a group are,” says Pars. “Splitting ten stores that sell to the same customer into two doesn’t refine the plan; it only adds noise. Putting stores that sell to different customers into one group blurs the plan.”

“We decide how many clusters to set up without looking at the answer key,” Pars goes on. “The measure is called the silhouette. It looks at every store: how close is it to the stores in its own cluster, and how far from the nearest other cluster? The closer to 1, the more cleanly the clusters separate; the closer to 0, the more they overlap. At Lumoda the highest silhouette comes with five clusters: 0.308.”

“Isn’t that low?” says Pelin.

“You have to ask: low compared with what?” says Pars. “We clustered the same data with its structure broken; we shuffled every column within itself. On data with no structure the silhouette is 0.047. The real data has a structure.”

Business constraints

No method builds a cluster in a vacuum. At Lumoda there are three limits.

Outlet is a group of its own. The outlet stores sell stock from another line. There is no sense in putting them in the same cluster as stores that sell Collection; they do not enter the clustering at all. The online channel is out of scope too.

The smallest cluster is three stores. Lumoda does not set up a planning group smaller than three stores. A one-store cluster means a separate plan for that store; the whole point of the group is to avoid exactly that. Even if the silhouette suggests narrowing a cluster down to a single store, that split is not chosen.

The new store. This season two stores do not have enough history. Izmir 2 opens on the first day of the season and has no sales at all. Kocaeli 1 has 19 weeks of sales; it has not completed half a year. You cannot cluster a store with no sales mix by its mix. It has to be put in a cluster without seeing any sales, looking only at what we know (city, region, store type, square metres). We measure that in the fifth article. The sales volume grade’s answer is cruder still: a new store does not enter the ranking and gets C. Kocaeli 1’s turnover, scaled up to a year, comes to TRY 125.9 million; above the threshold for grade A.

There is also an expectation: clusters should hold from season to season. With a method that moves stores into different clusters every season, Pelin starts from scratch every season. We also measure how well the clusters hold in the fifth article.

The trade’s four mistakes

Grouping by turnover. The most common. Turnover is easy to measure, everyone understands it and it hardly changes from season to season. But it says nothing about the customer. At Lumoda the sales volume grade’s agreement with the answer key is 0.035; no different from grouping the stores by lot.

Grouping by region. Region usually comes from the organisation chart: whichever stores a regional manager looks after, that is the group. It is a good way to divide up the work, not to understand the customer. Region’s agreement is 0.209. According to the answer key, Marmara’s 18 stores hold three different customer profiles.

Putting scale on the same footing as mix. This mistake is more insidious. Add turnover, square metres and capacity next to the sales mix and cluster them together, and the silhouette goes up: 0.351 instead of 0.308. On paper, a better split. But that split looks like the sales volume grade (the agreement between them is 0.582), not like the answer key (0.138). Scale easily sorts stores into big and small, the split gets sharper and the silhouette rewards it. What gets separated is not the customer but the size. Someone deciding by the silhouette would pick the split with scale in it.

Taking the trace of the assortment for the customer. A store sells only what it has. In a store that was never sent oversized products, the oversized share of sales comes out low; not because its customers did not want it, but because it was not on the rail. The sales mix reflects partly the customer and partly the assortment sent to the store. In Lumoda’s data this effect turned out small; in the fourth article we will show how we measured it. There is no guarantee it will be small in your data.

Three questions

In the end the clustering decision comes down to three questions: what makes stores count as similar, how many clusters do you set up, and where does a store with no sales history go? None of the answers is written on the map or in the turnover table. They are written in the products going through the till.

In the next article we open up Lumoda’s rules: region, sales volume grade, the grid of the two, and one more rule that looks at location. Which one sees how much of the customer, and which one holds from season to season?

By Sabri Suyunu