ملاحظة: مبني على خطة المادة وسلايدات الفصل، ومكتوب بصياغتنا. هالفصل يدخل بالميد تيرم (الفصول 1–4) وبالكويز الأول.
Key questions
Q1. What do we measure in numerical data?
- 📌 Central tendency = where the middle (typical value) is.
- 📌 Variation = how spread out the values are.
- 📌 Shape = the pattern of the values (symmetric or skewed).
بالعربي: نقيس ثلاث أشياء: النزعة المركزية (وين الوسط)، التشتت (كم الأرقام متفرقة)، والشكل (متماثل ولا ملتوي).
Q2. ⭐ Mean, median, mode
- 📌 Mean = sum ÷ count. 📋
X̄ = ΣX / n. ⚠️ Affected by outliers. - 📌 Median = the middle value after sorting. Not affected by outliers.
- Position =
(n + 1) / 2. If n is even → average the two middle values.
- Position =
- 📌 Mode = the value that appears most often. Can be none or more than one. Works for categorical data too.
💡 Data: 4, 6, 7, 9, 14 → Mean = 40 ÷ 5 = 8. Median = 7 (position 3). Mode = none.
Which one to use? Use the mean, unless there are outliers → then use the median (💡 house prices).
بالعربي: المتوسط = المجموع ÷ العدد، ويتأثر بالقيم المتطرفة. الوسيط = الرقم اللي بالنص بعد الترتيب، وما يتأثر. المنوال = الأكثر تكراراً. إذا فيه قيم متطرفة استخدم الوسيط.
Q3. ⭐ Range, variance, standard deviation
- 📌 Range = largest − smallest. 📋 Simple, but sensitive to outliers.
- 📌 Variance = the average of the squared distances from the mean. 📋 Sample:
S² = Σ(X − X̄)² / (n − 1) - 📌 Standard deviation = the square root of the variance. 📋
S = √S². Same units as the data. The most used measure.
Steps for S:
- Find the mean.
- Subtract the mean from each value.
- Square each difference.
- Add them.
- Divide by n − 1 → variance.
- Take the square root → standard deviation.
💡 Data: 4, 6, 7, 9, 14 (mean 8). Differences: −4, −2, −1, 1, 6. Squares: 16, 4, 1, 1, 36 → sum 58. S² = 58 ÷ 4 = 14.5. S = √14.5 ≈ 3.81.
⚠️ Sample → divide by n − 1. Population → divide by N. ⚠️ These measures are never negative. If all values are the same → they are all 0.
بالعربي: المدى = الأكبر − الأصغر. التباين = متوسط مربعات البعد عن المتوسط (للعينة نقسم على n − 1). الانحراف المعياري = جذر التباين، وهو الأكثر استخداماً. كل ما الأرقام متفرقة أكثر، كل ما هالمقاييس تكبر.
Q4. ⭐ Coefficient of variation (CV)
📌 CV = standard deviation compared to the mean, in %.
CV = (S / X̄) × 100% ⚠️ Not in the handbook → memorize it.
Use it to compare data with different means or units.
💡 4, 6, 7, 9, 14: CV = 3.81 ÷ 8 × 100 ≈ 47.6%. 💡 Stock A: mean 50, S = 5 → CV = 10%. Stock B: mean 100, S = 5 → CV = 5%. Same S, but B is less variable.
بالعربي: معامل الاختلاف = الانحراف المعياري ÷ المتوسط × 100%. نستخدمه نقارن تشتت مجموعتين متوسطهم مختلف. هالقانون مو موجود بالـ Handbook فاحفظه.
Q5. ⭐ Z-score and outliers
📌 Z-score = how many standard deviations a value is from the mean.
📋 Z = (X − X̄) / S
⚠️ If Z < −3 or Z > +3 → extreme outlier.
💡 Exam mean = 70, S = 8. A score of 86 → Z = (86 − 70) ÷ 8 = 2 → 2 SDs above the mean, not an outlier.
بالعربي: Z-score = كم انحراف معياري الرقم بعيد عن المتوسط. إذا أكبر من 3 أو أصغر من −3 فهو قيمة متطرفة.
Q6. ⭐ What is shape (skewness)?
- Symmetric → mean = median.
- Right-skewed (positive) → long tail to the right → mean > median.
- Left-skewed (negative) → long tail to the left → mean < median.
⚠️ The mean follows the tail.
بالعربي: متماثل = المتوسط = الوسيط. ملتوي لليمين = الذيل يمين والمتوسط أكبر من الوسيط. ملتوي لليسار = الذيل يسار والمتوسط أصغر. تذكّر: المتوسط يلحق الذيل.
Q7. ⭐ Quartiles, IQR and the five-number summary
📌 Quartiles split sorted data into 4 equal parts.
- Q1 position =
(n + 1) / 4→ 25% below. - Q2 position =
(n + 1) / 2→ the median. - Q3 position =
3(n + 1) / 4→ 75% below.
Position rules:
- Whole number → use that value.
- Half (like 2.5) → average the two values.
- Other decimal → round to the nearest whole number.
📌 IQR (interquartile range) = Q3 − Q1 → the spread of the middle 50%. Not affected by outliers (a resistant measure).
📌 Five-number summary = smallest, Q1, median, Q3, largest. 📌 Boxplot = a picture of the five-number summary.
💡 Data (n = 9): 3, 5, 6, 8, 10, 11, 13, 15, 20
- Q1: position 2.5 → (5 + 6) ÷ 2 = 5.5
- Q2: position 5 → 10
- Q3: position 7.5 → (13 + 15) ÷ 2 = 14
- IQR = 14 − 5.5 = 8.5
بالعربي: الربيعيات تقسم البيانات المرتبة 4 أقسام. Q1 موقعه (n+1)/4، الوسيط (n+1)/2، Q3 موقعه 3(n+1)/4. إذا الموقع نص (مثل 2.5) خذ متوسط الرقمين. المدى الربيعي = Q3 − Q1 (تشتت الـ 50% اللي بالنص). الملخص الخماسي = الأصغر، Q1، الوسيط، Q3، الأكبر، ونرسمه بـ Boxplot.
Q8. Population measures and the empirical rule
Population (Greek letters):
- 📋 Mean:
μ = ΣX / N - 📋 Variance:
σ² = Σ(X − μ)² / N - 📋 Standard deviation:
σ = √σ²
📌 Empirical rule (for bell-shaped data):
- About 68% of values are within μ ± 1σ.
- About 95% within μ ± 2σ.
- About 99.7% within μ ± 3σ.
💡 Mean = 500, σ = 90 → about 95% are between 500 − 180 = 320 and 500 + 180 = 680.
بالعربي: للمجتمع نستخدم μ و σ ونقسم على N. والقاعدة التجريبية للبيانات اللي شكلها جرس: 68% ضمن انحراف معياري واحد، 95% ضمن اثنين، و99.7% ضمن ثلاثة.
Q9. Covariance (self-study)
📌 Covariance = shows if two numerical variables move together (linear relationship). ⚠️ It does not mean one causes the other.
بالعربي: التغاير يبيّن إذا متغيرين يتحركون مع بعض. وهذا ما يعني إن واحد يسبب الثاني. (السلايد يقول دراسة ذاتية.)
Memory tricks
- Mean vs. median → the mean is sensitive to outliers (like a mood swing); the median stays calm.
- n − 1 → sample loses 1 (sample = small).
- Variance steps → “Mean, Subtract, Square, Sum, Divide, Root”.
- 68 – 95 – 99.7 → “1, 2, 3 sigma”.
- Skew → the mean runs to the tail.
- Quartile positions → ¼, ½, ¾ of (n + 1).
بالعربي: هالفصل فيه حساب. تدرّب على حساب المتوسط والوسيط والانحراف المعياري والربيعيات بيدك خطوة خطوة، واكتب كل خطوة بالاختبار.
One-page quick review
| Term | Formula / meaning | بالعربي |
|---|---|---|
| ⭐ Mean | 📋 ΣX / n |
المتوسط |
| ⭐ Median | Middle; position (n+1)/2 |
الوسيط |
| Mode | Most frequent | المنوال |
| Range | 📋 Largest − smallest | المدى |
| ⭐ Sample variance | 📋 Σ(X − X̄)² / (n − 1) |
التباين |
| ⭐ Standard deviation | 📋 √variance |
الانحراف المعياري |
| ⭐ CV | (S / X̄) × 100% (memorize) |
معامل الاختلاف |
| ⭐ Z-score | 📋 (X − X̄) / S; outlier if beyond ±3 |
الدرجة المعيارية |
| Skewness | Mean > median → right; mean < median → left | الالتواء |
| ⭐ Q1 / Q2 / Q3 | Positions (n+1)/4, (n+1)/2, 3(n+1)/4 |
الربيعيات |
| ⭐ IQR | Q3 − Q1 |
المدى الربيعي |
| Five-number summary | Min, Q1, median, Q3, max | الملخص الخماسي |
| Empirical rule | 68% / 95% / 99.7% | القاعدة التجريبية |