# Calculation Methods Every calculation the Multicloud Placement Advisor uses to turn your answers into scores and findings: what each method is, its published source where it has one, and where it is used. The settings named here, such as tier bands, weights, synergies, Compounding Difficulty, Difficulty Influence, Priority Influence, the readiness and migration complexity bands and the firm-lead threshold, take their values from the configuration in use. An administrator sees and changes them on the **Configure Model** page; the gravity scale and the gravity tier bands are set in the model configuration file in your repository. The numbers in examples are for illustration only. --- ## How to read this document The calculation runs in stages: 1. **Answers → factor scores** — each answer moves one or more factors. 2. **Factor scores → driver scores** — factors combine into five driver scores, lowered by requirement difficulty. 3. **Driver scores → overall readiness** — the drivers combine into one 0–100 readiness score. 4. **Answers → provider gravity** — answers that name providers tie the workload to them. 5. **How firm is the lead?** — how much the provider with the most gravity depends on the exact scores and on single answers. 6. **Gravity spread and migration complexity.** The analysis proposes the AI values (stage 1 sizes, requirement scores and gravity scores) and shows them in Review & Adjust. Stages 2 to 6 run when you click **Accept and Continue**, using the values you accepted. That calculation makes no AI calls. ### Words used here - **Factor** — one of eight workload characteristics, such as Portability. - **Driver** — one of five things you prioritise: Performance, Cost, Resilience, Compliance & Regulatory, Vendor Lock-in Avoidance. - **Requirement** — a technical challenge found in your answers, with a difficulty. - **Tier** — Small, Medium or Large. Each tier covers a **band** of numbers on a scale from 1 up to at most 10; the bands are set on Configure Model. - **Validated answer** — an answer that passed the AI check during the assessment, which gave it a tier. --- ## 1. Answers → factor scores ### Direction and size of each contribution Each question lists the factors it affects and, for **Yes** and for **No**, whether that answer **increases**, **decreases** or leaves the factor unchanged (**neutral**). This direction is fixed in the configuration. The size of each contribution comes from one of these, in order: | Source | When | Size | |---|---|---| | Your change in Review & Adjust | You changed the value | Your value, from 0 up to the top of the factor's Large band | | Tier maximum | A **No** whose direction is *increase* | The top of the factor's Large band | | Rank-Order Centroid (ROC) | A **Yes** that was not validated, or has no detail | The factor's ROC value (below) | | AI factor tiering | A validated **Yes** with detail | The AI's value (below) | The contribution is the size with the sign of the direction (+ for increase, − for decrease). A neutral answer adds nothing. If a contribution has no size, the analysis fails rather than guess one. A **No** can only be *increase* or *neutral*: a No set to *decrease* would have no size source, so the configuration refuses it. **A factor's score is the sum of its contributions.** It has no upper or lower limit. ### Severity tiers and bands Three ordered tiers, Small, Medium and Large, each covering a band of a scale from 1 up to at most 10 (the top of the Large band). Each factor has its own bands, set on the **Configure Model** page. A tier's **midpoint** is (min + max) ÷ 2; for bands of 1–3, 4–6 and 7–10 that is 2, 5 and 8.5. Each requirement has its own bands too, and its Large band can top out below 10. Provider gravity has one set of bands for every question. ### AI factor tiering **What it is.** For each validated **Yes** with detail, and each factor it can move, the AI decides whether the answer is **linked** to the factor and, if it is, returns a tier and a value. The value is kept inside the tier's band, and inside the part of the band its placement names (see [In-band placement](#in-band-placement)). An answer that is not linked adds nothing. How the AI decides, and the checks on its output, are in [Sizing Factors](../explanation/ai/sizing-factors.md). **Where it is used.** The analysis, for every validated Yes. You can change each value in Review & Adjust. ### Rank-Order Centroid (ROC) **What it is.** A way to turn a ranking into weights. For three ranks the weights are: | Rank | Weight | |---|---| | 1st | (1 + ½ + ⅓) ÷ 3 = 0.611 | | 2nd | (½ + ⅓) ÷ 3 = 0.278 | | 3rd | ⅓ ÷ 3 = 0.111 | **Published source.** Barron, F. H. & Barrett, B. E. (1996). "Decision quality using ranked attribute weights". *Management Science*, 42(11), 1515–1523. **How the tool uses it.** It gives a value to an answer that was not validated, without reading the answer: 1. Count the written entries for each tier: for a factor, the examples of each tier in the factor's knowledge file, shipped and organisational; for gravity and requirements, the constraints of each tier in the question's knowledge file, external and organisational. 2. Rank the tiers by count, most first. A tie goes to the stronger tier. 3. Value = 0.611 × midpoint of the 1st tier + 0.278 × midpoint of the 2nd + 0.111 × midpoint of the 3rd. 4. Round half to even (see [Rounding](#rounding)), and keep the result within the scale. For example, a factor whose knowledge file has 6 Large, 5 Medium and 5 Small examples, with tier midpoints of 8.5, 5 and 2, ranks Large first, then Medium (a tie goes to the stronger tier), then Small: ``` 0.611 × 8.5 + 0.278 × 5 + 0.111 × 2 = 6.80 → 7 ``` The midpoints come from the factor's tier bands, set on the **Configure Model** page. For an answer that was not validated, **How is this calculated?** in Review & Adjust shows this working with the counts and bands in use. For gravity and requirement links, the question's ROC is placed on the gravity bands or on that requirement's bands, and its tier is the band it falls in. Every unvalidated answer to the same question gets the same ROC value. **Where it is used.** Unvalidated **Yes** answers for factors, provider gravity and requirements. Review & Adjust marks these values ⚠ for you to accept or change. ### In-band placement When the AI gives a value, it first says whether the case is **low**, **middle** or **high** in its tier: - **High** means the facts meet every part of the tier's description. - **Low** means they meet only the threshold. - **Middle** is anything in between. The value is then kept in that part of the band. The band is split into overlapping thirds: for Large (7–10), low is 7–8, middle 8–9 and high 9–10. For Medium (4–6), they are 4, 5 and 6. A band less than three values wide, such as 1–1 or 4–5, has no thirds: low is its bottom value, high its top value, and middle either. The tier row's **Stronger within this tier** and **Weaker within this tier** columns then move the placement one step up or down when your answer states such a condition. They never change the tier. This applies to AI factor values, requirement scores and provider gravity scores. --- ## 2. Factor scores → driver scores ### Factor adjustment Each driver gives each factor a **weight** from −1 to +1. The driver's **factor adjustment** is: ``` factor adjustment = Σ (factor score × weight) + synergy bonus ``` A contribution **helps** a driver when factor score × weight is positive and **hurts** it when negative. ### Synergy bonuses A synergy adds a bonus to a driver when two factor scores are both above set thresholds: Each rule names two factors, a threshold for each, a bonus and the drivers it applies to. The rules are on the **Configure Model** page under **Synergies**. Bonuses that apply to the same driver add up. ### Linear value function (factor adjustment → base score 0–100) **What it is.** A mapping of the factor adjustment onto 0 to 100 made of two straight lines that meet at 50: one from the lower range up to an adjustment of 0, and one from 0 up to the upper range. Each has its own slope. ``` adjustment ≥ 0: base score = 50 + adjustment ÷ upper range × 50 adjustment < 0: base score = 50 + adjustment ÷ |lower range| × 50 ``` The result is kept between 0 and 100. A range smaller than 1 is treated as 1. The **upper range** and **lower range** are the highest and lowest adjustments the driver can reach. They are worked out from the configuration, each time the calculation runs: 1. For each factor, the questions that move it give its highest and lowest possible score. Each non-neutral answer can add or subtract up to the factor's tier maximum. 2. Multiply by the driver's weight. 3. Add the synergy bonuses that can apply to the driver to the upper range. For example, a driver whose factors can reach 48 and 25 after weighting, with 25 of synergy bonuses, has an upper range of 98. An adjustment of +19 gives a base score of 50 + 19 ÷ 98 × 50 = 59.7. Each driver's **Base Score** card on the Results page shows the working for your configuration. **Published source.** The additive value function of multi-attribute utility theory: Keeney, R. L. & Raiffa, H. (1976). *Decisions with Multiple Objectives: Preferences and Value Tradeoffs*. Wiley. **Where it is used.** Every driver score. The Results page shows the working under each driver's **Base Score** card. ### Requirement difficulty (highest linked score) A requirement's difficulty is the **highest** score among the questions linked to it, and its tier is that question's tier. A requirement with no linked score above 0 does not apply and has difficulty 0. ### Driver difficulty (compounding) When several requirements affect one driver, their difficulties combine with diminishing returns: ``` driver difficulty = d1 + k × d2 + k² × d3 + … (d1 ≥ d2 ≥ d3 …) ``` **k** is the Compounding Difficulty setting. The result is rounded to a whole number and can be higher than 10. For example, with k = 0.5, requirement difficulties of 8, 6 and 5 give 8 + 3 + 1.25 = 12.25 → 12. A driver with no applicable requirement has difficulty 0. ### Difficulty penalty **What it is.** A hyperbolic reduction of the base score: ``` driver score = base score × 1 ÷ (1 + driver difficulty ÷ divisor) ``` The divisor is the Difficulty Influence setting. A difficulty of 0 leaves the score unchanged, and the score never falls below 0. For example, with a divisor of 15, a base score of 60 with a difficulty of 12 gives 60 × 1 ÷ (1 + 12 ÷ 15) = 33.3. **Where it is used.** Every driver score, after the base score. --- ## 3. Driver scores → overall readiness ### Priority-weighted mean **What it is.** The overall readiness score is the weighted mean of the five driver scores: ``` weight = (priority ÷ priority max) ^ exponent overall score = Σ (driver score × weight) ÷ Σ weight ``` Priorities run over the drivers' `priorityRange` in `data/drivers.json` (1 to 5 as shipped); the priority max is its top. The exponent is the Priority Influence setting. An exponent of 1 makes each weight proportional to the priority. **Published source.** Additive multi-attribute aggregation: Keeney & Raiffa (1976), as above. ### Readiness bands The overall score is rounded to one decimal place, and then given the highest band whose starting score it reaches, from **Critical** up to **Excellent**. The bands are on the **Configure Model** page under **Workload Readiness Bands**, and the ⓘ on the score shows them. The band uses the rounded score, the number you see. So with a band starting at 60, 59.96 shows as 60.0 and is in that band. ### Where readiness points are lost **What it is.** Readiness is a weighted mean, so the points it falls short of 100 can be split exactly between the drivers: ``` weight share = driver's weight ÷ Σ weight points lost = weight share × (100 − driver score) from factors = weight share × (100 − base score) from requirement difficulty = weight share × (base score − driver score) ``` The points lost add up to 100 − readiness, and each driver's loss is the sum of its two parts. **Published source.** The additive multi-attribute model: Keeney & Raiffa (1976), as above. **Where it is used.** **Readiness considerations**, under the Multicloud Readiness tile of the Findings Summary. --- ## 4. Answers → provider gravity ### Gravity: weighted additive value **What it is.** Each **Yes** answer that names a provider creates a **link** to it, with a score from 1 up to the top of the gravity Large band. For every driver the question affects, the link adds: ``` points = score × (driver priority ÷ total of all priorities) × gravity scale ``` The priority weights add up to 1. The gravity scale is set in the model configuration and multiplies every link equally. A provider's gravity is the sum of its points, with no upper limit. The link score comes from one of these, in order: 1. your score in Review & Adjust (0 removes the link); 2. the AI's score, inside the band of the tier the answer was validated at; 3. for an unvalidated answer, the question's ROC value. On the concentration question ("Are there concentration-based drivers to place this workload away from a provider?"), the score you give the provider you name goes to every other target provider instead. **Published source.** The weighted additive model of multi-attribute value measurement (SMART): Edwards, W. (1977). "How to use multiattribute utility measurement for social decisionmaking". *IEEE Transactions on Systems, Man, and Cybernetics*, 7(5), 326–340. **Where it is used.** Provider gravity totals, the Findings Summary and leaving cost. See [Gravity](../explanation/gravity.md). ### Ranking Providers are ranked by their gravity totals, highest first. Equal totals are ordered alphabetically and reported as tied. ### Gravity strength (min-max normalisation) **What it is.** For display, each provider's total is rescaled to 0–100: its total ÷ the most any provider could reach from your answered questions (every link at score 10) × 100. Ranking and the Findings Summary use the totals, not this score. **Where it is used.** The strength score on each provider card on the Results page. --- ## 5. How firm is the lead? ### Highest gravity provider The provider with the highest gravity total has the most gravity. When two or more providers share the highest total exactly, they are tied and none of them is shown ahead. When no provider has gravity, there is none. ### Rank acceptability (SMAA) **What it is.** A test of how much the lead depends on where in its tier each AI score falls: 1. Every AI gravity score is treated as uncertain within the band of the tier it was validated at, for example 7 to 10 for Large. A score you set in Review & Adjust and an ROC score stay fixed. 2. Each uncertain score is drawn at random, evenly across its band, 5,000 times, with a seed taken from the workload's name so the same workload always gives the same result. 3. In every draw each provider's gravity total is recalculated with the same weights, and the draw counts for the provider with the most gravity. Providers equal on top share the draw equally; a draw in which no provider has gravity counts for none. 4. Each provider's rank acceptability is: ``` rank acceptability = draws in which the provider has the most gravity ÷ 5,000 ``` The gravity scale multiplies every link equally, so the result does not depend on it. **Published source.** Lahdelma, R. & Salminen, P. (2001). "SMAA-2: Stochastic Multicriteria Acceptability Analysis for Group Decision Making". *Operations Research*, 49(3), 444–454. [Learn more](https://en.wikipedia.org/wiki/Stochastic_multicriteria_acceptability_analysis). **Where it is used.** The **Gravity Lead** tile and **How solid is the lead?**. ### Firm-lead threshold The lead is **firm** when the leading provider's rank acceptability is at or above the firm-lead threshold, set on the **Configure Model** page. Below it, the lead is not firm and the provider with the next-highest gravity total is named as close behind. There is no firm lead on a tie. ### Deciding answers: one-at-a-time sensitivity analysis **What it is.** Each answer that created gravity is removed in turn, with all its links, and every provider's total is recalculated: ``` provider total without an answer = provider total − that answer's gravity points ``` An answer is **deciding** when, without it, a different provider has the most gravity, providers tie, or no provider has gravity. **Published source.** One-at-a-time (OAT) sensitivity analysis. [Learn more](https://en.wikipedia.org/wiki/Sensitivity_analysis#One-at-a-time_(OAT)). **Where it is used.** **How solid is the lead?**, step 4. ### Tie readings When two or more providers are tied, the draws give one of four readings: ``` equal share = 1 ÷ number of tied providers sampling margin = 2 × √(equal share × (1 − equal share) ÷ 5,000) room to rise = Σ over the provider's uncertain scores of (tier band's midpoint − score) × gravity per score point ``` | Reading | When | |---|---| | Move together | Every tied provider has exactly the same rank acceptability | | Lean | The tied provider with the highest rank acceptability is more than the sampling margin above the equal share **and** has strictly the most room to rise | | Within the margin | The highest rank acceptability is no more than the sampling margin above the equal share | | No cause | The highest rank acceptability is more than the sampling margin above the equal share, but that provider does not have strictly the most room to rise | The sampling margin is two standard errors of an equal share: ±1.4% for two tied providers. A lean is not a lead: the providers stay tied on gravity. --- ## 6. Gravity spread and migration complexity ### Gravity spread: percentage share **What it is.** Each provider's share of all the gravity, against an equal share: ``` share = provider's gravity total ÷ Σ all providers' gravity totals × 100 equal share = 100 ÷ number of target providers difference = share − equal share ``` When no provider has gravity, every share is 0. [Learn more](https://en.wikipedia.org/wiki/Percentage). **Where it is used.** **How is gravity spread?**, under the Highest Gravity Provider tile. ### Migration complexity: weighted additive with min-max normalisation **What it is.** A 0–100 score for how hard leaving the current provider is: ``` leaving cost = current provider's gravity from the leaving-cost questions ÷ the most those questions could give (each at score 10) × 100, capped at 100 complexity = (100 − readiness) × readiness weight + leaving cost × gravity weight ``` Readiness is kept between 0 and 100. The two weights add up to 1. The result is Low up to the low limit, Medium above it up to the medium limit, and High above that. The weights and limits are the **Migration Complexity** and **Migration Complexity Bands** settings on the **Configure Model** page. Which questions count towards the leaving cost is set in the question configuration in your repository; **How are leaving costs calculated?** lists them. It is worked out only when there is a current provider. **Where it is used.** The **Migration Complexity** tile of the Findings Summary. **How is migration complexity calculated?** and **How are leaving costs calculated?** show the working. --- ## Rounding **Round half to even** (banker's rounding) rounds a value exactly halfway between two whole numbers to the even one: 2.5 → 2, 4.5 → 4, 5.5 → 6. It is the default rounding mode of the IEEE 754 floating-point standard (IEEE Std 754-2008, roundTiesToEven), and the way Python rounds numbers. It is used for: - ROC values; - driver difficulty; - the tier maximum credit; - the one-decimal readiness score. --- ## Keeping values in range Values are kept within set limits at these points: - AI and ROC values stay within their tier's band and the scale; - your Review & Adjust values stay within 0 and the top of their Large band; - base and driver scores stay within 0 to 100; - readiness stays within 0 to 100 for migration complexity. Factor scores and gravity totals are sums and have no limit. --- ## Summary | Stage | Method | Source | Used for | |---|---|---|---| | 1 | Severity tiers and bands | Configuration | Every AI and ROC value | | 1 | AI factor tiering with in-band placement | — | Validated Yes answers | | 1 | Tier maximum | Configuration | A No that increases a factor | | 1 | Rank-Order Centroid | Barron & Barrett (1996) | Unvalidated Yes answers (factors, gravity, requirements) | | 2 | Weighted factor adjustment and synergies | Configuration | Each driver | | 2 | Linear value function | Keeney & Raiffa (1976) | Base score | | 2 | Highest linked score; compounding with k | — | Requirement and driver difficulty | | 2 | Hyperbolic difficulty penalty | — | Driver score | | 3 | Priority-weighted mean | Keeney & Raiffa (1976) | Overall readiness | | 3 | Readiness bands | Configuration | Readiness label | | 3 | Points lost by driver | Keeney & Raiffa (1976) | Readiness considerations | | 4 | Weighted additive gravity | Edwards (1977) | Provider gravity | | 4 | Min-max normalisation | — | Gravity strength score, leaving cost | | 5 | Rank acceptability (SMAA) | Lahdelma & Salminen (2001) | Gravity Lead, tie readings | | 5 | Firm-lead threshold | Configuration | Whether the lead is firm | | 5 | One-at-a-time sensitivity analysis | — | Deciding answers | | 6 | Percentage share | — | Gravity spread | | 6 | Weighted additive complexity | — | Migration complexity | | — | Round half to even | IEEE 754 | ROC, difficulty, tier maximum, readiness | --- ## Related documentation - [Sizing Factors](../explanation/ai/sizing-factors.md), [Finding Requirements](../explanation/ai/finding-requirements.md) and [Scoring Gravity](../explanation/ai/scoring-gravity.md) — how the AI tasks behind these values work - [Gravity](../explanation/gravity.md) — gravity in full, with a worked example - [Findings Summary](../explanation/findings-summary.md) — the Findings Summary tiles, with worked examples - [Finding Requirements](../explanation/ai/finding-requirements.md) — how requirement scores are found - [Configuring the Scoring Model](../guides/model-configuration.md) — the settings these calculations use - [Multicloud Readiness](../explanation/readiness.md) — how the factor links, directions and driver weights are used