AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
KIRETH RESEARCH — SEMANTIC LIBRARY
COST VARIANCE ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8
Canonical reference: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/engineering-cost-entities/cost-variance-ontology.html
Status: Proposed formal representation; live page not verified.
1. ENTITY DEFINITION
CostVariance is a contextual comparison between a reference cost and an observed or forecast cost for equivalent scope, period and accounting basis.
V = (id, scope, period, baselineRevision, reference, observed, currency, priceBasis, method, evidence, status)
A variance is not itself a cash transaction or statistical variance.
2. DOMAIN AND TYPES
Entities: CostVariance, CostBaseline, ActualCost, PlannedValue, EarnedValue, ForecastCost, CostEstimate, CostBreakdown, WorkPackage, CorrectiveAction, ChangeRequest, EvidenceRecord.
Types: budget deviation, earned-value cost variance, forecast variance, price variance, usage variance, exchange-rate variance.
Each type declares its sign convention and comparison basis.
3. FLOW OPERATORS
F_capture: Ledger × Scope × Period → ActualCost
F_align: CostRecord × ComparisonBasis → NormalisedCost
F_compare: ReferenceCost × ObservedCost → CostVariance
F_attribute: CostVariance × Evidence → VarianceExplanation
F_control: VarianceExplanation × Authority → ActionDecision
F = F_control ∘ F_attribute ∘ F_compare ∘ (F_align × F_align)
Composition is defined only where output and input types agree.
Missing evidence yields UNKNOWN rather than zero.
4. BUDGET VARIANCE ALGEBRA
Let B be the applicable budget and A the actual cost on a common basis.
D = A − B (positive = adverse overspend).
D_pct = 100D/B, defined only when B > 0.
For disjoint cost scopes i: D_total = Σ_i A_i − Σ_i B_i = Σ_i D_i.
Do not sum percentage variances; compute the ratio from aggregate amounts.
A time-phased budget comparison alone does not establish efficiency when work progress differs.
5. EARNED VALUE ALGEBRA
PV = planned value; EV = earned value; AC = actual cost.
CV = EV − AC (negative = adverse).
CPI = EV/AC when AC > 0.
SV = EV − PV; SPI = EV/PV when PV > 0.
SV is expressed in cost units, not elapsed time.
Budget deviation AC − PV = −CV + SV.
EV must be measured using an approved progress measurement method.
6. PRICE AND USAGE ATTRIBUTION
For actual quantity qa, baseline quantity qb, actual unit price pa and baseline price pb:
D = qa·pa − qb·pb.
PriceEffect = qa·(pa − pb).
UsageEffect = pb·(qa − qb).
D = PriceEffect + UsageEffect.
This convention allocates the interaction term to price. Other conventions must be explicitly identified.
Use comparable units and quality grades. Separate scope and exchange-rate effects where appropriate; retain any unexplained residual.
7. FORECAST AND UNCERTAINTY
BAC = budget at completion; ETC = estimate to complete.
EAC = AC + ETC; VAC = BAC − EAC (negative = adverse).
Under an explicitly justified constant-CPI assumption, EAC = BAC/CPI for CPI > 0.
For random forecast cost X and fixed budget B: E[X − B] = E[X] − B.
Risk of overspend = P(X > B). Report assumptions and dependencies; do not interpret an expected value as a guaranteed outcome.
8. TEMPORAL AND BASELINE CONTROL
Select baseline revision b using approved effectivity, scope and reporting cut-off.
Record transaction date, accounting period, currency, conversion rate and price basis.
Compare nominal with nominal or real with real; retain conversion provenance.
Historical reports preserve the baseline revision originally used.
An approved rebaseline creates a new revision; it must not silently erase historical deviations.
9. RECURSIVE IMPACT PROPAGATION
Let G=(N,E) be a finite directed dependency graph of work packages, cost accounts and affected deliverables.
S0 = set of accounts with material deviations.
S(k+1) = S(k) ∪ {v : ∃u ∈ S(k), (u,v) ∈ E}.
The monotone reachability flow reaches a fixed point in at most |N| strict expansions.
Reachability indicates potential impact, not proven cost or causation.
Quantify incremental costs separately using unique transaction identifiers and validated allocation rules; never sum repeated visits in a cycle.
10. CORRECTIVE ACTION AND GOVERNANCE
Detect → Validate → Attribute → Assess → Propose → Authorise → Implement → Verify → Close.
A materiality threshold may combine absolute and relative limits.
Escalate if |D| > absoluteLimit OR |D_pct| > relativeLimit, where defined.
Missing or conflicting data trigger review regardless of threshold.
Corrective actions may revise procurement, resource allocation or forecasts; changes to approved scope or baseline require separate authorisation.
Closure requires documented evidence of review and disposition, not necessarily elimination of the deviation.
11. COHERENCE INVARIANTS
I1: Reference and observation share comparable scope, period and currency basis.
I2: Every variance has a declared method and sign convention.
I3: Source records and baseline revisions are traceable.
I4: Allocation weights for a fully allocated transaction sum to one.
I5: Attribution components plus residual equal the total deviation within rounding tolerance.
I6: Undefined ratios remain undefined; missing costs are not zero.
I7: Actual, committed and forecast costs are distinct; avoid double counting.
I8: Approval and correction histories are retained.
12. SEMANTIC ENTITY GRAPH
CostVariance — comparesAgainst → CostBaseline
CostVariance — derivedFrom → ActualCost
CostVariance — affects → WorkPackage
CostVariance — classifiedBy → VarianceMethod
CostVariance — supportedBy → EvidenceRecord
CostVariance — explainedBy → VarianceCause
CostVariance — triggers → CorrectiveAction
CorrectiveAction — mayRequire → ChangeRequest
ForecastCost — informs → EstimateAtCompletion
CostBreakdown — aggregates → CostAccount
Relations are proposed semantic predicates, not verified live schema identifiers.
13. AI SEARCH AND REASONING FLOW
Aliases: cost deviation, budget variance, cost overrun, underspend, earned value cost variance, price variance, usage variance.
Query → resolve entity → identify scope and reporting date → retrieve approved baseline and ledger evidence → normalise → calculate → attribute → validate → return result with provenance.
Example queries: Which work packages are over budget? What explains the material cost deviation? Which baseline revision was used? What is the forecast variance at completion?
Do not equate underspend with efficiency without progress evidence. Distinguish statistical variance from engineering cost variance. Return UNKNOWN for unavailable inputs and label estimates as forecasts.
Parent branch: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/engineering-cost-entities.html
Related ontology concepts: engineering cost, cost estimate, cost breakdown, cost baseline, material cost, labour cost, lifecycle cost.
14. WORKED ENGINEERING EXAMPLE
Illustrative values in GBP for a single reporting period:
PV = 10,000; EV = 8,000; AC = 9,000; BAC = 20,000.
Budget deviation = 9,000 − 10,000 = −1,000 (underspend against planned expenditure).
CV = 8,000 − 9,000 = −1,000 (adverse efficiency variance).
CPI = 8,000/9,000 = 0.8889; SV = −2,000; SPI = 0.8.
Reconciliation: −CV + SV = 1,000 − 2,000 = −1,000.
If independently estimated ETC = 13,000, EAC = 22,000 and VAC = −2,000.
Material example: qb=100 kg, pb=£20/kg, qa=110 kg, pa=£22/kg.
D = £2,420 − £2,000 = £420 adverse.
PriceEffect = 110×2 = £220; UsageEffect = 20×10 = £200.
Check: £220 + £200 = £420.
Reasoning outcome: investigate both unit price and usage, and verify progress before interpreting the apparent budget underspend. The material example is separate and must not be added to the work-package variance without confirming scope.
END OF FLOW ALGEBRA