Business & careers

A Markov chain turns past staff and customer movement into a forecast

For HR, finance and planning staff in Korean companies: how a Markov chain forecasts headcount or customers, with a worked example you can check by hand.

PAPATONYUpdated Nov 20, 20265 min readViews 0

At a glance

What you need
A few groups, past counts and a transition table
First check
Each row of the transition table adds up to 100%
History (working rule)
At least one year of monthly or quarterly counts
Backtest
Build on 6 months, compare with the next 3 months
Tool
A spreadsheet's matrix multiplication function
Worked example
400 staff, no hiring: 369 remain, 31 leave in a quarter

This guide is for HR, finance and planning staff in Korean companies, including the management support team (경영지원팀) that many Korean firms use for HR, accounting and general affairs. Forecasting headcount or customer numbers on gut feeling alone is risky. A Markov chain is a simple probability model that turns past movement between groups into a forecast, and a spreadsheet is enough to build one.

The idea in plain terms

Split the people you want to forecast, such as employees or customers, into a few groups. The model calls them states. For each group, look at one period, a month or a quarter, and count what share stayed, what share moved to each other group and what share left. These shares are transition probabilities (전이확률). Set out as a table, with one row for each starting group, they form a transition matrix (전이행렬).

The model makes one key assumption: what happens next depends only on the group someone is in now, not on how they got there. This is the Markov property. To forecast, multiply the current number in each group by the table. To go further, repeat the step with the new numbers.

A worked example: staff by length of service

The numbers below are invented to show the method. A company has 400 employees in three groups by length of service (근속연수): under 1 year (100 people), 1 to under 3 years (200) and 3 years or more (100). People who resign form a fourth group, leavers. If 70 of the 100 people under 1 year are still in that group after a quarter, 20 have passed the one-year mark and 10 have left, the first row is 70%, 20% and 10%.

From / To (one quarter)Under 1 year1 to under 3 years3 years or moreLeft
Under 1 year70%20%0%10%
1 to under 3 years0%80%12%8%
3 years or more0%0%95%5%
Left0%0%0%100%

Each row adds up to 100%. That is the first check on any transition table.

With no hiring, the next quarter looks like this:

  • Under 1 year: 100 × 70% = 70
  • 1 to under 3 years: 100 × 20% + 200 × 80% = 20 + 160 = 180
  • 3 years or more: 200 × 12% + 100 × 95% = 24 + 95 = 119
  • Left during the quarter: 100 × 10% + 200 × 8% + 100 × 5% = 10 + 16 + 5 = 31

The company keeps 70 + 180 + 119 = 369 people, and 369 + 31 = 400, so nobody is lost in the arithmetic. To stay at 400, it must hire about 31 people. New hires start in the group with the highest exit rate, so turnover continues: if the 31 join at the start of the next quarter (101 people under 1 year), the same table predicts 10.1 + 14.4 + 5.95 = 30.45 leavers in that quarter. The forecast tells the planner to budget for steady hiring, not a one-off top-up.

Building it in a spreadsheet

  1. Enter the transition table in a 4 × 4 block: rows are "from", columns are "to".
  2. Enter the current headcount as one row of four cells in the same order, with 0 for leavers.
  3. Multiply the row by the table with the spreadsheet's matrix multiplication function (MMULT in common spreadsheet programs). The result is next period's expected headcount.
  4. For later periods, multiply the result again, adding planned hires to the first group each time.

No statistics package is needed, which is why the method suits small teams.

Getting the inputs right

  • Start from a clear goal. Decide first what you want to predict, for example quarterly headcount changes, then study the current structure and past movements.
  • Use meaningful groups. For customers, group by behaviour rather than age or gender: new customers, existing customers and customers who left and came back behave very differently. Adding usage frequency or purchase value makes the forecast sharper.
  • Collect enough history. As a working rule, gather at least one year of monthly or quarterly counts for each group.
  • Backtest. Build the table from six months of data and compare its forecast with what actually happened in the next three months.
  • Watch the assumptions. The table assumes that movement rates stay stable and that everyone in a group behaves alike. Very small groups give jumpy percentages, and a pay change or reorganisation can shift the rates, so rebuild the table when conditions change.

From forecast to decision

Analysis creates no value until it changes a decision. Some uses:

  • A customer churn model can show whether raising repeat purchases from existing customers pays better than spending to win new ones, and the marketing budget can move accordingly.
  • A B2B software company can watch how client firms use its product, flag accounts at risk of leaving, and have the customer success manager visit and fix problems early.
  • An HR team can forecast staffing needs two years ahead, see when skilled technicians are likely to retire, and train successors in time.

The model works best when everyone looks at the same numbers. Some teams hold a short weekly review of key metrics where they discuss why a number moved and what to do next. Developers learn which features affect customer retention, and marketers learn which channels work. Decisions get faster because they rest on shared data rather than individual guesses.

Where AI tools help

Generative AI assistants now let non-specialists understand statistical concepts and draft formulas or code. Check every formula against a small example you can work by hand, like the one above. The basics have not changed: a model that ignores the business context is useless, and a forecast that nobody acts on has no value.

Checklist

  • Define the decision the forecast supports.
  • Choose three to five groups that behave differently.
  • Collect at least 12 months of counts per group.
  • Build the transition table and check that each row adds up to 100%.
  • Multiply headcount by the table, adding planned hires.
  • Backtest on six months of history against the next three months.
  • Review results in a regular meeting and act on them.

Korean terms you will see

TermReadingMeaning
마르코프 체인mareukopeu cheinMarkov chain: a model in which the next state depends only on the current state.
전이확률jeonihwangnyulTransition probability: the share that moves from one group to another in one period.
전이행렬jeonihaengnyeolTransition matrix: the table of all transition probabilities; each row adds up to 100%.
근속연수geunsongnyeonsuLength of service with the current employer, in years.
퇴사율toesayulShare of employees who leave in a period.
이탈률itallyulChurn rate: share of customers who stop using a product or service.
백테스팅baekteseutingTesting a model against past data that was not used to build it.
경영지원팀gyeongyeongjiwontimManagement support team that handles HR, accounting and general affairs in many Korean firms.
승계계획seunggyegyehoekSuccession planning: preparing successors for key roles before people leave or retire.

Sources

  • Introductory Probability (open textbook), Section 11.1, Markov Chains: Introduction (transition matrix and n-step forecast): https://stats.libretexts.org/Bookshelves/Probability_Theory/Introductory_Probability_(Grinstead_and_Snell)/11%3A_Markov_Chains/11.01%3A_Introduction

This guide explains general rules as of Nov 20, 2026. It is not legal or tax advice. Laws and forms change, so check the official website or ask a licensed professional before you act.

Ask about this topic

Comments