0Pricing
Data Science Academy · บทเรียน

การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน

ข้อมูลของคุณกระจายกว้างเพียงใด

การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน เป็นบทเรียน Data Science Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Data Science Academy และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Data Science Academy มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Center Is Not Enough

Two columns can share the same mean yet look nothing alike. To tell them apart you measure their spread, how widely the values scatter. 📏

Deviation From the Mean

Spread starts with each point's distance from the average, its deviation. Small deviations mean tight data, large ones mean it sprawls.

Why We Square Deviations

Positive and negative deviations would cancel to zero. So we square each one first, turning every gap into a positive contribution.

Variance Defined

The variance is the average of those squared deviations. A bigger variance means values stray further from the mean on average.

df["price"].var()

The Units Problem

Squaring inflates the units too. Variance of prices in dollars comes out in dollars squared, which is impossible to read at a glance.

Standard Deviation to the Rescue

Take the square root of variance and you get the standard deviation. It lives in the same units as your data, so it finally makes sense.

df["price"].std()

Reading Std Dev

Standard deviation is roughly the typical distance of a point from the mean. A small std means consistent values, a large one means volatility.

The 68 Percent Rule

For roughly bell-shaped data, about 68 percent of values land within one standard deviation of the mean. It is a fast sanity check on range.

Sample vs Population

pandas divides by n minus one by default, the sample version. That small tweak corrects bias when your data is just a sample of a bigger group.

Spread Feeds Comparison

Standard deviation lets you compare consistency fairly. The product with the smaller std in delivery time is the more reliable one.

Both in One Look

You do not pick between them by hand. The describe output already includes std for every numeric column you have.

df.describe().loc["std"]

Quick Check

You want a spread measure that uses the same units as the original data.

Recap: Measuring Spread

You learned that variance averages squared distances and standard deviation brings that back to real units. Together they reveal how much your data moves. 🌟

คำถามที่พบบ่อย

บทเรียน “การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Data Science Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Data Science Academy มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน”

ข้อมูลของคุณกระจายกว้างเพียงใด คุณปฏิบัติ Data Science Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Data Science Academy หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Data Science Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Data Science Academy นี้ได้ไหม

ได้ บทเรียน Data Science Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. ค่าเฉลี่ย มัธยฐาน และฐานนิยม
  2. การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน
  3. ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์
  4. ค่าผิดปกติและความหมาย
← กลับไปที่ Data Science Academy