• SEARCH

    통합검색
세모계
    • Dark Mode
    • GNB Always Open
    • GNB Height Maximize
    • Color
    • Brightness
    • SINCE 2015.01.19.
    • 세모계 세모계
    •   SEARCH
    • 세상의 모든 계산기
      • 자유(질문) 게시판
      • 계산기 뉴스/정보
      • 수학, 과학, 공학 이야기
      • 세모계 : 공지 게시판
        • 구글 맞춤검색
    • TI
    • CASIO
    • HP
    • SHARP
    • 일반(쌀집) 계산기
    • 기타계산기
    • by OrangeDay
  • 세상의 모든 계산기 수학, 과학, 공학 이야기
    • 세상의 모든 계산기 수학, 과학, 공학 이야기 확률통계 ()
    • [확률] - 6/45 로또를 5게임을 선택 했을 때, 당첨 번호 6개 하나도 안맞을 확률은?

    • Profile
      • 세상의모든계산기
      • 2024.07.31 - 08:03 2024.07.30 - 11:08 3391 1

    1. 게임간 숫자 중복 선택을 허용하지 않을 때 

     

    문제 요약


    - 45개의 번호 중 6개가 1등 번호입니다.
    - 5게임을 중복 없이 선택하면 총 30개의 번호가 선택됩니다.
    - 이 30개 번호 중에 1등 번호가 하나도 포함되지 않을 확률을 구하려고 합니다.

     

    접근 방식

    1. **총 경우의 수:**
       - 45개 숫자 중 30개를 선택하는 경우의 수는 \(\binom{45}{30}\)입니다.

    2. **바람직하지 않은 경우의 수:**
       - 1등 번호 6개를 제외한 39개 숫자 중 30개를 선택하는 경우의 수는 \(\binom{39}{30}\)입니다.

    3. **확률 계산:**
       - 확률은 \(\frac{\binom{39}{30}}{\binom{45}{30}}\)입니다.

     

    계산

    1. **총 경우의 수** \(\binom{45}{30}\) 계산:

    \[
    \binom{45}{30} = \frac{45!}{30! \times (45-30)!} = \frac{45!}{30! \times 15!}
    \]

    2. **바람직하지 않은 경우의 수** \(\binom{39}{30}\) 계산:

    \[
    \binom{39}{30} = \frac{39!}{30! \times (39-30)!} = \frac{39!}{30! \times 9!}
    \]

    3. **확률 계산**:

    \[
    P(\text{1등 번호 미포함}) = \frac{\binom{39}{30}}{\binom{45}{30}}
    \]

     

    수치 계산

    - \(\binom{45}{30}\)의 값은 약 344,867,425,584 입니다.
    - \(\binom{39}{30}\)의 값은 약 211,915,132 입니다.

    따라서 확률은:

    \[
    P(\text{1등 번호 미포함}) = \frac{211,915,132}{344,867,425,584} \approx 0.00061448288901494
    \]

    이 확률은 약 0.061448288901494%입니다. 이는 30개의 숫자 중에 1등 번호가 하나도 포함되지 않을 확률이 매우 낮다는 것을 의미합니다.

     

    통계적 검증

    import random
    import time
    
    # Simulate lottery draws (number of simulations)
    simulations = 1000000
    progress_interval = simulations // 10  # Update progress every 1% of total simulations
    
    favorable_cases = 0  # Initialize inside the loop
    total_set = set(range(1, 46))  # 전체 집합
    
    start_time = time.time()
    
    for i in range(simulations):
        # Winning numbers (replace with actual winning numbers if desired)
        winning_numbers = set(random.sample(range(1, 46), 6))
    
        # Choose 30 unique numbers from the total 45 numbers
        chosen_30 = set(random.sample(sorted(total_set), 30))
    
        # The remaining 15 numbers that are not chosen
        remaining_numbers = total_set - chosen_30
    
        # Check if the winning numbers are in the remaining 15 numbers
        if set(winning_numbers).issubset(remaining_numbers):
            favorable_cases += 1
    
        # Print progress
        if (i + 1) % progress_interval == 0:
            elapsed_time = time.time() - start_time
            percentage = (i + 1) / simulations * 100
            estimated_total_time = (elapsed_time / (i + 1)) * simulations
            remaining_time = estimated_total_time - elapsed_time
            print(f"Progress: {percentage:.2f}% | Elapsed Time: {elapsed_time:.2f}s | Estimated Remaining Time: {remaining_time:.2f}s")
    
    # Probability estimation
    probability = favorable_cases / simulations
    
    # Print final results
    print(f"Estimated probability of NOT including all winning numbers in any of the 5 sets (without replacement, after {simulations} simulations): {probability:.10f}")

     

    결과 

    Estimated probability of NOT including all winning numbers in any of the 5 sets (without replacement, after 1000000 simulations): 0.0006410000
     

     

    - 5개 게임에 포함되지 않는 모든 번호(15개)를 기준으로 보면 
    39C9 / 45C15 로 계산할 수 있음.
    1~45중에서 15개의 숫자를 선택하는 전체 경우 수 45C15
    15개 숫자 중 6개의 당첨 번호를 미리 비워 두고, 나머지 39개의 숫자 중 나머지 15-6개의 자리를 채우는 경우의 수 39C9

     


    2. 게임간 숫자 중복 선택을 허용할 때

     

     

     

     문제 정의

    - 전체 숫자: 1부터 45까지 (N = 45)
    - 각 게임에서 선택하는 숫자: 6개 (k = 6)
    - 게임 수: 5 (m = 5)
    - 당첨 번호: 6개

    우리는 5게임 중 어떤 게임에서도 6개의 당첨 번호가 포함되지 않을 확률을 구하려고 합니다.

     

     1. 각 게임에서 당첨 번호가 포함되지 않을 확률

    하나의 게임에서 특정 6개의 당첨 번호가 포함되지 않을 확률을 계산합니다. 

    - 전체 조합 수: \(\binom{45}{6}\)
    - 특정 6개의 당첨 번호를 포함하지 않는 조합 수: \(\binom{39}{6}\) (총 45개 숫자에서 6개를 제외한 39개 숫자 중에서 6개를 선택하는 조합)

    따라서, 하나의 게임에서 특정 6개의 당첨 번호가 포함되지 않을 확률은:

    \[
    P(\text{특정 번호 포함되지 않음}) = \frac{\binom{39}{6}}{\binom{45}{6}}
    \]

     

     2. 5게임 모두에서 당첨 번호가 포함되지 않을 확률

    5게임 모두에서 특정 6개의 당첨 번호가 포함되지 않을 확률을 계산합니다. 각 게임이 독립적이라고 가정하면, 다음과 같이 계산할 수 있습니다:

    \[
    P(\text{5게임 모두에서 포함되지 않음}) = \left(\frac{\binom{39}{6}}{\binom{45}{6}}\right)^5
    \]

     

     

     3. 수식 계산

    # 전체 조합 수 계산
    - 전체 6개 숫자를 선택하는 조합의 수:

    \[
    \binom{45}{6} = \frac{45!}{6!(45-6)!} = 8{,}145{,}060
    \]

    # 특정 번호를 포함하지 않는 조합의 수
    - 39개 숫자 중에서 6개를 선택하는 조합의 수:

    \[
    \binom{39}{6} = \frac{39!}{6!(39-6)!} = 3{,}262{,}623
    \]

    # 확률 계산
    - 특정 번호가 포함되지 않을 확률:

    \[
    \frac{\binom{39}{6}}{\binom{45}{6}} = \frac{3{,}262{,}623}{8{,}145{,}060} \approx 0.4005
    \]

    - 5게임 모두에서 포함되지 않을 확률:

    \[
    \left(\frac{3{,}262{,}623}{8{,}145{,}060}\right)^5 \approx 0.010312477830338
    \]

     

     결론

    따라서, 6개의 당첨 번호가 5게임 중 어디에도 포함되지 않을 확률은 약 0.01024 (즉, 약 1.024%)입니다.

     

     통계적 검증

    from scipy.special import comb
    import random
    import time
    
    # Simulate lottery draws (number of simulations)
    simulations = 1000000
    progress_interval = simulations // 10  # Update progress every 1% of total simulations
    
    favorable_cases = 0  # Initialize inside the loop
    winning_numbers = set(random.sample(range(1, 46), 6))
    
    # Initialize min and max length trackers
    min_length = float('inf')
    max_length = float('-inf')
    
    start_time = time.time()
    
    for i in range(simulations):
        # Winning numbers (replace with actual winning numbers if desired)
    
        # Generate 5 sets of 6 random numbers
        chosen_numbers = [random.sample(range(1, 46), 6) for _ in range(5)]
    
        # Flatten the list and remove duplicates
        all_numbers = list(set([num for sublist in chosen_numbers for num in sublist]))
        total_set = set(range(1, 46))  # 전체 집합
        all_numbers_set = set(all_numbers)  # all_numbers를 집합으로 변환
    
        # 여집합 계산
        all_other_numbers = total_set - all_numbers_set
    
        # Update min and max length
        current_length = len(all_numbers)
        if current_length < min_length:
            min_length = current_length
        if current_length > max_length:
            max_length = current_length
    
        # Check if all winning numbers are included in the all_other_numbers
        if set(winning_numbers).issubset(all_other_numbers):
            favorable_cases += 1
    
        # Print progress
        if (i + 1) % progress_interval == 0:
            elapsed_time = time.time() - start_time
            percentage = (i + 1) / simulations * 100
            estimated_total_time = (elapsed_time / (i + 1)) * simulations
            remaining_time = estimated_total_time - elapsed_time
            print(f"Progress: {percentage:.2f}% | Elapsed Time: {elapsed_time:.2f}s | Estimated Remaining Time: {remaining_time:.2f}s")
    
    # Probability estimation
    probability = favorable_cases / simulations
    
    # Print final results
    print(f"Minimum length of all_numbers across simulations: {min_length}")
    print(f"Maximum length of all_numbers across simulations: {max_length}")
    print(f"Estimated probability of NOT including all winning numbers in any of the 5 sets (after {simulations} simulations): {probability:.10f}")

    Minimum length of all_numbers across simulations: 15
    Maximum length of all_numbers across simulations: 30
    Estimated probability of NOT including all winning numbers in any of the 5 sets (after 1000000 simulations): 0.0103890000

     


    3. 반대의 경우 : 1등 번호를 모두 포함할 때

    https://allcalc.org/45197

    Attached file
    image.png 4.9KB 44
    이 게시물을..
    N
    0
    0
    • 세상의모든계산기 25
      세상의모든계산기

      계산기는 거들 뿐
      혹은
      계산기를 거들 뿐

    세상의모든계산기 님의 최근 글

    ban 설정 강화 77740 1 2026 05.09 정적분 구간에 미지수가 있고, solve 를 사용할 수 없을 때 그 값을 확인하려면? 2699 4 2026 04.10 높아질수록 좁아지는 시야에 대하여 - written by ChatGPT 12581 2026 02.12 내가 올해 몇살이더라? (내 나이 계산기) 10036 2026 02.11 AGI 자기 거버넌스 구조와 인간-AGI 관계 모델 (written by GEMINI & GPT) 13070 1 2026 01.30

    세상의모든계산기 님의 최근 댓글

    본문의 변환 위젯에 사용된 전서체 폰트는 대만의 최고 학술 연구 기관인 중앙연구원(Academia Sinica)에서 제공하는 ‘숭희전체(崇羲篆體)’로 전통 한자 서체인 소전(小篆)을 현대 컴퓨터 폰트(글꼴)로 구축한 오픈소스 프로젝트로 개발되었습니다. https://xiaoxue.iis.sinica.edu.tw/chongxi/download.htm 2026 10.20 예제1)      예제2)       예제3)      추가옵션    2026 10.18 PC 소프트웨어에서 script Editor 로 소스코드를 쉽게 복사 -> AI에게 문의/개선요청 할 수 있습니다. 잘 되거나, 잘 안되는 부분이 있으면 대댓글 남겨주세요. 2026 10.16 AI로 딸깍하니까, lua 프로그램으로 바꿔주네요. 세상 참... 본문의 ti-basic 기반으로 만들었고, 서로 문제를 일으킬 수 있을 듯 하여 별개의 파일로 작성하였습니다.  1.1 Page : 설명 1.2 Page : 그래프  1.3 Page : Calculator     사용법  Root Locus 1+K*N/D=0    EX: (6s^2+5s+2)/(6s^3(s^2+7s+16)) INPUT (Calculator page 1.3 ):    rl_num:={6,5,2}    rl_den:={6,42,96,0,0,0}  or    num(6s^2+5s+2)    den(6s^3(s^2+7s+16))    optional:   rl_T:=10  rl_D:=1  Coeffs are descending powers of s.  Back on graph page it refreshes itself,  else press [r] or [enter].  KEYS: [+] [-] Kmax zoom, [0] reset, [r] reload  MARKS: x=pole, o=zero, red line=real axis,  gray dash=asymptote, box=break pt, diamond=j-cross  VARS: rl_Kmax rl_sigma rl_r rl_JK rl_Jw    첨부파일 rlocus_lua.tns   2026 10.16 링크가 깨졌다고 하시니   404 에러가 나는 아래 링크를 말씀하시는 것 같은데  https://digilander.libero.it/fpirozzi/fourier.zip 이것은 TI-89 / TI-92 용 파일이며    [TI-92][TI-89] Fourier Transform Library https://allcalc.org/52455 링크의 Attached files + 안에 있습니다.  2026 09.11
    글쓴이의 서명작성글 감추기 

    댓글1

    • Profile 0
      세상의모든계산기
      2024.07.30 - 20:38 2024.07.30 - 20:34 #45329

      등위별 당첨 확률

       

      등위 당첨방법 당첨확률 당첨금의 배분 비율
      1등 6개 번호 일치

      1 / 8,145,060

      =0.00001228%

      총 당첨금 중 4등, 5등 금액을 제외한 금액의 75%
      2등 5개 번호 일치
      + 보너스 번호일치
      1 / 1,357,510
      =0.00007366% 
      총 당첨금 중 4등, 5등 금액을 제외한 금액의 12.5%
      3등 5개 번호 일치

      1 / 35,724

      =0.00279924%

      총 당첨금 중 4등, 5등 금액을 제외한 금액의 12.5%
      4등 4개 번호 일치

      1 / 733

      =0.136425645%

      50,000원
      5등 3개 번호 일치

      1 / 45

      =2.222222222%

      5,000원
      댓글
    • 댓글 입력
    • 에디터 전환
    댓글 쓰기 에디터 사용하기 닫기
    • view_headline 목록
    • 14px
    • 목록
      view_headline
    1
    × CLOSE
    전체 수학 64 확률통계 18 공학 13 물리학 2 화학 3 생물학 재무금융 10 기타 2
    기본 (0) 제목 날짜 수정 조회 댓글 추천 비추
    분류 정렬 검색
    등록된 글이 없습니다.
    • 세상의 모든 계산기 수학, 과학, 공학 이야기
    • 세상의모든계산기
    • 사업자등록번호 703-91-02181
    • 세모계 all rights reserved.