0Pricing
Data Science Academy · Lezione

Minimo, massimo e quartili

Leggere l'intervallo e i percentili.

Minimo, massimo e quartili è una lezione Data Science Academy gratuita su CoddyKit. Questa è la lezione 3 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento Data Science Academy, e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso Data Science Academy include 4 lezioni in totale.

Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.

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. 📊

Domande Frequenti

La lezione «Minimo, massimo e quartili» è gratuita?

Sì — il testo completo di «Minimo, massimo e quartili» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso Data Science Academy, passa a CoddyKit PRO. Il corso Data Science Academy include 4 lezioni in totale.

Cosa imparerò in «Minimo, massimo e quartili»?

Leggere l'intervallo e i percentili. Eserciti Data Science Academy con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.

Ho bisogno di esperienza per iniziare Data Science Academy?

Non è richiesta alcuna esperienza precedente. Data Science Academy su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 3 di 4.

Quanto tempo richiede la lezione «Minimo, massimo e quartili»?

La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.

Posso scrivere ed eseguire codice in questa lezione Data Science Academy?

Sì. Ogni lezione Data Science Academy include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.

Tutte le lezioni di questo corso

  1. Media, mediana e moda
  2. Dispersione: varianza e deviazione standard
  3. Minimo, massimo e quartili
  4. Valori anomali e loro significato
← Torna a Data Science Academy