Skip to Content
개발자를 위한 필수 수학
book

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
239
6
로지스틱 회귀와 분류
6.5
R
2
5
장에서 선형 회귀를 설명할 때, 꽤 많은 통계 지표를 다뤘습니다. 이번 로지스틱 회귀에 대해
서도 동일한 과정을 밟아보겠습니다. 과대적합과 분산을 포함해 선형 회귀에서처럼 동일한 여
러 문제를 신경 써야 합니다. 사실 선형 회귀에서 몇 가지 지표를 빌려와서 로지스틱 회귀에 적
용할 수 있습니다. 먼저
R
2
(결정 계수 )에 대해 알아봅시다.
선형 회귀와 마찬가지로 로지스틱 회귀에도
R
2
이 있습니다.
5
장을 떠올리면
R
2
은 주어진 독립
변수가 종속 변수를 얼마나 잘 설명하는지 나타냅니다. 이를 화학 물질 노출 문제에 적용하면,
화학 물질 노출 시간이 증상 발현을 얼마나 잘 설명하는지 측정하는 것입니다.
로지스틱 회귀에서
R
2
을 계산하는 가장 좋은 방법에 대한 합의는 아직 없습니다. 하지만 유명
한 맥패든
McFadden
의 의사
pseudo
R
2
이 선형 회귀의
R
2
과 매우 유사합니다.
R
2
의 공식은 다음과 같
으며, 다음 예제에서 이 기법을 사용합니다.
2
()()
()
R
=
훈련전로그가능도훈련후로그가능도
훈련전로그가능도
‘훈련 전 로그 가능도’와 ‘훈련 후 로그 가능도’를 계산하는 방법을 배우면
R
2
을 계산할 수 있습
니다.
선형 회귀에서처럼 잔차를 사용할 수는 없지만, [그림
6
-
11
]과 같이 출력값을 로지스틱 곡선
에 다시 투영하면 ...
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’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
QuotationMarkI 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
QuotationMarkI’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
QuotationMarkI'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.
Mark W.
Embedded Software Engineer

You might also like

개발자를 위한 머신러닝&딥러닝

개발자를 위한 머신러닝&딥러닝

로런스 모로니

Publisher Resources

ISBN: 9791169212502