ภาษาของความแปรปรวน: Variables
แนะนำใหม่
9:03
การสำรวจข้อมูลตัวแปรเดียว
วัดสิ่งเดียวกันสองสิบครั้ง แล้วคุณจะไม่ได้รับคำตอบที่เหมือนกันสองสิบครั้ง นักเรียนสองสิบคนวัดโต๊ะตัวเดียวกัน ค่าที่ได้มีความแตกต่างกัน นั่นไม่ใช่…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| variable/ˈveərɪəbl/ | A characteristic recorded for each individual, such as height or eye colour. |
| data/ˈdeɪtə/ | Recorded facts, observations or values used for analysis or processing. |
| categorical/ˌkætɪˈɡɒrɪkl/ | ข้อมูลเชิงคุณภาพ |
| quantitative/ˈkwɒntɪteɪtɪv/ | ข้อมูลเชิงปริมาณ |
| Discrete/dɪˈskriːt/ | ข้อมูลแบบไม่ต่อเนื่อง |
| Continuous/kənˈtɪnjuːəs/ | ข้อมูลแบบต่อเนื่อง |
| bar charts/bɑː tʃɑːts/ | |
| pie charts | |
| frequency tables | |
| proportions | |
| histograms | |
| dotplots | |
| boxplots | |
| mean/miːn/ | The sum of a set of values divided by the number of values. |
| standard deviation/ˈstændəd ˌdiːvɪˈeɪʃn/ | A measure of spread equal to the square root of the variance. |
| survey/ˈsɜːveɪ/ |
Not all variables are the same
- Before you graph or summarize data, you must know what kind of variable you have.
- The big split: categorical (labels/groups) vs. quantitative (numbers you can do arithmetic on).
- The type decides which graphs and which summaries make sense.
- Choosing the wrong tool for the type is a classic mistake — so classify first.
Categorical vs. quantitative
- A categorical variable records a group or label: eye color, favorite sport, yes/no.
- A quantitative variable is a measured number you can average: height, age, test score.
- Quick test: does averaging the values make sense? If yes → quantitative; if no → categorical.
- (Zip codes look numeric but are categorical — you'd never average them.)

ตัวแปรเชิงคุณภาพแยกกรณีเข้ากลุ่ม; ตัวแปรเชิงปริมาณคือตัวเลขที่หาค่าเฉลี่ยได้

Categorical หรือ quantitative?
ตัดสินใจว่าแต่ละ variable เป็น label (categorical) หรือตัวเลขที่คุณ can average (quantitative)
สีตาคือ variable ____
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
มันบันทึก label/group → categorical
ทดสอบด่วน: ตัวแปรเป็น Quantitative หากการเติม ____ ของมันมีความหมาย
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Averaging works for numbers, not labels
Discrete vs. continuous
- Quantitative variables come in two flavors.
- Discrete variables take countable, separate values (number of siblings: $0,1,2,\dots$).
- Continuous variables can take any value in a range (height: $170.3$ cm, $170.34$ cm, …).
- Counting → discrete; measuring → usually continuous.
จำนวนสัตว์เลี้ยงคือ quantitative variable ที่...
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
การนับใช้ค่าเต็มแยกกัน → Discrete
ความสูงวัดเป็น cm เป็น quantitative และ...
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
มันสามารถรับ any value in a range → continuous
Type dictates the tools
- Categorical → bar charts, pie charts, frequency tables, proportions.
- Quantitative → histograms, dotplots, boxplots, mean, standard deviation.
- Using a quantitative tool (like a mean) on a categorical variable is meaningless.
- So always classify the variable before picking a graph or summary.
Zip code แม้เขียนด้วยตัวเลข แต่เป็น categorical variable
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
การเฉลี่ย zip codes ไม่มีความหมาย → categorical
กราฟใดเหมาะกับ variable categorical?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Bar/pie สำหรับ categorical; histogram/boxplot สำหรับ quantitative
Numbers aren't always quantitative. A variable coded with numbers (zip code, jersey number, a $1$–$5$ "strongly agree" scale used as labels) can still be categorical if averaging it is meaningless. Ask: "Does arithmetic make sense here?" That, not the appearance, decides the type.
Classify each variable for a group of students.
- Favorite subject: labels → categorical.
- Number of siblings: a count → quantitative, discrete.
- Height (cm): a measurement → quantitative, continuous.
Classify a variable as categorical (labels/groups) or quantitative (numbers you can average). Quantitative splits into discrete (countable) and continuous (any value in a range). The type decides which graphs and summaries are valid — and numbers used as labels are still categorical.
เขียนจากจำนวนนับเชิงปริมาณ
- การสำรวจบันทึกสีตาและจำนวนสัตว์เลี้ยง
- สีตาเป็นฉลาก ส่วนจำนวนสัตว์เลี้ยงเป็นตัวเลข
การสำรวจบันทึกสีตาและจำนวนสัตว์เลี้ยง จงจำแนกตัวแปรทั้งสองและอธิบายว่าจำนวนสัตว์เลี้ยงเป็นตัวแปรไม่ต่อเนื่องหรือต่อเนื่อง
การนับเป็นตัวเลข ส่วนสีเป็นหมวดหมู่
จำนวนสัตว์เลี้ยงเป็นตัวแปรประเภทใด?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
จำนวนสัตว์เลี้ยงเป็นตัวแปรเชิงปริมาณเพราะการคำนวณทางคณิตศาสตร์กับจำนวนที่นับได้มีความหมาย และเป็นตัวแปรไม่ต่อเนื่องเพราะมีค่าเป็นจำนวนเต็ม
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้