Basic Prerequisites: 01 · From Zero and Itô Integral & Itô’s Lemma. The tensor-algebra background is Linear Algebra · 02 Vectors, Spaces & Matrices.
1. Intuition & Practical Objective
The signature is an infinite family of numbers, and an infinite family of numbers is only useful if it has structure - laws that let you manipulate it without computing every entry. The signature has exactly two structural laws, and they are the entire subject of this page:
- Chen’s identity - the signature factorises when you concatenate paths. If is followed by , then the signature of the whole is the tensor product of the signatures of the parts. This is what makes the signature recursive and fast: any iterated integral over a long path is a finite combination of integrals over its pieces.
- The shuffle product identity - the product of two signature terms is the signature of the shuffle of their words. This is what makes the signature algebraically closed: products of iterated integrals are again (linear combinations of) iterated integrals. It is the reason the signature can be a coordinate system for continuous path-functionals: the pointwise product of two functionals is represented by the shuffle product of their signature expansions.
Two consequences previewed here, developed later:
- The log-signature. Chen’s identity makes the signature a group-like element, so its logarithm exists and lands in the free Lie algebra - the compressed “only the independent shape information” version (§03).
- Universality. Because products of signature terms close under the shuffle product, the linear span of signature functionals is closed under pointwise multiplication - the seed of the universality theorem that makes signatures the right feature space for signature-based machine learning (§06).
The practical objective: be able to (a) state Chen’s identity and the shuffle identity precisely, (b) verify both numerically by direct computation, and (c) use them to compute signatures of long paths from pieces, and to recognise that products of features stay inside the feature space.
2. Mathematical Ground Truth & Derivations
2.1 Chen’s identity
Let and be two paths, and their concatenation (run , then shifted to start where ended). Then, in the tensor algebra ,
i.e. for every word ,
where the sum runs over all splits of into a prefix and a suffix (both possibly empty). The proof is a one-liner: the region splits, relative to the join point, into a “front part” where some ‘s lie in ‘s time and the rest in ‘s time; the letters in the front part form the prefix and those in the back part the suffix , and the double region integral separates. Chen’s identity is why “compute the signature of a whole path” is never done brute-force: it is assembled from the signatures of its segments (the S_word method in §3 is exactly this).
2.2 The shuffle product identity
The shuffle of two words and , written , is the multiset of all length- words that interleave and while preserving the internal order of each - so it has terms. The second structural law is that ordinary products of signature coefficients are signature coefficients over shuffles:
It follows from Fubini: for geometric (Stratonovich / rough-path) integrals the product of two iterated integrals equals the integral over the product of the ordered simplexes, which decomposes into the disjoint ordered regions indexed by the shuffles. Its practical content: the algebra of signature features under pointwise multiplication is closed - a fact with a name, universality (the linear span is a dense algebra of continuous functionals, §06).
2.3 The two laws together: group-like structure
Chen’s identity says is a group homomorphism from path-concatenation to the group of group-like elements of the tensor algebra. The shuffle identity says the image is also closed under the shuffle (pointwise) product. The intersection of these two structures is what makes the log-signature a Lie element (primitive: ) - the subject of 03 · Log-Signature & Uniqueness. Both laws are identities that can be checked numerically, and §3 checks them to machine precision.
2.4 A caution: which integral convention?
Both laws hold exactly for the geometric (Stratonovich / rough-path) iterated integrals - i.e. those defined by the explicit Riemann–Stieltjes sums along a piecewise-linear path, which is what our code computes. For Itô integrals the shuffle identity fails (an Itô-correction term appears at the diagonal). This is the mathematical reason raw (non-augmented) financial data must be geometricised by time augmentation or the lead-lag transform before signatures are meaningful (§05). The code below uses the geometric convention throughout, so both identities hold to machine precision.
3. Computational Implementation - Chen’s identity and the shuffle product, verified exactly
We compute iterated integrals of a piecewise-linear path by explicit sums, then verify: (a) Chen’s identity by splitting a path into two halves and comparing the direct signature with the tensor product of the halves, at levels 2 and 3; (b) the shuffle identity for representative word pairs; (c) the consistency of a second, independent engine (S_word, which evaluates any word’s integral via Chen’s identity across the segments) with the direct sums. Stdlib only, deterministic.
What the output establishes.
- Two independent engines agree. The direct explicit sums and the Chen-composition method
S_worddiffer by at level 2 and at level 3. That agreement is itself the first numerical proof that the explicit sums and Chen’s identity describe the same object - the sum-by-segments method is Chen’s identity, and it reproduces the brute-force integrals. - Chen’s identity holds to machine precision. Splitting the demo path after the second segment and forming the tensor product of the halves reproduces the direct level-2 signature exactly ( residual) and the level-3 signature to . The factorisation is not an approximation - it is the law the signature obeys.
- The shuffle identity holds to the same order. At level 2 () the residual is exactly ; at level 3 and for shuffles it is . The number of shuffle terms matches the binomial count ( for , for , for ). Products of features really do stay inside the feature space.
- The geometric convention is what makes it work. Because every integral here is a Riemann–Stieltjes integral along a piecewise-linear path (Stratonovich-type), both laws hold exactly. Had we fed raw Itô increments, the shuffle residuals would not vanish - the diagonal correction the shuffle hides is the Itô term (§2.4, §05).
4. Failure Modes & First-Principles Breakdowns
- Using Itô iterated integrals and expecting the shuffle to hold. Raw increments give the non-geometric (Itô) signature: the shuffle identity picks up an Itô correction at the diagonal and fails. Signatures on raw financial data must be built on the geometric (Stratonovich / rough-path) convention - that is exactly what augmentation and lead-lag restore (§05).
- Forgetting that Chen’s identity needs the pieces to share a boundary. Concatenation means ends where begins; if you compute the pieces independently with different offsets, the tensor product is wrong. Reparametrisation of the whole path is harmless (§03); changing the join is not.
- Treating the shuffle count as “a lot of terms” and truncating the word set ad hoc. The shuffle of two length-3 words has terms; feature spaces explode. Universality says you can express everything, not that you should - truncation is a modelling choice with a price (§03, §06).
- Believing products of signatures are “new information.” They are not: the shuffle identity means any product is a linear combination of already-existing signature terms. If a model’s feature set includes both a product and its shuffle components, it is linearly redundant - a silent collinearity that inflates apparent fit.
5. References
- Lyons (1998), Differential equations driven by rough signals, Rev. Mat. Iberoamericana 14(2)
- Chevyrev & Kormilitzin (2016), A Primer on the Signature Method in Machine Learning, arXiv:1603.03788
- Reutenauer, C. (1993), Free Lie Algebras (Oxford)
- Friz & Victoir (2010), Multidimensional Stochastic Processes as Rough Paths
- Lyons, Caruana & Lévy (2007), Differential Equations Driven by Rough Paths
6. Connected Graph Bridges
- Back: 01 · From Zero
- Forward: 03 · Log-Signature & Uniqueness · Index Hub
- Theory: Itô Integral & Itô’s Lemma · Linear Algebra · 02 Vectors & Matrices (tensor products) · Linear Algebra & Matrices