Streuung: Varianz und Standardabweichung
Wie breit Ihre Daten tatsächlich verteilt sind
Streuung: Varianz und Standardabweichung ist eine kostenlose Data Science Academy-Lektion auf CoddyKit. Dies ist Lektion 2 von 4. Du kannst die komplette Lektion unten kostenlos lesen – dann übst du sie direkt im Browser mit einem integrierten Code-Editor und einem KI-Tutor rund um die Uhr. Sie ist Teil des Data Science Academy-Lernpfads, und dein Fortschritt wird über Web und CoddyKit-App synchronisiert. Der Data Science Academy-Kurs umfasst insgesamt 4 Lektionen.
Teile dieser Lektion wurden noch nicht übersetzt und werden auf Englisch angezeigt.
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. 🌟
Häufig gestellte Fragen
Ist die Lektion „Streuung: Varianz und Standardabweichung“ kostenlos?
Ja — der vollständige Text von „Streuung: Varianz und Standardabweichung“ ist hier im Web kostenlos zu lesen. Um sie interaktiv zu üben (integrierter Code-Editor und 24/7 KI-Tutor) und den Rest des Data Science Academy-Kurses freizuschalten, upgrade auf CoddyKit PRO. Der Data Science Academy-Kurs umfasst insgesamt 4 Lektionen.
Was lerne ich in „Streuung: Varianz und Standardabweichung“?
Wie breit Ihre Daten tatsächlich verteilt sind Du übst Data Science Academy mit praktischem Code, den du direkt im Browser ausführst, und ein 24/7 KI-Tutor beantwortet deine Fragen während du die Lektion bearbeitest.
Brauche ich Erfahrung, um Data Science Academy zu starten?
Keine Vorkenntnisse erforderlich. Data Science Academy auf CoddyKit ist für Anfänger bis fortgeschrittene Lernende strukturiert, sodass du hier starten oder von Anfang an beginnen und in deinem eigenen Tempo voranschreiten kannst. Dies ist Lektion 2 von 4.
Wie lange dauert die Lektion „Streuung: Varianz und Standardabweichung“?
Die meisten CoddyKit-Lektionen dauern etwa 5–10 Minuten. Jede ist kompakt und interaktiv, sodass du stetig Fortschritte machst und genau dort weitermachst, wo du aufgehört hast – im Web und in der App.
Kann ich in dieser Data Science Academy-Lektion Code schreiben und ausführen?
Ja. Jede Data Science Academy-Lektion enthält einen integrierten Code-Editor, sodass du echten Code direkt in deinem Browser schreibst und ausführst und sofort KI-Feedback erhältst — ohne lokale Einrichtung erforderlich.
Alle Lektionen in diesem Kurs
- Mittelwert, Median und Modus
- Streuung: Varianz und Standardabweichung
- Minimum, Maximum und Quartile
- Ausreißer und ihre Bedeutung