Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Deviazione Standard con Python | Varianza e Deviazione Standard
Statistica con Python
course content

Contenuti del Corso

Statistica con Python

Statistica con Python

1. Concetti di Base
2. Media, Mediana e Moda con Python
3. Varianza e Deviazione Standard
4. Covarianza vs Correlazione
5. Intervallo di Confidenza
6. Test Statistici

book
Deviazione Standard con Python

La prima funzione proviene da numpy, mentre il secondo metodo è di pandas. Osserva l'esempio di calcolo della deviazione standard per work_year:

123456789101112
import pandas as pd import numpy as np df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a849660e-ddfa-4033-80a6-94a1b7772e23/update/ds_salaries_statistics', index_col = 0) # Calculate the standard deviation using the function from the NumPy library std_1 = np.std(df['salary_in_usd']) # Calculate the standard deviation using the function from the pandas library std_2 = df['salary_in_usd'].std() print('The standard deviation using NumPy library is', round(std_1, 2)) print('The standard deviation using pandas library is', round(std_2, 2))
copy
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 5

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

course content

Contenuti del Corso

Statistica con Python

Statistica con Python

1. Concetti di Base
2. Media, Mediana e Moda con Python
3. Varianza e Deviazione Standard
4. Covarianza vs Correlazione
5. Intervallo di Confidenza
6. Test Statistici

book
Deviazione Standard con Python

La prima funzione proviene da numpy, mentre il secondo metodo è di pandas. Osserva l'esempio di calcolo della deviazione standard per work_year:

123456789101112
import pandas as pd import numpy as np df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/a849660e-ddfa-4033-80a6-94a1b7772e23/update/ds_salaries_statistics', index_col = 0) # Calculate the standard deviation using the function from the NumPy library std_1 = np.std(df['salary_in_usd']) # Calculate the standard deviation using the function from the pandas library std_2 = df['salary_in_usd'].std() print('The standard deviation using NumPy library is', round(std_1, 2)) print('The standard deviation using pandas library is', round(std_2, 2))
copy
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 5
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt