Skip to Content
실무로 통하는 인과추론 with 파이썬
book

실무로 통하는 인과추론 with 파이썬

by 마테우스 파쿠레, 박지용(감수), 신진수, 가짜연구소 인과추론팀
March 2024
Beginner to intermediate
464 pages
11h 51m
Korean
Hanbit Media, Inc.
Content preview from 실무로 통하는 인과추론 with 파이썬
177
4
장
유용한 선형회귀
마지막으로, 여기서는 기울기 매개변수가 하나뿐입니다. 교란 요인을 통제하려고 더미변수를
추가하면 그룹당 하나의 절편이 생기지만, 모든 그룹에 동일한 기울기가 적용됩니다. 이 부분
은 조금 뒤에 설명하겠지만, 해당 기울기는 각 그룹의 회귀에 대한 분산 가중평균이 됩니다. 각
그룹에 대한 모델의 예측 결과를 시각화하면 그룹별로 하나의 선이 있으며 모든 선의 기울기가
동일함을 알 수 있습니다.
4.7.3
포화회귀모델
이 장을 시작할 때 회귀분석과 조건부 평균이 비슷하다고 했던 말을 기억하시나요? 이진 처치
에 대한 회귀분석은 실험군과 대조군의 평균을 비교하는 것과 같습니다. 더미변수는 이진값이
므로 같은 논리가 여기에도 적용됩니다. 만약 회귀분석에 익숙하지 않다면, 첫 시도로 조건부
무작위 실험의 데이터를
credit
_
score1
_
buckets
에 따라 나누고 그룹별로 효과를 추정할 것
입니다.
In [24]: def regress(df, t, y):
return smf.ols(f"{y}~{t}", data=df).fit().params[t]
effect_by_group = (risk_data_rnd
.groupby("credit_score1_buckets")
.apply(regress, y="default", t="credit_limit")) ...
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

실무로 통하는 ML 문제 해결 with 파이썬

실무로 통하는 ML 문제 해결 with 파이썬

카일 갤러틴, 크리스 알본
잘되는 머신러닝 팀엔 이유가 있다

잘되는 머신러닝 팀엔 이유가 있다

데이비드 탄, 에이다 양, 데이비드 콜스

Publisher Resources

ISBN: 9791169212113