문입니다. 분산 공식을 사용해 간단히 유도해볼 수 있습니다. 먼저 분산 공식을 다음과 같이 풀
어 쓸 수 있습니다.
Varx
n
x
n
xx
n
iii
i
n
i
n
i
n
11
2
2
22
111
0
,
1
로 이루어진 이진 특성일 경우
x
i
2
은
x
i
와 같으므로
1
n
을 곱하면 첫 번째 항은 평균과 같
아집니다. 두 번째 항도 마찬가지로
1
n
을 곱하면 평균의 제곱으로 표현할 수 있습니다. 결국
다음과 같이 정리됩니다.
1
2
1
21
2
11
222
n
x
n
x
ii
i
n
i
n
이진 특성의 평균
μ
는 클래스
1
의 샘플 비율과 같습니다. 따라서
var
함수로 이진 특성의 분산
을 계산하면 베르누이 확률 변수의 분산
p
(
1
-
p
)와 같습니다.
threshold
매개변수의 기본값은
0
으로 모든 특성을 선택합니다.
10.3
상관관계가 큰 특성 다루기
과제
특성 행렬에서 일부 특성의 상관관계가 크다고 의심됩니다.
해결
상관관계 행렬
correlation
matrix
을 사용하여 상관관계가 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.