Skip to Content
파이썬을 활용한 베이지안 통계 (2판)
book

파이썬을 활용한 베이지안 통계 (2판)

by 앨런 B. 다우니, 권정민
June 2022
Beginner to intermediate
412 pages
8h 22m
Korean
Hanbit Media, Inc.
Content preview from 파이썬을 활용한 베이지안 통계 (2판)
47
CHAPTER 2
베이즈 정리
표준화되지 않은 사후확률을 더한 값으로 각 사후확률 값을 나눠서 구한 사후확률을 더하면
1
이 되는 것을 알 수 있다. 이 과정을 ‘표준화
normalization
’라고 하고, 이 때 데이터의 총 확률을 ‘
준화 상수
normalizing
constant
’라고 한다.
2.4
주사위 문제
베이즈 테이블은 두 개 이상의 가설을 가진 문제를 해결하는 데도 도움이 된다. 다음의 예를
보자.
육면체, 팔면체, 십이면체 주사위가 든 상자가 있다고 가정하자. 이 중 주사위 하나를 임의로 집어
서 굴렸더니
1
이 나왔다. 이 경우 육면체 주사위를 골랐을 확률은 얼마일까?
이 예제에는 동일한 사전확률을 가지는 세 가지 가설이 있다. 데이터는 주사위를 굴린 결과가
1
이 나왔다는 것뿐이다.
만약 육면체 주사위를 골랐다면, 최종 값의 확률은
1
/
6
이다. 팔면체 주사위를 고른 경우라면
확률은
1
/
8
이고, 십이면체 주사위를 골랐다면 확률은
1
/
12
이다.
다음은 자연수를 사용해서 이 가설을 나타내는 베이즈 테이블이다.
table2 = pd.DataFrame(index=[6, 8, 12])
다음에서는 사전확률과 가능도를 분수로 나타낸다. 이렇게 하면 소숫점 이하 숫자를 반올림할
필요가 없다.
from fractions import Fraction
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: 9791162245736