<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Decomposition on Max Halford</title><link>https://maxhalford.github.io/tags/decomposition/</link><description>Recent content in Decomposition on Max Halford</description><generator>Hugo</generator><language>en-US</language><managingEditor>maxhalford25@gmail.com (Max Halford)</managingEditor><webMaster>maxhalford25@gmail.com (Max Halford)</webMaster><lastBuildDate>Tue, 08 Sep 2026 21:15:26 +0200</lastBuildDate><atom:link href="https://maxhalford.github.io/tags/decomposition/index.xml" rel="self" type="application/rss+xml"/><item><title>The total derivative of a metric tree</title><link>https://maxhalford.github.io/blog/metric-tree-total-derivative/</link><pubDate>Tue, 06 May 2025 00:00:00 +0000</pubDate><author>maxhalford25@gmail.com (Max Halford)</author><guid>https://maxhalford.github.io/blog/metric-tree-total-derivative/</guid><description>&lt;p&gt;&lt;em&gt;A metric tree is a visual way to organize a complex metric. Count gives a good introduction &lt;a href="https://count.co/blog/intro-to-metric-trees"&gt;here&lt;/a&gt;. &lt;a href="https://www.linkedin.com/in/abhi-sivasailam/"&gt;Abhi Sivasailam&lt;/a&gt; gave a popular &lt;a href="https://www.youtube.com/watch?v=Dbr8jmtfZ7Q&amp;amp;ab_channel=DataCouncil"&gt;talk&lt;/a&gt; at Data Council 2023 if watching videos is your thing. &lt;a href="https://www.linkedin.com/in/ergestx/"&gt;Ergest Xheblati&lt;/a&gt; is someone to follow if you want to go deeper. There&amp;rsquo;s also a &lt;a href="https://www.lightdash.com/blogpost/metric-trees-how-top-data-teams-impact-growth"&gt;recent article&lt;/a&gt; from Lightdash. Finally, there&amp;rsquo;s &lt;a href="https://timodechau.com/metric-trees-for-digital-analysts/"&gt;this article&lt;/a&gt; by Timo Dechau, but it&amp;rsquo;s behind a paywall. The concept has a &lt;a href="https://en.wikipedia.org/wiki/Metric_tree"&gt;homonym&lt;/a&gt;, so beware when you browse for it.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Decomposing funnel metrics</title><link>https://maxhalford.github.io/blog/funnel-decomposition/</link><pubDate>Thu, 14 Dec 2023 00:00:00 +0000</pubDate><author>maxhalford25@gmail.com (Max Halford)</author><guid>https://maxhalford.github.io/blog/funnel-decomposition/</guid><description>&lt;h2 id="funnel-metrics-as-products"&gt;Funnel metrics as products&lt;/h2&gt;&#10;&lt;p&gt;I talked about metric decomposition in a &lt;a href="https://maxhalford.github.io/blog/kpi-evolution-decomposition"&gt;previous article&lt;/a&gt;, and how it can be used to explain why metrics change values over time. That article explained how to decompose a sum, as well as a ratio. In this article, I&amp;rsquo;ll explain how to decompose a product.&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;revenue = impressions * click_rate * conversion_rate * spend&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The decomposition in this article isn&amp;rsquo;t limited to funnels. It can be applied to any metric that is expressed as a product of factors. For instance, at Carbonfact, we decompose the carbon footprint of a clothing line as so:&lt;/p&gt;</description></item><item><title>Answering "Why did the KPI change?" using decomposition</title><link>https://maxhalford.github.io/blog/kpi-evolution-decomposition/</link><pubDate>Wed, 09 Aug 2023 00:00:00 +0000</pubDate><author>maxhalford25@gmail.com (Max Halford)</author><guid>https://maxhalford.github.io/blog/kpi-evolution-decomposition/</guid><description>&lt;p&gt;&lt;strong&gt;Edit&lt;/strong&gt; &amp;ndash; &lt;em&gt;I published a notebook &lt;a href="https://gist.github.com/MaxHalford/9fba0c2d6800d0f0643902bf57b99780"&gt;here&lt;/a&gt; that deals with the case where dimension values may (dis)appear from one period of time to the next. The notebook decomposes a ratio, but the logic is also valid for decomposing a sum.&lt;/em&gt;&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Edit 2&lt;/strong&gt; &amp;ndash; &lt;em&gt;I&amp;rsquo;ve stumbled on &lt;a href="https://medium.com/@shaozhifei/metric-decomposition-formula-to-understand-metric-trend-e693b7a4c8cf"&gt;this article&lt;/a&gt; by Shao Zhifei which provides a good derivation of the ratio decomposition formula. I contacted Shao Zhifei on LinkedIn, and he told me they heavily use these formulas at &lt;a href="https://www.grab.com/"&gt;Grab&lt;/a&gt;. He also pointed out a typo in the ratio decomposition formula which I have now fixed.&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>