1. Learn
  2. /
  3. Courses
  4. /
  5. Python으로 배우는 Market Basket Analysis

Connected

Exercise

신뢰도로 지지도 보완하기

이전 연습 문제에서 결과를 보고하자, 도서관은 관계의 방향성에 대해 묻습니다. Harry Potter로 Twilight를 홍보하는 것이 좋을까요, 아니면 Twilight로 Harry Potter를 홍보하는 것이 좋을까요?

이를 고민한 끝에, 방향성을 갖는 지표인 신뢰도(confidence)를 계산하기로 합니다. {Potter} \(\rightarrow\) {Twilight}와 {Twilight} \(\rightarrow\) {Potter} 두 경우 모두 계산할 거예요. 각 도서에 해당하는 열 Potter와 Twilight를 가진 DataFrame books는 이미 불러와져 있습니다.

Instructions

100 XP
  • {Potter, Twilight}의 지지도를 계산하세요.
  • {Potter}의 지지도를 계산하세요.
  • {Twilight}의 지지도를 계산하세요.
  • {Potter} \(\rightarrow\) {Twilight}와 {Twilight} \(\rightarrow\) {Potter}의 신뢰도를 계산하세요.