ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์
อ่านพิสัยและเปอร์เซ็นไทล์
ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์ เป็นบทเรียน Data Science Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน Data Science Academy และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส Data Science Academy มีบทเรียนทั้งหมด 4 บทเรียน
บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ
The Edges of Your Data
Center and spread leave out the extremes. Knowing the smallest and largest values frames the range your data can possibly take. 🔭
Min and Max
The min is the lowest value and the max is the highest. They are your first guard against typos like a negative age or an impossible price.
df["age"].min(), df["age"].max()The Range
Subtract min from max and you get the range, the total width of your data. It is simple but easily wrecked by a single extreme value.
Splitting Sorted Data
Sort your values and cut them into four equal parts. The three cut points are your quartiles, and they describe the data far more robustly.
Q1, the First Quartile
The first quartile Q1 is the 25th percentile. One quarter of your values fall below it, marking the bottom of the bulk.
Q2 Is the Median
The second quartile Q2 is the 50th percentile, which is exactly the median you already met. Half the data sits on each side of it.
Q3, the Third Quartile
The third quartile Q3 is the 75th percentile. Three quarters of values fall below it, so only the top slice lies above.
Asking for a Percentile
The quantile method gives you any cut point you want. Pass 0.25 for Q1 or 0.75 for Q3 directly on a column.
df["score"].quantile(0.75)The Interquartile Range
Subtract Q1 from Q3 and you have the IQR, the spread of the middle half. It ignores the extremes, so outliers cannot inflate it.
The Five-Number Summary
Min, Q1, median, Q3, and max form the five-number summary. Together they sketch the full shape of a distribution in just five values.
Already in describe
You do not compute quartiles by hand. The describe output lists the 25, 50, and 75 percent rows for every numeric column.
df.describe()Quick Check
You want a spread measure that ignores extreme values entirely.
Recap: Range and Quartiles
You can now read the edges with min and max and the inner structure with quartiles and IQR. Five numbers describe a whole distribution. 📊
คำถามที่พบบ่อย
บทเรียน “ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ 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 ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 3 จากทั้งหมด 4 บทเรียน
บทเรียน “ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน Data Science Academy นี้ได้ไหม
ได้ บทเรียน Data Science Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- ค่าเฉลี่ย มัธยฐาน และฐานนิยม
- การกระจาย: ความแปรปรวนและส่วนเบี่ยงเบนมาตรฐาน
- ค่าต่ำสุด ค่าสูงสุด และควอร์ไทล์
- ค่าผิดปกติและความหมาย