fintech-algorithms
Using a coding agent? Give it the skill: npx skills add IslamBaraka90/Fintech-Algorithms-Library What it does →

Percentage Change, Percentage Points, and Basis Points

Install and import#

bash
npm install fintech-algorithms
ts
import { percentageChangePercentagePointsAndBasisPoints } from "fintech-algorithms/financial-mathematics-statistics-and-data-foundations/mathematical-language-and-quantitative-reasoning/percentage-change-percentage-points-and-basis-points";

Signature#

percentageChangePercentagePointsAndBasisPoints(input)

Worked example#

verified This is the worked example published in the article, replayed by the test suite on every run. The output cannot drift.

Input#

input
{
  "values": [1, 2, 3, 4, 5],
  "startingCash": 1000,
  "inflows": 250,
  "outflows": 120,
  "slope": 2,
  "intercept": 1,
  "part": 25,
  "whole": 200,
  "elapsed": 5,
  "old": 4.5,
  "new": 4.75,
  "base": 16,
  "exponent": 0.5,
  "a": 2
}

Showing 14 of 28 fields.

Call#

percentageChangePercentagePointsAndBasisPoints(input)

Returns#

object with 2 fields: percentageChange, percentagePoints

{
  "percentageChange": 5.555555555555555,
  "percentagePoints": 0.25
}

Diagrams#

Percentage Change, Percentage Points, and Basis Points — concept anatomy
Percentage Change, Percentage Points, and Basis Points — lesson map
Percentage Change, Percentage Points, and Basis Points — mistake contrast

Calculation flow#

Percentage Change, Percentage Points, and Basis Points — four-part map
flowchart LR
    A["Name the input"] --> B["Apply: relative change = (new - old) / old × 100; basis points = percentage-point change × 100"]
    B --> C["Check units and boundary"]
    C --> D["Explain the output"]

How it works#

This page states the contract — how to call it correctly. The article explains the concept: why it works, and where it breaks.

Read the article →

References#

  • Basis Point — U.S. Securities and Exchange Commission
  • NIST/SEMATECH e-Handbook of Statistical Methods — NIST/SEMATECH
  • Author-derived and synthetic boundary

The rest of the Mathematical Language and Quantitative Reasoning family#