Skip to Content
SQL로 시작하는 데이터 분석
book

SQL로 시작하는 데이터 분석

by 캐시 타니무라, 박상근
August 2022
Beginner to intermediate
436 pages
9h 43m
Korean
Hanbit Media, Inc.
Content preview from SQL로 시작하는 데이터 분석
373
7
실험 분석
SELECT
a.country
,
count
(
distinct
a.user_id)
as
total_cohorted
,
count
(
distinct
b.user_id)
as
purchasers
,
count
(
distinct
b.user_id) * 1.0 /
count
(
distinct
a.user_id)
as
pct_purchased
FROM
game_users a
LEFT
JOIN
game_purchases b
on
a.user_id = b.user_id
WHERE
a.country
in
(‘United States’,’Canada’)
GROUP
BY
1
;
country total_cohorted purchasers pct_purchased
------------- -------------- ---------- -------------
Canada 20179 5011 0.2483
United States 45012 4958 0.1101
캐나다 사용자의 구매율은
24
.
85
%로, 미국 사용자의 구매율
11
.
01
%보다 높습니다. 온라인
통계 서비스로 통계 검정을 수행해보면,
95
% 신뢰 구간에서 캐나다 사용자의 구매율이 미국
사용자의 구매율보다 통계적으로 유의미하게 높습니다.
자연 실험을 분석할 때 가장 어려운 점은 적절한 비교 집단을
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.
Start your free trial

You might also like

견고한 데이터 엔지니어링

견고한 데이터 엔지니어링

조 라이스, 맷 하우슬리
행동 데이터 분석

행동 데이터 분석

플로랑 뷔송
데이터 과학을 위한 통계(2판)

데이터 과학을 위한 통계(2판)

이준용, 피터 브루스, 앤드루 브루스, 피터 게데크

Publisher Resources

ISBN: 9791169210089