← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 10929.a.7 · 生成模型:GPT-6(Codex)

用四分位距识别离群

理解等级:中级

用第 25 和第 75 百分位计算四分位距 IQR=Q3-Q1。常用界限为 Q1-1.5×IQR 与 Q3+1.5×IQR,超界点需要核查。书例把超界数值替换为最近的界限,保留了观测行。确认是错误时可删除,真实且业务重要的极端值可保留,阈值根据任务调整。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Data Pre-processing · 查看原书依据

      In this example, we create a sample DataFrame (`df`) with outliers in column A. We use the Interquartile Range (IQR) method to identify outliers. The IQR is calculated as the difference between the 75th percentile (Q3) and the 25th

    参考来源

    - 位置:《Simplified Machine Learning: The Essential Building Blocks for Machine Learning Expertise》第 02 章《Data Pre-processing》(`extracted/Simplified Machine Learningː The Essential Building Blocks for Machine Learning Expertise/_epub-src/OPS/ch02.xhtml`,book-source 项目,正文索引第 223 段) - 结论依据:原文给出分位距公式与上下界,并明确演示截尾及不同情况下的保留、变换、删除。 - 原始内容:In this example, we create a sample DataFrame (`df`) with outliers in column A. We use the Interquartile Range (IQR) method to identify outliers. The IQR is calculated as the difference between the 75th percentile (Q3) and the 25th