반응형


코딩놀이! 10 Days of Statistics(HackerRank)

 Day 3-1: Conditional Probability



7번째 문제! 

이번 문제는! Conditional Probability! 조건부 확률 문제입니다..

Objective 
In this challenge, we get started with conditional probability. Check out the Tutorial tab for learning materials! 

Task 
Suppose a family has  children, one of which is a boy. What is the probability that both children are boys?

1.  1 / 3
2.   1 / 2
3.   2 / 3
4.   1 / 9
You have 1 attempts left.



문제해석!

1. 한집에 2명의 아이가 있다.

2. 둘다 남자일 확률은?


풀이!

1. 아이 2명의 모든 경우의 수

2. 남남, 여여, 남여(여남)

3. 답! 1/3 !








2,3일차 문제는 대부분 이런 문제입니다. 짧게 짧게 skip!~할게요


(출처:https://www.hackerrank.com/challenges/s10-mcq-4/problem)



반응형

+ Recent posts