본문 바로가기

SQL

[MySQL] 모분산, 표본분산, 모표준편차, 표본표준편차 구하기

 

#모분산 구하기
VAR_POP(x)

#표본분산 구하기
VAR_SAMP(X)

#모표준편차 구하기
STD(x)
STDDEV(x)
STDEV_POP(x)
>> 3가지 수식 모두 같은 결과 나옴

#표본 표준편차 구하기
STDDEV_SAMP(x)

 

모집단인가 표본인가에 따라서 통계량을 구하는 식은 다르다! 


참고

https://www.w3schools.com/mysql/mysql_ref_functions.asp

 

MySQL Functions

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

https://www.mysqltutorial.org/mysql-aggregate-functions/mysql-standard-deviation/

 

MySQL Standard Deviation: STD | STDDEV | STDEV_POP | STDEV_SAMP

This tutorial shows you how to use MySQL standard deviation functions to calculate populate standard deviation and sample standard deviation.

www.mysqltutorial.org