<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Data Analysis - Category - MartinLwx&#39;s Blog</title>
        <link>https://martinlwx.github.io/en/categories/data-analysis/</link>
        <description>Data Analysis - Category - MartinLwx&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>martinlwx@163.com (MartinLwx)</managingEditor>
            <webMaster>martinlwx@163.com (MartinLwx)</webMaster><copyright>&lt;a rel=&#34;license noopener&#34; href=&#34;https://creativecommons.org/licenses/by-nc-nd/4.0/&#34; target=&#34;_blank&#34;&gt;CC BY-NC-ND 4.0&lt;/a&gt;</copyright><lastBuildDate>Thu, 03 Sep 2026 00:13:29 &#43;0800</lastBuildDate><atom:link href="https://martinlwx.github.io/en/categories/data-analysis/" rel="self" type="application/rss+xml" /><item>
    <title>Time-series data downsampling: LTTB &amp; MinMaxLTTB</title>
    <link>https://martinlwx.github.io/en/time-series-data-downsampling-lttb-and-minmaxlttb/</link>
    <pubDate>Thu, 03 Sep 2026 00:13:29 &#43;0800</pubDate><author>
        <name>MartinLwx</name>
    </author><guid>https://martinlwx.github.io/en/time-series-data-downsampling-lttb-and-minmaxlttb/</guid>
    <description><![CDATA[<h2 id="background" class="headerLink">
    <a href="#background" class="header-mark"></a>Background</h2><p>Recently, I needed to process some time-series data at work and perform downsampling. To do this, I dug into the LTTB (Largest-Triangle-Three-Buckets) and MinMaxLTTB algorithms.</p>
<p>Technically speaking, time-series downsampling generally falls into two categories<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>:</p>
<ul>
<li><em>Characteristic Preserving</em>: The goal is to keep <em>statistical properties</em> (like mean, variance, etc.) as consistent as possible before and after downsampling.</li>
<li><em>Value Preserving</em>: This approach selects representative data points directly from the raw dataset to <em>preserve the overall visual shape</em>.</li>
</ul>
<p>Both LTTB and MinMaxLTTB are essentially value-preserving algorithms—their core objective is to retain the original trend and shape of the data after downsampling.</p>]]></description>
</item></channel>
</rss>
