-
[n124] 베이즈 정리AI 부트캠프 2021. 9. 24. 11:13
총 확률의 법칙 (The Law of Total Probability)
모든 가능한 이벤트의 총 확률은 1이다.
조건부 확률
B가 일어난 상태에서 A가 일어난 확률
베이지안 확률
B가 일어난 상태에서 A가 일어날 확률.
위 수식을 다음과 같이 구할 수 있다.
예시
At a certain stage of a criminal investigation, the inspector in charge is
60% convinced of the guilty of a certain suspect.
Suppose now that a new piece of evidence that shows that the criminal has a left-handedness is uncovered.
If 20% of population possesses this characteristic, how certain of the guilt of the suspect should the inspector now be if it turns out that the suspect is among this group?
Source : Introduction to Probability and Statistics for Engineers and Scientists, 4th Ed.# 유죄를 확신한 경우 -> P(유죄 확신) = 0.6 # 유죄를 확신 못한 경우 -> P(유죄 확신 not) = 0.4 # (유죄 확신 못하고) 인구 중 왼손 잡이 확률 -> P(왼손잡이) = 0.2 # 인구 중 왼손 잡이 아닐 확률 -> P(왼손잡이 not) = 0.8 # 유죄 확신 & 왼손 잡이 확률 -> 1 # 구하고자 하는 것은 P(유죄 확신|왼손 잡이)의 확률 # P(유죄 확신|왼손 잡이) # P(유죄 확신 ∩ 왼손 잡이) # = -------------------- # P(왼손 잡이) # # P(왼손 잡이|유죄 확신) * P(유죄 확신) # = ------------------------------------------------------------------------ # [P(왼손 잡이|유죄 확신) * P(유죄 확신)] + [P(왼손 잡이|유죄 확신 not)*P(유죄 확신 not)] ans = (1*0.6) / ((1*0.6) + (0.2*0.4)) ans = round(ans*100, 2) print(ans, "%")
부트캠프 공부 내용 한 눈에 보기
[인덱스] 코드 스테이츠 AI 부트캠프
구성 2021.09.09 ~ 2022.04 (총 28주) 배우는 내용 Section 1. 데이터 분석 입문 SPRINT 1. EDA SPRINT 2. Statistics SPRINT 3. DAY 1 EDA 데이터 전처리 Pandas in Colab 가설 검정 (t-test) T-Test 행렬 및 벡..
da-journal.com
'AI 부트캠프' 카테고리의 다른 글
[n132] 선형 대수 (0) 2021.09.29 [n131] 벡터 및 행렬 (0) 2021.09.28 [n123] 중심 극한 정리 및 신뢰 구간 (0) 2021.09.23 [인덱스] 코드 스테이츠 AI 부트캠프 (1) 2021.09.20 [n122] 자유도, Chi-square Test, ANOVA 분산 분석 (0) 2021.09.17