# Overall Explainable Stock Score

`D18-F09-A11` · Fundamental Analysis and Valuation → Integrated Equity Scoring · archetype `record-transform` · difficulty 4/5 · verification **verified**

Full page: https://docs.thefintechbuilder.com/fundamental-analysis-and-valuation/integrated-equity-scoring/overall-explainable-stock-score/
Agent skill: `npx skills add IslamBaraka90/Fintech-Algorithms-Library` — https://docs.thefintechbuilder.com/guides/agent-skill/

## Install and import

```bash
npm install fintech-algorithms
```

```ts
import { overallExplainableStockScore } from "fintech-algorithms/fundamental-analysis-and-valuation/integrated-equity-scoring/overall-explainable-stock-score";
```

## Signature

```ts
overallExplainableStockScore(data)
```

Blends the six pillar scores into a single overall stock score with fixed weights and keeps every pillar's contribution visible.

## Parameters

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `data` | `{ financial_health_score: number; earnings_quality_score: number; dividend_safety_score: number; balance_sheet_resilience_score: number; distress_safety_score: number; valuation_score: number }` | yes | The six pillar scores, each a finite number between 0 and 100. `financial_health_score`, `earnings_quality_score`, `dividend_safety_score` and `balance_sheet_resilience_score` are the like-named keys emitted by the composites earlier in this family; `distress_safety_score` and `valuation_score` are supplied by the caller. |

## Returns

`{ state: string; method: string; components: Record<string, number>; weights: Record<string, number>; contributions: Record<string, number>; overall_stock_score: number; band: string; coverage: number }`

`components` echoes the six inputs and `weights` gives 0.24 to `financial_health_score`, 0.18 each to `earnings_quality_score` and `balance_sheet_resilience_score`, 0.16 to `distress_safety_score`, 0.14 to `dividend_safety_score` and 0.10 to `valuation_score`. `contributions` is each score times its weight and `overall_stock_score` their sum. `band` is `strong` at 75 or above, `watch` at 50 or above, otherwise `weak`; `coverage` is always 1.

## Errors

- When any pillar score is not a finite number — throws TypeError
- When any pillar score is below 0 or above 100 — throws RangeError

## Complexity

Time `O(1)`, space `O(1)`.

## Worked example

Captured by running this function on the input its own test provides. Real output of real code — but not asserted against a published figure.

### Input

`data`:

```json
{
  "financial_health_score": 78,
  "earnings_quality_score": 73,
  "dividend_safety_score": 87,
  "balance_sheet_resilience_score": 75,
  "distress_safety_score": 77,
  "valuation_score": 64
}
```

### Call

```ts
overallExplainableStockScore(data)
```

### Returns

object with 8 fields: state, method, components, weights, contributions, overall_stock_score, band, coverage

```json
{
  "state": "calculated",
  "method": "explainable-six-pillar-stock-score",
  "components": {
    "financial_health_score": 78,
    "earnings_quality_score": 73,
    "dividend_safety_score": 87,
    "balance_sheet_resilience_score": 75,
    "distress_safety_score": 77,
    "valuation_score": 64
  },
  "weights": {
    "financial_health_score": 0.24,
    "earnings_quality_score": 0.18,
    "dividend_safety_score": 0.14,
    "balance_sheet_resilience_score": 0.18,
    "distress_safety_score": 0.16,
    "valuation_score": 0.1
  },
  "contributions": {
    "financial_health_score": 18.72,
    "earnings_quality_score": 13.139999999999999,
    "dividend_safety_score": 12.180000000000001,
    "balance_sheet_resilience_score": 13.5,
    "distress_safety_score": 12.32,
    "valuation_score": 6.4
  },
  "overall_stock_score": 76.26,
  "band": "strong",
  "coverage": 1
}
```

## Other exports

`calculate`, `pointInTimeStockScoringInputAssembly`, `stockScoringPeerCohortResolver`, `fundamentalMetricDirectionAndPeerNormalization`, `modelApplicabilityAndVariantRouter`, `accountingFinancialHealthComposite`, `earningsQualityComposite`, `dividendSafetyScore`, `balanceSheetResilienceScore`, `distressModelEnsemble`, `crossModelConflictAndDoubleCountingResolver`, `scoreConfidenceMissingDataPenaltyAndAbstention`, `marketWideStockScreeningAndRanking`, `stockScoreHistoryMigrationAndChangeAttribution`. Every module additionally exports `run` as an alias of its primary
function, and a `meta` object carrying its catalog id, domain, family, shape and article URL.

## Verification and provenance

Tier: **verified** (via D).

The worked example below is the figure published in this algorithm's article, replayed and asserted by the test suite on every build. The arithmetic cannot drift without the build failing.

Both tiers guarantee the signature. Full explanation: https://docs.thefintechbuilder.com/guides/verification/

Generated from the docs.json payload shipped inside fintech-algorithms@0.13.0.
The signature and parameter list are checked against the compiled implementation at build time,
so a description that contradicts the code fails the build rather than reaching this file.

## Links

- Article (how it works, step by step): https://thefintechbuilder.com/fundamental-analysis-and-valuation/integrated-equity-scoring/overall-explainable-stock-score/
- Implementation source: https://github.com/IslamBaraka90/Fintech-Algorithms-Library/blob/main/src/fundamental-analysis-and-valuation/integrated-equity-scoring/overall-explainable-stock-score/impl.ts
- Package on npm: https://www.npmjs.com/package/fintech-algorithms
- Domain index for agents: https://docs.thefintechbuilder.com/fundamental-analysis-and-valuation/llms.txt
