ArticleslgStudy

computer science

Bus factor

Bus factor is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bus factor rather than just read about it. In short: The bus factor (aka lottery factor, truck factor, or circus factor) is a measurement of the risk resulting from information and capabilities not being shared among team members, derived from the phrase "in case they get hit by a bus". The concept is similar to the much older idea of key person risk, but considers the consequences of losing key technical experts, versus financial or managerial executives (who are the…

Bus factor — main illustration
Bus factor — illustration

Key takeaways

  • Bus factor belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bus factor to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bus factor from memory before moving on to harder problems.

Reference excerpt

The bus factor (aka lottery factor, truck factor, or circus factor) is a measurement of the risk resulting from information and capabilities not being shared among team members, derived from the phrase "in case they get hit by a bus". The concept is similar to the much older idea of key person risk, but considers the consequences of losing key technical experts, versus financial or managerial executives (who are theoretically replaceable at an insurable cost). Personnel must be both key and irreplaceable to contribute to the bus factor; losing a replaceable or non-key person would not result in a bus-factor effect. The term was first applied to software development, where a team member might create critical components by crafting code that performs well, but which also is unavailable to other team members, such as work that was undocumented, never shared, encrypted, obfuscated or not published. Thus a key component would be effectively lost as a direct consequence of the absence of that team member, making the member key. If this component was key to the project's advancement, the project would stall.

Definition The "bus factor" is the minimum number of team members that have to suddenly disappear from a project before the project stalls due to lack of knowledgeable or competent personnel. The expression "hit by a bus" is used to describe hypothetical future disappearances in a darkly humorous way. In this context, any number of events that suddenly and substantially prevent a team member from working on the project. This could include a person taking a new job, going on parental leave, or changing lifestyle or life status. For example, a team of 30 people produces bread in three necessary steps: mixing ingredients, kneading the dough, and baking. 10 people know how to mix ingredients, all 30 people know how to knead the dough, and 5 people know how to bake. If all 5 people who know how to bake disappear, then the team cannot produce bread, so the team's bus factor is 5. A bus factor of one is a single point of failure whereas a bus factor greater than one means there is some redundancy for every part of the process.

History An early instance of this sort of query was when Michael McLay publicly asked, in 1994, what would happen to the Python language if Guido van Rossum were to be hit by a bus. "Truck number" was already a recurring concept in the Organizational Patterns book published in 2004, itself an evolution of the work published in the first book of the Pattern Languages of Program Design series in 1995, which was the publication record of the first Pattern Languages of Programs conference in August 1994, where it was referenced in patterns including Solo Virtuoso. The term was used in mental health in 1998. It was seen in engineering by 2003, and the Debian project in 2005. Studies conducted in 2015 and 2016 calculated the bus/truck factor of 133 popular GitHub projects. The results show that most of the systems have a small bus factor (65% have bus factor ≤ 2) and the value is greater than 10 for less than 10% of the systems. The term is mostly used in business management, and especially in the field of software development.

Improving the bus factor In many software development projects, one goal is to share information in order to improve the bus factor, potentially to the size of the entire team. A good bus factor means many individuals know enough to carry on and the project could still succeed even in very adverse events. Several ways to improve the bus factor have been proposed:

Reduce complexity, Document all processes and keep that documentation up-to-date, Encourage cross-training.

See also Organizational memory Truck-kun

References

Further reading Michele Marchesi, Giancarlo Succi, Don Wells, James Donovan Wells, Laurie Williams (2003). Extreme Programming Perspectives. Boston u. a.: Addison-Wesley. ISBN 0-201-77005-9.{{cite book}}: CS1 maint: multiple names: authors list (link) Laurie Williams, Robert Kessler (2002). Pair Programming Illuminated. Boston u. a.: Addison-Wesley. ISBN 0-201-74576-3. Kent Beck (2000). Extreme Programming. Das Manifest (in German). s. l.: Addison-Wesley. ISBN 3-8273-2139-5.

External links Poisonous People, a talk that includes (among other topics) discussion of bus factor and how to increase it "What If Linus Torvalds Gets Hit by a Bus?" - An Empirical Study, a humour piece

Illustrations

Bus factor: Collision involving a bus, an example of the scenario used for the bus factor
Collision involving a bus, an example of the scenario used for the bus factor

Worked examples

Example 1 — a first encounter with Bus factor

Start with the simplest possible case. Write down what Bus factor claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bus factor before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bus factor ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bus factor

In research
Bus factor appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bus factor in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bus factor is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computing terminology, IT risk management, Knowledge management, so understanding it makes those chapters shorter.
In everyday life
Look for Bus factor outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bus factor” →

How to study Bus factor in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bus factor means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bus factor out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bus factor in simple terms?

The bus factor (aka lottery factor, truck factor, or circus factor) is a measurement of the risk resulting from information and capabilities not being shared among team members, derived from the phrase "in case they get hit by a bus". The concept is similar to the much older idea of key person risk…

Why does Bus factor matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bus factor?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bus factor.

Tags

  • Computing terminology
  • IT risk management
  • Knowledge management

Keep exploring