Skip to Content
개발자를 위한 필수 수학
book

개발자를 위한 필수 수학

by 토머스 닐드, 박해선
June 2024
Beginner to intermediate
352 pages
9h 29m
Korean
Hanbit Media, Inc.
Content preview from 개발자를 위한 필수 수학
324
개발자를 위한 필수 수학
이항 계수 함수는 순서에 관계없이
n
개 중에서
k
개를 선택하는 가짓수를 계산합니다.
k
=
2
이고
n
=
3
이면 (
1
,
2
,
3
)에서
2
개를 고르는 가짓수를 세야 합니다. 이 집합에서 가능한 고유한 조
합은 (
1
,
3
), (
1
,
2
), (
2
,
3
)이 되므로 이항 계수는
3
입니다. 물론
binomial
_
coefficient
()
함수를 사용하면 팩토리얼과 곱셈을 사용해 이런 순열 계산을 피할 수 있습니다.
binomial
_
distribution
()
을 구현할 때 이항 계수에 성공 확률
p
k
번 발생할 확률을 (따
라서 지수를 ) 곱하는 방법에 주목하세요. 그런 다음 반대인 경우, 즉 실패 확률
1
.
0
-
p
n
-
k
번 발생할 확률을 곱합니다. 이를 통해 여러 번의 시도에서 사건이 발생할 확률
p
와 발생하지
않을 확률
p
를 고려할 수 있습니다.
A.3
밑바닥부터 베타 분포 구현하기
베타 분포를 밑바닥부터 구현하기 위해 이항 분포에 사용한
factorial
()
함수와
1
장에서 구
축한
approximate
_
integral
()
함수를 재사용합니다.
1
장에서와 마찬가지로 [그림
A
-
2
]와 같이 관심 있는 범위의 곡선 아래 영역에 직사각형을 채
웁니다.
그림
A-2
곡선 아래에 직사각형을 채워서 면적(확률) 구하기
8
/
10
성공의 가능도
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: 9791169212502