를 무작위로 배정하는 실험을 진행했습니다. 이 과정에서 고객의 절반은 실험군, 나머지 절반
은 대조군으로 배정되었습니다. 하지만 은행이 고객에게 카드를 선택하도록 강요할 수는 없으
므로 이 실험에는 불응이 존재합니다.
이러한 변수를 [그림
11
-
1
]에 적용해보면, 구매금액은
Y
, 프라임 신용카드의 사용 가능 여부
는
Z
, 프라임 카드 보유 여부는
T
가 됩니다. 은행은 고객의 나이, 소득, 신용점수 정보도 가지
고 있지만, 지금은 해당 변수를 고려하지 않겠습니다. 또한 프라임 카드가 구매금액(
pv
)에 미
치는 실제 효과인
τ
(
tau
)와 고객이 속한 그룹(
categ
) 정보도 포함되어 있습니다. 실전에서는
고객이 속한 그룹과
τ
는 실제로 사용할 수 없지만, 여기서는 이해를 돕기 위해 예시로 사용됩
니다 .
In [1]: import pandas as pd
import numpy as np
df = pd.read_csv("./data/prime_card.csv")
df.head() ...
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.