#모분산 구하기
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
'SQL' 카테고리의 다른 글
[MySQL] SUBSTR(), SUBSTRING() 사용법 문자 슬라이싱 하기 (0) | 2024.02.21 |
---|---|
[빅쿼리] 빅쿼리 컬럼에 json 형식으로 데이터 들어있을때 (0) | 2024.02.07 |
[빅쿼리] countif()의 용법 (0) | 2024.02.07 |
데이터리안 SQL 입문반 21기 수강후기 (0) | 2024.01.19 |