Data Science Explorer

Machine Learning : Standard Deviation 본문

Machine Learning

Machine Learning : Standard Deviation

grace21110 2023. 11. 13. 20:58
반응형
  • Standard Deviation 

It is a number that describes how spread out the values are.

A low standard deviation means that most of the numbers are close to the mean(average). 

A high standard deviation means that values are spread out over a wider range. 

 

You can use std() to get a standard deviation value. 

 

Example 

import numpy

speed = [11, 20, 582, 12]

x = numpy.std(speed)

print(x)
245.83162428784462

 

  • Variance 

It is another number that indicates how spread out the values are. If you take the square root of the variance, you can get the std. You can use var() method to find the variance. 

 

Example 

import numpy

speed = [10, 15, 82, 99, 56]

x = numpy.var(speed)

print(x)
1251.44

'Machine Learning' 카테고리의 다른 글

Machine Learning: Linear Regression  (0) 2023.11.15
Machine Learning: Percentiles  (0) 2023.11.14
Mean Median Mode  (0) 2023.11.12
Text Mining #4 Stemming and Lemmatization  (0) 2023.09.06
Text Mining #3 Removing Stop Word  (0) 2023.09.05