본문 바로가기

분류 전체보기206

[문제풀이] Hacker Rank - Weather Observation Station 20 출처 Weather Observation Station 20 | HackerRankQuery the median of Northern Latitudes in STATION and round to 4 decimal places.www.hackerrank.com  문제A median is defined as a number separating the higher half of a data set from the lower half. Query the median of the Northern Latitudes (LAT_N) from STATION and round your answer to decimal places 4. Input Format 문제에 대한 해석LAT_N의 중간값을 4쨰자리까지 표현하라중간값 .. 2024. 6. 10.
[문제풀이] Hacker Rank - Binary Tree Nodes 출처 Binary Tree Nodes | HackerRankWrite a query to find the node type of BST ordered by the value of the node.www.hackerrank.com 문제You are given a table, BST, containing two columns: N and P, where N represents the value of a node in Binary Tree, and P is the parent of N.Write a query to find the node type of Binary Tree ordered by the value of the node. Output one of the following for each node:.. 2024. 6. 10.
[도서] 컨버티드 : 마음을 훔치는 데이터 분석의 기술 닐 호인의 컨버티드 책을 요약했습니다  누구의 마음을 훔칠 것인가? 모든 고객을 일회적으로 대하지 말것, 새로운 고객을 만나는게 어렵다는 핑계로 우리 상품에 조금이라도 관심을 보이는 사람을 처음부터 포기하지 말것! 그러나 모든 사람의 가치가 동일한가? (당신은 모든 사람과 친한가요?)100명의 고객을 보아도 회사에 매출을 올려주는 매출액을 기준으로 보면회사가 평가하는 사람의 가치는 모두 다르다 (데이터로) 회사의 충성고객을 찾아라누가 우리와 (언제까지) 함께할 고객인지 알 수 있을까 ?고객의 고객생애가치를 계산해라 : Customer Lifetime Values 1. 필요한 데이터 : 거래날짜, 금액(매출액보다는 영업이익), 식별 아이디수집기간은 평균 구매주기*6 또는 24개월 중 더 긴쪽예를들어 36개.. 2024. 6. 9.
[문제풀이] Hacker Rank - Weather Observation Station 18, 19 출처문제 18Consider p1(a,b)  and 소2(c,d) to be two points on a 2D plane.a happens to equal the minimum value in Northern Latitude (LAT_N in STATION).b happens to equal the minimum value in Western Longitude (LONG_W in STATION).c happens to equal the maximum value in Northern Latitude (LAT_N in STATION).d happens to equal the maximum value in Western Longitude (LONG_W in STATION).Query the Manhattan .. 2024. 6. 8.
[도서] 수학보다 데이터 문해력 정성규 교수님의수학보다 데이터 문해력 발췌 통계적 가설검정의 딜레마 좋은 가설검정의 방법은 오류 발생률이 낮은 것을 선택하는 것귀무가설 기각 > 1종오류 : 귀무가설이 사실인데 대립가설을 선택하는 오류귀무가설 채택 > 2종 오류 : 대립가설이 사실인데 귀무가설을 선택하는 오류 두 오류는 하나를 얻으려면 다른 하나를 포기해야 하는 트레이드 오프 관계1종 오류는 귀무가설이 사실인 차원에서만 존재하고2종오류는 귀무가설이 거짓인 차원에서만 존재한다 그렇다면, 두 오류중 더 문제가 되는 것은?첫번째 오류가 더 충격이 큼2종 오류의 경우 원래 잘못 알고 있던(귀무가설)을 계속 믿는 것인데1종 오류의 경우 원래 알고 있는게 사실인데 잘못된 선택을 하는것 > 더 악화 해결책(이라기 보다는 대안) 첫번째 오류 발생률을 .. 2024. 6. 7.
[문제풀이] Hacker Rank - Weather Observation Station 17 출처 문제Query the Western Longitude (LONG_W)where the smallest Northern Latitude (LAT_N) in STATION is greater than 38.7780 Round your answer to  decima 4 places. 문제에 대한 해석조건 : LAT_N가 38.7780보다 큰 것중에 가장 작은 경우의 조회 : LONG_W(반올림하여 소수점 4자리까지) 풀이(MYSQL)-- 정답1. 38.7780조건 > 정렬 > limitSELECT ROUND(LONG_W,4)FROM STATIONWHERE LAT_N> 38.7788ORDER BY LAT_NLIMIT 1-- 정답2. 38.7780조건에 충족하는 테이블 > 최솟값 조건 with tm.. 2024. 6. 7.