<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Bagging - Nhãn - NZQIRC</title>
        <link>https://nzqirc.xyz/tags/bagging/</link>
        <description>Bagging - Nhãn - NZQIRC</description>
        <generator>Hugo -- gohugo.io</generator><language>vi</language><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Fri, 18 Sep 2026 21:00:00 &#43;0700</lastBuildDate><atom:link href="https://nzqirc.xyz/tags/bagging/" rel="self" type="application/rss+xml" /><item>
    <title>Lộ trình từ Decision Tree đến Random Forest</title>
    <link>https://nzqirc.xyz/posts/math/stats/from-decision-tree-to-random-forest/</link>
    <pubDate>Fri, 18 Sep 2026 21:00:00 &#43;0700</pubDate>
    <author>Du Mã</author>
    <guid>https://nzqirc.xyz/posts/math/stats/from-decision-tree-to-random-forest/</guid>
    <description><![CDATA[<p>Một <a href="https://nzqirc.xyz/posts/math/stats/decision-tree/" rel="">cây quyết định (DT)</a> sâu có <a href="https://nzqirc.xyz/posts/math/stats/bias-variance-tradeoff/" rel="">độ chệch thấp nhưng phương sai rất cao</a>: nó học vẹt nhiễu và rất nhạy với dữ liệu huấn luyện. <a href="https://nzqirc.xyz/posts/math/stats/bagging/" rel="">Bagging</a> và <a href="https://nzqirc.xyz/posts/math/stats/random-forest/" rel="">Random Forest (RF)</a> cùng dùng triết lý &ldquo;sức mạnh số đông&rdquo; để dập tắt phương sai, nhưng ở hai cấp độ khác nhau.</p>
<hr>
<h3 id="1-bagging-hội-đồng-đọc-chung-tài-liệu">1. Bagging: Hội đồng đọc chung tài liệu</h3>
<p>Thay vì tin 1 cây, Bagging rút mẫu bootstrap tạo $B$ tập con, trồng cây DT nguyên bản trên mỗi tập rồi lấy trung bình dự đoán:</p>]]></description>
</item>
<item>
    <title>Bagging: Giảm phương sai cho cây học máy</title>
    <link>https://nzqirc.xyz/posts/math/stats/bagging/</link>
    <pubDate>Fri, 18 Sep 2026 20:50:00 &#43;0700</pubDate>
    <author>Du Mã</author>
    <guid>https://nzqirc.xyz/posts/math/stats/bagging/</guid>
    <description><![CDATA[<p>Một <a href="https://nzqirc.xyz/posts/math/stats/decision-tree/" rel="">cây quyết định</a> sâu có <a href="https://nzqirc.xyz/posts/math/stats/bias-variance-tradeoff/" rel="">độ chệch thấp nhưng phương sai rất cao</a>: nó ghi nhớ nhiễu và rất nhạy với mẫu huấn luyện.</p>
<p>Năm 1996, Leo Breiman đề xuất <strong>Bagging</strong> (<em>Bootstrap Aggregating</em>) giúp triệt tiêu phương sai mà không tăng độ chệch.</p>
<hr>
<h3 id="1-trực-giác-toán-học-sức-mạnh-số-đông">1. Trực giác toán học: Sức mạnh số đông</h3>
$$
\operatorname{Var}\left(\frac{1}{B}\sum_{b=1}^B \hat{f}_b(x)\right) = \frac{\sigma^2}{B}.
$$<p>
Không thể thu thập thêm dữ liệu thật, Bagging dùng <a href="https://nzqirc.xyz/posts/math/stats/bootstrap-method/" rel="">Bootstrap</a>: tái lấy mẫu có hoàn lại từ tập ban đầu để tạo $B$ tập huấn luyện.</p>]]></description>
</item>
</channel>
</rss>
