"Our system detects 99 percent of all attacks", announces the head of IT security. The CFO nods with relief: "So does that mean an alarm is a real attack 99 percent of the time?" Unfortunately, no. In our example, the figure is just 50 percent. The software isn't defective. It's just the conclusion that needs an update.
Suppose that out of 10,000 login attempts, 100 are actually attacks. The system detects 99 percent of them—that is, 99. At the same time, it falsely triggers an alarm for one percent of the 9,900 harmless attempts: another 99 alarms. Out of a total of 198 alarms, therefore, only 99 are genuine attacks. The probability we're looking for is 50 percent, not 99 percent. Anyone who confuses the detection rate with the attack probability after an alarm ignores the base rate of attacks. This base rate problem has been scientifically described in the context of attack detection (see Axelsson 2000).
Bayes: Learning Instead of Being Right
Bayes' theorem provides the appropriate calculation formula:
P(attack | alarm) = P(alarm | attack) × P(attack) / P(alarm)
In the example, P(attack) = 1%, P(alarm | attack) = 99%, and P(alarm | no attack) = 1%.
Thus, P(alarm) = 0.99 × 0.01 + 0.01 × 0.99 = 1.98%.
According to Bayes, P(Attack | Alarm) = 0.99 × 0.01 / 0.0198 = 50%.
The system's high hit rate should therefore not be confused with the probability that a specific alarm actually indicates an attack.
Bayesian statistics turns this into a principle of learning: prior knowledge is formulated as a prior distribution. This prior knowledge can be derived from previous observations and documented expert estimates. The likelihood describes how probable the observed data are given the respective assumptions. Together, these yield the posterior distribution—that is, the updated state of knowledge. New evidence can increase or decrease a risk assessment. Changing one's own opinion is not a loss of face here, but rather an integral part of the method [see Romeike / Wieczorek 2026, p. 460].
Cyber risks rarely occur in isolation
When it comes to cyber risks, however, a single probability does not go very far. A Bayesian network describes multiple uncertain variables and their assumed dependencies: nodes represent variables, and directed arrows connect them. Directed circles are excluded. Conditional probabilities are assigned to nodes with direct predecessors, while unconditional probabilities are assigned to root nodes. Romeike and Wieczorek discuss these models in "Data Analytics in Risk Management" (2026) as a tool of predictive analytics.
Practical Example: Ransomware in a Manufacturing Company
Suppose the security team at a manufacturing company receives a credible report of a credential leak involving a privileged VPN account. At the same time, no phishing-resistant multi-factor authentication is active for this account. In this deliberately illustrative model, this increases the probability that the privileged account is actually compromised from an assumed prior probability of 6% to a posterior probability of 35%. This example illustrates the core principle of Bayesian updating: New evidence modifies our state of knowledge; it does not replace it.
However, the potential attack path does not end with the account takeover. The EDR system isolates the affected endpoint within 15 minutes, and network segmentation isolates critical production zones. Under these model assumptions, the posterior probability of lateral movement is still 9.4%. In this example, this translates to a 3.5% probability of an admin or backup account being compromised and a 4.4% probability of a successful ransomware deployment. The protective measures thus take effect at different points along the attack path.
Risk management becomes particularly interesting when technical events are linked to their consequences. The model yields a 3.3% probability of a production outage. A successfully tested immutable backup subsequently reduces the modeled probability of an outage lasting more than 24 hours to 0.5%. For a financial loss of more than €1 million, the example yields a posterior probability of 0.46%. In a comparative scenario with the same initial evidence but without effective EDR isolation, segmentation, and immutable backups, this value is approximately 3.36%.
Figure: Illustrative Bayesian network for a real-world ransomware scenario. The percentages are model parameters for illustrative purposes and are not empirical cyber risk benchmarks.
From the Attack Path to the Distribution of Damage
This real-world example demonstrates why a mere probability of compromise is insufficient for corporate risk management. A Bayesian network can integrate technical states, control effectiveness, and business consequences into a consistent risk profile. To do so, the reference period and financial impacts must be explicitly modeled—such as recovery costs, business interruption, contractual penalties, or lost contribution margins. Links between attack paths and financial consequences are also being investigated in research on Bayesian attack graphs (see Zhang, Xu, and Zhao 2025).
It is not just the expected value that matters. Two scenarios can have the same average loss yet still exhibit very different extreme risks. For cyber risks, therefore, exceedance probabilities, quantiles, and severe, rare loss sequences are also relevant. The Bayesian network provides the conditional probabilities for this; the financial loss distribution must be supplemented as appropriate for the specific use case.
On this basis, measures can be compared: What impact does phishing-resistant MFA have? To what extent does segmentation reduce the probability of lateral movement? How does a tested recovery plan influence downtime and, consequently, the financial loss distribution? Such a model can translate technical security information into a language that is compatible with risk management, budgeting, and management decisions.
No Oracle with Decimal Places
However, an arrow does not prove causation. Anyone seeking to deduce the effect of a protective measure from a model needs well-founded causal assumptions. "We observe less damage in companies with this measure" is not automatically equivalent to "This measure causes less damage." Observation and intervention are distinct issues. (see Pearl 2009).
Nor does Bayes transform poor input data into sound insights. Assumptions should be documented, estimation uncertainty should be disclosed, and results should be tested against new observations and sensitivity analyses. The goal is not the most impressive decimal place, but a transparent decision made under uncertainty.
Bibliography and Further Reading
- Romeike, Frank / Wieczorek, Gabriele (2026): Data Analytics in Risk Management – Descriptive Analytics – Diagnostic Analytics – Predictive Analytics. Springer Gabler, Wiesbaden. DOI: 10.1007/978-3-658-48843-7
- Zhang, Xiaoyu / Xu, Maochao / Zhao, Peng (2025): Pricing Cyber Risks Over Modern Networks via Bayesian Attack Graphs. Variance, 18. DOI: 10.66573/001c.133952
- Axelsson, Stefan (2000): The Base-Rate Fallacy and the Difficulty of Intrusion Detection. ACM Transactions on Information and System Security, 3(3), pp. 186–205. DOI: 10.1145/357830.357849.
- Pearl, Judea (2009): Causal Inference in Statistics: An Overview. Statistics Surveys, 3, pp. 96–146. DOI: 10.1214/09-SS057.
A mean summarizes values according to a specified calculation rule. Without qualification, “mean” often denotes the arithmetic mean. Geometric and harmonic means are different summaries with different conditions of use.
Arithmetic mean
x̄ = (1/n) ∑i=1n xi, n ≥ 1
For n numerical observations, x̄ is their sum divided by their count, with equal weight for each observation. Replacing one value by a value Δ higher increases x̄ by exactly Δ/n. Extreme values can therefore substantially affect the mean.
Distinction from expectation
μ = E[X], provided E[|X|] < ∞
x̄ describes observed data; μ belongs to an assumed probability model. For independent, identically distributed observations with finite E[|X|], the law of large numbers gives convergence of the sample mean to μ as the sample grows. It does not guarantee the accuracy of any single estimate.
For the empirical distribution assigning weight 1/n to each observed value, its expectation already equals x̄ exactly. It is therefore misleading to describe that empirical expectation as a different value reached only in the limit.
Enlarge graphicConstructed example: 6 is replaced by 26 and n stays 5. The mean increases by 20/5 = 4.For skewed observations the median may answer a different, more suitable question about location. Neither statistic alone describes dispersion, extreme losses or the complete distribution.
Technical reference: NIST: Measures of location. Status checked: 14 November 2026.
Probability is a classification of statements and judgments according to their degree of certainty. Within mathematics, probability theory has developed as a separate field describing probabilities as mathematical objects.
Probabilities are described mathematically by numbers between 0 and 1, with zero and one being permissible values. An impossible event is assigned probability 0, and a certain event probability 1. However, the converse applies only if the number of all events is at most countably infinite. In "uncountably infinite" probability spaces, an event with probability 0 can occur and is then called almost impossible; an event with probability 1 need not occur and is then called almost certain.
In practice, different concepts of probability are distinguished, including:
- Classical concept of probability according to Laplace (symmetry principle): The probability of an event is the ratio of favorable outcomes to the total set of outcomes. For example, the probability of rolling an odd number with a six-sided die is 0,5. This corresponds to a relative frequency of 50 percent, since there are six possible outcomes (1, 2, 3, 4, 5, or 6), three of which have the stated property (1, 3, 5). This classical definition was developed by Christiaan Huygens and Jacob I Bernoulli and formulated by Laplace. The classical concept of probability provides the basis for classical probability theory.
- Subjectivist concept of probability: For one-off random events, the probability of occurrence can only be estimated, not calculated. Estimates are generally based on expert knowledge, experience and intuition. This is therefore called the subjectivist or Bayesian concept of probability, interpreting probability as a personal degree of belief.
- Frequentist concept of probability: A random experiment is repeated as often as possible. The relative frequencies of the respective elementary events are then determined. The probability of an event results from the limit of its relative frequency over a theoretically infinite number of repetitions. The law of large numbers plays a central role here. This requires the experiment to be repeatable without limit. Individual trials must also be independent of one another.
Risk evaluation supports decisions about identified risks. Distinguish risk analysis from risk evaluation: analysis examines nature, causes, consequences and likelihood; evaluation compares analytical results with specified risk criteria and supports action priorities. In business usage, “risk assessment” often also includes quantification.
Quantitative modelling may treat event frequency and severity separately and combine them into a distribution of total impact over a specified period. For random event count N and severities Yᵢ, aggregate loss is S = ∑ᵢ₌₁ᴺYᵢ. An occurrence indicator and a conditional severity form a simpler special case. Explicitly account for dependence and common causes. Two marginal distributions alone do not specify their joint distribution.
Initial qualitative classification can prioritise analytical effort. A scale from 1 to 5 and the selection of particular classes are organisation-specific choices. Apparently minor risks may become material through interactions, accumulation or uncertain estimates. Document and maintain results, assumptions, responsibilities and actions in the risk inventory.
The tables retain the same six discrete and ten continuous distribution types as the previous overview. The cumulative distribution function F(x) = P(X ≤ x) applies to both types. A probability mass function gives individual discrete probabilities; a density is not a point probability. For continuous X, P(a < X ≤ b) = ∫ₐᵇf(x)dx. Distribution selection requires substantive justification, data assessment and sensitivity analysis.
Notation: C(n,k) = n!/(k!(n−k)!) is the binomial coefficient; ⌊x⌋ is the greatest integer ≤ x; 1{A} equals 1 if A holds, otherwise 0. Empty sums equal 0. Discrete probabilities are zero outside the stated support. At p = 0 or p = 1, binomial formulas use their usual limiting convention.
| Distribution and parameters | Support | F(x) = P(X ≤ x) | Probability mass function |
|---|---|---|---|
| Binomial distribution n ∈ ℕ₀, 0 ≤ p ≤ 1; n independent trials sharing p | k = 0,…,n | F(x) = ∑k=0min(n,⌊x⌋) C(n,k)pk(1−p)n−k | p(k) = C(n,k)pk(1−p)n−k |
| Negative binomial distribution r ∈ ℕ, 0 < p ≤ 1; number of trials through the rth success | k = r,r+1,… | F(x) = ∑k=r⌊x⌋ C(k−1,r−1)pr(1−p)k−r | p(k) = C(k−1,r−1)pr(1−p)k−r |
| Geometric distribution (failures) 0 < p ≤ 1; failures before the first success | k = 0,1,… | F(x) = 1 − (1−p)⌊x⌋+1 for x ≥ 0; 0 for x < 0 | p(k) = p(1−p)k |
| Hypergeometric distribution N ∈ ℕ, integers 0 ≤ K ≤ N and 0 ≤ n ≤ N; sampling without replacement | k = a,…,b; a = max(0,n−N+K); b = min(n,K) | F(x) = ∑k=amin(b,⌊x⌋) C(K,k)C(N−K,n−k) / C(N,n) | p(k) = C(K,k)C(N−K,n−k) / C(N,n) |
| Poisson distribution λ > 0; mean count over the specified period | k = 0,1,… | F(x) = ∑k=0⌊x⌋ exp(−λ)λk/k! | p(k) = exp(−λ)λk/k! |
| Discrete uniform distribution m ∈ ℕ; distinct equally likely values x₁,…,xₘ | x₁,…,xₘ | F(x) = (1/m) ∑i=1m 1{xi ≤ x} | p(xi) = 1/m |
The negative binomial variable here counts all trials through the rth success; an alternative counts failures and is smaller by r. The geometric variable here counts failures from 0; another convention counts trials from 1. For the hypergeometric distribution N is population size, K the number of marked items and n sample size. Discrete uniformity here also permits unequally spaced distinct values; consecutive integers are a special case.
| Distribution and parameters | Support | F(x) = P(X ≤ x) | Density |
|---|---|---|---|
| Continuous uniform distribution a < b | a ≤ x ≤ b | F(x) = 0 (x ≤ a); (x−a)/(b−a) (a < x < b); 1 (x ≥ b) | f(x) = 1/(b−a), a < x < b |
| Exponential distribution λ > 0; rate | x ≥ 0 | F(x) = 1 − exp(−λx), x > 0 | f(x) = λ exp(−λx), x > 0 |
| Erlang distribution m ∈ ℕ, λ > 0; m stages, rate λ | x ≥ 0 | F(x) = 1 − exp(−λx) ∑j=0m−1 (λx)j/j!, x > 0 | f(x) = λmxm−1exp(−λx)/(m−1)!, x > 0 |
| Normal distribution μ ∈ ℝ, σ > 0; location and standard deviation | x ∈ ℝ | F(x) = Φ((x−μ)/σ) | f(x) = exp[−(x−μ)2/(2σ2)] / (σ√(2π)) |
| Lognormal distribution μ ∈ ℝ, σ > 0; ln X ∼ N(μ,σ²) | x > 0 | F(x) = Φ((ln x−μ)/σ), x > 0 | f(x) = exp[−(ln x−μ)2/(2σ2)] / (xσ√(2π)), x > 0 |
| Weibull distribution (three parameters) μ ∈ ℝ, η > 0, k > 0; location μ, scale η, shape k | x ≥ μ | F(x) = 1 − exp[−((x−μ)/η)k], x > μ | f(x) = (k/η)((x−μ)/η)k−1 exp[−((x−μ)/η)k], x > μ |
| Chi-squared distribution ν > 0; degrees of freedom | x ≥ 0 | F(x) = P(ν/2,x/2), x > 0 | f(x) = xν/2−1exp(−x/2) / (2ν/2Γ(ν/2)), x > 0 |
| Student t distribution ν > 0; degrees of freedom | x ∈ ℝ | F(x) = cν ∫−∞x(1+t2/ν)−(ν+1)/2 dt | f(x) = cν(1+x2/ν)−(ν+1)/2; cν = Γ((ν+1)/2)/(√(νπ)Γ(ν/2)) |
| F distribution d₁ > 0, d₂ > 0; numerator and denominator degrees of freedom | x ≥ 0 | F(x) = Iz(d₁/2,d₂/2), z = d₁x/(d₁x+d₂), x > 0 | f(x) = (d₁/d₂)d₁/2xd₁/2−1(1+d₁x/d₂)−(d₁+d₂)/2 / B(d₁/2,d₂/2), x > 0 |
| Gamma distribution a > 0, θ > 0; shape a, scale θ (rate b = 1/θ) | x ≥ 0 | F(x) = P(a,x/θ), x > 0 | f(x) = xa−1exp(−x/θ)/(Γ(a)θa), x > 0 |
For the continuous distributions shown on a half-line, F(x) = 0 below and at the lower endpoint; density is zero outside the support. For the continuous uniform distribution F equals 1 to the right of b. Density values at individual endpoints do not change probabilities; limits can be infinite for some parameters. Normal and Student t distributions have support throughout ℝ.
Special functions: Γ is the gamma function; Φ is the standard normal CDF. P(a,z) is the regularised lower incomplete gamma function, I_z(a,b) the regularised incomplete beta function and B(a,b) the beta function. These functions are not free parameters. Erlang is a gamma special case with integer shape m and scale 1/λ.
Γ(a) = ∫0∞ ta−1exp(−t)dt
P(a,z) = (1/Γ(a)) ∫0z ta−1exp(−t)dt
B(a,b) = Γ(a)Γ(b)/Γ(a+b)
Iz(a,b) = (1/B(a,b)) ∫0z ta−1(1−t)b−1dt
Sources: official SciPy reference linked in each row; NIST: Weibull distribution; ISO 31000:2018.
Data analytics is the systematic examination of data to describe events, investigate relationships, predict outcomes and support decisions. It includes acquisition, quality checks, preparation, statistical analysis, modelling, visualisation and interpretation in context.
Four perspectives
Descriptive analytics summarises what happened. Diagnostic analytics investigates possible explanations. Predictive analytics estimates unknown or future outcomes. Prescriptive analytics evaluates actions against objectives, constraints and uncertainty. These perspectives complement each other; they need not form a fixed technical sequence.
Risk management application
An analysis may connect loss reporting, unusual segments, loss forecasts and prevention decisions. Document the data, horizon, assumptions and uncertainty. Statistical association does not prove causation. Greater predictive accuracy is valuable when it improves a relevant decision, rather than merely a benchmark score.
Technical reference: Methodological background
Risk management comprises processes and behaviors aimed at directing an organization with regard to risks.
Risk management identifies, analyzes and assesses potential risks that could threaten a company's net assets, financial position and earnings over the medium and long term.
The aim is to ensure a company's continued existence, safeguard corporate objectives against disruptive events and increase enterprise value.
Definition of risk management based on ISO 31000:
- Risk management creates value: Risk management contributes to the demonstrable achievement of objectives and improvement of, for example, human health and safety, compliance with legal and regulatory requirements, public acceptance, environmental protection, financial performance, product quality, effectiveness of operational activities, good corporate governance and reputation.
- Risk management is an integral part of organizational processes: Risk management is part of management's responsibility and an integral part of organizational processes, as well as all projects and change processes. Risk management is not a stand-alone activity separate from the organization's main activities and core processes.
- Risk management is part of decision-making: Risk management helps risk owners make informed choices. Risk management can help prioritize activities and distinguish between alternative courses of action. Ultimately, risk management can contribute to decisions about whether a risk is unacceptable and whether risk treatment is appropriate and effective.
- Risk management explicitly addresses uncertainty: Risk management addresses the aspects of decisions that are uncertain, the nature of that uncertainty and how it can be addressed.
- Risk management is systematic, structured and timely: A systematic, timely and structured approach to risk management contributes to efficiency and consistent, comparable and reliable results.
- Risk management is based on the best available information: Inputs to the risk management process are based on information sources such as experience, feedback, observation, forecasts and expert judgment. Nevertheless, decision-makers should be informed about, and take into account, the limitations of data sets or models used. They must also consider differences of opinion among experts.
- Risk management is tailored: Risk management is tailored to the organization's external and internal context and aligned with its risk profile.
- Risk management takes human and cultural factors into account: Risk management considers the capabilities, perceptions and intentions of external and internal people that can facilitate or hinder the achievement of the organization's objectives.
- Risk management is transparent and inclusive: Appropriate and timely involvement of stakeholders, particularly decision-makers at all levels of the organization, ensures that risk management remains relevant and up to date. Stakeholder involvement also enables them to feel appropriately represented and their views to be considered when risk criteria are established.
- Risk management is dynamic, iterative and responsive to change: As internal or external events occur and context and knowledge change, risks are monitored and reviewed; new risks emerge, some change and others disappear. The organization should therefore ensure that risk management continually identifies and responds to change.
- Risk management facilitates continual improvement of the organization: Organizations should develop and implement strategies to improve the maturity of their risk management across all aspects of their organization.
Predictive analytics uses statistical models and machine learning to estimate unknown or future outcomes from available information. Outputs may be point forecasts, classes, probabilities or predictive distributions.
Applications
Examples include default probabilities, claim frequency and liquidity needs. Methods include regression, time-series models, decision trees and neural networks. Performance must be measured on information unavailable during model fitting and selection.
Validation and uncertainty
Separate training, selection and final evaluation; temporal data require time-respecting validation. Prediction intervals and calibrated probabilities express uncertainty. Environmental or distributional changes can reduce reliability. A forecast depends on its assumptions, establishes no causal effect and does not itself select an optimal intervention.
Enlarge graphicFictional data for illustration.Technical reference: Methodological background
Meaning and economic effect
Financial loss, in its general economic sense, is an adverse change in a person’s or organisation’s financial position: existing assets decline, liabilities or necessary expenses arise, or an expected increase in wealth fails to occur. Physical damage is not required. The concept is not limited to an already completed cash payment or an immediately visible accounting loss.
Distinguish losses affecting existing wealth from lost profit. Not every disappointed hope of profit qualifies for compensation. Assessment depends on cause, horizon, the counterfactual position without the harmful event and the evidence supporting the assumed consequences.
Pure financial loss and consequential loss
Insurance and liability practice commonly distinguish pure financial loss from financial consequences of bodily injury or property damage. Pure financial loss arises without preceding injury or property damage, for example where incorrect professional advice causes avoidable payments. Financial consequential loss may instead include profit lost because a production machine was damaged.
These categories describe different causal pathways. On their own, they establish neither another party’s liability nor insurance coverage. A policy’s definition of financial loss may be narrower than the general economic meaning.
Damages under German law
The existence of an economic loss is separate from entitlement to damages. A legal basis and its conditions must be established, for example contractual breach under § 280 BGB or tort under § 823 BGB. Section 823(1) addresses the interests and rights specified there; pure economic detriment alone does not necessarily satisfy it.
§ 249 BGB governs the form and extent of damages. Under § 252 BGB, compensable loss may include profit that could probably have been expected in the ordinary course or under the particular circumstances. Section 252 therefore does not itself create a cause of action for all financial losses. Causation, legal attribution and other applicable conditions still matter.
Risk management and insurance
Risk assessment should distinguish direct financial detriment, additional costs, lost contributions to earnings and timing effects. Avoid overlapping estimates and double counting. A company’s own losses and third-party liability claims are different perspectives.
Financial-loss liability insurance does not automatically cover every financial detriment. Coverage depends on the insured activity, contractual definition, coverage trigger and period, exclusions, limits and deductible. The nonbinding GDV model wording AVB VH (May 2025) excludes bodily injury, property damage and losses derived from them from its financial-loss definition; different terms may be agreed. The actual insurance contract governs.
Primary insurance reference: GDV: AVB VH, May 2025, A1-1.2.
- Theft of confidential information, product data and development work, extending to systematic espionage;
- Theft of intellectual property, manipulation of trading transactions, misappropriation of assets,
- Financial fraud, credit card misuse, forgery and misuse of identities
Mathematical formulation
E[X] = ∑i xi P(X = xi)
E[X] = ∫−∞∞ x fX(x) dx
The first equation applies to discrete variables, the second to continuous variables with density fX. A finite expectation requires E[|X|] < ∞. It is not a guaranteed individual outcome.
Technical reference: Chalmers: Financial Risk
Descriptive analytics summarises historical and current data: what happened, how often and to what extent? Tools include frequency tables, measures of location and dispersion, time series, distribution plots and dashboards.
Example
Risk reporting may compare loss counts, severity and loss rates by period, site or risk category. Quarterly losses of €40k, €65k, €30k and €55k total €190k and average €47.5k. This summary does not explain the second-quarter increase.
Limits
Comparisons need consistent definitions, time windows and exposure measures. Averages can conceal skewness and extreme losses. Missing reports, changed recording rules and aggregation may distort results. Description alone establishes neither causality nor future performance.
Enlarge graphicFictional data for illustration.Technical reference: Methodological background
Diagnostic analytics investigates factors that might explain observed outcomes. Its guiding question is: why did it happen? Analysts break down data, compare periods and groups, decompose contributions and test hypotheses informed by domain knowledge.
Approach
Increasing losses can be examined by business line, loss type and exposure. Higher totals may reflect business growth, greater frequency, severity or changed recording practices. Segment comparisons, regression and an Ishikawa diagram can support this investigation.
Causality
An association or large explanatory contribution is not proof of a cause. Consider confounding, selection, timing and alternative explanations. Claims about intervention effects require a credible causal design, such as a controlled experiment or a justified quasi-experimental strategy.
Enlarge graphicFictional data for illustration.Technical reference: Methodological background
Variance measures the dispersion of a random variable or empirical distribution. It is the average squared deviation from the relevant mean. Squaring gives greater influence to large deviations and treats positive and negative deviations equally.
Variance of a random variable
For a real-valued random variable X with finite second moment E[X²] < ∞ and expectation μ = E[X], finite variance is defined by:
Var(X) = σ² = E[(X − μ)²] = E[X²] − μ²
For a discrete distribution this is a probability-weighted sum of squared deviations. A continuous distribution uses the corresponding integral against its density. No normal-distribution assumption is required.
Discrete: Var(X) = ∑j pj(xj − μ)²
Variance is nonnegative and equals zero exactly when X is constant almost surely. Its units are squared: a quantity measured in euros has variance in euros². Standard deviation is its nonnegative square root and has the original units:
σ = √Var(X)
Empirical and corrected sample variance
For n observations with arithmetic mean x̄, division by n gives the variance of the observed values’ empirical distribution:
vn = (1/n) ∑i=1n(xi − x̄)², n ≥ 1
When estimating an unknown population variance from a sample, a common choice is corrected sample variance:
s² = (1/(n − 1)) ∑i=1n(xi − x̄)², n > 1
For independent, identically distributed observations with finite variance, s² is unbiased for population variance. Division by n − 1 accounts for estimating the mean from the same observations. vn and s² answer different questions, so the denominator must be specified.
Enlarge graphicOwn numerical example. Deviations and their squares are shown separately. The two result fields distinguish a specified probability distribution from variance estimation using a sample.The example values 2, 4 and 6 have center 4 and squared deviations 4, 0 and 4. A specified distribution assigning probability 1/3 to each value therefore has variance 8/3. If those same values are instead a sample from an unknown distribution, the corrected estimate is s² = 8/2 = 4. This second value is an estimate, not the variance of the first specified distribution.
Transformation and aggregation
Var(aX + b) = a² Var(X)
A constant shift b leaves variance unchanged; scaling by a multiplies it by a². For variables with finite second moments:
Var(∑iXi) = ∑iVar(Xi) + 2∑i<jCov(Xi, Xj)
Aggregation must therefore account for dependence. Independence makes the covariance terms vanish. Variance measures favourable and adverse deviations alike; it is not exclusively a downside-risk measure and does not alone describe extreme losses or the full distribution.
Technical references: NIST: Measures of Scale · Newcastle University: Variance and Standard Deviation. Example and chart: own calculation. Status checked: 14 November 2026.
