실제 임금·국가·고객 자료로 폭·축·가중치·분모를 바꾸어 읽기Explore widths, axes, weights and denominators in actual wage, country and customer records
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 그림을 그리기 전에 질문을 한 문장으로 쓴다1. Write a question before choosing a plot
“어느 반이 더 잘했을까?”라는 질문에는 반별 평균, 점수 분포, 시험 응시율이 서로 다른 답을 줄 수 있습니다. 먼저 한 점이 누구인지, 무엇을 비교하는지, 빠진 값이 몇 개인지 적습니다. 그림은 이 질문을 보이게 하는 표현이며, 프로그램이 만든 모양 자체가 답의 타당성을 보증하지는 않습니다.
이 장은 관측 0과 미관측을 나누는 작은 표에서 시작합니다. 실제 1976년 임금 기록의 히스토그램, 2024년 16국 지표의 가중 표적, 고객 기록의 서로 다른 분모로 이어갑니다. 마지막에는 탐색에서 발견한 패턴과 새 자료로 확인할 주장을 구별합니다.
보관 Python·R 코드는 실제 실행해 수치와 SVG를 남겼습니다. 별도로 히스토그램 실습은 원행을 JavaScript로 다시 세어 구간 수를 즉시 바꿉니다. 두 계산 경로를 화면에서 구별하며, 브라우저가 Python·R을 실행했다고 쓰지 않습니다.
“Which class did better?” can refer to class means, score distributions or exam participation. State what one point represents, what comparison is intended and how many values are unavailable. A plot expresses a question; a program’s successful drawing does not establish a valid interpretation.
Begin with observed zero versus unavailable values. Continue with actual 1976 wage histograms, weighted targets for 16 selected countries in 2024 and different denominators in customer records. Finally, distinguish patterns discovered during exploration from claims requiring subsequent validation.
Archived Python/R programs actually produced numerical output and SVG files. Separately, the histogram lab recomputes original rows in JavaScript as its bin count changes. The page identifies these two routes and does not claim to execute Python or R.
기초Foundations
2. 탐색은 표·그림·정의 사이를 왕복한다2. Exploration moves between definitions, tables and plots
탐색적 자료 분석은 요약 숫자를 하나 내는 것으로 끝나지 않습니다. 원행을 보고 변수를 정의하고, 개수와 범위를 확인하고, 그래프에서 의문을 발견하면 원행으로 돌아갑니다. 모양이 이상하다는 이유만으로 값을 지우거나 새 모형을 사실로 선언하지 않습니다.
예를 들어 큰 임금 하나를 발견했다면 단위가 센트인지 달러인지, 다른 시점의 수치인지, 원문에 같은 값이 있는지부터 확인합니다. 원자료와 일치하는 큰 값도 있을 수 있습니다. 관측의 진실성을 완전히 확인했다는 주장과 파일·계산의 일치 검사는 다른 범위입니다.
Exploratory data analysis does more than produce one summary. Inspect records, define variables, check counts and ranges, draw a view, then return to the source when a pattern raises a question. An unusual shape alone does not justify deletion or establish a model as fact.
For a large wage, first check cents versus dollars, reference year and correspondence to the retained source. A large value can agree with the original record. File and arithmetic agreement remain distinct from complete verification of the underlying measurement.
기초Foundations
3. 한 점·한 막대·한 행의 단위를 맞춘다3. Align the units of rows, points and bars
원표의 한 행이 사람이라면 한 점은 사람 한 명의 값일 수 있습니다. 그러나 히스토그램 막대 하나는 사람 한 명이 아니라 구간에 들어간 여러 기록의 요약입니다. 한 막대의 높이를 개인의 임금처럼 읽으면 단위가 바뀝니다.
국가 지표의 한 점은 국가 단위 1인당 GDP입니다. 인구가 많은 국가의 점이 사람 수만큼 복제된 원 개인 자료를 관측했다는 뜻은 아닙니다. 고객의 두 막대도 각각 수천 행을 묶은 범주 요약입니다. 요약 전 원행의 단위를 그림 설명에 함께 남깁니다.
If a source row is a person, a dot can represent that person’s value. A histogram rectangle instead summarizes many records in an interval. Its height is not one person’s wage.
A country dot is a country-level GDP-per-capita indicator. Population weighting does not turn it into observed individual income records. Likewise, two customer bars summarize categories containing many source rows. Keep the underlying observational unit attached to every aggregate display.
기초Foundations
4. 관측 0과 비어 있는 칸을 따로 센다4. Count observed zero separately from missingness
가정 값 (0,2,미관측,4)는 원행 4개·가용값 3개입니다. 가용합은 6이고 평균은 6/3=2입니다. 미관측을 0으로 넣으면 6/4=1.5가 됩니다. 뒤의 숫자는 다른 대체 가정으로 계산한 값이며 원자료의 복구가 아닙니다.
관측 0은 실제 측정된 수량입니다. 그래프에서 높이가 0이거나 빈 구간이 생기는 것과 그 변수 자체가 미관측인 것은 다릅니다. 범주가 없는 행, 값이 없는 행, 구간 빈도 0을 하나의 상태로 합치지 않습니다.
Toy values (0,2, unavailable,4) have four source rows and three available values. Their available sum is six and available mean is two. Replacing the unavailable value with zero instead gives 1.5 under a different assumption; it does not recover a missing observation.
Observed zero is an available quantity. A zero-height bar or empty interval also differs from an unavailable source value. Distinguish an absent category, a missing value and a zero interval count.
기초Foundations
5. 사용하는 변수마다 가용 분모를 다시 쓴다5. Recompute availability for the selected variable
실제 Card 원행은 3,613개입니다. 원 시간당 임금은 3,017개가 가용하고 596개가 없습니다. 원자료에서 극단값을 정리한 별도 로그 임금은 3,010개가 가용하고 603개가 없습니다. 원임금이 있지만 정리 로그가 없는 7개도 그대로 남깁니다.
이 장의 임금 히스토그램은 원임금 3,017개가 분모입니다. 로그 요약의 3,010을 가져오거나 전체 원행 3,613을 쓰면 다른 비율이 됩니다. 1976년 센트/시간을 100으로 나눈 달러/시간이며 현재 가격의 임금으로 바꾸지 않았습니다.
The actual Card file has 3,613 source rows. Raw hourly wages are available for 3,017 and unavailable for 596. The distinct source-trimmed log variable is available for 3,010 and unavailable for 603. Preserve the seven records with a raw wage but no trimmed log.
This chapter’s raw-wage histogram uses 3,017 available raw values. Using 3,010 logs or all 3,613 roster rows changes the proportion. Divide original 1976 cents per hour by 100 to obtain 1976 dollars per hour; this is not conversion to current prices.
기초Foundations
6. 평균·중앙값·범위를 서로 다른 요약으로 읽는다6. Read mean, median and range as different summaries
가정 값 (1,2,3,4,20)의 평균은 6이고 중앙값은 3입니다. 둘의 차이는 계산 실패가 아니라 서로 다른 요약의 결과입니다. 큰 값의 영향이 의심되면 원행을 보며 분포를 함께 그립니다. 평균과 중앙값 중 하나가 언제나 더 옳다는 순위를 붙이지 않습니다.
실제 가용 원임금의 평균은 86903/15085≈5.7608883, 중앙값은 107/20=5.35달러/시간입니다. 최솟값 0.25, 최댓값 24.04는 이 보관 자료의 범위입니다. 그 범위를 신뢰구간이나 전체 사회의 임금 지지집합이라고 부르지 않습니다.
Toy values (1,2,3,4,20) have mean six and median three. Their difference reflects different summaries rather than failed arithmetic. Inspect source values and the distribution when a large value matters. Neither statistic is universally the correct one for every question.
The actual available raw-wage mean is 86903/15085≈5.7608883 and the median is 107/20=5.35 dollars per hour. The retained range is 0.25 to 24.04. That observed range is neither a confidence interval nor an established support bound for the wider population.
기초Foundations
7. 짧은 실제 코드에서 분모를 찾는다7. Find the denominator in a short actual program
다음 프로그램은 가정 자료를 실제 Python에서 실행한 코드와 출력입니다. is not None으로 관측 0을 남기며 가용수로 나눕니다. 단순히 참인 값만 남기는 필터를 쓰면 0이 사라질 수 있어 같은 코드가 아닙니다.
import sys
sys.stdout.reconfigure(encoding="utf-8")
sys.stderr.reconfigure(encoding="utf-8")
import csv,json
from pathlib import Path
from fractions import Fraction
def load_csv(path):
with open(path,encoding="utf-8-sig",newline="") as handle:
return list(csv.DictReader(handle))
values=[0,2,None,4]
available=[x for x in values if x is not None]
print(json.dumps(dict(sourceCount=len(values),availableCount=len(available),missingCount=len(values)-len(available),observedZeroCount=available.count(0),availableSum=sum(available),availableMean=sum(available)/len(available),availableMedian=sorted(available)[len(available)//2],rawValues=values,zeroFillWasPerformed=False)))
R 대응은 !is.na(values)로 가용값을 고릅니다. 숫자 계산과 화면 출력, 원파일의 자료 정의를 구별합니다. 실제 원임금 계산 프로그램은 같은 실습의 사람 자료 선택에서 전체 소스와 입력 SHA를 확인할 수 있습니다.
This complete program and output come from an actual Python run on toy data. The test is not None retains observed zero and divides by the available count. A truth-value filter can drop zero and is a different program.
import sys
sys.stdout.reconfigure(encoding="utf-8")
sys.stderr.reconfigure(encoding="utf-8")
import csv,json
from pathlib import Path
from fractions import Fraction
def load_csv(path):
with open(path,encoding="utf-8-sig",newline="") as handle:
return list(csv.DictReader(handle))
values=[0,2,None,4]
available=[x for x in values if x is not None]
print(json.dumps(dict(sourceCount=len(values),availableCount=len(available),missingCount=len(values)-len(available),observedZeroCount=available.count(0),availableSum=sum(available),availableMean=sum(available)/len(available),availableMedian=sorted(available)[len(available)//2],rawValues=values,zeroFillWasPerformed=False)))
The R counterpart selects with !is.na(values). Numerical operations, printed output and source definitions are separate layers. Select person records in the lab to inspect the complete raw-wage driver and input hash.
기초Foundations
8. 실습 A · 원행과 가용 요약을 연결한다8. Lab A · connect source counts and available summaries
가정 자료에서 원행 4개·가용 3개·관측 0 한 개를 먼저 예상하세요. 실제 사람 자료에서는 원임금과 정리 로그의 가용수를 따로 적습니다. Python·R 보관 실행을 바꿔 숫자와 코드가 같은 질문을 표현하는지 확인합니다.
실행 성공은 선택한 코드의 종료 상태입니다. 그 요약이 모든 사람의 임금을 대표한다거나 결측이 무작위라는 인증은 아닙니다. 뒤의 그림도 같은 가용 분모와 한계를 이어받습니다.
Predict four source rows, three available toy values and one observed zero. For actual people, separately record raw-wage and trimmed-log availability. Compare actual archived Python/R code and output for the same declared question.
A successful exit is a program state, not certification of population representation or random missingness. Subsequent plots inherit the same available denominator and limitations.
기초Foundations
9. 구간의 양끝을 먼저 정한다9. Declare interval endpoints before counting
작은 가정 값 0,2,4를 [0,2),[2,4]에 넣으면 빈도는 1,2입니다. 경계 2는 오른쪽 구간, 마지막 끝값 4는 마지막 구간입니다. 두 구간을 모두 닫으면 2를 두 번 셀 수 있고 모두 열면 빠질 수 있습니다.
이 장은 왼쪽을 포함하고 오른쪽은 제외하되 마지막 오른끝은 포함합니다. 실제 원임금의 비균등 구간 경계는 달러/시간 단위 0,2,4,8,16,25입니다. 5개 구간이 모든 원임금 최솟값·최댓값을 포함하는지도 별도로 검사합니다.
Place toy values 0,2,4 into [0,2),[2,4]. Counts are one and two: boundary two belongs to the right interval and the final endpoint four is included. Closing both neighboring intervals double-counts two; opening both can omit it.
This chapter uses left-closed/right-open bins except for the final closed endpoint. Actual unequal-width wage boundaries in dollars per hour are 0,2,4,8,16,25. Separately check that the displayed range contains all available source values.
기초Foundations
10. 개수와 상대빈도의 분모를 쓴다10. State count and relative-frequency denominators
가용 n≥1개를 겹치지 않는 구간에 넣고 j구간 빈도를 cⱼ라 하면 상대빈도는 cⱼ/n입니다. 가용값이 0개이면 상대빈도와 밀도는 미정의입니다. 전체 가용값을 빠짐없이 덮으면 빈도 합은 n, 상대빈도 합은 1입니다. 표시 범위 밖 값이 있으면 분모를 원 가용 n으로 유지한 합은 1보다 작을 수 있습니다.
pj=ncjj∑pj=nninside
실제 비균등 다섯 구간의 빈도는 48,723,1759,467,20이며 합은 3,017입니다. 미관측 596개를 첫 구간에 넣지 않았습니다. 범위 밖 값 0개도 결과에 표시해 조용한 제외가 없었는지 확인합니다.
For n≥1 available values in disjoint bins, count cⱼ gives relative frequency cⱼ/n. With zero available values, relative frequencies and densities are undefined. Complete coverage gives total count n and total relative frequency one. If some values lie outside the display, retaining the original n gives a smaller sum.
pj=ncjj∑pj=nninside
The five actual unequal-bin counts are 48,723,1759,467,20, totaling 3,017. The 596 unavailable wages are not placed into the first bin. Report even the zero outside count so omissions remain visible.
기초Foundations
11. 구간 폭이 다르면 높이를 폭으로 나눈다11. Divide by bin width when widths differ
폭이 다른 막대에서 높이를 상대빈도로만 두면 넓은 구간은 같은 비율에도 더 큰 면적을 차지합니다. 밀도 히스토그램은 구간 폭 wⱼ>0으로 다시 나눕니다. 높이의 단위는 임금 단위의 역수이고 넓이 cⱼ/n은 무차원입니다.
hj=nwjcjhjwj=ncj
[4,8)의 빈도 1,759는 [8,16)의 467보다 크지만 폭도 각각 4와 8입니다. 두 구간의 밀도는 1759/(3017×4),467/(3017×8)입니다. 실제 수평 폭을 4와 8로 그려야 넓이가 상대빈도와 맞습니다. 모든 막대를 같은 폭으로 배치한 범주 그림과 구별합니다.
With unequal widths, relative-frequency heights alone give wider bins more area for the same share. A density histogram divides by positive width wⱼ. Height has reciprocal-wage units; area cⱼ/n is dimensionless.
hj=nwjcjhjwj=ncj
Intervals [4,8) and [8,16) contain 1,759 and 467 records with widths four and eight. Their densities are 1759/(3017×4) and 467/(3017×8). Draw the actual widths to make area represent share. Equal-width categorical rectangles would encode a different geometry.
기초Foundations
12. 높이 1과 확률 1을 혼동하지 않는다12. Do not equate density height one with probability one
가정 두 값이 폭 0.1인 한 구간에 모두 있으면 상대빈도는 1이고 밀도 높이는 10입니다. 높이가 1을 넘는 것은 오류가 아닙니다. 넓이 10×0.1=1이 전체 비율입니다. 구간 폭을 0.05로 바꾸면 같은 질량을 담은 높이는 20일 수도 있습니다.
히스토그램은 가용 기록을 구간으로 묶은 표시입니다. 구간 안의 모든 값이 실제로 균등하게 분포했다는 관측이나 연속 확률밀도의 존재 증명이 아닙니다. 별도로 구간 내 균등 모형을 쓰려면 가정임을 밝혀야 합니다. 경험적 점질량과 그 모형의 밀도를 혼합하지 않습니다.
If two toy values both lie in one bin of width 0.1, its share is one and density height is ten. A height above one is valid: area ten times 0.1 equals one. A narrower bin containing the same mass can have an even larger height.
A histogram groups available records. It does not observe a uniform distribution inside each bin or prove that a continuous PDF exists. A within-bin uniform model is an additional assumption; keep its density distinct from empirical point masses.
기초Foundations
13. 달러를 센트로 바꾸면 밀도 높이는 작아진다13. Changing dollars to cents lowers density heights
숫자 Y=100X로 달러/시간을 센트/시간으로 바꾸면 구간 폭은 100배이고 해당 구간의 원행 수는 같습니다. 상대빈도와 넓이는 같지만 밀도 높이는 1/100배입니다. y축 이름도 센트/시간의 역단위로 바꿔야 합니다.
이 관계는 단위 변환이지 임금 삭감이 아닙니다. 그림의 수치 높이만 비교해 분포가 바뀌었다고 결론내리지 않습니다. 이 장은 원 센트 정수로 구간을 판정한 다음 표시 단위를 바꿔 끝점의 이중계산을 피합니다.
Converting dollars/hour X to cents/hour Y=100X multiplies each corresponding bin width by 100 and leaves its records unchanged. Shares and areas stay fixed; density heights divide by 100. The vertical unit must change too.
This is a unit conversion, not a wage reduction. Comparing numerical heights without units can invent a distribution change. Membership is determined from original integer cents before converting display coordinates.
기초Foundations
14. 구간 수를 바꾸고도 원행은 보존한다14. Vary the bins while preserving original rows
구간 하나는 전체를 한 덩어리로 보여 주고 많은 구간은 작은 굴곡을 드러냅니다. 너무 작은 자료에서 많은 구간을 쓰면 빈 칸이 늘고, 넓은 구간은 다른 모양을 가릴 수 있습니다. 어느 한 구간 수가 모든 질문에 최선이라는 보편 규칙으로 쓰지 않습니다.
live 모드는 [0,2500]센트 범위를 k=1~30개의 같은 폭으로 나눕니다. 각 원 센트 v에 대해 kv를 2500의 정수 배 경계와 비교합니다. 마지막 2500은 마지막 구간에 넣습니다. 모든 원행·미관측·범위 밖 수를 남기고, k=5의 결과는 같은 끝점을 쓴 실제 Python·R 기준과 대조합니다.
One bin collapses the distribution into a block; more bins expose smaller features. Many bins can create empty intervals in small data, while wide bins conceal variation. No single bin count is universally optimal for every question.
Live mode partitions [0,2500] cents into k equal bins for k from one through thirty. It compares integer kv with integer multiples of 2500, assigning the final endpoint 2500 to the final bin. Preserve all source, missing and outside counts. The five-bin result is compared with actual Python/R records using identical boundaries.
기초Foundations
15. 실제 막대 폭과 그리기 기본값을 확인한다15. Check actual widths and plotting defaults
이 장의 Python은 빈도·폭·밀도를 먼저 계산한 뒤 ax.bar(...,width=widths,align="edge")로 실제 폭을 그립니다. R은 같은 명시적 구간 판정 후 rect로 그립니다. 원행에서 수치 요약과 그림을 모두 생성했으며 그림만 손으로 그려 언어 실행이라고 붙이지 않았습니다.
이 짧은 부분은 실제 프로그램의 계산을 설명하도록 다시 쓴 예이며 전체 실행 파일과 동일한 소스라고 부르지 않습니다. 전체 실제 소스는 실습에서 내려받습니다. R hist의 기본 오른닫음·수치 허용폭이나 라이브러리의 범위 내 재정규화를 이 명시적 계산과 같다고 가정하지 않습니다.
Python computes counts, widths and densities before drawing actual widths with ax.bar(...,width=widths,align="edge"). R uses the same explicit membership rule followed by rect. Programs generated both summaries and graphics from original records.
This explanatory excerpt restates the calculation; it is not claimed to be the identical complete archived source. Download that source in the lab. R hist defaults for right-closed intervals/tolerance, and library normalization within a display range, need not match this explicit contract.
기초Foundations
16. 실습 B · 즉시 다시 세고 실제 실행과 비교한다16. Lab B · recompute immediately and compare actual runs
live 구간 수를 1,5,30으로 바꿔 막대와 표가 즉시 바뀌는지 보세요. 이것은 원행에 대한 JavaScript 집계입니다. 가용 3,017·미관측 596·정리 로그 가용 3,010과 범위 밖 0을 확인합니다. 5개일 때 같은 폭 기준 실행과 일치하는지 확인하고 달러·센트를 전환하세요.
보관 모드에서는 비균등/균등 5개 구간을 실제로 생성한 Python·R SVG와 표를 읽습니다. 미관측을 0으로 채우거나 범위 밖 값을 자동 재정규화하지 않습니다. 빈 구간의 빈도 0과 미관측 기록의 수를 따로 보고합니다.
Change live bin counts to one, five and thirty and watch the table and rectangles update. This is JavaScript aggregation of original rows. Check 3,017 raw values, 596 unavailable wages, 3,010 available trimmed logs and zero outside values. At five bins, compare the fixed equal-bin execution and switch dollars/cents.
Archived mode displays actual Python/R SVGs and tables for unequal/equal five-bin choices. Neither route fills missing values with zero or silently renormalizes outside records. An empty bin and unavailable source values are reported separately.
기초Foundations
17. 막대 길이가 나타내는 숫자를 확인한다17. Check what a bar length actually encodes
가정 A=95,B=100을 0에서 시작하는 세로 막대로 그리면 길이의 비는 100/95=20/19≈1.05263입니다. 두 값의 차이는 5이고 A를 기준으로 한 증가율은 5/95≈5.263%입니다. 차이·비율·백분율 변화는 서로 다른 질문입니다.
같은 값을 90에서 시작하면 보이는 길이는 5와 10이고 비는 2가 됩니다. 원값이 두 배가 된 것은 아닙니다. 길이로 전체 크기를 비교하는 막대는 0 기준을 써야 그 해석과 맞습니다. 관심 차이를 확대할 목적이면 기준 생략을 명확히 밝히고 점 그림 등 다른 표현을 검토합니다.
Toy bars A=95, B=100 drawn from zero have length ratio 100/95=20/19≈1.05263. Their difference is five; the increase relative to A is 5/95≈5.263%. Difference, ratio and percentage change answer distinct questions.
Starting the same bars at 90 gives visible lengths five and ten, with ratio two. The observations did not double. Zero-based bars support comparisons of full magnitudes by length. If zooming is needed to inspect differences, disclose the omitted baseline and consider a dot display.
기초Foundations
18. 확대와 관측값 변경을 분리한다18. Separate zooming from changing observations
축을 확대해 작은 차이를 읽는 것이 언제나 잘못은 아닙니다. 문제는 확대된 길이를 원값 비율로 읽게 하면서 그 변환을 숨기는 경우입니다. 확대 범위·눈금·원값 숫자를 함께 표시하면 어떤 비교인지 드러납니다. 축을 자른 선 모양 자체가 모든 독자에게 충분한 설명이라고 가정하지 않습니다.
실습의 0 기준과 90 기준은 같은 가정값 95·100을 사용합니다. 점수 95·100을 실제 국가나 임금 자료라고 붙이지 않습니다. y축의 원점 변경은 단위 환산도 로그 변환도 아니며, 원값 차이 5와 비율 20/19는 그대로입니다.
Zooming to inspect a small difference is not inherently wrong. The problem is concealing the transformation while inviting a full-value ratio interpretation of truncated lengths. Show the range, ticks and source numbers together; do not presume an axis-break mark alone explains everything to every reader.
The zero and 90 baselines use the same toy values 95 and 100, without presenting them as observed country or wage records. Baseline changes are neither unit conversion nor logarithmic transformation. The source difference five and value ratio 20/19 remain unchanged.
기초Foundations
19. 길이·넓이·색의 역할을 밝힌다19. Declare the roles of length, area and color
원의 반지름을 수치에 비례시키면 넓이는 수치의 제곱에 비례합니다. 가정 두 수 1,2를 반지름 1,2로 그리면 넓이는 1:4입니다. 넓이로 비율 1:2를 보이려면 반지름의 비를 1:√2로 정해야 합니다. 어떤 시각 속성에 무엇을 대응시켰는지 밝히는 것이 출발입니다.
범주 두 개를 색만으로 구별하면 색을 구분하기 어려운 독자가 내용을 놓칠 수 있습니다. 문자 라벨·범례·표를 함께 둡니다. 이 장이 실제 보조기기 사용자 시험이나 모든 환경의 접근성 검증을 마쳤다는 주장은 하지 않습니다. 읽을 수 있는 대체 수치와 명확한 표식을 제공하는 설계 원칙을 연습합니다.
If a circle’s radius is proportional to a value, its area is proportional to the square of that value. Toy values one and two shown with radii one and two have area ratio one to four. Encoding an area ratio one to two instead requires radius ratio one to √2. Declare the visual mapping.
Color alone can hide category distinctions from readers who cannot distinguish those colors. Add labels, legends and numerical tables. This chapter does not claim completed assistive-technology user testing or universal accessibility certification; it practices providing explicit, readable alternatives.
기초Foundations
20. 서로 다른 단위의 두 축을 그대로 밝힌다20. Label both axes of a scatterplot with their units
가정 학생의 공부 시간과 시험 점수를 그리면 한 점은 같은 학생의 두 값입니다. x가 시간이고 y가 점수이므로 한 축의 한 칸과 다른 축의 한 칸은 같은 물리량이 아닙니다. 그림이 정사각형이어야 관계가 올바르다는 규칙도 없습니다.
값이 있는 짝만 산점도에 쓴다면 두 열의 공통 가용수를 보고해야 합니다. 각각의 가용수가 100이라는 사실만으로 같은 100개 짝이 있는 것은 아닙니다. 한 점의 원행을 추적하고, 겹친 점이 여러 기록일 수도 있음을 확인합니다. 겹침을 줄이려고 임의로 흔든 좌표는 원 측정 좌표와 구별해 공개합니다.
A study-hours versus test-score dot represents two values for the same student. Hours and score points are different units; equal pixel distances on the two axes do not equate physical quantities. A square frame is not a validity requirement.
If a scatterplot uses complete pairs, report the common available count. Two columns each having 100 available values need not provide the same 100 complete pairs. Trace source rows and overlapping points. Disclose any jitter added for visibility as a display modification rather than an original measurement.
양의 값 1,10,100은 로그 10 축에서 0,1,2가 되어 같은 간격입니다. 차이 9와 90이 같은 간격으로 보이는 이유는 비율이 둘 다 10이기 때문입니다. 로그를 취한 수치와 원수치의 눈금 표시를 구별하며, y축이 로그라면 높이 차이를 원단위의 차이라고 바로 읽지 않습니다.
0과 음수는 실수 로그의 정의역 밖입니다. 0에 임의의 작은 상수를 더하면 새로운 변환이며 모든 단위에서 같은 모양을 보장하지 않습니다. 미관측을 0으로 바꾼 뒤 로그에서 지우는 작업도 정당한 결측 처리로 숨기지 않습니다. 이 장의 실제 임금 그림은 원 단위의 선형 축을 기본으로 사용합니다.
Positive values 1,10,100 map to 0,1,2 on a base-ten log axis. Differences nine and ninety appear equally spaced because both ratios are ten. Distinguish transformed coordinates from original-value tick labels; a vertical log gap is not a raw-unit difference.
Zero and negatives lie outside the real logarithm’s domain. Adding a small constant is a new transformation and need not behave equivalently under a unit change. Replacing missingness with zero and dropping it at the log step must not be hidden as valid missing-data recovery. Actual wage plots here use original-unit linear axes by default.
기초Foundations
22. 비교할 패널에서는 같은 눈금을 점검한다22. Check common scales across comparison panels
가정 두 반의 점수 범위가 A는 0~100,B는 90~100인데 각 패널을 자기 범위에 꽉 차게 그리면 변화 폭이 같아 보일 수 있습니다. 같은 크기의 변화를 비교하려면 공통 축을 쓰거나 서로 다른 축이라는 점을 명확히 드러냅니다. 작은 범위의 세부를 읽는 별도 확대 그림도 가능합니다.
범주 순서도 질문에 맞게 정합니다. 국가 이름 순서·지표 순서·연도 순서는 서로 다릅니다. 국가들을 GDP 순으로 정렬하고 선으로 잇는다고 국가 사이 시간 경로가 생기지 않습니다. 시간축에는 실제 시점 간격을, 범주축에는 선언한 라벨을 사용합니다.
Toy class A spans scores zero through 100, while B spans 90 through 100. Expanding each panel to fill its own range can make their variability look similar. Use common scales for magnitude comparisons, or explicitly disclose different scales. A separate zoom view can still help inspect detail.
Category order should fit the question. Alphabetical country labels, ranked indicators and time order differ. Joining GDP-ranked country dots with a line does not create a time trajectory. Use actual time intervals for time axes and declared category labels for categorical axes.
기초Foundations
23. 요약선이 관측점 자체는 아님을 밝힌다23. A summary line is distinct from observed points
평균선·회귀선·평활선은 원점들을 요약하는 계산 결과입니다. 국가 그림의 가중 평균선은 국가의 관측 GDP값을 모두 대체하는 새로운 관측이 아닙니다. 평활선이 지나가는 위치에서 실제 측정이 있었는지도 별도로 봅니다.
특히 시간선에서 자료가 없는 두 시점을 직선으로 잇는 것은 사이의 변화를 선형으로 표시하는 선택입니다. 실제 사이 시점이 관측되었다고 쓰지 않습니다. 탐색하며 여러 평활 폭을 바꾸었으면 어떤 규칙으로 최종 그림을 골랐는지 남겨야 패턴 선택과 자료 자체를 구별할 수 있습니다.
Mean, regression and smoothing lines are computed summaries. The selected weighted mean in a country plot is not a new observed GDP value replacing each country dot. A line’s position also does not establish that a measurement occurred there.
Connecting two observed times linearly chooses a display of the unobserved interval; it does not collect intervening measurements. If several smoothing widths were explored, record how the final view was chosen so readers can distinguish selection decisions from source observations.
기초Foundations
24. 실습 C · 같은 95와 100을 두 축으로 읽는다24. Lab C · read the same 95 and 100 under two baselines
0·90 기준을 바꾸기 전에 원값 차이 5·원값 비율 20/19를 적습니다. 확대된 막대 길이 비율 2와 구별하세요. Python·R에서 실제 생성한 그림의 눈금·숫자 라벨·설명을 함께 읽고 원값이 바뀌지 않았는지 확인합니다.
가정 자료의 기준선 실습을 실제 두 집단의 우월성 증거로 바꾸지 않습니다. 다른 그림에서도 막대 길이인지 점 위치인지, 축이 선형인지 로그인지, 범위 밖이나 잘린 부분이 있는지 묻는 습관으로 연결합니다.
Before switching zero and 90 baselines, state the original difference five and value ratio 20/19. Distinguish these from truncated length ratio two. Inspect actual Python/R graphics, ticks, labels and explanations while checking that the toy observations remain fixed.
This display experiment is not evidence that one actual group is superior. Transfer the questions to other plots: bar length or point position, linear or logarithmic scale, and disclosed clipping or outside values.
기초Foundations
25. 가중치를 정하면 요약의 표적도 정해진다25. Weights define the target of a summary
가정 두 지역의 지표가 1과 9이고 인구가 9와 1이라고 합시다. 지역을 한 번씩 세면 평균은 5, 인구로 가중하면 (9×1+1×9)/10=1.8입니다. 같은 지표라도 어느 단위에 같은 비중을 주는지가 다릅니다. 더 작은 수가 계산 오류여서가 아닙니다.
이 장의 국가 균등 표적은 선택한 16국을 각각 1/16로 셉니다. 인구 가중 표적은 공표 인구를 합으로 나눈 비중을 씁니다. 어떤 표적을 비교하는지 먼저 정하며, 가중치가 있다는 사실만으로 실제 세계의 확률표집 가중치라고 부르지 않습니다.
Suppose two toy regions have indicators one and nine and populations nine and one. Equal region weights give mean five; population weights give 1.8. They weight different units equally. The smaller result is not an arithmetic failure.
The country-uniform target weights each of 16 selected countries by 1/16. The population-weighted target uses each published population divided by their selected total. State the intended target first. These declared weights are not automatically weights from an actual probability-sampling design.
기초Foundations
26. 비음수 가중 평균을 직접 계산한다26. Compute a nonnegative weighted mean explicitly
유한한 값 xᵢ와 비음수 원가중치 aᵢ가 있고 합이 양수라고 합시다. 정규화한 wᵢ=aᵢ/Σaⱼ는 합이 1이고 가중 평균은 다음과 같습니다. 모든 aᵢ가 0이면 정규화 분모가 없으므로 균등 평균으로 조용히 바꾸지 않습니다.
wi=∑jajaiμw=i∑wixi
가중치가 양수인 값이 미관측이면 그 표적을 완전히 계산할 수 있는지 따로 판단해야 합니다. 가용값만 남겨 가중치를 다시 맞추면 가용 부분의 다른 표적일 수 있습니다. 이번 실제 16국 선택에서는 GDP와 인구가 모두 가용하므로 두 표적을 같은 16국에서 계산합니다.
Let finite xᵢ have nonnegative raw weights aᵢ with positive total. Normalized weights wᵢ=aᵢ/Σaⱼ sum to one and give the following mean. If every raw weight is zero, do not silently replace the undefined normalization with uniform weights.
wi=∑jajaiμw=i∑wixi
An unavailable value with positive weight requires a separate assessment of the target. Dropping it and renormalizing generally changes the target to an available subset. GDP and population are both available for all 16 selected countries in this example.
기초Foundations
27. 실제 16국의 두 기준선을 구별한다27. Distinguish two reference lines for the actual 16 countries
2024년 선택한 16국의 GDPpc는 2015년 불변 USD 단위입니다. 균등 평균은 약 31,100.238572, 선택국 공표 인구 4,462,826,129명으로 가중한 평균은 약 15,756.274457입니다. 두 수치는 같은 국가 지표를 다른 비중으로 요약한 것입니다.
그림의 국가 점은 원값이고 수평선은 선택한 요약입니다. 인구를 가중했다고 각 사람의 소득 분포를 관측한 것이 아닙니다. 또한 선택 16국은 무작위 세계 국가 표본으로 선언되지 않았습니다. 세계 전체 평균이나 모든 개인의 실제 평균소득으로 범위를 넓히지 않습니다.
Selected 2024 GDP-per-capita indicators use constant 2015 USD. The 16-country uniform mean is approximately 31,100.238572; weighting by their total published population 4,462,826,129 gives approximately 15,756.274457. These summarize the same country indicators under different weights.
Dots are source indicators and the horizontal line is the selected summary. Population weighting does not observe individual income distributions. The 16 countries are not declared a random world-country sample. Do not rename these summaries the world mean or every individual’s observed mean income.
기초Foundations
28. 1인당 GDP를 개인 임금으로 바꾸어 읽지 않는다28. Do not reinterpret GDP per capita as an individual wage
1인당 GDP는 국가 생산을 인구 단위로 나눈 지표이며 원 사람의 시간당 임금과는 자료 정의가 다릅니다. 실제 임금은 1976년 명목 달러/시간이고 국가 지표는 2024년의 2015년 불변 USD/인구 단위입니다. 같은 USD 글자가 있어도 시점·가격 기준·분모가 다릅니다.
국가 그림의 높이가 임금 그림보다 크다는 것은 두 분포의 사람을 직접 비교한 결과가 아닙니다. 경제적 비교를 원하면 동일한 표적·시점·가격 기준·단위로 바꿀 수 있는지 별도로 설계해야 합니다. 표와 축에 원 지표 이름을 온전히 남깁니다.
GDP per capita divides country production by population; its definition differs from a person’s hourly wage. Actual wages here are nominal 1976 dollars/hour, while country indicators concern 2024 production in constant 2015 USD per population unit. A common USD label does not align dates, price bases or denominators.
A larger country-plot height is not a direct comparison between the people in two income distributions. A meaningful economic comparison needs its own common target, time, price basis and unit design. Preserve full original indicator labels in tables and axes.
기초Foundations
29. 집단평균을 합칠 때 집단 가용수를 쓴다29. Pool group means using their valid counts
가정 A집단 2명의 값은 0,10이고 B집단 1명의 값은 20입니다. 집단평균은 5와 20이며 단순 평균은 12.5입니다. 전체 사람 균등 평균은 (0+10+20)/3=10입니다. A평균에 2/3,B평균에 1/3을 주면 같은 10이 됩니다.
xˉ=∑gng∑gngxˉgngxˉg=i∈g∑xi
이 항등식은 같은 변수의 가용값을 겹치지 않게 나눈 유한 집단이며 포함한 n_g가 양수인 경우입니다. 관측 0개 집단은 평균을 억지로 0으로 만들어 곱하지 않습니다. 집단 균등 표적과 사람 균등 표적은 모두 정의할 수 있지만 같은 이름으로 쓰면 안 됩니다.
Toy group A contains 0,10 and B contains 20. Group means are five and 20; their equal-group mean is 12.5. The equal-person mean is 10. Weighting the means by 2/3 and 1/3 recovers ten.
xˉ=∑gng∑gngxˉgngxˉg=i∈g∑xi
This identity partitions available values of the same variable into disjoint finite groups with positive included counts. Handle zero-available groups separately rather than inventing a zero mean. Both equal-group and equal-person targets can be defined, but they are different targets.
학부Undergraduate
30. 가중 평균의 범위를 증명한다30. Prove the range bound for a weighted mean
선택 심화입니다. 비음수 wᵢ의 합이 1이고 가중 대상 값의 최솟값 m·최댓값 M이 유한하면 m≤xᵢ≤M의 각 항에 wᵢ를 곱해 합합니다. 결과는 아래와 같습니다. 음수 가중치를 허용하면 이 논증이 성립하지 않을 수 있습니다.
mi∑wi≤i∑wixi≤Mi∑wim≤μw≤M
이 검사는 코드의 단위·정규화 오류를 찾는 데 도움이 됩니다. 그러나 범위 안에 든 모든 수가 올바른 가중 평균인 것은 아닙니다. 원가중치와 각 기여도를 다시 합하고, 다른 단위의 값을 섞지 않았는지 확인해야 합니다.
Optional connection: suppose nonnegative wᵢ sum to one and all weighted values lie between finite m and M. Multiply m≤xᵢ≤M by wᵢ and sum to obtain
mi∑wi≤i∑wixi≤Mi∑wim≤μw≤M
This is a useful normalization or unit check; negative weights need not obey the argument. Being inside the range is not sufficient to establish a correct weighted mean. Recompute individual contributions and check the actual weights and units.
기초Foundations
31. 집단의 관계에서 개인의 관계를 바로 결론내리지 않는다31. Group patterns do not directly identify individual patterns
가정 두 학교의 평균 공부 시간이 높을수록 평균 점수가 높아도, 각 학교 안의 학생 관계는 다른 모양일 수 있습니다. 학교별 평균은 학교 안의 분산과 짝 관계를 지워 버리기 때문입니다. 집단 점들만 보고 모든 학생에게 같은 기울기나 인과효과가 있다고 말하지 않습니다.
실제 국가 GDPpc 점에서도 같은 한계가 있습니다. 국가 수준의 생산·인구 요약과 개인의 임금·건강·선택은 다른 단위입니다. 집계 오류를 피하려면 개인 자료가 있는지, 비교 조건이 같은지, 추론하려는 단위가 무엇인지 별도로 확인합니다.
Two schools can show higher mean scores alongside higher mean study hours while individual relationships inside the schools differ. Group means discard within-group variation and pairing. Group dots alone do not establish a common individual slope or causal effect.
Country GDP-per-capita dots have the same unit limitation. Country production/population summaries differ from individual wages, health or choices. Check whether individual records exist, whether comparison conditions align and which unit the proposed conclusion concerns.
기초Foundations
32. 실습 D · 원점은 같고 기준선의 표적이 바뀐다32. Lab D · fixed dots with a different target line
국가 균등과 인구 가중을 바꾸며 원 GDP점·16국·인구 합이 그대로인지 보세요. 기준선이 달라지는 이유를 작은 예 (값 1,9·인구 9,1)로 먼저 설명한 뒤 실제 두 평균을 읽습니다. 실제 실행의 가중치 합과 기여도를 확인할 수 있습니다.
범주인 국가 점들을 이어 시간선으로 읽지 않습니다. 선은 선택한 가중 평균의 참고선이고, 개별 국가의 원값을 덮어쓴 값이 아닙니다. 인구 가중을 실제 개인 원소득 분포나 세계 표본 추론으로 바꾸어 해석하지 않습니다.
Switch equal-country and population weights while checking that the GDP dots,16 countries and population total stay fixed. Explain the toy values 1,9 with populations 9,1 before reading actual means. Inspect weights and contributions in the actual archived program.
Do not connect categorical country dots into a time trajectory. The line is a selected weighted reference, not replacement data for every country. Population weighting establishes neither individual income observations nor a world-sample inference.
기초Foundations
33. 고객 네 칸에서 출발한다33. Start from the four customer cells
실제 고객 기록 3,150행에서 불만 없음·비이탈은 2,614, 불만 없음·이탈은 295, 불만 있음·비이탈은 41, 불만 있음·이탈은 200입니다. 불만 집단 크기는 각각 2,909와 241이고 이탈 전체는 495입니다. 이 개수를 먼저 맞춘 뒤 비율을 계산합니다.
여기서 고객은 공개 파일의 원행 단위입니다. 회사 이름·각 고객의 실제 정체·달력상의 관측 연도는 알려져 있지 않습니다. 같은 행의 불만 코드와 이탈 코드를 요약한 것이며, 새로운 고객을 무작위로 뽑는 실험을 실제 수행했다고 하지 않습니다.
The 3,150 actual customer records give four cells: no complaint/nonchurn 2,614; no complaint/churn 295; complaint/nonchurn 41; complaint/churn 200. Complaint-group sizes are 2,909 and 241; total churn is 495. Reconcile these counts before dividing.
A customer here is a source-file row. Company identity, personal identities and calendar observation year are unavailable. The table summarizes codes in the same records; it is not an actual experiment randomly drawing new customers.
기초Foundations
34. 집단 안의 이탈 비율은 집단 크기로 나눈다34. A within-group churn rate divides by group size
“불만이 있는 기록 중 이탈한 비율”은 200/241≈82.9876%입니다. “불만이 없는 기록 중 이탈한 비율”은 295/2909≈10.1409%입니다. 두 분모가 다른 이유는 조건으로 남긴 집단이 다르기 때문입니다.
P(T∣G)=241200P(T∣Gc)=2909295
여기서 G는 불만 있음,T는 이탈 코드이며 기호는 이 보관 표의 행 균등 경험비율을 뜻합니다. 집단 크기가 0이면 조건부 비율은 0이 아니라 미정의입니다. 이번 두 집단은 모두 양수라 두 비율을 계산할 수 있습니다.
“Churn among records with a complaint” is 200/241≈82.9876%. “Churn among records without a complaint” is 295/2909≈10.1409%. Different conditioning groups give different denominators.
P(T∣G)=241200P(T∣Gc)=2909295
Here G denotes complaint and T denotes churn. The notation refers to row-uniform empirical shares in this retained table. A zero-size conditioning group would give an undefined ratio, not zero. Both actual groups are positive.
기초Foundations
35. 이탈한 기록 중 집단 비중은 다른 비율이다35. Group composition among churn is a different ratio
이번에는 이미 이탈한 495행만 남깁니다. 이 중 불만 있음은 200/495=40/99≈40.4040%, 불만 없음은 295/495=59/99≈59.5960%입니다. 이는 앞 절의 82.9876%·10.1409%와 다른 질문입니다.
P(G∣T)=495200P(G∩T)=3150200
두 번째는 전체 기록 중 불만·이탈이 함께 있는 공동 비율입니다. 같은 분자 200이어도 분모 241,495,3150은 서로 다른 의미를 만듭니다. 축 라벨을 “비율” 하나로만 쓰지 않고 무엇 중 무엇인지 적습니다.
Now restrict attention to the 495 churn records. Complaint records contribute 200/495=40/99≈40.4040%; no-complaint records contribute 295/495=59/99≈59.5960%. These answer a different question from the preceding within-group rates.
P(G∣T)=495200P(G∩T)=3150200
The second ratio is the joint share among all records. Numerator 200 with denominators 241,495 or 3150 has three different meanings. Label “what among what,” rather than merely “percentage.”
기초Foundations
36. 큰 개수와 높은 비율은 함께 순서가 바뀔 수 있다36. A larger count need not mean a larger within-group rate
불만 없는 집단의 이탈 수 295는 불만 있는 집단의 200보다 큽니다. 하지만 집단 안 비율은 약 10.14%가 약 82.99%보다 작습니다. 두 사실은 모순이 아닙니다. 큰 집단은 낮은 비율로도 더 큰 개수를 만들 수 있습니다.
이를 “같은 비율이 뒤집혔다”거나 자동으로 심프슨 역설이라고 부르지 않습니다. 애초에 비교한 양이 개수와 조건부 비율로 다릅니다. 개입 대상을 고를 때도 총 건수·집단 위험·개입 효과·비용이라는 서로 다른 입력을 구분해야 합니다. 이 표의 연관만으로 마지막 두 입력이 알려지지는 않습니다.
No-complaint churn count 295 exceeds complaint churn count 200, while its within-group rate of about 10.14% is smaller than about 82.99%. There is no contradiction: a larger group can produce more cases at a lower rate.
This is not automatically a Simpson reversal of the same statistic. Counts and conditional rates are different quantities. Intervention choices additionally require effects and costs; this observed association does not identify either merely by ranking the two bars.
기초Foundations
37. 전체 비율을 집단 비율로 다시 합친다37. Recover the overall rate by weighting group rates
두 불만 집단은 전체 3,150행을 겹침없이 나눕니다. 집단의 원행 비중을 조건부 이탈 비율에 곱하면 각 집단의 이탈 공동비율이 됩니다. 이를 더하면 전체 495/3150=11/70≈15.7143%입니다.
두 조건부 비율을 그냥 반씩 평균하면 두 집단에 같은 비중을 주는 다른 표적입니다. 전체 고객 기록 평균과 같다고 쓰지 않습니다. 미래 고객의 확률로 옮기려면 자료 발생·선택·시간 변화에 관한 별도 조건이 필요합니다.
The two complaint groups partition all 3,150 records. Multiply each group’s share by its conditional churn rate to obtain the corresponding joint share, then sum:
Equally averaging the two rates defines a different equal-group target. It is not the overall row-uniform customer rate. Extending this to future customers needs additional assumptions about generation, selection and time.
기초Foundations
38. 함께 나타난 코드와 인과효과를 분리한다38. Separate observed code association from causal effects
이 표에서 불만과 이탈 코드가 강하게 연관되어 있습니다. 그러나 불만을 처리하면 이탈이 몇 퍼센트 줄어드는지는 이 비율만으로 계산할 수 없습니다. 요금·서비스 경험·이용 기간·선택 과정 같은 다른 차이가 함께 있을 수 있고, 처치와 반사실 비교를 정한 설계도 없습니다.
메타데이터는 입력 변수의 첫 9개월·3개월 간격·12개월 시점 이탈이라는 설명을 주지만 달력 연도나 실제 인과 배정을 제공하지 않습니다. 시간 정보가 있다는 사실만으로 처치가 무작위였거나 모든 혼란요인을 통제했다고 결론내리지 않습니다.
Complaint and churn codes are strongly associated in these records. Their rates alone do not quantify how much resolving complaints would reduce churn. Charges, service experience, tenure and selection can differ, and no treatment/counterfactual design is specified.
Metadata describes first-nine-month inputs, a three-month gap and month-twelve churn, without establishing a calendar year or randomized causal assignment. Temporal information alone neither randomizes treatment nor controls all confounding.
기초Foundations
39. 0개·0분모·전체비중을 따로 표시한다39. Distinguish zero count, zero denominator and a joint share
가정 집단 크기 10·이탈 0이면 집단 비율은 0/10=0입니다. 집단 크기 0·이탈 0이면 0/0으로 미정의입니다. 전체 비율이 필요하면 원 전체 수를 분모로 써야 합니다. 표에서 —를 0으로 바꾸면 이 세 상태를 합쳐 버립니다.
분모가 작은 집단의 비율은 한 기록의 변화에도 크게 달라질 수 있습니다. 가정 이탈 1/2에서 한 비이탈이 더 생기면 1/3입니다. 이런 민감성을 보여 주는 것과 표본 신뢰구간을 계산하는 것은 다른 작업입니다. 신뢰구간에는 추가 확률모형·표집 설계가 필요합니다.
A toy group of ten with zero churn has rate 0/10=0. An empty group with zero churn has undefined 0/0. A joint share instead uses the full-file denominator. Replacing every undefined marker with zero merges different states.
Small-denominator rates can change sharply after one record. A toy churn count 1/2 becomes 1/3 after one added nonchurn record. Showing this sensitivity differs from constructing a confidence interval, which needs a sampling design or probability model.
기초Foundations
40. 실습 E · 같은 분자와 네 가지 표시40. Lab E · fixed counts with four displays
개수·집단 안 비율·이탈 전체 구성·전체 공동비중을 바꿔 읽습니다. 불만 있음의 분자는 200으로 같지만 분모가 241·495·3150으로 바뀝니다. 두 막대 높이 합이 100%가 되는 것은 이번 이탈 구성 표시입니다. 서로 다른 집단 조건부 비율은 합이 100%일 필요가 없습니다.
가정이나 원행은 바뀌지 않고 요약 질문만 바뀝니다. 각 막대에 분자/분모를 표시하고 실제 프로그램 소스·SVG를 대조합니다. 이 그림이 처치효과나 미래 위험을 식별한다는 문장은 쓰지 않습니다.
Switch counts, within-group rates, composition among all churn and joint shares. Complaint numerator 200 stays fixed, while denominators become 241,495 or 3150. Only the churn-composition display sums to 100% across these two bars; different within-group conditional rates need not sum to 100%.
Records remain fixed while the summary question changes. Inspect numerator/denominator labels, actual source and SVG artifacts. The display does not identify a treatment effect or certify future risk.
기초Foundations
41. 실제 실행 28개와 SVG 24개를 보관한다41. Archive 28 actual runs and 24 actual SVGs
이 장은 audit4개·histogram8개·axis4개·target4개·denominator8개, 합 28개의 새 프로세스를 실제 실행했습니다. 그림이 필요한 24개는 SVG 파일도 생성했습니다. 각 언어의 전체 코드·입력 SHA·버전·종료 상태·stdout·stderr와 그림 SHA를 보관했습니다.
Python은 이 장의 그래프 환경인 3.11.8과 Matplotlib3.10.0·Agg를 사용했습니다. 앞 장의 Python3.12.14와 같은 실행 환경이라고 쓰지 않습니다. R4.5.1은 Rscript --vanilla와 base 그래픽 장치로 실행했고 locale 요청·숫자 출력·그림 크기를 소스에 명시했습니다. 버전과 글꼴·장치 차이는 숫자가 같아도 SVG 바이트를 다르게 만들 수 있습니다.
This chapter actually ran 28 fresh processes: four audit, eight histogram, four axis, four target and eight denominator programs. The 24 plotting runs also produced SVG files. Archive complete source, input hashes, versions, exit status, stdout/stderr and plot hashes.
The plotting environment used Python 3.11.8 with Matplotlib 3.10.0/Agg, distinct from earlier Python 3.12.14. R 4.5.1 ran through Rscript --vanilla and base graphics, with locale request, numerical formatting and device size in source. Version, font or device differences can change SVG bytes despite matching numerical summaries.
기초Foundations
42. 파일 입력·그림 출력·수치 출력을 분리한다42. Separate input files, plot output and numerical output
전체 실행 파일은 첫 명령행 인수로 원CSV 경로, 두 번째로 새 SVG 경로를 받습니다. 원파일은 읽고 별도 그림 파일에 결과를 씁니다. 같은 파일 경로를 입력·출력으로 쓰지 않으며 공개 묶음의 상대 폴더 구조를 유지합니다. 실행 전에 필요한 Matplotlib이 설치된 Python인지 확인하세요.
이 명령은 안내이며 이 페이지에서 실행되지 않습니다. 실제 프로그램은 표준 출력에 JSON 수치 요약, 새 파일에 SVG를 남깁니다. Python과 R의 글꼴·선 모양이 달라도 빈도·분모·폭·면적은 같은 계약인지 비교할 수 있습니다. 그림 파일이 생겼다는 사실만으로 모든 축이 올바르다는 검토가 끝난 것은 아닙니다.
Complete plotting files take a source-CSV path as the first command-line argument and a new SVG path as the second. They read original inputs and write separate artifacts. Preserve the bundle’s relative directory layout and choose a Python with the required Matplotlib dependency.
This command is guidance, not execution in the page. Actual programs emit numerical JSON to stdout and write SVG separately. Fonts and lines can differ between Python and R while counts, denominators, widths and areas follow the same contract. File creation alone is not a completed audit of every axis.
기초Foundations
43. 실습 F · 요약에서 원행으로 돌아간다43. Lab F · return from a summary to source records
국가·사람·고객 원행 번호를 바꾸어 지표·임금·두 코드를 직접 확인합니다. 사람 원행에는 원임금과 정리 로그의 가용성을 따로 표시합니다. 국가 원행의 API 위치, 고객의 파일 원행 추적 번호는 이번 보관본의 추적 수단이지 영구 개인 식별자나 공개된 실제 회사 정체가 아닙니다.
요약과 맞지 않는 행을 발견하면 먼저 자료 정의·변환·필터·분모를 따라갑니다. 원값을 지워 그래프를 맞추지 않습니다. 이 실습은 원행·집계의 일치와 한계 확인이며 실제 측정의 진실성을 모두 인증하는 장치가 아닙니다.
Change country, person or customer source positions to inspect indicators, wages or codes. Person rows show raw-wage and trimmed-log availability separately. API positions and file-row trace keys belong to this archive; they are neither permanent personal IDs nor revelation of an actual company identity.
If a record appears inconsistent with a summary, trace definitions, transformations, filters and denominators. Do not delete observations merely to fit the plot. This is a source/aggregate correspondence check, not complete certification of measurement truth.
학부 심화 · 선택Advanced undergraduate · optional
44. 구간 요약이 잃는 정보를 오차 상계로 읽는다44. Bound information lost by bin-midpoint coarsening
선택 심화입니다. 유한한 가용값 n≥1개가 모두 양의 폭 구간에 들어가고 각 구간의 중점 mⱼ로 값을 대체한다고 합시다. 구간 안의 원값 xᵢ는 해당 중점과 최대 wⱼ/2만큼 다릅니다. 삼각부등식으로 원평균과 중점근사 평균의 차이를 제한할 수 있습니다.
μ=j∑ncjmj∣μ−xˉ∣≤j∑ncj2wj
이는 원평균의 정확한 대체값이 아니라 보장된 상계입니다. 구간 안에서 어떤 위치가 관측되었는지는 빈도만으로 복원되지 않습니다. 폭을 줄이면 이 상계는 작아지지만 새 측정 정보가 생기거나 표본 대표성이 높아지는 것은 아닙니다.
Optional connection: let all n≥1 available values lie in bins of positive widths, and replace each by its bin midpoint mⱼ. Each displacement is at most wⱼ/2. The triangle inequality gives
μ=j∑ncjmj∣μ−xˉ∣≤j∑ncj2wj
This is a bound, not an exact recovery of the source mean. Counts do not recover original positions within bins. Finer bins tighten this bound without collecting new measurements or improving sampling representativeness.
학부Undergraduate
45. 탐색에서 고른 패턴의 선택 과정을 남긴다45. Record how an exploratory pattern was selected
변수·집단·축·구간을 여러 번 바꾸면 눈에 띄는 그림을 찾기 쉽습니다. 이를 새로운 가설의 출발점으로 삼을 수 있지만, 아무 선택도 하지 않고 미리 정한 검정 하나처럼 보고하면 선택 과정을 숨깁니다. 바꾼 기준과 최종 선택 이유를 기록합니다.
가정 20개의 독립된 참귀무 검정이 각각 정확히 5% 확률로 기각된다면 하나 이상 잘못 기각할 확률은 1−0.95²⁰≈0.6415입니다. 독립이 없으면 이 등식을 그대로 쓰지 않습니다. 주변 오류확률이 각각 0.05이하라는 조건만으로는 합집합 상계 min(1,20×0.05)=1을 쓸 수 있습니다. 모든 탐색 그림에 검정을 자동 붙이려는 설명은 아닙니다.
Trying many variables, groups, scales and bins makes a striking view easier to find. It can motivate a new hypothesis, but reporting it as one unselected prespecified test conceals the search. Record explored settings and why a final view was chosen.
If 20 independent true-null tests each reject with exactly 5% probability, the chance of at least one false rejection is 1−0.95²⁰≈0.6415. Without independence that equality need not hold. Marginal error probabilities at most 0.05 only guarantee the union bound min(1,20×0.05)=1 here. This example does not prescribe adding tests to every exploratory figure.
기초Foundations
46. 발견과 확인에 쓰는 자료의 역할을 구별한다46. Distinguish discovery data from validation data
탐색한 자료에서 모형이나 규칙을 고르고 같은 자료로 점수를 내면 그 선택의 이득까지 포함할 수 있습니다. 새 자료·사전에 정한 평가 규칙·적절한 분할을 사용하면 어떤 종류의 일반화를 보려는지 더 분명해집니다. 시계열·반복 개체·같은 입력 패턴이 있으면 행을 무작위로 섞는 것만으로 모든 독립성이 생기지 않습니다.
다음 장에서는 관계·시간·집단을 더 자세히 탐색하고 뒤의 예측·분할 장에서는 평가 설계를 실제 코드로 확인합니다. 이번 장의 평균·빈도·비율은 고정 자료의 기술 요약이며 새 시험자료에서 성능을 측정한 결과가 아닙니다. 탐색이 쓸모없다는 뜻이 아니라 주장과 검증 경로를 연결하자는 뜻입니다.
Selecting a rule or model and scoring it on the same explored data can include the advantage of selection. New data, prespecified evaluation rules and appropriate splits clarify the generalization target. Time dependence, repeated entities or shared input patterns are not removed merely by shuffling rows.
The next chapter explores relationships, time and groups; later prediction/splitting chapters inspect evaluation designs in code. Current means, frequencies and rates describe fixed records rather than measured performance on a new test set. The aim is to connect each claim to its validation route.
기초Foundations
47. 다시 만들 수 있는 그림의 설명을 남긴다47. Leave enough information to reconstruct the view
질문·원행 단위·원파일/해시·변수 정의·가용 분모·필터·구간/끝점·가중치·축/단위·코드/환경·출력 파일을 함께 남깁니다. 소스를 공개했어도 필요한 입력이 없거나 버전·글꼴·경로가 숨겨지면 같은 수치·그림을 재현하기 어려울 수 있습니다.
숫자의 일치, 파일 바이트 일치, 그림의 의미, 미래 추론은 서로 다른 확인입니다. 수치 기준은 정수 빈도·원소수 정확분수와 대조하고 SVG는 코드·버전에 따른 실제 산출물로 보관합니다. 검토 기록에는 작성자 자체검사·다른 검토자의 수리/실행검사·실제 브라우저 확인의 범위를 나누어 씁니다.
Retain the question, source units/files/hashes, variable definitions, available denominator, filters, intervals/endpoints, weights, axes/units, code/environment and output files. Published code can still be difficult to reproduce when inputs, versions, fonts or paths are missing.
Numerical agreement, byte identity, visual meaning and future inference are distinct checks. Compare counts and retained-decimal fractions, while archiving SVGs as actual version-dependent outputs. Separate author self-checks, another reviewer’s mathematical/execution audit and actual browser verification in the review record.
기초Foundations
국가·개인·기업의 실제자료 사례 종합Bringing the actual country, person and company cases together
국가 사례 · 같은 점을 그려도 평균선의 표적은 달라진다
2024년 World Bank의 선택 16국 실제 1인당 실질 GDP와 같은 연도의 인구를 사용합니다. 단위는 2015년 불변 USD/인입니다. 국가를 값의 오름차순으로 정렬해 그리되, 가로축 순위는 시간이나 개인 순위가 아닙니다. 두 원 지표의 API 행 위치와 발표된 소수를 보존했습니다. 이 16국은 세계 국가의 무작위 표본이라고 가정하지 않습니다.
국가 하나에 같은 무게를 주면 작은 국가도 큰 국가도 1/16입니다. 인구를 무게로 삼으면 국가 i의 무게는 Pi/ΣPj입니다. 이는 누가 평균에서 얼마나 기여하는지 정하는 선택입니다. 인구 가중 평균도 국가 지표의 가중 요약이며, 모든 개인의 실제 임금이나 소득 분포를 새로 관측한 것이 아닙니다. 서로 다른 표적을 단순히 “맞는 평균/틀린 평균”으로 나누지 않습니다.
먼저 생각한 뒤 풀이 보기: 두 평균선 중 어느 쪽이 국민의 전형적인 소득을 보여 주나요?
둘 다 곧바로 그런 뜻은 아닙니다. GDP는 생산 지표이고 가중 평균은 분포의 중앙값이나 가구 가처분소득이 아닙니다. 먼저 “선택 국가의 동일 가중 지표 평균”인지 “선택국의 인구 가중 지표 평균”인지 제목에 적습니다. 인구 가중을 고른 이유도 설명합니다. 그래프의 보기 좋은 선을 고르는 문제가 아니라 표적을 정의하는 문제입니다.
먼저 생각한 뒤 풀이 보기: 국가 점 사이를 선으로 이어도 될까요?
정렬된 이산 국가 점에는 자연스러운 연속 경로가 없습니다. 여기서는 점을 잇지 않습니다. 순위에 따른 인접 국가가 시간상 연속되거나 국경을 공유한다는 뜻도 아닙니다. 0에서 시작하는 비교 축, 단위·연도·16국이라는 분모, 평균선의 가중치를 함께 보이게 합니다.
사람 사례 · 넓이가 다른 임금 구간은 막대 높이만 비교하지 않는다
Card 공개 원자료 3,613행에서 wage76은 1976년 시간당 임금(센트)이고 3,017개가 가용합니다. 나머지 596행은 삭제하거나 0으로 바꾸지 않고 보존합니다. 이 장은 그 원값을 100으로 나눈 1976년 USD/시간을 그립니다. 별도의 극단값 정리 로그 변수는 3,010개 가용·603개 미가용이므로 두 분모를 혼용하지 않습니다. 원값은 있지만 정리 로그가 없는 7행도 그대로 남습니다. 원자료가 그 7행의 정리 기준을 확정해 주는 것은 아닙니다.
구간은 [0,2), [2,4), [4,8), [8,16), [16,25] USD/시간으로 선택했습니다. 앞 네 구간은 오른쪽 끝을 제외하고 마지막은 포함합니다. 폭은 2,2,4,8,9로 다릅니다. 이 구간 선택은 학습용 표시 규칙이며 임금제도상의 경계가 아닙니다. 유효값의 최소는 0.25, 최대는 24.04라 모든 가용 값이 정확히 한 구간에 들어갑니다.
실제 원임금의 비균등 구간 · 소수 반올림
구간 USD/시간
폭
빈도
비중 %
밀도 (시간/USD)
[0,2)
2
48
1.5910
0.0079549
[2,4)
2
723
23.9642
0.1198210
[4,8)
4
1759
58.3029
0.1457574
[8,16)
8
467
15.4790
0.0193487
[16,25]
9
20
0.6629
0.0007366
rbdbb∑dbwb=nb/3017,=3017wbnb,=1.
먼저 생각한 뒤 풀이 보기: 구간 [8,16)의 빈도가 많으면 8달러 부근이 가장 촘촘한가요?
바로 말할 수 없습니다. 이 구간은 [2,4)보다 네 배 넓어 더 많은 서로 다른 값을 담을 수 있습니다. 폭이 다른 히스토그램은 세로축을 밀도로 두고 “높이×폭=비중”으로 읽습니다. 빈도 높이를 쓰고 싶다면 구간 범주 막대그래프로 표시해 서로 다른 폭을 감추지 말아야 합니다. 여기의 밀도 단위는 1/(USD/시간)=시간/USD입니다.
먼저 생각한 뒤 풀이 보기: 히스토그램의 끝점과 원행 결측을 보고 어떤 사실까지 말할 수 있나요?
이 공개 자료에서 가용한 3,017개 원임금의 분포를 기술합니다. 596명의 임금은 알 수 없으며 정규분포·전체 미국 청년 대표성·독립 추출을 그림만으로 입증하지 않습니다. 평균은 5.760888 USD/시간, 중앙값은 5.35입니다. 이는 반올림 표시입니다. 오늘의 실질 구매력이나 세후 임금으로 바꾸려면 별도 물가·세금 정보가 필요합니다.
고객·기업 실무 사례 · 이탈 건수, 이탈률, 이탈자의 구성을 분리한다
UCI Iranian Churn 실제 고객 기록 3,150행에서 불만 코드와 12개월째 이탈 코드를 비교합니다. 원 자료는 첫 9개월의 설명 변수와 12개월째 이탈 사이에 3개월 간격을 둔다고 설명합니다. 달력상의 조사 연도나 회사명은 확인되지 않아 만들어 넣지 않습니다. 공개 연도 2020을 조사 연도로 바꾸지 않습니다. 두 열 모두 이 사례에서 값이 가용합니다.
같은 실제 2×2 표 · 각 행은 고객 기록 수
불만 기록
비이탈
이탈
행 합계
없음
2614
295
2909
있음
41
200
241
열 합계
2655
495
3150
분모를 바꾼 세 질문 · 비율은 반올림
불만
이탈 건수
집단 안 이탈률 %
전체 이탈자 중 비중 %
없음
295
10.1409
59.5960
있음
200
82.9876
40.4040
먼저 생각한 뒤 풀이 보기: 불만 없음 집단에서 이탈 295건이 더 많으니 이탈률도 더 높나요?
아닙니다. 불만 없음 집단의 분모는 2,909명, 불만 있음 집단은 241명입니다. 이탈률은 각각 295/2909≈10.1409%, 200/241≈82.9876%입니다. 건수는 처리 규모, 집단 내 비율은 같은 집단의 관측 비중을 답합니다. 같은 축에 명수와 %를 섞거나 제목에서 분모를 빼면 질문이 흐려집니다.
먼저 생각한 뒤 풀이 보기: 불만 있음 고객의 이탈률과 이탈 고객 중 불만 있음 비중은 같은가요?
200/241과 200/495는 분자가 같아도 분모가 다릅니다. 전자는 불만 집단에서 이탈을, 후자는 이탈 집단에서 불만 구성을 봅니다. 전체 고객 중 두 조건을 모두 만족한 비중 200/3150과도 다릅니다. 먼저 “어떤 기록들을 분모로 묶었는가”를 문장으로 쓰세요.
먼저 생각한 뒤 풀이 보기: 이 그림만으로 불만을 없애면 이탈이 얼마나 줄지 예측할 수 있나요?
관측 연관만으로 개입의 인과효과를 정할 수 없습니다. 서비스 문제·고객 특성·측정 시점 등의 대안 설명이 남습니다. 탐색 중 눈에 띈 패턴은 다음 질문을 만드는 근거이고 독립 검증의 대체물이 아닙니다. 그림에는 표본 수·비율 분모·기간·정의·원자료 링크를 남기고 색 하나에만 정보를 맡기지 않습니다.
Country case · The same points can have different target mean lines
Use actual 2024 GDP per capita and same-year population for sixteen selected World Bank countries. GDP units are constant-2015 USD/person. Order countries by GDPpc; horizontal rank is neither time nor an individual-income rank. Retain archived API positions and source decimals for both indicators. These sixteen countries are not assumed to be a random sample of the world.
Equal-country weighting gives each country 1/16, irrespective of population. Population weighting uses Pi/ΣPj. This choice determines each country’s contribution to the target summary. The population-weighted result still summarizes national indicators: it does not newly observe individual wages or an income distribution. Different targets are not automatically correct versus incorrect averages.
Same sixteen actual countries · displayed values and weights rounded
ISO
GDP/person
Country weight %
Population weight %
IND
2,366.83
6.25
32.512
VNM
4,012.51
6.25
2.263
IDN
4,367.95
6.25
6.352
ZAF
5,715.48
6.25
1.434
BRA
9,566.75
6.25
4.750
MEX
10,284.03
6.25
2.932
CHN
13,119.11
6.25
31.571
KOR
37,048.43
6.25
1.160
JPN
37,976.64
6.25
2.778
FRA
39,683.40
6.25
1.536
DEU
44,027.76
6.25
1.871
CAN
45,061.39
6.25
0.925
GBR
47,900.97
6.25
1.552
AUS
61,486.38
6.25
0.609
USA
66,856.51
6.25
7.619
SGP
68,129.70
6.25
0.135
Two explicit targets · decimal results rounded
Target
Units
Mean
Equal selected-country weight
2015 USD/person
31,100.239
Selected-population weight
2015 USD/person
15,756.274
Think first, then reveal: Which mean line shows a typical person’s income?
Neither automatically does. GDP measures production; a weighted mean is not an income median or household disposable income. Label the equal-country or selected-population indicator target, and explain the weights. Define the target before choosing a visually appealing line.
Think first, then reveal: Should adjacent country points be connected?
Ranked discrete countries have no natural continuous trajectory. We do not connect them. Adjacent ranks are not consecutive periods or necessarily neighbors. Show units, year, the sixteen-country denominator and line weights; use a zero-based comparison axis here.
Person case · Unequal wage intervals need more than raw bar heights
In Card’s 3,613 archived records, wage76 is 1976 hourly wage in cents/hour, available for 3,017 records. Preserve the other 596 without deletion or zero replacement. Plot the raw amount divided by 100, in 1976 USD/hour. The separate source-trimmed log variable has 3,010 available values and 603 unavailable, so its denominator differs. Preserve the seven raw-available/log-unavailable records without inventing their trimming criteria.
Choose intervals [0,2), [2,4), [4,8), [8,16), [16,25] in USD/hour. Exclude each right endpoint except the last. Widths are 2,2,4,8,9. These are display choices, not institutional wage thresholds. Valid values range from 0.25 to 24.04, so each available value belongs to exactly one bin.
Unequal bins of actual raw wages · displayed decimals rounded
Interval USD/hour
Width
Count
Share %
Density (hour/USD)
[0,2)
2
48
1.5910
0.0079549
[2,4)
2
723
23.9642
0.1198210
[4,8)
4
1759
58.3029
0.1457574
[8,16)
8
467
15.4790
0.0193487
[16,25]
9
20
0.6629
0.0007366
rbdbb∑dbwb=nb/3017,=3017wbnb,=1.
Think first, then reveal: Does a high count in [8,16) imply the densest concentration near eight dollars?
Not by itself. It spans four times the width of [2,4). For unequal-width histograms, use density height so height×width equals proportion. If showing counts as categorical bars instead, make the interval choices explicit. Density units are 1/(USD/hour), or hour/USD.
Think first, then reveal: What can the endpoints and preserved missing rows establish?
They describe the 3,017 available raw wages in this public file. The other 596 wages remain unknown. The picture does not prove normality, representativeness for all US young people or independent sampling. The mean is 5.760888 and median 5.35 USD/hour, rounded here. Current purchasing power or after-tax earnings require additional information.
Customer/business-practice case · Separate counts, rates and the composition of churn
Compare complaint and month-12 churn codes in 3,150 actual UCI Iranian Churn customer records. Source metadata describes first-nine-month attributes, a three-month gap and month-12 churn. An observation calendar year and company identity are not established; release year 2020 is not assigned as the observation year. Both case variables are available for all records.
Same actual 2×2 table · customer-record counts
Complaint
No churn
Churn
Row total
Absent
2614
295
2909
Present
41
200
241
Column total
2655
495
3150
Three questions with distinct denominators · rounded percentages
Complaint
Churn count
Within-group churn %
Share of all churn %
Absent
295
10.1409
59.5960
Present
200
82.9876
40.4040
Think first, then reveal: Does the larger no-complaint churn count, 295, imply a higher churn rate?
No. Denominators are 2,909 without complaints and 241 with complaints. Rates are 295/2909≈10.1409% and 200/241≈82.9876%. Counts describe workload scale; within-group percentages describe observed fractions. Do not mix counts and percentages on one unlabeled axis.
Think first, then reveal: Are churn among complainants and complaints among churners the same percentage?
200/241 and 200/495 share a numerator but differ in denominator. The first conditions on complaints; the second describes churners’ composition. Both differ from joint share 200/3150. Write the denominator group in words before choosing a chart.
Think first, then reveal: Does this plot identify how much churn would fall if complaints were removed?
Observed association does not identify an intervention effect. Service problems, customer characteristics and timing remain alternative explanations. An exploratory pattern motivates further questions; it does not replace independent validation. Show counts, rate denominators, periods, definitions and sources, and avoid encoding information only in color.
기초Foundations
48. 공식 문서의 좁은 범위를 실제 코드와 연결한다48. Connect focused official readings to actual code
NIST EDA 도입의 Approach·Focus·Philosophy를 읽으며 탐색을 그래프 목록보다 넓은 분석 태도로 봅니다. 히스토그램 Definition에서는 개수·상대빈도·폭으로 나눈 밀도만 비교합니다. 인접한 분포 “검증” 표현을 모든 모형 인증으로 확장하지 않습니다.
Matplotlib3.10.0 bar의 width·align·bottom을 실제 코드와 대조하고 savefig의 파일형식·metadata를 확인합니다. R hist의 right·include.lowest·fuzz 및 freq/probability·반환 객체의 density를 읽되 실제 실행한 수동 구간 판정과 구별합니다. 반환 density는 확률밀도 높이지만 같은 이름의 density 인수는 인치당 음영선 수입니다. R SVG 장치의 파일·크기·글꼴은 기록 환경과 연결합니다. 온라인 문서 버전은 보관 실행 버전과 별도로 확인합니다.
Read Approach, Focus and Philosophy in the NIST EDA introduction. Restrict its histogram Definition reading to count, relative-frequency and width-normalized displays. Do not extend adjacent distribution-“verification” language into universal model certification.
Compare width, align and bottom in Matplotlib 3.10.0 bar and format/metadata in savefig with actual source. Inspect right, include.lowest, fuzz, freq/probability and the returned density in R hist, distinguishing those defaults from our explicit membership calculation. Returned density contains probability-density heights; the density argument instead controls shading lines per inch. Link R SVG device file, size and font settings to the archive. Online documentation versions and archived runtime versions are separate.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.
결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.
영상·학자·함께 읽기Videos, thinkers and guided reading
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
Crash Course · 질문에 맞는 그래프 고르기Crash Course · Choose a chart for the question
CrashCourse Statistics 5
공식 영상의 범주·수량 변수와 막대·히스토그램 구분을 본문의 실제 임금·고객 표에 적용합니다. 그래프를 먼저 고르기보다 단위·분모·비교 질문을 적습니다.Apply categorical/quantitative chart choices to actual wage and customer records. State units, denominator and comparison before picking a chart.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading막대 높이가 크면 언제나 더 큰 비율인가요?Must a taller bar mean a larger proportion?
생각을 점검하는 해설Check your reasoning
빈도인지 밀도인지, 구간 폭과 분모가 같은지 확인해야 합니다.Check count versus density, bin widths and denominators.
존 튜키 · 요약 수치와 그림으로 질문 다듬기John Tukey · Refine questions with summaries and plots
Princeton University official obituary; NIST EDA context
프린스턴 통계학자의 소개와 NIST의 탐색적 분석 설명을 함께 읽습니다. 이 장에서는 그림으로 이상한 점을 발견한 뒤 원행·분모를 다시 확인하는 습관을 연결합니다.Read the Princeton statistician’s introduction alongside NIST’s EDA account. Use a plot to notice a pattern, then return to source records and denominators.
보고 읽은 뒤 답하기Respond after watching/reading보기 좋은 그림이 가정 검사를 대신하나요?Does an attractive plot replace checking assumptions?
생각을 점검하는 해설Check your reasoning
아닙니다. 기록의 정의·결측·집단 구성과 추론에 필요한 가정을 별도로 확인합니다.No. Check definitions, missingness, group composition and inferential assumptions separately.
NIST · EDA는 그래프 목록보다 넓은 분석 태도NIST · EDA extends beyond a list of charts
NIST/SEMATECH e-Handbook · 1.1.1
Approach·Focus·Philosophy 부분만 읽고, 원자료를 보며 질문과 가정을 수정한다는 점을 생각합니다. 탐색 중 고른 가설을 사전 지정 확증 검정과 구별하세요.Read Approach, Focus and Philosophy. Consider how inspecting records can refine questions and assumptions. Distinguish an exploratory choice from a prespecified confirmatory test.
보고 읽은 뒤 답하기Respond after watching/reading탐색에서 찾은 차이가 곧 검증된 효과인가요?Is an exploratory difference already a validated effect?
생각을 점검하는 해설Check your reasoning
아닙니다. 자료 선택·가설 선택 과정과 검증 설계를 따로 기록해야 합니다.No. Record selection and hypothesis choices, and design validation separately.
NIST · 히스토그램 정규화 두 가지NIST · Two histogram normalizations
NIST/SEMATECH e-Handbook · 1.3.3.14 Definition
Definition의 빈도/전체 수와 빈도/(전체 수×폭) 두 정규화를 읽습니다. 두 번째는 면적 합1이며, 비균등 구간의 높이를 읽을 때 필요합니다.Read the two Definition normalizations: count/n and count/(n×width). The latter has total area one and supports interpreting unequal-width bins.
보고 읽은 뒤 답하기Respond after watching/reading밀도 막대의 높이가 1을 넘으면 오류인가요?Is a density height above one necessarily wrong?
생각을 점검하는 해설Check your reasoning
아닙니다. 밀도에는 역단위가 있으며 비중은 높이가 아니라 면적입니다.No. Density has reciprocal units; area, not height, gives a proportion.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 한 막대의 단위The unit of one bar
사람별 임금 원행을 [4,8)달러/시간 구간으로 묶어 히스토그램 한 막대를 그렸습니다. 그 막대는 사람 한 명의 임금인가요?
Person-level wages are grouped into [4,8) dollars/hour. Does that histogram bar represent one person’s wage?
풀이와 확인할 이유Solution and explanation
아닙니다. 구간에 속한 여러 원행을 요약합니다. 높이가 개수인지 상대빈도인지 밀도인지 밝혀야 하며, 밀도 그림에서는 구간 넓이가 상대빈도입니다.
No. It summarizes records in an interval. Declare whether height is count, share or density; density-bar area gives the interval share.
2. 0과 미관측Zero and missingness
가정 값 (0,2,미관측,4)의 원행 수·가용수·관측 0수·가용평균을 구하세요.
For toy values (0,2, unavailable,4), find source count, available count, observed-zero count and available mean.
풀이와 확인할 이유Solution and explanation
원행 4,가용 3,관측 0 한 개입니다. 합 6을 가용 3으로 나누어 평균 2입니다. 미관측을 0으로 대체한 1.5는 다른 가정의 평균입니다.
They are 4,3,1 and 2. Available sum six is divided by three. A zero-imputed mean 1.5 uses a different assumption.
3. 참값 필터의 문제A truth-value filter
Python에서 가정 값 [0,2,None,4]에 [x for x in values if x]를 적용했습니다. 어떤 값이 남고 평균은 얼마인가요?
Apply [x for x in values if x] to toy Python values [0,2,None,4]. What remains and what is its mean?
풀이와 확인할 이유Solution and explanation
2와 4만 남아 평균 3입니다. None뿐 아니라 관측 0도 제외했습니다. 가용평균 2를 원하면 x is not None처럼 결측 조건을 직접 씁니다.
Only 2 and 4 remain, with mean three. The filter drops observed zero as well as None. Test x is not None for the intended available mean two.
4. 실제 가용수Actual availability
원행 3613 중 원임금 3017개·정리로그 3010개가 가용합니다. 각 결측수와 두 가용수 차이를 구하세요.
Among 3613 source rows,3017 raw wages and 3010 trimmed logs are available. Find both missing counts and the availability difference.
풀이와 확인할 이유Solution and explanation
원임금 결측 596,정리로그 결측 603,가용수 차이 7입니다. 이 자료에서는 원임금이 있지만 정리로그가 없는 7행을 원행에 보존합니다.
Raw wages have 596 missing and trimmed logs 603, with difference seven. The seven raw-available/log-unavailable records remain in the source.
5. 단위 환산Currency units
1976년 원행 임금 548센트/시간을 달러/시간으로 바꾸세요. 이것이 현재 임금인가요?
Convert an actual 1976 wage of 548 cents/hour to dollars/hour. Is it a current-price wage?
풀이와 확인할 이유Solution and explanation
548/100=5.48달러/시간입니다. 같은 1976년 명목값의 통화 단위만 바꿨으므로 현재 가격 임금이 아닙니다.
It is 5.48 dollars/hour. Only the currency unit changed; the nominal reference period remains 1976.
6. 평균과 중앙값Mean and median
가정 값 1,2,3,4,20의 평균·중앙값을 구하고 다른 이유를 설명하세요.
Compute mean and median of toy values 1,2,3,4,20 and explain their difference.
풀이와 확인할 이유Solution and explanation
합 30을 5로 나누어 평균 6,정렬 가운데 값은 3입니다. 큰 20이 평균에 영향을 주지만 중앙값은 가운데 순서값입니다. 질문에 맞는 요약과 분포를 함께 보고합니다.
The mean is 30/5=6 and the median is three. The large 20 affects the mean; the median is the middle ordered value. Choose summaries for the question and show the distribution too.
7. 실제 원임금 평균Actual raw-wage mean
가용 원임금 평균이 86903/15085 달러/시간입니다. 센트/시간 평균을 구하세요.
The available raw-wage mean is 86903/15085 dollars/hour. Give its mean in cents/hour.
풀이와 확인할 이유Solution and explanation
100배인 1738060/3017 센트/시간,약 576.08883입니다. 원행 수와 순위는 변하지 않으며 값의 단위를 함께 바꿉니다.
Multiply by 100 to obtain 1738060/3017 cents/hour, approximately 576.08883. Counts and ranks remain unchanged.
8. 관측 범위Observed range
가용 원임금 최솟값 0.25·최댓값 24.04 달러/시간입니다. 이를 사회 전체 임금의 가능한 범위라고 써도 되나요?
Available raw wages range from 0.25 to 24.04 dollars/hour. Does that establish the possible range of all wages in society?
풀이와 확인할 이유Solution and explanation
이 자료만으로는 안 됩니다. 보관된 가용 기록의 관측 범위입니다. 모집단 지지집합이나 신뢰구간은 다른 정의·가정이 필요합니다.
No. It is the observed range in the retained available records, not a population support bound or confidence interval.
9. 분모를 잘못 가져오기Borrowing the wrong denominator
구간 빈도 48의 상대빈도를 3017 대신 전체 3613으로 나눴습니다. 무엇이 바뀌나요?
Divide bin count 48 by 3613 roster rows rather than 3017 valid wages. What changes?
풀이와 확인할 이유Solution and explanation
48/3017은 가용 원임금 중 구간 비율이고 48/3613은 전체 원행 중 가용하며 그 구간에 있는 비중입니다. 둘을 같은 가용 분포 비율이라고 쓰면 안 됩니다.
48/3017 is the interval share among valid raw wages. 48/3613 is the share of all source rows with an available wage in that interval. They are different targets.
10. 0인 구간An empty bin
가정 가용값 10개가 있지만 어떤 구간에는 하나도 없습니다. 그 구간 빈도 0과 원변수 미관측 10개는 같은 상태인가요?
Ten toy values are available but none lie in one bin. Is its zero count equivalent to ten unavailable source values?
풀이와 확인할 이유Solution and explanation
아닙니다. 첫 상태는 가용 10개 중 해당구간 상대빈도 0입니다. 두 번째는 가용값이 0개여서 그 변수의 경험분포·가용평균을 정의할 수 없는 상태입니다.
No. The first gives a zero interval share among ten available values. The second leaves no available empirical distribution or available mean.
11. 끝점 배정Endpoint assignment
가정 값 0,2,4를 [0,2),[2,4]로 나눕니다. 구간 빈도를 구하세요.
Put toy values 0,2,4 into [0,2),[2,4]. Find bin counts.
풀이와 확인할 이유Solution and explanation
첫구간 1개,둘째 2개입니다.2는 오른구간으로,마지막끝 4는 최종닫힌구간으로 배정합니다.
Counts are one and two. The internal boundary 2 goes right and final endpoint 4 is included in the final bin.
12. 이중 계산Double counting
가정 값 0,2,4를 [0,2]와[2,4] 두 닫힌 구간에 각각 세면 빈도합은 얼마이며 문제는 무엇인가요?
Count toy values 0,2,4 separately in closed intervals [0,2] and [2,4]. What is the total and what went wrong?
풀이와 확인할 이유Solution and explanation
각 2개로 합 4가 되어 원값 3개보다 많습니다. 경계 2를 두 번 셌습니다. 겹치지 않는 분할 규칙을 선언해야 합니다.
Each count is two, totaling four rather than three. Boundary 2 was counted twice; declare a disjoint partition.
13. 실제 빈도 합Actual frequency total
실제 비균등 구간 빈도 48,723,1759,467,20을 더하고 가용분모 3017과 비교하세요.
Sum actual unequal-bin counts 48,723,1759,467,20 and compare with available denominator 3017.
풀이와 확인할 이유Solution and explanation
합 3017로 같습니다. 현재 구간 범위의 밖값은 0입니다. 미관측 596개는 이합에 포함하지 않습니다.
They total 3017. The current outside count is zero; the 596 unavailable wages are not included.
14. 밀도 높이Density height
가용 3017개 중[4,8)달러/시간 구간 빈도 1759의 상대빈도·밀도·넓이를 식으로 구하세요.
Among 3017 available values, [4,8) dollars/hour has 1759 records. Give its share, density and area.
풀이와 확인할 이유Solution and explanation
상대빈도 1759/3017,폭 4,밀도 1759/12068,넓이(1759/12068)×4=1759/3017입니다. 높이의 단위는 (달러/시간)의 역수입니다.
Share is 1759/3017, width four, density 1759/12068 and area 1759/3017. Height has reciprocal dollars/hour units.
15. 폭을 빼먹기Omitting width
폭 2인 구간과 폭 8인 구간에 각각 상대빈도 0.2가 있습니다. 밀도 높이와 넓이를 비교하세요.
Two toy bins of widths 2 and 8 each contain share 0.2. Compare density heights and areas.
풀이와 확인할 이유Solution and explanation
높이는 0.1과 0.025로 다르지만 넓이는 각각 0.2입니다. 높이를 둘다 0.2로 두면 넓이는 0.4와 1.6이어서 비율을 잘못 나타냅니다.
Heights are 0.1 and 0.025, with area 0.2 each. Using height 0.2 for both gives areas 0.4 and 1.6, which do not encode the equal shares.
16. 높이가 1보다 큼A height above one
가정 가용값이 1개이상이며 모두 폭 0.1인 한 구간에 들어 있습니다. 밀도 높이 10은 오류인가요?
At least one toy value is available and all available values lie in one bin of width 0.1. Is density height ten an error?
풀이와 확인할 이유Solution and explanation
아닙니다. 상대빈도 1을 폭 0.1로 나누면 10이고 넓이는 1입니다. 밀도 높이를 점확률로 해석하면 안 됩니다.
No. Share one divided by width 0.1 gives height ten and area one. Density height is not point probability.
17. 센트의 밀도Density in cents
달러/시간 폭 4인 구간의 밀도가 h입니다. 센트/시간 축의 대응 폭과 밀도는?
A wage bin has width four dollars/hour and density h. Give its corresponding cents/hour width and density.
풀이와 확인할 이유Solution and explanation
폭 400,밀도h/100입니다. 원행 수와 상대빈도·막대 넓이는 같습니다.
Width becomes 400 and density h/100. Counts, shares and bar area remain unchanged.
18. 범위 밖 보존Preserving outside values
가정 가용 10개 중 8개만 표시구간에 있습니다. 원가용분모 10을 유지한 밀도 총넓이는 얼마인가요?
Eight of ten available toy values fall inside displayed bins. What is total density area with the original denominator ten?
풀이와 확인할 이유Solution and explanation
8/10=0.8입니다. 밖값 2개를 보고합니다. 표시된 8개로 다시 나누어 넓이 1을 만들면 범위 안 조건부 분포라는 다른 표적입니다.
Area is 0.8; report two outside values. Renormalizing by eight instead produces the conditional distribution within the displayed range.
19. live 경계Live boundaries
[0,2500]센트를 5구간으로 나눌 때 원값 500·2500·2501은 각각 어디에 들어가나요?
Partition [0,2500] cents into five bins. Where do 500,2500 and 2501 go?
풀이와 확인할 이유Solution and explanation
500은 두번째[500,1000),2500은 마지막[2000,2500],2501은 범위밖입니다. 밖값도 가용분모에 남기고 따로 셉니다.
500 enters the second interval [500,1000),2500 the final closed [2000,2500], and 2501 is outside. Retain the outside value in the available denominator.
20. 구간 수의 의미What changing bins means
같은 3017 원임금에서 live 구간 수를 1에서 30으로 바꾸면 새 관측이 생기나요?
Does switching one to thirty live bins create new observations from the same 3017 raw wages?
풀이와 확인할 이유Solution and explanation
생기지 않습니다. 같은 원행을 다른 분할로 집계합니다. 전체 3613·가용 3017·미관측 596·범위밖 0은 현재 자료에서 그대로여야 합니다.
No. It partitions the same source values differently. Current counts 3613 source/3017 valid/596 missing/zero outside must remain fixed.
21. 원값 비율Value ratio
가정A=95,B=100의 차이·B/A·A기준 증가율을 구하세요.
For toy A95 and B100, compute difference, B/A and increase relative to A.
풀이와 확인할 이유Solution and explanation
차이 5,비율 20/19≈1.05263,증가율(5/95)×100≈5.263%입니다.
They are five,20/19≈1.05263 and approximately 5.263%.
22. 확대 막대Truncated bars
가정 95·100 막대의 기준을 90으로 두었습니다. 보이는 길이와 길이비율을 구하고 원값이 두 배인지 판단하세요.
Toy bars 95,100 start at 90. Find visible lengths and their ratio. Did the original value double?
풀이와 확인할 이유Solution and explanation
보이는 길이는 5·10,비율 2입니다. 원값 비율은 20/19이므로 두 배가 아닙니다. 원점 생략을 공개해야 합니다.
Lengths are five and ten, ratio two. The original ratio remains 20/19, so it did not double. Disclose the truncated baseline.
23. 반지름과 넓이Radius and area
가정 수 1·2를 원의 반지름 1·2로 표시했습니다. 원넓이 비율과 넓이를 1:2로 만들 반지름비를 구하세요.
Toy values 1,2 are shown with circle radii 1,2. Find the area ratio and the radius ratio needed for area ratio 1:2.
풀이와 확인할 이유Solution and explanation
넓이비는 1:4입니다. 넓이비 1:2를 원하면 반지름비 1:√2를 사용합니다.
Current areas are 1:4. Area ratio 1:2 requires radius ratio 1:√2.
24. 로그 간격Log spacing
양의 가정값 1,10,100을 로그 10 축에 그리면 좌표와 같은 간격의 의미는?
Map positive toy values 1,10,100 to a base-ten log axis. What do equal gaps mean?
풀이와 확인할 이유Solution and explanation
좌표 0,1,2입니다. 같은 간격은 원값 비율 10을 나타내며 원값 차이 9·90이 같다는 뜻이 아닙니다.
Coordinates are 0,1,2. Equal gaps encode ratio ten, not equal raw differences nine and ninety.
25. 로그 정의역Log domain
미관측을 0으로 대체한 뒤 로그를 취해 0행을 제외했습니다. 이것이 원결측을 복구하고 모든 원행을 보존한 처리인가요?
Missing values are replaced with zero, then zero rows are excluded when taking logs. Did this recover missing truth and retain every row?
풀이와 확인할 이유Solution and explanation
아닙니다. 0대체는 별도가정이고 로그 0은 미정의입니다. 제외된 원행과 사유를 남겨야 하며 원결측을 회복한 것이 아닙니다.
No. Zero replacement is an additional assumption and log zero is undefined. Preserve the omitted-row trace; no missing truth was recovered.
26. 완전짝 분모Complete-pair count
두 변수는 각각 100개 행 중 90개가 가용합니다. 두 변수가 모두 가용한 행 수가 반드시 90인가요?
Each of two variables is available in 90 of 100 rows. Must there be 90 complete pairs?
풀이와 확인할 이유Solution and explanation
아닙니다. 결측행이 같으면 90이지만 서로다른 10행씩이면 80입니다. 일반적으로 이조건에서 공통가용수는 80~90이며 산점도 분모를 직접 셉니다.
No. Matching missing rows give 90 pairs; disjoint sets of ten missing rows give 80. The overlap is between 80 and 90 and must be counted directly.
27. 국가 순서Country ordering
실제 16국을GDP순으로 정렬한 점들을 연결했습니다. 선은 실제 국가의 시간 변화를 관측한 경로인가요?
Actual 16-country dots are GDP-ranked and connected. Is that line an observed time trajectory?
풀이와 확인할 이유Solution and explanation
아닙니다. x는 국가 범주 순서이며 시간이 아닙니다. 선을 시간 경로로 해석하지 않고 원점과 선택한 요약선을 구별합니다.
No. The horizontal order is categorical rank, not time. Keep country dots separate from any explicitly defined summary line.
28. 비교 패널Comparison panels
가정 두집단 범위 0~100과 90~100을 각각 같은높이 패널에 꽉차게 그렸습니다. 픽셀변화가 같으면 원단위 변화도 같나요?
Toy groups span 0–100 and 90–100 but each fills a same-height panel. Do equal pixel gaps mean equal original changes?
풀이와 확인할 이유Solution and explanation
아닙니다. 첫패널 전체높이 100과 둘째 10이 다릅니다. 같은 변화량을 비교하려면 공통눈금 또는 명시적 다른축 안내가 필요합니다.
No. Full-height ranges differ by a factor of ten. Use common scales or explicit disclosure for magnitude comparisons.
29. 보조 표식Additional encodings
두범주를 색으로만 나누었습니다. 의미를 더 명확히 전달할 두 가지 보완과 검증 범위를 쓰세요.
Two categories differ only in color. Give two improvements and state the verification limit.
풀이와 확인할 이유Solution and explanation
라벨·범례·수치표·모양 같은 보완을 둘이상 둡니다. 이것은 읽기 설계이며 실제 모든 보조기기 사용성 시험을 마쳤다는 인증은 아닙니다.
Add labels, a legend, numerical tables or different shapes. These are design choices, not certification of completed usability testing on every assistive technology.
30. 요약선의 정체What a summary line represents
가중평균선을 그리자 국가점과 떨어져 있습니다. 모든 국가를 그 선의 값으로 수정해야 하나요?
A weighted mean line lies away from country dots. Should every country value be changed to the line?
풀이와 확인할 이유Solution and explanation
아닙니다. 선은 전체 요약이고 각 점은 개별 원값입니다. 평균선과 다른 것이 원값 오류의 증거는 아닙니다.
No. The line summarizes the set; dots retain individual source values. Deviation from the mean is not evidence of a source error.
31. 가중 표적 손계산Weighted targets by hand
가정 두지역 지표 1·9,인구 9·1에서 지역균등 평균과 인구가중 평균을 구하세요.
Toy regions have indicators 1,9 and populations 9,1. Compute equal-region and population-weighted means.
풀이와 확인할 이유Solution and explanation
지역균등은 5,인구가중은(9+9)/10=1.8입니다. 같은지표에 다른 비중을 준 두표적입니다.
They are five and 1.8 respectively, two distinct targets from the same indicators.
32. 정규화Normalization
가정 원가중치 2·3·5와 값 1·4·8의 정규화 가중치와 평균을 구하세요.
Toy raw weights 2,3,5 accompany values 1,4,8. Normalize the weights and compute the mean.
풀이와 확인할 이유Solution and explanation
가중치는 1/5,3/10,1/2이며 평균(2+12+40)/10=27/5=5.4입니다.
Weights are 1/5,3/10,1/2. The mean is 54/10=27/5=5.4.
33. 영 가중치Zero total weight
가정 두값 1·9의 원가중치가 0·0입니다. 정규화 평균을 0 또는 5로 보고할 수 있나요?
Toy values 1,9 have raw weights 0,0. May the normalized mean be reported as zero or five?
풀이와 확인할 이유Solution and explanation
명시적 새규칙 없이 둘다 안 됩니다. 가중치합 0이어서 원정의의 평균이 미정의입니다. 균등평균 5는 다른표적입니다.
Neither follows without a new rule. Total weight zero makes the specified normalization undefined; equal-weight mean five is a different target.
34. 양의 가중 결측Positive weight on missingness
가정 값 1·미관측의 가중치가 1/2씩입니다. 미관측을 버리고 평균 1을 내면 원표적을 완전히 알게 된 것인가요?
Toy values 1, unavailable have weight 1/2 each. Dropping the missing value yields mean one. Is the original target known?
풀이와 확인할 이유Solution and explanation
아닙니다. 원표적은(1+x_missing)/2여서 미관측값에 달립니다. 버리고 정규화한 1은 가용 부분의 다른요약입니다.
No. The target (1+x_missing)/2 depends on the unavailable value. Renormalized mean one describes the available subset.
35. 범위 상계 증명Prove a range bound
유한 값들이m~M에 있고 가중치는 비음수·합 1입니다. 가중평균도m~M임을 증명하세요.
Finite values lie in [m, M] and nonnegative weights sum to one. Prove their weighted mean lies in the same range.
풀이와 확인할 이유Solution and explanation
각 m≤xᵢ≤M에 wᵢ≥0을 곱해 합하면 mΣwᵢ≤Σwᵢxᵢ≤MΣwᵢ입니다. 합이 1이므로 m≤μ_w≤M입니다. 음수가중치에는 그대로 적용하지 않습니다.
Multiply each bound by wᵢ≥0 and sum: mΣwᵢ≤Σwᵢxᵢ≤MΣwᵢ. Since the sums equal one, m≤μ_w≤M. Negative weights need different reasoning.
It extends selected countries to the whole world and country GDPpc to individual income, without a probability-sampling justification. Preserve the actual target and scope.
41. 고객 네칸Four customer cells
실제 불만없음·비이탈 2614,불만없음·이탈 295,불만있음·비이탈 41,불만있음·이탈 200에서 두불만집단수와 전체이탈수를 구하세요.
Actual no-complaint/nonchurn, no-complaint/churn, complaint/nonchurn and complaint/churn cells are 2614,295,41,200 respectively. Find both complaint-group sizes and total churn.
풀이와 확인할 이유Solution and explanation
불만없음 2909,불만있음 241,전체이탈 495,전체 3150입니다.
Group sizes are 2909 and 241, churn total 495 and full total 3150.
42. 집단 안 비율A within-group rate
불만있음 241행 중 이탈 200행입니다. 집단안 이탈비율을 구하고 분모의 뜻을 쓰세요.
Of 241 complaint records,200 churn. Give the rate and explain its denominator.
풀이와 확인할 이유Solution and explanation
200/241≈82.9876%입니다. 분모는 불만있음으로 조건을 남긴 전체기록수입니다.
200/241≈82.9876%. The denominator contains all retained records in the complaint group.
43. 조건 반전Reversing a condition
전체이탈 495행 중 불만있음 200행입니다. 이것이 불만있음 중 이탈비율 200/241과 같나요?
Among 495 churn records,200 have complaints. Is this the same as complaint-group churn rate 200/241?
풀이와 확인할 이유Solution and explanation
아닙니다.200/495=40/99≈40.4040%는 이탈집단 안 불만구성입니다. 조건방향과 분모가 다릅니다.
No.200/495=40/99≈40.4040% is complaint composition among churn, with a different direction and denominator.
44. 공동 비중Joint share
전체 3150행 중 불만·이탈이 함께 200행입니다. 공동비중을 구하세요.
Of 3150 records,200 have both complaint and churn. Give their joint share.
200/3150=4/63≈6.3492%, distinct from 200/241 and 200/495.
45. 개수와 비율 순서Count and rate order
실제 불만없음 이탈 295/2909와 불만있음 200/241에서 개수 순서와 비율 순서를 비교하세요.
Compare counts and rates for actual 295/2909 no-complaint and 200/241 complaint churn.
풀이와 확인할 이유Solution and explanation
개수는 295>200이지만 비율은 295/2909<200/241입니다. 크기가다른 집단의 개수와 비율은 다른양이므로 모순이나 자동심프슨역전은 아닙니다.
Count 295 exceeds 200, while 295/2909 is smaller than 200/241. Different quantities are being compared, so this is not a contradiction or automatically a Simpson reversal.
46. 전체 이탈비율Overall churn
집단 크기 2909·241,집단이탈 295·200으로 전체 이탈비율을 집단가중식과 합으로 구하세요.
Use group sizes 2909,241 and churn counts 295,200 to compute the overall rate by group weighting.
풀이와 확인할 이유Solution and explanation
(2909/3150)(295/2909)+(241/3150)(200/241)=495/3150=11/70≈15.7143%입니다. 두집단을 반씩 평균한 값은 아닙니다.
(2909/3150)(295/2909)+(241/3150)(200/241)=495/3150=11/70≈15.7143%. This is not the equal average of the two group rates.
The rate moves from 1/2 to 1/3, a decrease of 1/6 or about 16.6667 percentage points. This descriptive change is not automatically a population or causal effect.
50. 관측과 개입Observation and intervention
불만집단 이탈비율이 높으니 불만해결 정책으로 이탈이 두집단 비율차만큼 감소한다고 결론내릴 수 있나요?
Does the higher complaint-group churn rate establish that resolving complaints reduces churn by the observed rate gap?
풀이와 확인할 이유Solution and explanation
이표만으로는 없습니다. 집단 간 다른조건·선택·처치·반사실 비교가 필요합니다. 관측 연관을 개입효과로 바꾸지 않습니다.
No. Other conditions, selection, treatment and counterfactual comparisons require a separate design. Observed association is not an identified intervention effect.
51. 중점 오차 상계A midpoint error bound
가정 n≥1개 가용값이 모두 겹치지 않는 폭 wⱼ>0인 구간에 속합니다. 각값을 구간중점으로 대체한 평균과 원평균 차이를 삼각부등식으로 제한하세요.
All n≥1 available values lie in disjoint bins of widths wⱼ>0. Bound the mean error after replacing each value by its bin midpoint.
풀이와 확인할 이유Solution and explanation
각변위 절댓값은 해당폭의 절반 이하입니다. 이를n으로 나누어 합하면 다음과 같습니다.
∣μ−xˉ∣≤n1i∑∣mb(i)−xi∣≤j∑2ncjwj
Each absolute displacement is at most half its bin width. Average those bounds:
∣μ−xˉ∣≤n1i∑∣mb(i)−xi∣≤j∑2ncjwj
52. 함수 요약의 오차Error in a function summary
가용 n≥1개를 겹치지 않는 양의폭 wⱼ 구간에 나누고 각 구간의 대응중점으로 대체합니다. 함수g가 모든 원값과 대응중점에 대해 |g(x)−g(y)|≤L|x−y|,L≥0를 만족합니다. g평균 근사의 오차상계를 구하세요.
Let n≥1 available values lie in disjoint positive-width bins wⱼ, with each replaced by its corresponding bin midpoint. Assume |g(x)−g(y)|≤L|x−y| for every required pair and L≥0. Bound the average transformed error.
풀이와 확인할 이유Solution and explanation
각함수차에 Lipschitz상계를 쓰고 합하면 LΣⱼ cⱼwⱼ/(2n)입니다. 평균복원이나 전체분포일치의 증명은 아닙니다.
Δg=n1i∑[g(mb(i))−g(xi)]∣Δg∣≤2nLj∑cjwj
Apply the Lipschitz bound to each displacement and sum to obtain LΣⱼcⱼwⱼ/(2n). This does not recover the original mean or full distribution.
Archived programs number 4 audit,8 histogram,4 axis,4 target,8 denominator; audit has no plot. Count processes/SVGs and name the live calculation language.
풀이와 확인할 이유Solution and explanation
총 28프로세스·24SVG입니다. live구간변경은 별도JavaScript집계이고 Python/R을 새로실행한 것이 아닙니다. 보관 5bin기준과 대조합니다.
There are 28 processes and 24 SVGs. Live bin changes use separate JavaScript aggregation, compared with fixed five-bin records; they do not launch Python/R.
It first indicates a dependency/environment problem. Reproduce in a declared environment with required packages, distinguishing failure to run from a wrong numerical formula.
59. SVG 해시SVG hashes
같은 빈도·밀도가 확인됐지만 두환경의SVG해시가 다릅니다. 어느그래프가틀렸는지 해시차이만으로 알수있나요?
Counts and densities agree but SVG hashes differ between environments. Does the hash difference identify a wrong plot?
풀이와 확인할 이유Solution and explanation
없습니다. 글꼴·장치·메타데이터·버전이바이트를 바꿀수있습니다. 바이트동일성과 수치동일성·시각의미를 각각 대조합니다.
No. Fonts, devices, metadata and versions can change bytes. Compare byte identity, numerical agreement and visual meaning separately.
Repair: “A Python plot exists and bar heights sum to one, proving missing values are zero,16 countries represent the world, complaint resolution is causal and future performance is validated.”
State that actual code produced a graphic. Check available denominators, outside values, widths and density areas while preserving missingness. Report declared selected-country targets and descriptive customer association. World representation, causal effects and future performance require separate designs and validation.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.