التشتت: التباين والانحراف المعياري
مدى اتساع بياناتك فعليًا
التشتت: التباين والانحراف المعياري درس مجاني في Data Science Academy على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 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. 🌟
الأسئلة الشائعة
هل درس «التشتت: التباين والانحراف المعياري» مجاني؟
نعم — نص درس «التشتت: التباين والانحراف المعياري» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Data Science Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Data Science Academy 4 دروس في المجموع.
ماذا ستتعلم في «التشتت: التباين والانحراف المعياري»؟
مدى اتساع بياناتك فعليًا تتمرن على Data Science Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Data Science Academy؟
لا تُشترط خبرة سابقة. Data Science Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.
كم من الوقت يستغرق درس «التشتت: التباين والانحراف المعياري»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Data Science Academy هذا؟
نعم. كل درس في Data Science Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- المتوسط والوسيط والمنوال
- التشتت: التباين والانحراف المعياري
- القيمة الدنيا والعظمى والربيعات
- القيم الشاذة وما تعنيه