관계·집단·시계열의 탐색Exploring relationships, groups and time
국가·연도·교육집단·같은 원행 짝의 서로 다른 질문Different questions for countries, years, schooling groups and same-source pairs
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 함께 움직인다는 말의 단위를 묻는다1. Ask which units move together
키가 큰 학생이 신발도 큰지 보고 싶다면 같은 학생의 키와 신발 크기를 짝지어야 합니다. 두 목록을 따로 크기순으로 정렬해 붙이면 실제로 관측하지 않은 짝이 생깁니다. 점 두 개를 선으로 이었을 때도 그것이 같은 사람의 변화인지 서로 다른 사람을 잇는 선인지 구별해야 합니다.
이 장은 가정한 작은 짝에서 산점도·상관을 익힌 뒤 실제 국가 16개, 한국 25년, 사람 3,613행, 점포 410행으로 이어갑니다. 같은 숫자 집합에서도 시간 순서·집단·완전짝 조건에 따라 다른 질문이 생깁니다. 다른 답이 나온다고 하나를 지워 맞추지 않습니다.
조절기를 바꾸는 탐색은 원행을 JavaScript로 계산합니다. 고정 Python·R 프로그램도 실제 실행해 표와 SVG를 보관했습니다. 즉시 계산한 새 설정을 Python·R에서 방금 실행했다고 부르지 않으며, 원자료·파생 요약·가정 예를 분리해 읽습니다.
To ask whether taller students also have larger shoes, pair height and shoe size for the same student. Sorting the two lists independently invents unobserved pairs. A connecting line also needs interpretation: does it show one person changing, or merely join different people?
Start with toy pairs and scatterplots/correlation, then examine 16 countries,25 Korean annual records,3,613 people and 410 establishment records. Time order, groups and complete-pair rules define different questions even within related data. Different answers do not justify deleting observations to force agreement.
Interactive controls compute original rows in JavaScript. Fixed Python/R programs were also actually executed and their tables/SVGs archived. A new live setting is not a new Python/R execution. Distinguish original observations, derived summaries and explicit toy assumptions.
기초Foundations
2. 두 값은 어떤 행에서 만났는지 남긴다2. Retain the source that joins each pair
가정 학생 A의 공부 시간·점수는 (1,80),B는 (3,60),C는 (2,70)입니다. 산점도는 이 세 짝을 그립니다. 시간과 점수 목록을 각각 정렬해 (1,60),(2,70),(3,80)으로 만들면 원래와 반대 방향의 배열이 생깁니다. 계산 프로그램은 두 경우 모두 성공할 수 있지만 두 번째는 원 관측 짝이 아닙니다.
실제 국가 비교는 같은 연도의 같은 국가 지표를 묶습니다. 한국 연간 비교는 같은 연도의 두 지표를 묶습니다. 점포 전후는 같은 원행의 두 시점을 묶습니다. 각 상황의 키·시점·단위가 다르므로 위치 번호 하나의 뜻을 다른 자료에 그대로 옮기지 않습니다.
Toy students A, B, C have study-hour/score pairs (1,80),(3,60),(2,70). Draw those pairs. Independently sorting the lists instead creates(1,60),(2,70),(3,80), reversing the arrangement. Both programs can run successfully, but the second does not preserve observed pairing.
Country comparisons pair indicators for the same country and year. Korean annual comparisons pair indicators in the same year. Establishment comparisons pair waves for the same source record. Keys, periods and units differ; a position number does not have one universal meaning.
기초Foundations
3. 한 점의 x와 y를 각각 축에서 읽는다3. Read a point’s two coordinates from their axes
가정 점 (2,70)은 가로축 값 2·세로축 값 70입니다. 점이 높다는 것은 y가 크다는 뜻이고 오른쪽이라는 것은 x가 크다는 뜻입니다. 두 축의 물리 단위는 같을 필요가 없습니다. 시간과 점수의 한 단위를 같은 길이로 그렸다고 두 양이 같아지는 것은 아닙니다.
먼저 점의 개수·범위·겹침을 보고, 다음에 전체 방향·곡선·흩어짐을 살핍니다. 같은 좌표에 여러 기록이 있을 수 있으므로 보이는 점의 수가 가용 원행 수와 같다고 단정하지 않습니다. 이 장의 원행 선택기로 겹친 기록도 따로 추적할 수 있습니다.
Toy point (2,70) has horizontal value two and vertical value 70. Higher means larger y; farther right means larger x. The axes need not share physical units. Drawing an hour and a score point with equal pixel lengths does not equate those quantities.
Inspect count, range and overlap before overall direction, curvature and spread. Several records can share a coordinate, so visible marks need not equal the valid-row count. A source selector can trace overlapping records separately.
기초Foundations
4. 국가 사이·시간 수준·연차 변화를 나눈다4. Separate cross-country levels, time levels and changes
실제 World Bank 보관본에서 세 가지 짝을 만듭니다. 첫째는 2024년 선택 16국의 1인당 실질 GDP·기간 기대수명, 둘째는 한국 2000~2024년 25개 연도의 두 지표 수준, 셋째는 한국 인접 두 연도의 변화 24짝입니다. 셋은 관측 단위와 비교 질문이 다릅니다.
전체 구간의 기술적 Pearson 상관은 각각 약 0.784471,0.983561,−0.214307입니다. 같은 출처인데 방향이 달라질 수 있는 이유는 짝과 요약 질문이 바뀌었기 때문입니다. 차분이 더 진짜이거나 수준이 더 진짜라는 순위를 붙이지 않습니다. 어느 쪽도 이 숫자만으로 GDP 증가의 인과효과를 식별하지 않습니다.
Construct three pair sets from the retained World Bank data:16 selected countries’2024 GDP-per-capita/period-life levels;25 Korean annual levels from 2000–2024; and 24 adjacent-year Korean changes. They have different observational units and comparison questions.
Full-range descriptive Pearson correlations are approximately 0.784471,0.983561 and −0.214307. Different directions can arise from different pairing questions within the same source. Neither levels nor differences are automatically the uniquely true view. These numbers alone do not identify a causal effect of GDP growth.
기초Foundations
5. 가용 두 열보다 공통 가용 짝을 센다5. Count complete pairs rather than two separate columns
가정 네 행의 x는 (1,2,미관측,4),y는 (미관측,6,7,8)입니다. 각 열은 3개가 가용하지만 완전짝은 두 번째와 네 번째의 2개뿐입니다. 각각 결측을 지운 뒤 남은 위치끼리 붙이면 원행 대응이 깨집니다. 먼저 같은 행의 가용 여부를 판단하고 두 값을 함께 선택합니다.
실제 사람 자료는 교육 연수가 원행 3,613개에서 기록되어 있고 로그 임금은 3,010개가 가용합니다. 교육 0년 집단은 원행 3개 모두 로그가 미가용이라 평균·최솟값·최댓값이 미정의입니다. 가용 집단이 18개라는 사실과 기록된 교육 값이 19개라는 사실을 함께 남깁니다.
Toy columns x=(1,2, missing,4), y=(missing,6,7,8) each have three available values, but only rows two and four are complete pairs. Dropping missing values separately and then aligning positions breaks source correspondence. Select both values by the same-row availability rule.
Actual schooling is recorded across 3,613 person rows, while 3,010 trimmed logs are available. All three schooling-zero records lack logs, leaving that group’s mean/min/max undefined. Retain both facts:19 recorded schooling levels and 18 levels with available means.
기초Foundations
6. 방향·곡선·산포는 서로 다른 특징이다6. Direction, curvature and spread are different features
가정 x=−2,−1,0,1,2와 y=x²를 그리면 U모양입니다. x가 커질수록 y가 항상 증가하는 것은 아니지만 완전히 정해진 함수 관계가 있습니다. 직선 방향만 요약하는 숫자가 0이라고 이 곡선을 지우거나 관계가 없다고 할 수 없습니다.
또 가정 y=x인 점들에 작은 오차를 넣은 경우와 x가 클수록 오차 폭이 커지는 경우는 평균 방향이 비슷해도 산포가 다릅니다. 산점도에서 조건부 흩어짐을 따로 보되, 관측 그림만으로 확률분산 모형·독립성·인과성을 검증 완료했다고 말하지 않습니다.
Plot toy x=−2,−1,0,1,2 against y=x². The U-shape is a fully determined functional relationship even though y does not increase throughout the x range. A zero linear-direction summary does not erase that curve or establish absence of dependence.
Points near y=x with small errors can differ from a view whose errors grow with x, despite similar mean direction. Inspect spread as its own feature, without claiming that a scatterplot certifies a variance model, independence or causality.
기초Foundations
7. 선택한 점에서 원자료의 키와 단위로 돌아간다7. Trace a selected point back to its keys and units
한국 연도 점을 고르면 해당 GDP·기대수명 API 위치를 원표에서 확인할 수 있습니다. 연차 변화 점은 앞 연도와 뒤 연도라는 두 원행에 의존합니다. 변화 하나를 새 시점에서 직접 측정한 원자료 한 칸처럼 표시하지 않습니다.
2024년 16국 점은 국가 범주이고 한국 25년 점은 실제 연도입니다. 두 산점도에서 x가 GDP라는 공통점이 있어도 각각의 점을 잇는 경로가 같은 뜻은 아닙니다. 임의 순위의 국가를 잇는 선과 연간 지표의 시간선, 같은 점포의 두 끝점을 구분합니다.
A Korean-year point can be traced to its GDP/life API positions in the source table. An annual-change point depends on two source years. Do not label that difference as one directly measured original cell at a new period.
The 16-country view uses country categories; the Korean 25-year view uses actual annual periods. Both can place GDP on x without giving connecting paths the same meaning. Distinguish ranked-country connections, chronological annual segments and two endpoints of the same establishment.
기초Foundations
8. 실습 A · 실제 짝과 연도 구간을 바꿔 읽는다8. Lab A · explore actual pairs and a selected year range
2024년 16국·한국 수준·한국 연차 변화 중 하나를 고릅니다. 한국 자료에서는 시작·끝 연도를 바꾸면 원행을 JavaScript로 다시 묶고 중심화합·상관을 계산합니다. 선택한 한 점의 원자료 위치와 두 축 단위를 확인하세요. 고정 실제 Python·R 전체구간 기준은 별도 보관 결과입니다.
한 연도만 남기면 수준점은 하나이고 인접 변화점은 0개입니다. 상관의 분모가 없으면 0으로 만들지 않고 미정의로 보고합니다. 선택 구간을 바꿔 가장 큰 상관을 고른 경우에도 그 탐색을 숨기거나 미리 정한 인과 검증처럼 보고하지 않습니다.
Choose the 16-country 2024 view, Korean levels or Korean annual changes. Changing the Korean start/end years immediately pairs retained rows and recomputes centered sums/correlation in JavaScript. Inspect a selected point’s trace and axis units. Fixed actual full-range Python/R runs remain separate references.
One selected year gives one level point and zero adjacent differences. An unavailable correlation denominator yields undefined, not zero. Searching intervals for the largest correlation must not be hidden or presented as prespecified causal validation.
기초Foundations
9. 평균을 빼면 점이 기준점에서 얼마나 벗어났는지 보인다9. Center values to measure departures from a reference
공통 가용 짝이 n≥1개일 때 각 열의 평균을 구합니다. x에서 x평균을 뺀 값은 가로 방향의 이탈이고 y도 마찬가지입니다. 두 이탈의 합은 각각 0입니다. 평균보다 함께 크거나 함께 작으면 이탈의 곱이 양수, 서로 반대이면 음수입니다.
dxi=xi−xˉdyi=yi−yˉi∑dxi=i∑dyi=0
이 곱은 한 점이 전체 방향 요약에 어떻게 기여하는지 보여 줍니다. 양의 곱 한 개가 전체 상관을 결정하지 않으며, 모든 기여를 같은 완전짝에서 더해야 합니다.
With n≥1 complete pairs, compute each column mean. Subtracting the x mean gives a horizontal departure, and similarly for y. Each departure column sums to zero. Departures with the same sign have positive products; opposite signs have negative products.
dxi=xi−xˉdyi=yi−yˉi∑dxi=i∑dyi=0
A product describes one point’s contribution to the overall direction summary. One positive contribution does not determine the full correlation; sum all contributions over the same complete pairs.
기초Foundations
10. 제곱합과 곱합을 같은 짝에서 계산한다10. Compute square sums and cross sums on the same pairs
Sxx와 Syy는 각각 이탈 제곱의 합이라 음수가 아닙니다. Sxy는 이탈 곱의 합이라 부호가 달라질 수 있습니다. 양의 n으로 나눈 값은 같은 자료의 기술분산·기술공분산입니다. n−1 분모를 쓰더라도 세 양에 같은 분모를 써야 상관 공식에서 상쇄됩니다.
Sxx=i∑dxi2Syy=i∑dyi2Sxy=i∑dxidyi
GDP의 제곱합·기대수명의 제곱합·둘의 곱합은 단위도 다릅니다. 원십진을 정확 분수로 계산한 합과 제곱근이 들어가는 상관 표시 근삿값을 구별합니다. 정확한 파일 산술은 측정값의 무한 정확성을 뜻하지 않습니다.
Sxx and Syy sum squared departures and are nonnegative. Sxy sums departure products and can have either sign. Dividing by positive n gives descriptive variances/covariance. A common n−1 divisor also cancels from correlation, provided all three quantities use the same divisor.
Sxx=i∑dxi2Syy=i∑dyi2Sxy=i∑dxidyi
The two square sums and their cross sum have different physical units. Distinguish exact retained-decimal sums from the numerical square root used to display correlation. Exact file arithmetic does not imply infinitely precise measurement.
기초Foundations
11. Pearson 상관은 직선 방향의 표준화 요약이다11. Pearson correlation standardizes linear co-movement
두 제곱합이 모두 양수일 때 다음 비율을 정의합니다. n≥2라도 한 열이 상수이면 분모가 0이므로 미정의입니다. 빈 자료나 한 짝에서도 0을 반환하지 않습니다.
r=SxxSyySxy
상관에는 원단위가 남지 않습니다. r=1은 모든 점이 양의 기울기 직선 위에, r=−1은 음의 기울기 직선 위에 있다는 뜻입니다. r=0은 중심화 곱합이 0이라는 뜻이며 곡선 관계·조건부 분포 차이·인과효과 부재의 증명은 아닙니다.
Define the following ratio when both square sums are positive. Even with n≥2, a constant column makes the denominator zero. Empty data and a single pair also have undefined correlation rather than correlation zero.
r=SxxSyySxy
Original units cancel. Value one means all points lie on a positively sloped line; minus one means a negatively sloped line. Zero means the centered cross sum is zero. It does not establish absence of curvature, distributional dependence or a causal effect.
기초Foundations
12. 세 짝을 손으로 중심화한다12. Center three pairs by hand
가정 짝 (1,2),(2,4),(3,3)에서 평균은 x가 2,y가 3입니다. 가로 이탈은 (−1,0,1),세로 이탈은 (−1,1,0)입니다. 원짝을 보존해 곱하면 (1,0,0)입니다.
Sxx=2Syy=2Sxy=1r=1/2
세로 값만 정렬해 (2,3,4)로 바꾸면 r=1이지만 다른 짝입니다. 상관을 높이는 정렬은 자료 정리가 아니라 관측 관계를 바꾸는 조작이 됩니다.
Toy pairs (1,2),(2,4),(3,3) have means two and three. Their x departures are (−1,0,1), y departures (−1,1,0). Preserving pairs gives products (1,0,0).
Sxx=2Syy=2Sxy=1r=1/2
Sorting only y into (2,3,4) gives correlation one but changes the pairs. Sorting to raise correlation changes the observed relationship rather than merely tidying the data.
심화Extension
13. 심화 · 상관의 절댓값이 1을 넘지 않는 이유13. Extension · why correlation cannot exceed one in magnitude
두 제곱합이 양수라고 합시다. 어떤 실수 t에도 아래 제곱합은 음수가 아닙니다. 이를 t의 이차식으로 보고 최소값을 대입하면 곱합의 제곱이 두 제곱합의 곱보다 크지 않음을 얻습니다.
등호는 모든 중심화 y가 같은 상수배의 중심화 x인 경우입니다. 이 증명은 유한한 실제 숫자 배열의 항등식이며 원행이 독립 확률표본이라는 전제는 필요하지 않습니다. 모집단 상관 추론에는 별도의 표집·모형 조건이 필요합니다.
Assume both square sums are positive. The sum of squares below is nonnegative for every real t. Minimize this quadratic in t to bound the squared cross sum by the product of the square sums.
Equality requires every centered y to equal the same multiple of centered x. This is an identity for finite numerical arrays, requiring no independent-sample assumption. Inference about a population correlation needs additional sampling/model conditions.
기초Foundations
14. 단위·원점·부호를 바꾸어 본다14. Change units, origins and signs
원래 두 제곱합이 양수인 같은 완전짝에서 새 값 x′=a+bx,y′=c+dy를 만듭니다. b,d가 0이 아니면 중심화 이탈은 각각 b배,d배입니다. 따라서 부호가 같은 두 배율은 상관을 보존하고 부호가 반대이면 부호를 뒤집습니다.
Sx′y′=bdSxySx′x′=b2Sxxrx′y′=sign(bd)rxy
달러를 센트로 바꾸면 공분산 크기는 달라져도 상관은 같습니다. 배율이 0이면 한 열이 상수여서 새 상관은 미정의입니다. 비선형 로그 변환은 이 불변성 정리의 범위가 아니며 양의 정의역도 확인해야 합니다.
For identical complete pairs with positive original Sxx and Syy, form x′=a+bx and y′=c+dy. With nonzero b, d, centered departures scale by b and d. Scales with the same sign preserve correlation; opposite signs reverse it.
Sx′y′=bdSxySx′x′=b2Sxxrx′y′=sign(bd)rxy
Changing dollars to cents changes covariance magnitude but preserves correlation. A zero scale makes a constant column and undefined new correlation. Nonlinear logarithms fall outside this invariance result and require a positive domain.
기초Foundations
15. 0상관·상수·독립을 구별한다15. Distinguish zero correlation, constants and independence
다섯 값을 균등하게 고르는 가정 법칙에서 X=−2,−1,0,1,2이고 Y=X²라 합시다. EX=0,EY=2이고 EXY=0이므로 공분산·상관은 0입니다. 그런데 X=0이면 Y=0을 확실히 압니다. P(Y=0|X=0)=1은 주변확률 1/5와 달라 독립이 아닙니다.
반면 Y가 항상 1이면 Y의 제곱합이 0이라 상관 자체가 미정의입니다. 적절한 유한 2차 모멘트 아래 독립이면 공분산 0이지만, 0공분산에서 독립으로 되돌아가는 일반 명제는 없습니다. 유한 원자료에 독립 확률법칙을 자동 부여하지 않습니다.
Under a toy uniform law on five values, let X=−2,−1,0,1,2 and Y=X². Then EX=0, EY=2 and EXY=0, giving covariance/correlation zero. Yet X=0 determines Y=0: the conditional probability is one rather than its marginal one fifth. The variables are dependent.
If Y is always one, its square sum is zero and correlation itself is undefined. Independence with suitable finite second moments implies zero covariance; the general converse fails. A finite source table does not automatically come with an independent sampling law.
기초Foundations
16. 실습 B · 곡선·부호·상수를 분리한다16. Lab B · separate curves, sign reversals and constants
가정 다섯 x값에 x²·2x+1·상수 1 중 하나를 붙입니다. y 배율과 이동을 바꾸며 점·중심화합·상관을 즉시 확인하세요. 배율 0·상수 선택에서 미정의, 음의 배율에서 부호 반전, x²에서 함수 관계와 0상관이 함께 나타나는지 예측합니다.
실제 국가·사람·점포의 관측값을 바꾸는 실험이 아닙니다. 선택한 가정 예에 대한 고정 Python·R 실행과 브라우저의 새 JavaScript 변환을 구분합니다.
Attach x²,2x+1 or constant one to five toy x values. Change y scale and shift, then inspect points, centered sums and correlation immediately. Predict undefined correlation for zero scale/constants, sign reversal for a negative scale and zero correlation despite the x² functional relationship.
This does not alter actual country/person/establishment observations. Distinguish fixed Python/R toy runs from newly selected JavaScript transformations.
기초Foundations
17. 시간축에는 실제 달력 간격을 둔다17. Use actual calendar spacing on a time axis
한국 2000~2024년 자료는 연도 오름차순으로 둡니다. 가장 큰 GDP 순서로 줄을 세우면 시간경로가 아닙니다. 이 보관 구간은 매년 하나의 값이 있어 간격이 1년이지만, 일반 자료에서 없는 연도를 지운 뒤 점을 같은 간격으로 놓으면 실제 시간 간격을 숨길 수 있습니다.
기간 기대수명은 해당 연도의 사망률 조건을 요약한 지표입니다. 한 사람이 2000년부터 2024년까지 나이를 먹은 관측 경로가 아닙니다. 매년 같은 국가 이름이어도 개인을 추적한 패널이라고 부르지 않습니다.
Place Korean records in increasing year order from 2000–2024. Ranking by GDP instead creates a different ordering, not a time path. These retained years have regular one-year spacing. In other data, removing missing years and spacing remaining points equally can hide actual elapsed time.
Period life expectancy summarizes mortality conditions for a given period. It does not track one person ageing from 2000 to 2024. Repeated country labels do not turn national indicators into an individual panel.
기초Foundations
18. 수준 차이와 성장률은 단위가 다르다18. Level differences and growth rates have different units
양의 가정 지표가 100에서 110으로 바뀌면 차이는 원단위 10,성장률은 10%입니다. 다음에 110에서 120이면 차이는 다시 10이지만 성장률은 약 9.09%입니다. 변화점의 x·y도 각각 원지표의 차이 단위를 유지합니다.
Δxt=xt−xt−1gt=xt−1xt−xt−1
이 장의 실제 한국 변화 산점도는 성장률이 아니라 연차 수준 차이입니다. 처음 연도 앞의 값이 선택 범위에 없으면 첫 변화가 없으며, 25개 수준에서 인접 변화는 24개입니다.
A positive toy index moving from 100 to 110 changes by ten original units and grows ten percent. Moving from 110 to 120 again changes by ten, but grows about 9.09 percent. Each coordinate of a change point retains its own original difference unit.
Δxt=xt−xt−1gt=xt−1xt−xt−1
The actual Korean change scatterplot uses adjacent level differences rather than growth rates. Without the preceding year inside the selected range, its first change is absent. Twenty-five levels produce twenty-four adjacent changes.
기초Foundations
19. 시간 추세와 동시 변화의 질문이 다르다19. Time trends and concurrent changes ask different questions
두 가정 지표가 모두 시간에 따라 증가하면 수준점이 비슷한 방향으로 늘어서기 쉽습니다. 공통 시간 순서가 있다는 사실을 숨기고 두 지표만으로 원인을 단정할 수 없습니다. 차분은 수준 추세와 다른 질문을 만들지만 자동으로 모든 시간 의존·교란을 없애지는 않습니다.
실제 한국 수준의 r≈0.983561과 변화의 r≈−0.214307을 함께 제시합니다. 24개 변화를 독립 시행이라고 가정하거나, 음의 변화 상관을 GDP 증가가 기대수명을 낮춘다는 증거로 읽지 않습니다. 이 탐색 다음에는 목표와 모형에 맞춘 시간구조 검토가 필요합니다.
Two toy indicators that both rise over time can form a strongly increasing level cloud. Ignoring common chronology does not justify a causal conclusion. Differencing asks a different question; it does not automatically remove all temporal dependence or confounding.
Report actual Korean level r≈0.983561 alongside change r≈−0.214307. Do not assume twenty-four changes are independent trials or interpret the negative change correlation as an identified harmful effect of GDP growth. Subsequent modelling must address the intended target and temporal structure.
기초Foundations
20. 각 계열의 기준값을 100으로 바꾼다20. Rebase each series to its own value of one hundred
선택한 기준 연도 b의 값이 양수이면 각 계열을 자기 기준값으로 나누어 100을 곱합니다. 가정 GDP가 200→300,기대수명이 50→60이면 새 지수는 각각 100→150과 100→120입니다. 같은 지수축은 기준 대비 비율을 비교하며 원단위 크기를 같게 만들지 않습니다.
It=100xbxt
다른 기준 연도로 바꾸면 그래프의 숫자와 세로 거리가 달라집니다. 각 계열의 양의 상수배이므로 같은 짝의 Pearson 상관은 보존됩니다. 원 GDP 단위와 기대수명 연 단위는 원표에서 유지합니다.
For a positive value in base year b, divide each series by its own base value and multiply by one hundred. Toy GDP 200→300 and life 50→60 become indices 100→150 and 100→120. A common index axis compares relative movement, not equality of original-unit magnitudes.
It=100xbxt
Changing the base year changes displayed numbers and vertical gaps. Each series receives a positive constant scaling, preserving Pearson correlation for the same pairs. Original GDP and life-year units remain in the source table.
기초Foundations
21. 원단위 두 그림과 지수 한 그림을 선택한다21. Choose separate original-unit panels or a common index panel
GDP는 2015년 불변 USD/인구,기대수명은 연 단위입니다. 원단위 그림에서는 두 패널을 사용해 축 이름·범위를 각각 보여 줍니다. 같은 한 축에 두 원수치를 넣으면 작은 범위의 지표가 거의 평평해 보일 수 있습니다.
두 세로축을 임의 조절해 기울기를 비슷하게 만들 수도 있으므로 시각적 평행만으로 관계 크기를 판단하지 않습니다. 이 장의 공통축 보기는 두 계열 모두 자기 기준 100인 지수임을 명시합니다. 시각 선택과 수치 상관을 따로 기록합니다.
GDP is measured in constant 2015 USD per capita, life expectancy in years. Original-unit views use separate panels with explicit axes/ranges. A single common original-unit axis can make the smaller-scale indicator appear almost flat.
Arbitrarily adjusted dual axes can also manufacture similar slopes. Visual parallelism alone does not quantify a relationship. The common-axis view here explicitly rebases both series to their own value of one hundred. Record visual choices separately from numerical correlation.
기초Foundations
22. 연결선은 관측 사이의 측정을 새로 만들지 않는다22. Connecting segments do not create intermediate measurements
연간 점 사이의 선은 시간 순서를 읽기 쉽게 잇는 표시입니다. 2020년 값과 2021년 값을 연결해도 2020년 6월의 실제 지표를 새로 관측한 것은 아닙니다. 월별 추정이 필요하면 별도 자료나 보간 가정이 필요합니다.
그림의 원점을 생략한 확대축은 작은 변화를 자세히 볼 수 있으나 범위를 공개해야 합니다. 선이 가파르게 보이는 정도는 그림의 가로·세로 비율에도 의존합니다. 기울기 수치를 말할 때는 실제 시간·원단위 분모를 사용합니다.
Segments between annual points help show chronology. Joining 2020 and 2021 does not observe an actual June 2020 indicator. Monthly estimation requires additional data or an explicit interpolation assumption.
A zoomed axis can reveal small movements but must disclose its range. Apparent steepness also depends on plot aspect ratio. A numerical slope needs actual elapsed time and original units in its denominator.
심화Extension
23. 심화 · 겹치는 차분도 의존할 수 있다23. Extension · overlapping differences can be dependent
가정 오차 εₜ가 서로 독립이고 같은 분산 v>0을 가진다고 합시다. 인접 차분 Dₜ=εₜ−εₜ₋₁은 같은 원오차를 공유합니다. 평균을 빼고 공분산을 전개하면 다음과 같습니다.
Var(Dt)=2vCov(Dt,Dt+1)=−vCorr(Dt,Dt+1)=−1/2
수준의 독립성이라는 강한 가정에서도 겹치는 차분은 독립이 아닙니다. 실제 국가 지표가 이 오차모형을 따른다는 주장은 하지 않습니다. 차분 후 행 개수만 세어 독립 표본크기로 쓰면 안 되는 이유를 보여 주는 반례입니다.
Assume independent toy errors εₜ with common finite variance v>0. Adjacent differences Dₜ=εₜ−εₜ₋₁ share an original error. Centering and expanding covariance gives:
Var(Dt)=2vCov(Dt,Dt+1)=−vCorr(Dt,Dt+1)=−1/2
Even independent levels can yield dependent overlapping differences. This does not assert that actual national indicators follow that error model. It shows why counting differenced rows alone does not establish an independent sample size.
기초Foundations
24. 실습 C · 연도·기준·변화를 바꾼다24. Lab C · change years, bases and differences
원단위 수준·각자 기준 100·연차 차이 중 하나를 선택합니다. 시작·끝 연도는 실제 연도,기준 연도는 보관 구간 2000~2024 중 하나입니다. 기준이 표시 구간 밖이어도 보관한 그 연도의 양의 원값으로 나눈다는 사실을 남깁니다.
수준·차이는 서로 다른 단위의 두 패널,지수는 같은 지수축입니다. 한 연도만 고르면 차이 0개 상태를 확인하세요. 새 설정의 JavaScript 그림과 고정 2000기준·전체구간 Python·R 그림을 혼동하지 않습니다.
Choose original-unit levels, own-base-one-hundred indices or adjacent differences. Start/end are actual years; choose a retained base year from 2000–2024. Even a base outside the displayed range uses that explicitly retained positive source value.
Levels/changes use separate panels for distinct units; indices share a declared index axis. Selecting one year leaves zero differences. Distinguish the new JavaScript graphic from fixed full-range, base-2000 Python/R plots.
기초Foundations
25. 집단별 전체·가용·미관측을 함께 둔다25. Keep source, available and missing counts by group
실제 Card 자료의 기록된 교육 연수는 학위 증명 여부와 다른 수량 변수입니다. 각 교육 값에 속한 전체 원행,로그 가용행,로그 미관측행을 먼저 셉니다. 전체 3,613=가용 3,010+미관측 603이며 집단별로도 같은 합이 성립합니다.
집단 막대 높이가 평균이라면 분모는 그 집단의 가용 로그 수입니다. 전체 집단 수를 분모로 쓰거나 미관측을 0으로 채운 평균과 섞지 않습니다. 교육 0년은 원행 3개가 있지만 가용 0개여서 평균을 그릴 수 없습니다.
Recorded schooling years in the actual Card data are a quantitative variable, not proof of an awarded degree. Count all, log-available and log-missing source rows within each schooling value first. Overall 3,613=3,010+603, and the same decomposition holds within groups.
A group mean uses that group’s available-log denominator. Do not divide by the number of groups or mix it with a mean after filling missing values with zero. Schooling zero has three source rows but no available log, so its mean cannot be plotted.
기초Foundations
26. 개인 전체평균은 집단 평균의 가용수 가중합이다26. The pooled person mean weights group means by available counts
가용 로그가 있는 집단만 모아 각 가용수를 n_g,평균을 m_g라 합시다. 전체 가용수 n>0이면 합을 집단별로 나누어 아래 항등식을 얻습니다. 가용 0개 집단은 합에 관측값이 없어 기여가 0이며 미정의 평균에 0을 곱해 계산하지 않습니다.
n=g∑ngnyˉ=g∑ngmgyˉ=g∑nngmg
가정 A에 값 (0,2),B에 값 (9)가 있으면 집단 평균은 1과 9입니다. 개인 전체평균은 11/3,집단 균등평균은 5로 다릅니다. 어느 표적을 보고하는지 먼저 정합니다.
For groups with available logs, let n_g be the available count and m_g its mean. With total n>0, splitting the sum by group gives the identity below. A zero-available group contributes no observations; do not calculate zero times an undefined mean.
n=g∑ngnyˉ=g∑ngmgyˉ=g∑nngmg
Toy group A contains (0,2), group B contains (9). Their means are one and nine. The pooled person mean is 11/3; the equal-group mean is five. Declare the intended target before comparing them.
기초Foundations
27. 사람 균등과 집단 균등은 다른 질문이다27. Equal people and equal groups define different questions
가용 사람 3,010명을 같은 비중으로 요약하면 각 교육 집단의 무게는 가용수/3,010입니다. 가용 평균이 있는 18집단을 같은 무게로 요약하면 각 집단은 1/18입니다. 교육 0년의 미정의 평균을 0으로 넣어 19로 나누지 않습니다.
집단 균등은 “가용 평균이 있는 교육 값 하나를 균등 선택할 때 그 평균”이라는 별도 기술 표적입니다. 실제 사람이 그 방식으로 표집됐다는 뜻도, 교육 수준을 바꾼 인과효과도 아닙니다. 표적 변경을 계산 오류 수정처럼 표현하지 않습니다.
Weighting all 3,010 available people equally gives each schooling group weight n_g/3,010. Weighting eighteen defined group means equally instead assigns each group 1/18. Do not insert zero for the undefined schooling-zero mean and divide by nineteen.
The equal-group target is the mean for a uniformly chosen schooling value among those with available means. It does not describe the actual person sampling design or identify an effect of changing schooling. A target change is not an arithmetic correction.
기초Foundations
28. 최솟값~최댓값 선은 관측 범위이다28. A minimum-to-maximum segment shows the observed range
교육집단 그림은 가용 로그 평균 점과 관측 최솟값~최댓값 선을 보여 줍니다. 선은 실제 가용값의 범위이며 평균의 신뢰구간이 아닙니다. 표본수가 크면 더 극단적인 값이 포함될 기회가 늘 수 있으므로 범위 길이만으로 평균 추정의 불확실성을 순위 매기지 않습니다.
가용값이 하나이면 최솟값·평균·최댓값이 같아 선 길이가 0입니다. 이것이 모집단 변동이나 미래 예측오차 0을 증명하지 않습니다. 가용 0개에서는 선과 평균 모두 미정의로 남깁니다.
The schooling plot shows each available-log mean with a segment from its observed minimum to maximum. This segment is an observed range, not a confidence interval for the mean. Larger groups can include more extreme observations, so range length alone does not rank mean-estimation uncertainty.
With one available value, minimum, mean and maximum coincide. Zero range does not establish zero population variation or prediction error. With none available, leave the range and mean undefined.
기초Foundations
29. 로그 평균과 원임금 평균의 뜻을 지킨다29. Keep mean logs distinct from mean wages
이 장의 사람 y는 원자료에서 이미 극단값 정리를 거친 1976년 시간당 임금(센트/시간)의 로그 변수입니다. 평균 로그는 로그 값의 산술평균입니다. 이를 지수화하면 가용 로그를 다시 지수화한 값들의 기하평균이지 원임금의 산술평균이 아닙니다. 달러/시간으로 환산하려면 지수값을 100으로 나눕니다.
가정 원값 1과 9의 기하평균은 3,산술평균은 5입니다. 실제 원임금 가용 3,017개와 로그 가용 3,010개는 행 집합도 다릅니다. 로그를 지수화해 빈 원임금 칸을 원 관측값처럼 덮어쓰지 않습니다.
The person outcome is a source-trimmed log of 1976 hourly wages measured in cents per hour. Its mean is the arithmetic mean of recorded logs. Exponentiating gives the geometric mean of exponentiated available log values, not the arithmetic mean of raw wages. Divide the exponentiated value by one hundred to express dollars per hour.
Toy positive values one and nine have geometric mean three but arithmetic mean five. Actual raw wages have 3,017 available rows versus 3,010 for logs, so even the row sets differ. Do not overwrite unavailable raw cells with exponentiated values as if newly observed.
심화Extension
30. 심화 · 집단 사이 차이가 합친 방향을 바꾼다30. Extension · between-group differences can reverse pooled direction
가정 집단 A의 짝은 (1,8),(2,9),B의 짝은 (3,1),(4,2)입니다. 각 집단에서는 x가 1 증가할 때 y도 1 증가합니다. 합치면 평균은 (2.5,5),집단 사이에서는 큰 x집단이 작은 y수준을 가집니다.
Sxx=5Syy=50Sxy=−13r=−13/250
두 집단 내 양의 관계와 합친 음의 관계가 동시에 성립합니다. 이것은 수치가 틀렸다는 뜻이 아니라 서로 다른 요약입니다. 실제 교육·국가 자료에 이 특정 역전이 있다고 단정하지 않으며, 집단 조건화가 인과 교란을 모두 제거한다는 뜻도 아닙니다.
Toy group A has pairs (1,8),(2,9); group B has (3,1),(4,2). Within each group, y increases by one when x increases by one. Pooled means are (2.5,5); the higher-x group has the lower y level.
Sxx=5Syy=50Sxy=−13r=−13/250
Positive within-group relationships coexist with negative pooled correlation. These summarize different questions without an arithmetic contradiction. This does not assert that this reversal occurs in the actual schooling/country data or that grouping removes all causal confounding.
기초Foundations
31. 미관측 집단의 평균은 그림으로 알아낼 수 없다31. A plot cannot identify an unobserved group mean
교육 0년의 가용 로그가 0개인 상태에서 그 집단의 평균을 다른 점 사이에 선형 보간하면 새 가정값을 만든 것입니다. 이를 원 관측 평균과 같은 점 모양으로 숨겨 그리지 않습니다. 다른 집단에도 미관측 603명이 분포하므로 가용 평균은 전체 원집단의 알려진 평균이 아닙니다.
탐색에서는 전체·가용·미관측 수와 가용 요약을 함께 공개합니다. 전체집단 평균이나 결측 메커니즘에 관한 결론에는 추가 가정·민감도 분석이 필요합니다. 이번 장은 원칸을 채우거나 행을 삭제하지 않습니다.
Interpolating a mean for schooling zero, which has no available log, creates an assumed value. Do not disguise it as an observed group mean with the same mark. Missing logs also occur in other groups, so an available mean is not the known mean of the entire original group.
Report source, available and missing counts together with available summaries. Whole-group means and missingness mechanisms require additional assumptions/sensitivity analysis. This chapter fills no original cells and deletes no source rows.
기초Foundations
32. 실습 D · 집단과 가중 표적을 바꾼다32. Lab D · inspect groups and weighting targets
교육 0~18년 중 하나를 고르면 그 집단의 원행과 가용성·평균·범위를 봅니다. 사람 균등과 가용 집단 균등의 기준선을 바꾸어 봅니다. 모든 집단의 원값은 유지되며 기준선만 다른 표적입니다.
0년 집단에서 원행 3개와 미정의 평균을,12년 집단에서 가용수·미관측수를 확인하세요. 범위선을 신뢰구간이라 부르지 않고 로그 단위의 실제 관측 범위로 읽습니다. 고정 실제 Python·R 그림도 내려받을 수 있습니다.
Select schooling zero through eighteen to inspect source records, availability, mean and range. Switch reference lines between equal-person and equal-defined-group targets. Original values remain fixed; the reference target changes.
Check three source rows with undefined mean at schooling zero, and available/missing counts at twelve. Read range segments as actual observed log ranges rather than confidence intervals. Fixed actual Python/R plots are also downloadable.
기초Foundations
33. 전후 차이는 같은 관측 단위끼리 만든다33. Construct before/after changes for the same observation unit
NJ/PA 자료는 점포 원행 410개입니다. FTE는 전일제 인원+관리자+시간제 인원의 절반으로 만드는 요약입니다. 필요한 구성값 하나라도 없으면 해당 시점 FTE를 미가용으로 남깁니다. 전 가용 398개,후 가용 396개지만 같은 원행 양쪽이 모두 가용한 완전짝은 384개입니다.
원행 i의 Dᵢ=후 FTE−전 FTE를 계산합니다. 전·후 목록을 각각 정렬하거나 서로 다른 가용행을 차례로 붙이면 다른 점포의 값이 만날 수 있습니다. 완전짝을 골랐다는 것은 원자료 26행을 삭제했다는 뜻이 아닙니다.
The NJ/PA source contains 410 establishment records. FTE is full-time employees plus managers plus half the part-time employees. Missing any required component leaves that wave’s FTE unavailable. Before has 398 available values and after 396, while 384 same-source rows are complete pairs.
For source row i, calculate Dᵢ=after FTE−before FTE. Independently sorting or aligning separately available columns can combine different establishments. Selecting complete pairs for a calculation does not delete twenty-six original records.
기초Foundations
34. 같은 짝이면 평균 차이와 차이 평균이 같다34. With the same pairs, difference of means equals mean difference
완전짝이 m≥1개인 같은 집합 C에서 두 평균을 계산하면 선형성으로 아래 항등식이 성립합니다. 확률표본·정규성·독립성이 없어도 유한 합의 성질로 맞습니다.
Di=Ai−BiDˉC=m1i∈C∑(Ai−Bi)=AˉC−BˉC
실제 384짝의 변화합은 −27.05 FTE,평균 변화는 −541/7680≈−0.0704427 FTE입니다. 같은 완전짝에서 계산한 전후 평균 차이와 같습니다. 이 항등식 자체는 정책 인과효과나 미래 점포의 기대변화를 식별하지 않습니다.
For the same complete-pair set C containing m≥1 rows, linearity gives the identity below. It is a finite-sum fact requiring no random sampling, normality or independence.
Di=Ai−BiDˉC=m1i∈C∑(Ai−Bi)=AˉC−BˉC
The actual 384 paired changes sum to −27.05 FTE, giving mean −541/7680≈−0.0704427 FTE. This equals the before/after mean difference on the same complete pairs. The identity itself identifies neither a policy effect nor expected change for future establishments.
기초Foundations
35. 가용 시점 평균은 서로 다른 집합일 수 있다35. Wave-specific available means may use different sets
전 가용 집합 B와 후 가용 집합 A가 다르면 평균 후−평균 전은 같은 점포의 변화 평균과 일반적으로 다릅니다. 공통 완전짝 C와 전만 가용·후만 가용 집단의 수·평균이 섞여 있기 때문입니다. 두 차이를 같이 계산해 비교하되 하나를 다른 것의 오답으로 부르지 않습니다.
실습은 시점 가용 평균의 선과 같은 완전짝 평균의 선을 나란히 보여 줍니다. 선은 두 요약 끝점을 잇는 것이며 점포별 410개 궤적도,중간 시점의 관측도 아닙니다. 각 선의 원행 분모를 표에 남깁니다.
If the before-available set B differs from the after-available set A, mean after minus mean before generally differs from the mean same-establishment change. Complete pairs and before-only/after-only groups contribute different counts and means. Calculate both summaries without calling one the other’s incorrect answer.
The lab compares wave-available mean endpoints with complete-pair mean endpoints. These segments connect two summaries; they are neither 410 individual trajectories nor observed intermediate measurements. Retain each endpoint’s row denominator in the table.
기초Foundations
36. 같은 짝 변화가 0이어도 시점 평균은 다를 수 있다36. A wave-mean difference can occur without paired change
가정 점포 A는 전후 모두 10,B는 전만 0,C는 후만 20입니다. 같은 점포의 가용 완전짝은 A 하나라 변화는 0입니다. 전 가용 평균은 (10+0)/2=5,후 가용 평균은 (10+20)/2=15라 시점 평균 차이는 10입니다.
이 예의 차이는 관측 집합 구성 변화로 생깁니다. B의 후 값과 C의 전 값은 알려지지 않았으므로 실제 전체 3점포의 변화 평균도 식별되지 않습니다. 원 미관측 칸을 0으로 채우면 다른 가정 분석이 됩니다.
Toy establishment A is ten before and after; B has before zero only; C has after twenty only. The sole complete pair A changes by zero. Available-wave means are (10+0)/2=five and (10+20)/2=fifteen, giving difference ten.
This discrepancy comes from composition. B’s after and C’s before values remain unknown, so the full three-establishment mean change is not identified. Filling those cells with zero would introduce a different assumed analysis.
기초Foundations
37. 주별 비교에서도 같은 분모 규칙을 쓴다37. Apply the same denominator rule within each state
실제 NJ는 전체 331행·전 321·후 319·완전짝 309개,PA는 전체 79행·전 77·후 77·완전짝 75개입니다. PA 두 시점 가용수가 모두 77이라고 두 집합이 같다는 뜻은 아닙니다. 완전짝은 75개임을 함께 확인합니다.
NJ와 PA의 완전짝 평균 변화 차이는 기술 비교입니다. 정책 효과로 해석하려면 관측되지 않은 반사실 경로·집단 비교 가능성·시간 변화 등에 관한 별도 식별 조건이 필요합니다. 이 EDA 장의 두 점선만으로 그 조건을 인증하지 않습니다.
Actual NJ has 331 source rows, 321 before-available, 319 after-available and 309 complete pairs. PA has 79,77,77 and 75 respectively. Equal PA wave counts of seventy-seven do not mean the same records are available in both waves; the intersection has seventy-five.
A difference between NJ and PA complete-pair mean changes is descriptive. Policy interpretation needs separate identification conditions about unobserved counterfactual paths, comparability and time changes. Two plotted summary segments do not certify them.
기초Foundations
38. 같은 점포 코드와 같은 원행을 구별한다38. Distinguish a shared establishment code from the same source row
원 점포 코드 407은 원행 42와 168에 각각 기록되어 있습니다. 원행 42의 변화는 0,168의 변화는 2.5 FTE입니다. 코드만 같다고 두 기록을 하나로 지우거나 전·후를 교차 조인하지 않습니다. 파일 원행 키는 이 보관본에서 두 기록을 구별하는 추적 값입니다.
원행 키가 다르다고 서로 다른 실제 점포임을 보증하는 것도 아닙니다. 실제 재식별 정보가 없으므로 관측 단위에 관한 불확실성을 남깁니다. 이 장의 계산은 원파일 행 대응을 그대로 보존하며 그 이상을 인증하지 않습니다.
Source code 407 occurs in rows forty-two and 168. Their changes are zero and 2.5 FTE. A shared code does not justify deleting one record or cross-joining their waves. The source-row key distinguishes retained records in this archived file.
Different source-row keys do not prove distinct real establishments either. Without additional identification information, leave that uncertainty explicit. Calculations here preserve original file-row pairing without claiming more.
기초Foundations
39. 완전짝만 보인 그림의 선택 조건을 남긴다39. State the selection condition behind a complete-pair graphic
완전짝 384개는 전체 410행의 부분집합입니다. 평균 변화는 이 384개에서 알려져 있지만 남은 26행의 한쪽 또는 양쪽 FTE가 없으므로 전체 변화 평균은 그대로 알 수 없습니다. 그림의 표제에 “384 완전짝”을 붙여 조건을 숨기지 않습니다.
점포가 문을 닫았다는 추정과 단순 조사값 미관측은 다른 정보입니다. 코드북·원기록이 보증하지 않은 이유를 임의로 붙이지 않습니다. 결측 이유·대체·가중치·인과 분석은 다음 단계에서 근거와 가정을 명시해 다룹니다.
The 384 complete pairs form a subset of 410 source records. Their mean change is known; the entire-frame mean change remains unknown because twenty-six rows lack one or both FTE values. Label the selection as “384 complete pairs”.
An establishment closure and an unavailable survey value are different information. Do not invent missingness reasons unsupported by the codebook/records. Subsequent missingness, imputation, weighting or causal analyses require explicit evidence and assumptions.
기초Foundations
40. 실습 E · 시점 가용과 같은 짝을 비교한다40. Lab E · compare available waves with the same pairs
전체·NJ·PA를 고르고 시점 가용 평균과 같은 완전짝 평균을 비교합니다. 선택 번호는 선택한 주 안의 원행 순서이며 실제 파일 원행 번호·점포 코드·가용 전후 FTE를 따로 표시합니다. 번호 1이 모든 주에서 같은 원행인 것은 아닙니다.
코드 407 두 원행 42·168을 전체 원행 탐색에서도 확인하세요. 불완전짝을 고르면 알려진 쪽을 남기고 변화는 미정의로 둡니다. 그림의 선이 정책효과·개별 전체경로·새 관측을 뜻하지 않는다는 범위를 함께 읽습니다.
Select all, NJ or PA and compare available-wave versus identical-pair means. The selection number indexes retained records within the selected state; actual file-row number, establishment code and available wave values appear separately. Position one need not identify the same source row across states.
Also trace source code 407 in rows forty-two and 168 through the full-source inspector. An incomplete pair retains its known endpoint while leaving change undefined. Summary segments do not represent a policy effect, complete individual trajectory or new observation.
기초Foundations
41. 실습 F · 요약에서 원행으로 돌아간다41. Lab F · return from summaries to original records
한국 연도·사람 원행·점포 원행을 고릅니다. 국가 지표의 API 위치,사람의 교육·가용 로그,점포의 원코드·주·전후 가용성을 확인합니다. 원행 번호는 이번 보관 파일의 위치이며 영구 개인 식별자나 점포 식별 인증이 아닙니다.
집계 평균 하나가 원행에 직접 기록되어 있는 것이 아닙니다. 원값·가용 조건·가중치·변환을 따라가며 요약을 다시 만들 수 있어야 합니다. 다운로드한 CSV·코드·실제 실행 출력은 이런 추적을 돕는 증거입니다.
Select a Korean year, person source row or establishment source row. Inspect API positions, schooling/available log, or source code/state/wave availability. Source positions trace this archive rather than proving permanent person or establishment identity.
An aggregate mean is not one directly recorded source cell. Reconstruct it through original values, availability, weights and transformations. Downloadable CSV, source code and actual output provide evidence for this trace.
기초Foundations
42. 실제 코드·숫자·SVG를 별도로 대조한다42. Compare actual code, numerical output and SVG separately
이 장은 산점도 6개·시간 6개·집단 4개·짝 6개·가정 관계 6개의 프로그램,총 28개를 실제 새 프로세스로 실행했습니다. 각 실행에는 SVG 한 개가 있어 총 28개입니다. Python 3.11.8·Matplotlib 3.10.0/Agg와 R 4.5.1/base SVG의 버전·장치·글꼴·출력 설정을 함께 보관합니다.
새 브라우저 선택은 JavaScript 계산입니다. 고정 전체 구간 Python·R 기준과 수치 일치를 확인한 범위와 새 탐색 범위를 구별합니다. 코드 SHA는 같은 바이트인지,숫자 대조는 같은 계산인지,실제 화면 검토는 라벨·겹침이 읽히는지를 각각 확인합니다.
Actual fresh processes executed six scatter, six time, four group, six paired and six toy-association programs: twenty-eight in total, each producing one SVG. Archived environments declare Python 3.11.8/Matplotlib 3.10.0/Agg and R 4.5.1/base SVG, plus device/font/display settings.
New browser choices use JavaScript. Separate fixed full-range Python/R numerical agreement from newly explored settings. Code hashes check bytes, numerical comparisons check calculations, and actual-screen review checks readable labels and overlaps.
기초Foundations
43. 실제 실행 코드에서 공통 가용 규칙을 찾는다43. Find the complete-pair rule in executed code
아래는 보관 실행과 별개의 짧은 가정 예입니다. 행을 함께 검사한 뒤 x,y를 만듭니다. 실제 전체 프로그램은 원십진·원키·그림 옵션까지 포함하며 실습의 내려받기에서 확인합니다.
rows = [(1, None), (2, 6), (None, 7), (4, 8)]
pairs = [(x, y) for x, y in rows if x is not None and y is not None]
print(pairs) # [(2, 6), (4, 8)]
R에서는 두 열이 같은 길이·같은 원행 순서일 때 공통 논리 벡터를 씁니다. 각 열을 따로 결측 제거한 뒤 묶지 않습니다.
x <- c(1, 2, NA, 4)
y <- c(NA, 6, 7, 8)
keep <- !is.na(x) & !is.na(y)
print(cbind(x[keep], y[keep]))
This short toy example is separate from archived actual runs. Inspect rows jointly before forming x, y. Downloadable full programs also preserve source decimals, keys and graphics settings.
rows = [(1, None), (2, 6), (None, 7), (4, 8)]
pairs = [(x, y) for x, y in rows if x is not None and y is not None]
print(pairs) # [(2, 6), (4, 8)]
In R, use one shared logical vector when columns have the same length and source-row order. Do not remove missing values independently and then combine them.
x <- c(1, 2, NA, 4)
y <- c(NA, 6, 7, 8)
keep <- !is.na(x) & !is.na(y)
print(cbind(x[keep], y[keep]))
심화Extension
44. 심화 · 전체 곱합을 집단 안과 집단 사이로 나눈다44. Extension · decompose the cross sum within and between groups
같은 완전짝 n≥1개를 비어 있지 않은 집단으로 나눕니다. 집단 g의 평균을 x̄_g,ȳ_g라 두고 각 이탈을 집단 내 이탈+집단 평균의 전체평균 이탈로 씁니다. 집단 내 이탈합이 0이라 교차항 두 개가 사라집니다.
n으로 나누면 기술공분산의 내부+사이 분해입니다. 집단 상관의 단순평균은 전체 상관이 아닙니다. 그룹마다 다른 가용행을 사용하면 이 같은-짝 항등식의 입력 조건부터 다시 확인해야 합니다.
Partition n≥1 identical complete pairs into nonempty groups. Write each departure as a within-group departure plus its group mean’s departure from the overall mean. Both cross terms vanish because within-group departures sum to zero.
Dividing by n decomposes descriptive covariance within and between groups. Averaging group correlations does not yield pooled correlation. Different available-row selections require rechecking the identical-pair condition first.
기초Foundations
45. 집단 평균의 관계를 개인 관계로 옮기지 않는다45. Do not transfer aggregate relationships to individuals
국가 GDPpc·기간 기대수명의 점은 국가 수준의 지표 관계입니다. 그 나라 개인의 소득·수명 짝을 관측한 것이 아닙니다. 교육집단 평균 점도 사람 원행의 산포를 모두 보여 주지 않습니다. 집단 평균들이 직선에 가까워도 개인 관계가 같은 크기·방향이라는 결론은 나오지 않습니다.
관측 단위가 바뀌면 가중치·집단 내 변동·구성도 달라집니다. 집단-개인 혼동은 상관 계산 성공이나 점 개수 증가로 해결되지 않습니다. 먼저 어떤 단위를 선택·관측했는지 밝히고 그 단위의 기술 결과를 말합니다.
Country GDP-per-capita/life points describe national indicators, not observed individual income/lifespan pairs. Schooling-group means also omit much person-level spread. Nearly linear group means do not imply an individual relationship of the same size or direction.
Changing observation units changes weights, within-group variation and composition. Successful correlation computation or more plotted points does not resolve this aggregate-to-individual gap. State the selected/observed unit and report descriptive results at that level.
기초Foundations
46. 탐색한 구간·집단·축을 기록한다46. Record explored intervals, groups and axes
연도 구간을 여러 번 바꿔 가장 큰 r을 발견했다면 선택 과정을 기록합니다. 그 r은 선택한 구간의 기술량으로 맞더라도,같은 자료에서 가장 큰 값을 골랐다는 사실은 추론의 해석에 영향을 줍니다. 모든 탐색을 독립 검정 하나라고 단정하거나 무조건 p값을 붙이지 않습니다.
후속 질문을 고르면 분석 계획·자료 분할·새 자료·다중선택 처리 등 목표에 맞는 검증을 설계합니다. “이 장에서 탐색 후 세운 가설”과 “자료 보기 전의 가설”을 구별합니다. 보관 그림은 탐색을 재현하는 기록이며 사전등록 인증이 아닙니다.
If repeated year-range changes reveal the largest r, record the search. That r remains a descriptive quantity for its selected interval, but selecting the maximum from the same data affects inferential interpretation. Do not assign every exploration a single independent-test interpretation or automatically attach a p-value.
A follow-up question may require an analysis plan, held-out/new data or selection-aware inference. Distinguish hypotheses generated during exploration from those specified before viewing data. Archived plots document exploration rather than certify preregistration.
기초Foundations
47. 행·질문·요약·한계를 한 문단에 쓴다47. Report rows, question, summary and limits together
예: “보관한 한국 2000~2024년 25연도의 GDPpc·기간 기대수명 수준은 r≈0.983561이었다. 같은 보관본의 인접 연차 변화 24짝에서는 r≈−0.214307이었다. 두 요약은 관측 단위와 질문이 다르며,실제 독립 반복·GDP 인과효과·미래 예측력을 인증하지 않는다.”
사람은 3,613/3,010/603,점포는 410/384와 시점 가용 분모를 함께 적습니다. 평균·관측 범위·변화·지수·원단위 중 무엇을 그렸는지 밝힙니다. 그래프 파일이 존재한다는 사실과 원자료의 진실성·대표성·새 환경 타당성을 구별합니다.
Example: “For twenty-five archived Korean years 2000–2024, GDP-per-capita and period-life levels had r≈0.983561. Twenty-four adjacent changes from the same archive had r≈−0.214307. These summaries use different observational units/questions and certify neither independent replication, a GDP causal effect nor future prediction.”
For people report 3,613/3,010/603; for establishments report 410/384 together with wave-available denominators. Identify means, observed ranges, differences, indices and original units. A graphic file’s existence does not establish source truth, representativeness or validity in a new setting.
기초Foundations
48. 실제 세 사례의 원행·그림·출처를 함께 확인한다48. Inspect source rows, graphics and sources in three actual cases
국가 사례 · 국가 사이의 차이와 한 국가 안의 시간 변화를 나눠 읽는다
World Bank 실제 보관본에서 한국 2000~2024년 25개 연도의 1인당 실질 GDP와 출생 시 기대수명을 선택합니다. GDP는 2015년 불변 USD/인, 기대수명은 해당 시점 사망률 패턴이 계속된다는 조건에서 계산한 집단 지표의 연수입니다. 두 지표의 원 단위가 다르므로 한 축에 원값을 겹치지 않습니다. 원표를 남기고 표시용으로 각각 “2000년 값=100”으로 나눠 비교합니다.
ItgItℓ=100gt/g2000,=100ℓt/ℓ2000.
실제 원값과 선택한 표시 지수 · 소수 반올림
연도
GDP USD/인
기대수명 연수
GDP 표시지수
수명 표시지수
2000
17,763.14
75.910
100.000
100.000
2005
22,123.76
78.168
124.549
102.975
2010
26,623.05
80.117
149.878
105.543
2015
30,171.79
82.024
169.856
108.055
2020
33,215.93
83.427
186.994
109.903
2024
37,048.43
83.629
208.569
110.169
한 그림에서 함께 오르는 모습이 보이면 세 질문으로 분해합니다. ①같은 2024년 16국 사이에서는 어떤 관계인가? ②한국 25년의 수준끼리는 어떤 관계인가? ③한국에서 인접 두 해의 차이끼리는 어떤 관계인가? 마지막은 Δgt=gt−gt−1, Δℓt=ℓt−ℓt−1로 24개 짝을 만듭니다. 연도 순서를 지우고 값으로 재정렬하지 않습니다.
서로 다른 관측 짝의 기술적 Pearson 상관 · 반올림
질문
짝 수
상관 r
2024년 선택 16국 수준
16
0.784471
한국 2000~2024년 수준
25
0.983561
한국 인접 연차 변화
24
-0.214307
먼저 생각한 뒤 풀이 보기: 수준의 상관과 연차 변화의 상관 중 어느 것이 진짜인가요?
서로 다른 요약이므로 둘 다 계산이 맞을 수 있습니다. 수준은 긴 시간의 공통 추세를 강하게 반영할 수 있고 차분은 단기 움직임을 묻습니다. 차분한다고 모든 추세·교란·시차 문제가 해결되는 것은 아닙니다. 여기서는 유의확률이나 성장의 인과효과를 붙이지 않습니다. 같은 출처도 지표 정의·개정과 시간 의존을 살펴야 합니다.
먼저 생각한 뒤 풀이 보기: 수명 표시지수 110이면 한 사람이 10% 더 오래 산다는 뜻인가요?
아닙니다. 국가의 기간 기대수명 지표를 기준연도 값으로 나눈 비율입니다. 특정 개인의 수명 연장이나 생존확률을 측정한 것이 아닙니다. 재기준화는 단위 표시를 맞춘 계산일 뿐 두 개념을 같은 물리량으로 만들지 않습니다.
사람 사례 · 교육집단 평균 점 뒤에는 서로 다른 수의 실제 기록이 있다
Card 실제 원행 3,613명의 기록된 교육 연수와 1976년 시간당 임금(센트)의 원자료 극단값 정리 로그를 사용합니다. 로그는 3,010개 가용·603개 미가용이며 교육 연수는 0~18의 19개 값이 기록돼 있습니다. 개인 산점도는 가용 짝을 그리되, 같은 교육 연수에 여러 점이 겹칠 수 있습니다. 요약 그림에는 각 교육 연수의 평균·최솟값·최댓값을 표시하고 표에 전체 수·가용 수·미가용 수를 함께 둡니다.
같은 원자료의 교육집단 요약 · 로그 평균은 반올림
교육 연수
전체
로그 가용
로그 미가용
가용 평균
0
3
0
3
미정의
1
2
1
1
6.214608
2
2
2
0
5.682503
3
4
3
1
5.370407
4
6
3
3
5.377867
5
13
10
3
5.733669
6
22
16
6
5.795902
7
40
29
11
5.939098
8
90
68
22
6.026576
9
91
81
10
5.978620
10
146
125
21
5.964243
11
193
159
34
6.081230
12
1194
992
202
6.249024
13
323
281
42
6.268001
14
309
263
46
6.301386
15
206
160
46
6.250552
16
532
459
73
6.384550
17
179
151
28
6.381990
18
258
207
51
6.558367
yˉ=∑gng∑gngyˉg
먼저 생각한 뒤 풀이 보기: 교육집단 평균들을 단순 평균하면 전체 3,010명의 평균인가요?
가용 수 ng로 가중해야 합니다. 전체 가용 평균은 약 6.261831918이고 가용 로그가 있는 교육집단에 같은 무게를 준 평균은 약 6.031032800입니다. 후자는 “교육집단을 하나씩 같은 무게로 고른다”는 다른 표적입니다. 가용 값이 없는 집단은 평균을 0으로 채우지 않습니다. 평균 연결선은 교육 수준 사이의 실제 개인 경로가 아니므로 여기서는 점을 잇지 않습니다.
먼저 생각한 뒤 풀이 보기: 교육이 1년 높은 집단 평균의 차이를 교육 수익률이라 불러도 되나요?
이 그림만으로는 안 됩니다. 서로 다른 사람들의 가용 임금 차이이며 같은 사람에게 교육을 추가한 반사실 차이가 아닙니다. 경험·지역·가정 배경·선택과 결측의 차이가 남을 수 있습니다. min~max는 관측 범위이며 평균의 신뢰구간이 아닙니다. 로그 평균의 지수도 원임금의 산술평균과 다릅니다. 표에는 변수의 기간·단위를 함께 적습니다.
점포 사례 · 전후 평균 두 점보다 같은 원행의 짝을 먼저 확인한다
1992년 NJ/PA 패스트푸드 공개 원자료 410행의 전후 FTE를 같은 원행 키로 연결합니다. FTE는 정규직 수+0.5×시간제 수+관리자 수이며 필요한 성분이 없으면 그 시점 값도 미가용으로 둡니다. 실제 전 시점과 후 시점에서 가용 기록 수가 다릅니다. 같은 행의 두 시점이 모두 가용한 384짝을 별도로 둡니다. 원 점포 코드407이 원행42·168에서 반복되어도 두 기록을 합치지 않습니다.
주별 원자료의 가용성 · 표본 구성 먼저 확인
주
전체 원행
전 가용
후 가용
완전짝
PA
79
77
77
75
NJ
331
321
319
309
분모가 다른 두 비교 · 평균 FTE 소수 반올림
주
각 시점 가용 평균 차이
같은 완전짝 평균 변화
PA
-2.165584
-2.283333
NJ
0.588021
0.466667
먼저 생각한 뒤 풀이 보기: 두 평균 차이는 왜 다를 수 있나요?
각 시점의 가용 평균은 서로 다른 원행 집합을 쓸 수 있습니다. 완전짝 평균 변화는 같은 집합에서 전후 값을 뺍니다. 같은 n짝에 같은 가중치를 쓰면 변화 평균=후 평균−전 평균이 정확히 성립합니다. 다른 결측 분모의 두 평균을 빼면 그 식의 전제와 다른 질문입니다. 불완전 26행을 공개 자료에서 지웠다는 뜻도 아닙니다.
먼저 생각한 뒤 풀이 보기: NJ의 평균 변화와 PA의 평균 변화를 비교하면 정책 효과가 확정되나요?
탐색적인 관측 비교입니다. 집단 구성·결측·다른 경제 변화와 정책이 없었을 반사실을 추가로 다뤄야 합니다. 전후 두 점만으로 평행추세를 검증하거나 모든 시점의 경로를 복원할 수도 없습니다. 그림은 같은 원행의 출발점과 도착점을 보여 주거나 변화의 분포를 보여 줄 수 있습니다. 어떤 경우에도 중간 시점의 고용을 실제 관측했다고 그리지 않습니다.
Country case · Separate between-country differences from one country’s time path
Select 25 actual Korean annual GDP-per-capita and period-life-expectancy values, 2000–2024, from the retained World Bank snapshot. Units are constant-2015 USD/person and years under contemporaneous mortality patterns. Different original units should not be overlaid on one unlabelled scale. Retain the source table and separately rebase each series to its own 2000 value=100 for display.
ItgItℓ=100gt/g2000,=100ℓt/ℓ2000.
Actual source values and chosen display indices · rounded
Year
GDP USD/person
Period life years
GDP display index
Life display index
2000
17,763.14
75.910
100.000
100.000
2005
22,123.76
78.168
124.549
102.975
2010
26,623.05
80.117
149.878
105.543
2015
30,171.79
82.024
169.856
108.055
2020
33,215.93
83.427
186.994
109.903
2024
37,048.43
83.629
208.569
110.169
Split apparent co-movement into three questions: the relationship across sixteen countries in 2024; the relationship between 25 Korean annual levels; and the relationship between 24 adjacent-year Korean changes. Form Δgt=gt−gt−1 and Δℓt=ℓt−ℓt−1 without reordering observations by their values.
Descriptive Pearson correlations of different observed pairs · rounded
View
Pairs
Correlation r
Selected-country levels, 2024
16
0.784471
Korean levels, 2000–2024
25
0.983561
Korean adjacent annual changes
24
-0.214307
Think first, then reveal: Which is the true relationship: levels or annual changes?
They summarize different questions and can both be calculated correctly. Levels may reflect shared long-run trends; differences ask about shorter movements. Differencing does not automatically remove confounding, timing or dependence. No significance or causal growth claim is attached. Check definitions, revisions and serial dependence.
Think first, then reveal: Does life index 110 mean a person lives ten percent longer?
No. It is a ratio of a national period indicator to its base-year value, not a measured individual lifespan extension or survival probability. Rebasing changes the display, not the meaning of the underlying quantity.
Person case · Education-group mean points conceal unequal record counts
Use recorded schooling and the source-trimmed log of 1976 hourly wage in cents from 3,613 actual Card records. There are 3,010 available logs and 603 unavailable, with nineteen recorded schooling levels from zero through eighteen. Individual points can overlap at the same schooling value. The summary plot shows available mean/min/max by schooling, alongside source/available/unavailable counts in the table.
Schooling groups from the same source · log means rounded
School years
All
Log available
Log unavailable
Available mean
0
3
0
3
Undefined
1
2
1
1
6.214608
2
2
2
0
5.682503
3
4
3
1
5.370407
4
6
3
3
5.377867
5
13
10
3
5.733669
6
22
16
6
5.795902
7
40
29
11
5.939098
8
90
68
22
6.026576
9
91
81
10
5.978620
10
146
125
21
5.964243
11
193
159
34
6.081230
12
1194
992
202
6.249024
13
323
281
42
6.268001
14
309
263
46
6.301386
15
206
160
46
6.250552
16
532
459
73
6.384550
17
179
151
28
6.381990
18
258
207
51
6.558367
yˉ=∑gng∑gngyˉg
Think first, then reveal: Does averaging the group means give the mean of all 3,010 available records?
Use available counts ng as weights. The pooled mean is approximately 6.261831918, while equally weighting the groups with available logs gives approximately 6.031032800. The latter targets equal schooling groups, not equal available people. Do not replace an undefined group mean with zero. We do not connect mean points as an actual individual schooling trajectory.
Think first, then reveal: May a difference between adjacent schooling means be called a causal return to education?
Not from this plot. Different people’s available wages are not the counterfactual effect of adding education to the same person. Experience, location, background, selection and missingness can differ. Min/max is the observed range, not a confidence interval. Exponentiating a mean log also differs from an arithmetic mean wage. Keep period and units explicit.
Establishment case · Check same-record pairs before comparing two means
Link before/after FTE in the 410 public 1992 NJ/PA fast-food records by original source-row key. FTE equals full-time staff plus half part-time staff plus managers, remaining unavailable when a required component is missing. Available record counts differ by wave. Keep the 384 complete same-source-row pairs separately. Preserve the two distinct code-407 records at source rows 42/168.
Availability by state · inspect retained composition first
State
Source rows
Before available
After available
Complete pairs
PA
79
77
77
75
NJ
331
321
319
309
Two comparisons with different retained sets · rounded mean FTE
State
Available-wave mean difference
Complete-pair mean change
PA
-2.165584
-2.283333
NJ
0.588021
0.466667
Think first, then reveal: Why can the two mean differences disagree?
Wave-specific available means can use different source-record sets. Complete-pair changes use the same retained units. On identical n pairs with identical weights, mean change exactly equals after mean minus before mean. Subtracting means from different available sets asks a different question. The other 26 records remain preserved.
Think first, then reveal: Does comparing NJ and PA mean changes establish a policy effect?
It is an exploratory observed comparison. Composition, missingness, other changes and counterfactual outcomes require additional analysis. Two waves cannot verify parallel trends or recover the whole path. Plot paired endpoints or changes, without presenting interpolated intermediate employment as observed.
기초Foundations
49. 영상·원문과 다음 검증으로 연결한다49. Connect the video and readings to subsequent validation
본문의 실제 사례 뒤 공식 Crash Course Statistics 8 영상은 상관과 인과의 질문을 연결하는 입구입니다. 재생은 포함한 영상에서 직접 조절합니다. Hans Rosling의 Karolinska Institutet 소개는 국제보건·자료 시각화 교육 맥락으로 읽으며 인물의 권위가 이번 숫자의 검산을 대신하지 않습니다.
정의·질문·그림 특징은 NIST Scatter Plot의 Definition·Questions·Appearance와 인과 주의 범위에서 확인합니다. 시간 순서 입구는 NIST Run-Sequence Plot의 Definition·Questions까지만 읽습니다. 그림 형태가 독립성·안정성·인과를 자동 보증한다는 주장은 채택하지 않습니다.
다음 장에서는 이 기술 결과와 추가 표집·작업모형 아래의 불확실성 보고를 구별합니다. 원행·짝·단위·분모를 먼저 확인한 습관은 이후 회귀·예측·인과 분석에도 유지합니다.
The official Crash Course Statistics 8 video after the actual cases introduces correlation-versus-causation questions; control playback in the embedded player. Read the Karolinska Institutet introduction to Hans Rosling for international-health and data-visualization teaching context, not as a substitute for checking these numbers.
For definitions, questions and plot features, read NIST Scatter Plot only through Definition, Questions, Appearance and its causal caution. For chronology, read NIST Run-Sequence Plot Definition and Questions. Do not adopt automatic claims that shape certifies independence, stability or causation.
The next chapter separates these descriptive results from uncertainty under additional sampling/working models. Continue checking rows, pairs, units and denominators in subsequent regression, prediction and causal analysis.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.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 · Separate a relationship plot from a causal claim
CrashCourse Statistics 8
공식 영상의 산점도·상관과 원인 구별을 읽고, 나라 사이 차이·한 나라 시간·사람 집단·점포 전후 비교의 관측 단위를 먼저 적어 봅니다.Use the official scatterplot/correlation discussion to state the units behind country, time, person-group and paired-establishment comparisons.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading높은 관측 상관만으로 어떤 개입이 효과적인지 알 수 있나요?Does high observed correlation identify an effective intervention?
생각을 점검하는 해설Check your reasoning
아닙니다. 시간·선택·교란과 반사실을 다룰 설계와 가정이 더 필요합니다.No. A design and assumptions addressing timing, selection, confounding and counterfactuals are still required.
한스 로슬링 · 변화하는 세계를 고정된 인상과 구별하기Hans Rosling · Separate a changing world from a fixed impression
Karolinska Institutet official profile
국제보건 교수이자 통계 시각화 교육자의 소개를 읽습니다. 여러 변수와 시간의 변화가 함께 보이는 그림에서도 단위·시점·표적을 정확히 남기는 연습을 연결하세요.Read the introduction to the international-health professor and statistical educator. Practice preserving units, periods and targets when visualizing several variables through time.
보고 읽은 뒤 답하기Respond after watching/reading움직이는 그림이 있으면 조사 연도와 분모를 생략해도 되나요?Does an animated display remove the need for periods and denominators?
생각을 점검하는 해설Check your reasoning
아닙니다. 움직임을 만드는 실제 시점과 없는 중간값의 보간을 구별해야 합니다.No. Distinguish actual observed periods from interpolation between them.
NIST · 산점도는 어떤 관계를 보여 주는가NIST · What relationships can a scatterplot show?
NIST/SEMATECH e-Handbook · 1.3.3.26
Definition·Questions·Appearance와 인과 주의 단락을 읽습니다. 선형·곡선·흩어짐 변화를 원자료에서 살피되, 연관이 곧 원인이라는 전제를 붙이지 않습니다.Read Definition, Questions, Appearance and the causal caution. Inspect shapes and spread without equating association with cause.
보고 읽은 뒤 답하기Respond after watching/reading점 사이의 선은 언제 주의해야 하나요?When do connecting lines need caution?
생각을 점검하는 해설Check your reasoning
서로 다른 개인이나 범주 순위에 실제 연속 경로가 없으면 선이 미관측 중간 과정을 암시할 수 있습니다.Lines can suggest unobserved paths when distinct people or category ranks have no continuous trajectory.
NIST · 값의 분포와 관측 순서를 함께 보기NIST · Inspect observation order alongside the value distribution
관측 순서에 따른 위치·변동의 이동을 살펴보는 부분을 읽습니다. 시간 순서와 파일 행 순서를 구별하고, 그림이 고정 분포·독립성을 인증한다고 읽지 않습니다.Read Definition and Questions on shifts over observation order. Separate chronological time from file position; a plot alone does not certify independence or a fixed distribution.
보고 읽은 뒤 답하기Respond after watching/reading한국의 연간 지표를 임의로 섞어 그리면 무엇이 사라지나요?What disappears when Korean annual indicators are randomly reordered?
생각을 점검하는 해설Check your reasoning
같은 값의 집합이라도 연속 연도의 움직임과 시차·지속성을 읽을 실제 순서가 사라집니다.The same values lose the real temporal order needed to inspect adjacent changes, lags and persistence.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 원짝 보존Preserve pairs
가정 A=(1,80),B=(3,60),C=(2,70)는 시간·점수 짝입니다. 시간 순으로 전체 행을 정렬한 짝을 쓰고 점수만 오름차순 붙인 결과와 구별하세요.
Toy study-hour/score pairs are A=(1,80), B=(3,60), C=(2,70). Sort whole records by hours and distinguish independently sorted scores.
풀이와 확인할 이유Solution and explanation
전체 행 정렬은 (1,80),(2,70),(3,60)입니다. 별도 목록 정렬의 (1,60),(2,70),(3,80)은 실제 가정 짝을 바꿉니다.
가정 x=(1,2,미관측,4),y=(미관측,6,7,8)에서 열별 가용수·완전짝 수·완전짝을 구하세요.
For toy x=(1,2, missing,4), y=(missing,6,7,8), count each available column and the complete pairs.
풀이와 확인할 이유Solution and explanation
열별 각각 3개,공통은 2개이며 (2,6),(4,8)입니다. 별도 결측 제거로 위치를 맞추지 않습니다.
Each column has three available values. The two complete pairs are (2,6),(4,8). Do not align positions after independently dropping missing values.
3. 보이는 점의 수Visible marks
가정 원행 4개가 (1,2),(1,2),(2,3),(3,4)입니다. 불투명 같은 크기 점으로 그렸을 때 서로 다른 좌표 3개는 원행 3개라는 뜻인가요?
Four toy source rows are (1,2),(1,2),(2,3),(3,4). Three distinct plotted coordinates imply three records?
풀이와 확인할 이유Solution and explanation
아닙니다. 같은 (1,2)에 두 원행이 겹칩니다. 원행 4개·고유좌표 3개를 구별하고 원행 선택기나 빈도 표기를 둡니다.
No. Two records overlap at (1,2). Retain four source rows and three distinct coordinates, with a row selector or multiplicity label.
4. 관측 단위Observation units
선택 16국의 2024GDPpc·기대수명,한국 2000~2024의 25연도 수준,그인접 24변화에서 각 점의 단위를 쓰세요.
State the point unit for sixteen countries’2024 GDPpc/life, twenty-five Korean annual levels 2000–2024, and twenty-four adjacent changes.
풀이와 확인할 이유Solution and explanation
각각 같은 2024년 국가,같은 한국 연도,한국 인접 두 연도의 변화입니다. 개인소득·개인수명 짝이나 독립 반복이라고 자동 해석하지 않습니다.
They are a country in the same year, a Korean year, and a change between two adjacent Korean years. None automatically denotes individual income/lifespan pairs or independent repetitions.
5. 중심화 손계산Center by hand
가정 짝 (1,2),(2,4),(3,3)의 두 평균·중심화 이탈·Sxx,Syy,Sxy·r을 구하세요.
For toy pairs (1,2),(2,4),(3,3), find both means, departures, Sxx, Syy, Sxy and correlation.
풀이와 확인할 이유Solution and explanation
평균 (2,3),이탈 x=(−1,0,1),y=(−1,1,0). Sxx=2,Syy=2,Sxy=1이므로 r=1/2입니다.
Means are (2,3), departures x=(−1,0,1), y=(−1,1,0). Thus Sxx=2, Syy=2, Sxy=1 and r=1/2.
Correlation remains .4 while covariance multiplies by one hundred. Positive scaling preserves correlation; shifts do not change centered departures.
12. 음수·0배율Negative and zero scales
상관r=.4인 비상수 두열에서 y′=−2y+7과 y″=0y+7을 각각 만들면 상관은 무엇인가요?
Nonconstant columns have r=.4. Give correlations after y′=−2y+7 and y″=0y+7.
풀이와 확인할 이유Solution and explanation
첫 변환은−.4,둘째는 상수열이므로 미정의입니다. 배율 0을 부호 0의 상관 0으로 해석하지 않습니다.
The first is −.4; the second is undefined because it is constant. Zero scale does not imply a defined correlation of zero.
13. 제곱 함수의 0상관Zero correlation for a square
가정 X가 −2,−1,0,1,2를 균등 선택하고 Y=X²입니다. EX,EY,EXY와 상관을 구하세요.
Toy X is uniform on −2,−1,0,1,2 and Y=X². Find EX, EY, EXY and correlation.
풀이와 확인할 이유Solution and explanation
EX=0,EY=2,EXY=0. VarX=2,VarY=14/5로 양수여서 공분산·상관 0입니다. Y는X로 완전히 결정됩니다.
EX=0, EY=2, EXY=0. VarX=2 and VarY=14/5 are positive, so covariance/correlation are zero although X determines Y.
14. 독립 반례A dependence counterexample
앞 문항을 참조하지 않고,X가 −2,−1,0,1,2균등,Y=X²인 법칙에서 P(Y=0)와 P(Y=0|X=0)을 비교하세요.
Under uniform X on −2,−1,0,1,2 with Y=X², compare P(Y=0) and P(Y=0|X=0).
풀이와 확인할 이유Solution and explanation
각각 1/5와 1입니다. P(X=0)=1/5>0이어서 조건확률이 정의되며 두 값이 달라 독립이 아닙니다.
They are one fifth and one. The conditioning event has positive probability one fifth; unequal probabilities demonstrate dependence.
15. 상관 경계 증명Bound correlation
유한 짝에서 dxi=xi−x평균,dyi=yi−y평균으로 두고 Sxx=Σdxi²,Syy=Σdyi²,Sxy=Σdxi dyi입니다. Sxx,Syy>0이고 Q(t)=Σ(dyi−t dxi)²일 때 Q의 최소값으로 |r|≤1을 보이세요.
For finite pairs define dxi=xi−x̄, dyi=yi−ȳ, Sxx=Σdxi², Syy=Σdyi², Sxy=Σdxi dyi. With Sxx, Syy>0, use the minimum of Q(t)=Σ(dyi−t dxi)² to prove |r|≤1.
풀이와 확인할 이유Solution and explanation
모든 t에서 Q(t)≥0이고 최소점은 t=Sxy/Sxx입니다.
Q(t∗)=Syy−Sxy2/Sxx≥0Sxy2≤SxxSyy∣r∣≤1
독립 표본 전제 없는 유한 배열의 대수 결과입니다.
Q(t)≥0 for all t, with minimum at t=Sxy/Sxx.
Q(t∗)=Syy−Sxy2/Sxx≥0Sxy2≤SxxSyy∣r∣≤1
This finite-array algebra needs no independent-sample assumption.
16. 등호 조건Equality condition
유한 짝에서 dxi=xi−x평균,dyi=yi−y평균,Sxx=Σdxi²,Syy=Σdyi²이고 두 합은 양수입니다. r=Σdxi dyi/√(SxxSyy)에 대해 |r|=1일 필요충분조건을 중심화 값으로 쓰세요.
For finite pairs define dxi=xi−x̄, dyi=yi−ȳ, Sxx=Σdxi², Syy=Σdyi², with both sums positive. For r=Σdxi dyi/√(SxxSyy), state the centered-value condition equivalent to |r|=1.
풀이와 확인할 이유Solution and explanation
모든 i에서 dyi=t dxi인 같은 비영 상수t가 존재해야 합니다. r의 부호는t의 부호입니다. 두 양의 제곱합 조건이 상수열을 제외합니다.
There must be one nonzero constant t with dyi=t dxi for every i. Its sign gives the sign of r. Positive square sums exclude constant columns.
17. 비선형 변환A nonlinear transformation
양의 x,y에 로그를 취해도 언제나 원 Pearson r이 유지된다고 할 수 있나요? 보존 정리의 범위를 쓰세요.
Do logarithms of positive x, y always preserve original Pearson correlation? State the invariance scope.
풀이와 확인할 이유Solution and explanation
아닙니다. 비영 아핀 배율·이동의 정리만 있으며 로그는 비선형입니다. 로그의 양의 정의역·변환 후 비상수 여부·새짝을 확인해 다시 계산합니다.
No. The theorem covers nonzero affine scales/shifts. Logarithms are nonlinear; check their positive domain and transformed nonconstancy, then recompute on preserved pairs.
18. 선택 구간 한 연도Select a single year
한국 2000~2024자료에서 시작·끝을 모두 2020으로 고릅니다. 수준점·인접 변화점 수와 두 상관은?
From Korean 2000–2024 data, select start=end=2020. Count level/change points and state their correlations.
풀이와 확인할 이유Solution and explanation
수준 1개·변화 0개이며 두 상관 모두 미정의입니다. 한 짝이나 빈짝 상태를 0상관으로 표시하지 않습니다.
There is one level point and zero adjacent changes. Both correlations are undefined, not zero.
19. 세 실제 상관Three actual correlations
실제 기술r이 국가 16=.784471,한국 25수준=.983561,한국 24차이=−.214307입니다. 서로 모순인가요?
Actual descriptive r values are .784471 for sixteen countries, .983561 for Korean levels and −.214307 for Korean changes. Contradiction?
풀이와 확인할 이유Solution and explanation
관측 단위·질문이 달라 모순이 아닙니다. 어느 값도 다른 질문의 값으로 대체하거나 인과효과로 해석하지 않습니다.
No: observational units and questions differ. Do not substitute one for another or interpret any as an identified causal effect.
20. 선택을 숨긴 보고Hidden selection
여러 연도 구간을 탐색해 최대상관 구간 하나만 보고 “사전 검증 완료”라 썼습니다. 수치가 맞아도 무엇을 고쳐야 하나요?
After exploring many year ranges, report the highest correlation as “prespecified validation complete”. What needs repair even if the number is correct?
풀이와 확인할 이유Solution and explanation
탐색한 구간·선택 기준·같은자료 사용을 공개하고 탐색 후 가설로 구분합니다. 사전 계획·새자료 또는 선택을 고려한 추론은 별도입니다.
Disclose the range search, selection criterion and reuse of data. Label the hypothesis as exploration-generated; prespecified/new-data or selection-aware validation is separate.
21. 연차 변화 개수Count adjacent changes
가정 연간 수준이 2000~2004년 매년 하나씩 있습니다. 전체와 2002~2004년 부분 구간의 수준·인접 변화 개수를 쓰세요.
Toy annual levels exist for every year 2000–2004. Count levels and within-range adjacent differences for the full range and 2002–2004.
풀이와 확인할 이유Solution and explanation
전체는 5수준·4변화,부분은 3수준·2변화입니다. 부분 구간 첫해 2002년의 전해 2001년은 선택 밖이므로 그 차이를 새로 넣지 않습니다.
The full range has five levels/four changes; the subrange has three/two. The change from 2001 to 2002 is outside the stipulated subrange pairing.
22. 차이와 성장률Changes and growth
가정 양의 지표가 100,110,120 순서로 움직입니다. 두 차이와 두 성장률을 구하세요.
A positive toy indicator follows 100,110,120. Calculate both differences and growth rates.
풀이와 확인할 이유Solution and explanation
차이는 10·10 원단위,성장률은 10/100=10%,10/110≈9.0909%입니다. 같은 차이라도 출발값이 달라 비율이 다릅니다.
Differences are ten/ten source units. Growth rates are ten percent and 10/110≈9.0909 percent, because starting denominators differ.
23. 기준 100Base one hundred
가정 GDP는 200→300,기대수명은 50→60입니다. 각 첫값을 100으로 바꾼 끝지수와 원단위 차이를 쓰세요.
Toy GDP changes 200→300 and life 50→60. Rebase each initial value to one hundred; give final indices and original changes.
풀이와 확인할 이유Solution and explanation
끝지수는 150·120,원단위 차이는 GDP 100·기대수명 10입니다. 지수 차이 30은 원단위 차이나 수명 차이가 아닙니다.
Final indices are 150/120; original changes are GDP one hundred and life ten. The index gap thirty is not an original-unit or lifespan difference.
24. 다른 기준 연도Another base year
같은 가정 지표의 2020년 값은 80,2021년 100,2022년 120입니다. 2020년 기준과 2021년 기준 지수 세 개를 비교하세요.
A toy indicator is 80 in 2020,100 in 2021,120 in 2022. Compare indices based on 2020 and 2021.
풀이와 확인할 이유Solution and explanation
2020년 기준은 100,125,150;2021년 기준은 80,100,120입니다. 재기준은 같은 계열 전체의 양의 상수배이며 원수치·연도는 바뀌지 않습니다.
They are (100,125,150) and (80,100,120). Rebasing positively rescales the entire series, without changing original values or years.
25. 재기준과 상관Rebasing and correlation
두 비상수 계열을 각각 양의 기준값으로 나눠 100을 곱합니다. 같은 연도 짝의 상관이 달라져야 하나요?
Rebase two nonconstant series by their own positive base values times one hundred. Must correlation of the same year pairs change?
풀이와 확인할 이유Solution and explanation
수학적으로 보존됩니다. 각 계열의 양의 배율 불변성이 적용됩니다. 표시 반올림 차이는 별도로 구분합니다.
It is mathematically preserved by positive scaling invariance. Treat numerical display rounding separately.
26. 연결선 범위What a segment establishes
연간 2000년 값 10,2001년 값 14인 두 점의 직선 중간값 12를 2000년 중반 실측이라고 보고할 수 있나요?
Annual observations are ten in 2000 and fourteen in 2001. Is the midpoint twelve an actual mid-2000 measurement?
풀이와 확인할 이유Solution and explanation
아닙니다. 12는 선형 보간을 가정한 중간값이며 연간 두 점만으로 실측한 것이 아닙니다. 보간 가정과 실제 관측을 표시상 구분합니다.
No. Twelve is a linear-interpolation assumption, not an intermediate observation from the two annual values. Label interpolation separately.
27. 차분의 분산Variances of differences
가정 ε0,ε1,ε2가 독립이고 공통 유한 분산 v>0입니다. D1=ε1−ε0,D2=ε2−ε1의 분산·공분산·상관을 구하세요.
Independent toy ε0,ε1,ε2 have common finite variance v>0. For D1=ε1−ε0, D2=ε2−ε1, find variances, covariance, correlation.
풀이와 확인할 이유Solution and explanation
두 분산은 2v,공분산은 −v,상관은 −1/2입니다. 공유 ε1의 부호가 반대여서 독립 수준에서도 겹친 차분은 의존할 수 있습니다.
Both variances are 2v, covariance −v and correlation −1/2. The shared ε1 enters with opposite signs; independent levels need not give independent differences.
28. 시간 순서Chronological order
실제 한국 연도값을 GDP 크기순으로 정렬한 뒤 선을 그렸습니다. 이 선이 실제 시간경로인지,시간경로에 필요한 키를 쓰세요.
Actual Korean annual records are sorted by GDP before connecting. Is that a time path? State the required key.
풀이와 확인할 이유Solution and explanation
GDP 순서는 시간경로가 아닙니다. 실제 연도순과 달력 간격을 써야 하며 원연도 키를 보존합니다. 값 순위 그림 자체는 가능하나 질문을 달리 표시합니다.
GDP rank is not chronology. Use actual year order/elapsed spacing and retain year keys. A ranked-value plot is possible when labelled as a different question.
29. 원축과 지수축Original versus index axes
GDP 원값 수만과 기대수명 수십을 한 원단위 축에 그려 수명이 평평해졌습니다. 두 합당한 표시 선택을 설명하세요.
One common original-value axis makes life in tens almost flat beside GDP in tens of thousands. Give two defensible displays.
풀이와 확인할 이유Solution and explanation
서로 다른 원단위의 별도 패널 또는 각자 양의 기준 100인 공통 지수축을 쓸 수 있습니다. 단위·기준·축 범위를 공개하며 원단위 크기가 같아졌다고 하지 않습니다.
Use separate original-unit panels, or a common index axis with each series rebased to its own positive one hundred. Declare units, bases, ranges; original magnitudes are not equated.
30. 기간 기대수명Period life expectancy
한국 2000~2024년 기대수명선을 한 사람이 25년간 늙으며 실제 살아남은 나이라고 설명했습니다. 무엇을 고치나요?
Describe Korean 2000–2024 life-expectancy points as one person’s observed ageing/survival over twenty-five years. Repair it.
풀이와 확인할 이유Solution and explanation
기간 기대수명은 각 연도 사망률 조건의 국가 지표입니다. 한 사람의 실제 수명·나이 패널이 아니며 국가-연도 관측 단위를 명시합니다.
Period life expectancy is a national indicator of each period’s mortality conditions, not one person’s observed lifespan/age panel. State the country-year unit.
31. 집단 가용수Group availability
가정 교육집단의 전체 원행 12개 중 로그 가용은 9개입니다. 미관측 수와 가용합 54일 때 평균을 구하세요.
A toy schooling group has twelve source rows, nine available logs whose sum is fifty-four. Find missing count and available mean.
풀이와 확인할 이유Solution and explanation
미관측 3개,가용 평균 54/9=6입니다. 54/12=4.5는 미관측 0채움을 포함한 별도 가정이며 같은 평균이 아닙니다.
Three are missing; the available mean is 54/9=six. Dividing by twelve gives 4.5 only under a different zero-fill assumption.
32. 두 가중 평균Two weighting targets
가정 집단 A가 (0,2),B가 (9)입니다. 각 집단 평균·개인 균등평균·집단 균등평균을 구하세요.
Toy group A contains (0,2), B contains (9). Find group means, equal-person mean and equal-group mean.
풀이와 확인할 이유Solution and explanation
집단 평균은 1·9,개인 균등은 11/3,집단 균등은 (1+9)/2=5입니다. 개인 표적의 집단 무게는 2/3·1/3입니다.
Group means are one/nine. Equal-person mean is 11/3, with weights 2/3 and 1/3. Equal-group mean is five.
33. 실제 0년 집단Actual schooling-zero group
실제 교육 0년은 원행 3개·로그 가용 0개입니다. 로그 평균·최솟값·최댓값과 그림 표시를 설명하세요.
Actual schooling zero has three source rows and zero available logs. State mean, min, max and display handling.
풀이와 확인할 이유Solution and explanation
모두 미정의입니다. 0높이 점이나 0길이 범위선으로 만들지 않고 원행 3·가용 0·미관측 3을 따로 표시합니다.
All are undefined. Do not draw a zero-height mean or zero-length observed range. Display source three, available zero, missing three separately.
34. 18과 19의 분모Eighteen versus nineteen
실제 기록 교육값은 19개,평균 정의 집단은 18개입니다. 정의된 평균들의 집단 균등 요약을 할 때 분모와 제외 사유를 쓰세요.
Actual schooling has nineteen recorded levels but eighteen defined means. Give the denominator for an equal-defined-group mean and explain the omitted term.
풀이와 확인할 이유Solution and explanation
정의된 18평균을 더해 18로 나눕니다. 0년은 가용값이 없어 평균이 정의되지 않으며 0평균으로 넣어 19로 나누지 않습니다.
Sum eighteen defined means and divide by eighteen. Schooling zero has no available mean; it is not a zero-valued mean to include in a nineteen-term average.
35. 범위와 신뢰구간Range versus confidence interval
가정 가용 로그가 5,6,9인 집단의 평균과 범위를 구하고 범위선을 평균의 95% 신뢰구간이라 부를 수 있는지 쓰세요.
A toy group’s available logs are five, six, nine. Find mean/range. Is the range a 95% confidence interval for its mean?
풀이와 확인할 이유Solution and explanation
평균은 20/3,관측 범위는 [5,9]입니다. 범위는 관측 최소~최대일 뿐 평균 신뢰절차나 95% 포함률을 구성한 것이 아닙니다.
Mean is 20/3, observed range [5,9]. This minimum-to-maximum segment constructs neither a confidence procedure nor 95% coverage for a mean.
36. 평균 로그의 지수화Exponentiating mean logs
가정 양의 원값 1과 9의 로그 평균을 지수화한 값과 원값 산술평균을 비교하세요.
Compare exponentiated mean logs with the arithmetic mean for toy positive values one and nine.
풀이와 확인할 이유Solution and explanation
exp((ln1+ln9)/2)=3이고 (1+9)/2=5입니다. 기하평균과 산술평균은 다르며 실제 로그와 원임금은 가용행도 다를 수 있습니다.
exp((ln 1+ln 9)/2)=three, whereas (1+9)/2=five. Geometric and arithmetic means differ; actual log/raw availability sets can also differ.
37. 로그 임금 단위Units of log wages
가정 기록 로그 평균이 ln(500)이며 로그의 원단위는 1976년 센트/시간입니다. 지수평균의 달러 단위 값과 해석을 쓰세요.
A toy mean recorded log is ln(500), where logs refer to 1976 cents/hour. Convert its exponentiated center to dollars and interpret.
풀이와 확인할 이유Solution and explanation
exp(ln500)/100=5달러/시간입니다. 가용 로그의 지수값 기하중심이며 원임금 산술평균·현재 임금이라는 뜻은 아닙니다.
exp(ln 500)/100=five dollars/hour. It is the geometric center of exponentiated available logs, not the raw arithmetic mean or a current wage.
38. 가정 집단 역전A toy group reversal
가정 A:(1,8),(2,9),B:(3,1),(4,2)에서 집단 내 상관과 전체 상관을 비교하세요.
For toy A:(1,8),(2,9), B:(3,1),(4,2), compare within-group and pooled correlations.
풀이와 확인할 이유Solution and explanation
각 집단 상관은 1입니다. 전체 평균 2.5·5,Sxx=5,Syy=50,Sxy=−13이므로 전체 r=−13/√250≈−.822192입니다. 다른 질문의 결과가 동시에 성립합니다.
Each within-group correlation is one. Pooled means 2.5/five give Sxx 5, Syy 50, Sxy−13, and r=−13/√250≈−.822192. These different summaries coexist.
39. 한 값의 범위One available value
가정 집단에 가용값 7 하나가 있습니다. 관측 평균·범위와 모집단 분산이 0인지에 대한 결론은?
A toy group has just one available value seven. State mean/range and whether population variance must be zero.
풀이와 확인할 이유Solution and explanation
관측 평균은 7·범위는 [7,7]입니다. 가용값 하나의 범위 0은 미관측 모집단의 분산 0을 보증하지 않습니다. 신뢰구간도 자동 생기지 않습니다.
Observed mean is seven and range [7,7]. Zero observed range from one value does not establish zero population variance or automatically construct a confidence interval.
40. 집단 평균의 생태적 오독An aggregate-to-individual mistake
국가 GDPpc와 국가 기대수명의 양의 상관에서 개인소득을 올리면 개인수명이 늘어난다고 결론냈습니다. 빠진 관측과 조건은?
Positive country GDPpc/life correlation is said to prove that raising individual income increases lifespan. What is missing?
풀이와 확인할 이유Solution and explanation
개인소득·개인수명 짝과 반사실 개입 비교가 없습니다. 국가 수준 기술연관을 개인 관계·인과효과로 옮기지 말고 관측 단위와 식별 한계를 밝힙니다.
Individual income/lifespan pairs and an identified counterfactual intervention comparison are absent. Keep the result at the country descriptive level and state identification limits.
41. 전후 가용수Wave availability
실제 점포 전체 410행 중 전 FTE 가용 398·후 396·완전짝 384입니다. 전만·후만·양쪽 미가용 수를 구하세요.
Among 410 actual establishment rows, before FTE is available 398 times, after 396, complete pairs 384. Count before-only, after-only and neither.
풀이와 확인할 이유Solution and explanation
전만 14,후만 12,양쪽 미가용은 410−(398+396−384)=0입니다. 불완전짝 26개는 원자료에 그대로 보존합니다.
Before-only fourteen, after-only twelve, and neither 410−(398+396−384)=zero. Preserve all twenty-six incomplete-pair source records.
42. 같은 짝 평균차Same-pair mean difference
가정 같은 세 점포의 전 FTE=(10,20,30),후=(12,18,35)입니다. 각 변화·변화평균·같은 짝 시점 평균차를 구하세요.
Toy before FTE=(10,20,30) and after=(12,18,35) belong to the same three establishments. Find changes, mean change and mean endpoint difference.
풀이와 확인할 이유Solution and explanation
변화는 2,−2,5이고 변화평균은 5/3입니다. 전 평균 20,후 평균 65/3이어서 같은 짝 평균차도 5/3입니다.
Changes are 2,−2,5, with mean 5/3. Before mean is 20, after 65/3; their difference is also 5/3.
43. 구성 차이 반례A composition counterexample
가정 A는 전후 10,B는 전 0·후 미관측,C는 전 미관측·후 20입니다. 시점 가용 평균차와 완전짝 평균변화를 구하세요.
Toy A is 10 before/after; B has before 0 and unavailable after; C has unavailable before and after 20. Compare wave-available and paired changes.
풀이와 확인할 이유Solution and explanation
전 가용 평균 5,후 15라 차이는 10입니다. 완전짝 A의 변화는 0입니다. 전체 세 점포 변화평균은 두 미관측 칸 때문에 알 수 없습니다.
Available means are 5 and 15, giving difference 10. The sole complete pair A changes 0. Two missing endpoints leave the full three-establishment mean change unknown.
44. PA의 같은 수·다른 집합Equal PA counts, different sets
실제 PA 원행 79개,전 가용 77·후 가용 77·완전짝 75입니다. 가용수가 같아도 두 집합이 같지 않음을 계산으로 보이세요.
Actual PA has 79 source rows,77 before-available,77 after-available and 75 pairs. Show that equal counts do not mean equal sets.
풀이와 확인할 이유Solution and explanation
전만 2·후만 2이므로 집합은 다릅니다. 합집합 79개이고 양쪽 미관측은 0개입니다. 같은 개수 77은 같은 원행 77이라는 뜻이 아닙니다.
Two are before-only and two after-only. The union has 79 rows with neither count 0. Equal counts 77 do not identify the same 77 records.
45. 407 두 원행Two rows with code 407
실제 원점포 코드 407은 원행 42와 168에 있고 완전짝 변화는 각각 0·2.5 FTE입니다. 코드 중복만으로 하나를 지워도 되나요?
Actual source code 407 occurs in rows 42 and 168 with paired changes 0 and 2.5 FTE. May one be deleted merely because the code repeats?
풀이와 확인할 이유Solution and explanation
근거가 부족합니다. 원행 두 개·원코드를 따로 보존합니다. 서로 다른 행이 실제로 다른 점포인지도 자료만으로 단정하지 않고 원파일 짝을 유지합니다.
That alone is insufficient. Retain both source-row keys and the shared code. Different file rows do not prove distinct real establishments either; preserve original pairing.
46. 전체 변화 미식별Unknown full-frame change
전체 410행 중 384완전짝 변화평균을 안다고 합니다. 나머지 26행의 미관측값에 추가 가정 없이 410행 변화평균을 계산할 수 있나요?
The mean change is known on 384 complete pairs among 410 source rows. Can the 410-row mean change be obtained without assumptions about 26 incomplete rows?
풀이와 확인할 이유Solution and explanation
없습니다. 384짝의 알려진 요약과 410행 전체 표적을 구별합니다. 미관측을 0 또는 기존 평균으로 채우면 추가 가정 분석입니다.
No. Distinguish the known paired subset from the full-frame target. Filling unknown endpoints with zero or a current mean introduces extra assumptions.
47. 요약 연결선A summary segment
전 가용 평균·후 가용 평균 두 점을 선으로 잇고 “모든 점포는 이 경로를 따랐다”고 했습니다. 그 선의 올바른 뜻은?
Join available before/after means and claim every establishment followed that path. What does the segment actually encode?
풀이와 확인할 이유Solution and explanation
서로 다를 수 있는 가용집합의 두 평균 끝점을 연결한 표시입니다. 개별 점포 경로·중간 관측·정책 인과효과가 아닙니다. 각 분모를 공개합니다.
It connects two mean endpoints, possibly using different available sets. It is not an individual trajectory, intermediate observation or identified policy effect. Disclose both denominators.
48. 짝 변화의 분산 항등식Variance identity for paired changes
같은 m≥1 완전짝에서 기술분산·공분산의 분모를 모두 m으로 정합니다. D=A−B의 기술분산을 두 원열로 표현하세요.
On the same m≥1 complete pairs, use divisor m for descriptive variances/covariance. Express variance of D=A−B.
풀이와 확인할 이유Solution and explanation
각 변화의 중심화값은 (Aᵢ−A평균)−(Bᵢ−B평균)이므로 제곱을 전개합니다.
vD=vA+vB−2cAB
독립 가정 없이 맞는 같은 짝 항등식입니다. 서로 다른 가용집합의 분산을 대입하면 이 조건을 잃습니다.
Centered change is (Aᵢ−mean A)−(Bᵢ−mean B). Expanding its square gives:
vD=vA+vB−2cAB
This same-pair identity needs no independence. Substituting variances from different availability sets loses the condition.
49. 실제 변화합Actual sum of changes
실제 384완전짝의 후−전 합은 −27.05 FTE입니다. 평균변화를 정확 분수·근삿값으로 쓰세요.
Actual after-minus-before changes sum to −27.05 FTE over 384 complete pairs. Give the exact mean and approximation.
풀이와 확인할 이유Solution and explanation
−27.05/384=−541/7680≈−.0704427083 FTE입니다. 같은 384짝의 후 평균−전 평균과 같으며 410행 전체나 정책효과 값은 아닙니다.
−27.05/384=−541/7680≈−.0704427083 FTE. It equals the mean endpoint difference for those 384 pairs, not the full 410-row or causal effect target.
50. 선택 번호의 뜻Meaning of the selector index
실습에서 주를 NJ에서 PA로 바꿔 선택 번호를 1로 둡니다. 이전과 같은 파일 원행이라는 뜻인가요?
Change the lab state from NJ to PA while retaining selected position one. Must it be the same full-file source row?
풀이와 확인할 이유Solution and explanation
아닙니다. 번호는 선택 주 안의 보관 순서입니다. 반환된 실제 원행 키·원코드로 추적해야 하며 선택 위치와 파일 키를 혼동하지 않습니다.
No. Position is within the selected state. Trace the returned actual source_row_id and code; a filtered position is not a full-file key.
51. 내부·사이 곱합 증명Within/between cross sums
같은 n≥1 완전짝을 비어 있지 않은 집단 g로 나눕니다. 집단 평균 x̄g,ȳg,전체 평균 x̄,ȳ로 Sxy의 내부+사이 분해를 증명하세요.
Partition the same n≥1 complete pairs into nonempty groups g. Prove the within/between decomposition using group and overall means.
풀이와 확인할 이유Solution and explanation
각 이탈을 집단 내 이탈+집단 평균 이탈로 나누어 곱합니다. 집단 내 이탈합 0으로 두 교차항이 사라집니다.
가정 A:(1,8),(2,9),B:(3,1),(4,2)에서 내부 곱합 W·사이 곱합 B와 전체 Sxy를 구하세요.
For toy A:(1,8),(2,9), B:(3,1),(4,2), calculate within cross sum W, between cross sum B and total Sxy.
풀이와 확인할 이유Solution and explanation
각 집단 내 곱합 .5라 W=1입니다. 전체 평균은 2.5·5,집단 평균은 1.5·8.5와 3.5·1.5라 B=2(−1)(3.5)+2(1)(−3.5)=−14입니다. 전체 Sxy=−13입니다.
Each within sum is .5, so W=1. Overall means are 2.5/5, group means 1.5/8.5 and 3.5/1.5. Thus B=2(−1)(3.5)+2(1)(−3.5)=−14, and total Sxy=−13.
53. 집단 상관의 평균Averaging group correlations
가정 두 집단 상관이 각각 1인데 합친 상관이 음수일 수 있습니다. 단순평균 1이 전체 상관이 아닌 이유를 분해로 설명하세요.
Two toy groups each have correlation one, yet the pooled correlation can be negative. Explain using the decomposition.
풀이와 확인할 이유Solution and explanation
전체 곱합은 내부 곱합과 집단 평균 사이 곱합의 합이고 분모도 전체 제곱합입니다. 사이 음의 항이 내부 양의 항을 넘을 수 있어 그룹 r의 평균으로 대체할 수 없습니다.
The pooled cross sum includes within and between-group components, and its denominator uses pooled square sums. A negative between term can dominate; the mean of group r values omits it.
54. 범위가 작은 예Two perfectly aligned points
가정 관측점 두 개가 (1,2),(2,4)라 r=1입니다. 독립성·모집단 직선·미래 정확 예측까지 증명되나요?
Toy observed points(1,2),(2,4) have r=1. Does this prove independence, a population line and exact future prediction?
풀이와 확인할 이유Solution and explanation
아닙니다. 두 비상수점의 기술상관은 1이나 원표집법칙·모집단 구조·새자료 오차는 추가 정보가 필요합니다. 작은 완전상관과 검증 범위를 구분합니다.
No. Two nonconstant points have descriptive correlation one, but sampling structure, population relationships and new-data errors require additional information.
55. 그림 바이트와 숫자Plot bytes and numbers
같은 원행·같은 통계가 확인됐지만 다른 환경의 SVG 바이트 SHA가 다릅니다. 어떤 세 검토 범위를 구분하나요?
Source rows/statistics agree but SVG byte hashes differ between environments. Distinguish three review scopes.
풀이와 확인할 이유Solution and explanation
바이트 동일성·수치계산 일치·실제 시각 의미를 구분합니다. 글꼴·장치·버전·메타데이터가 바이트를 바꿀 수 있고 해시 차이만으로 통계오류를 단정하지 않습니다.
Byte identity, numerical agreement and actual visual meaning differ. Fonts, devices, versions and metadata can change bytes; a hash difference alone does not establish a statistical error.
56. 실제 프로그램 개수Count actual programs
보관 프로그램이 scatter 6,time 6,groups 4,paired 6,association 6이고 각 프로그램이 SVG 하나를 만듭니다. 총 실행·SVG 수를 구하세요.
Archived programs number scatter 6, time 6, groups 4, paired 6, association 6, each making one SVG. Count executions/plots.
풀이와 확인할 이유Solution and explanation
28개 실행·28개 SVG입니다. 모두 고정 코드의 실제 기록이며 새 브라우저 조절기를 누를 때마다 Python/R 28개가 재실행되는 것은 아닙니다.
Twenty-eight executions and twenty-eight SVGs. These are fixed actual records; a new browser control does not rerun twenty-eight Python/R processes.
57. live와 언어 실행Live versus language execution
연도 구간 2005~2015를 새로 고른 live 산점도를 보고 “R 4.5.1을 방금 실행했다”고 썼습니다. 올바른 실행 설명을 쓰세요.
A newly selected 2005–2015 live scatterplot is described as “R 4.5.1 just executed”. Repair the execution claim.
풀이와 확인할 이유Solution and explanation
“보관 원행을 JavaScript로 새로 계산·표시했다. 고정 전체 구간 Python/R 실행은 별도 보관 기준이다”라고 씁니다. 새 R 실행은 다운로드 코드를 실제 R 프로세스에서 돌려야 합니다.
Retained rows were newly calculated/displayed by JavaScript. Fixed full-range Python/R runs are separate archived references. A new R run requires executing downloaded code in an actual R process.
58. 공통 가용 코드Complete-pair code
가정 Python rows=[(1,None),(2,6),(None,7),(4,8)]에서 두 값이 모두 None이 아닌 행만 보존하면 결과는?
For toy Python rows=[(1,None),(2,6),(None,7),(4,8)], retain a row only when neither value is None. Give the result.
풀이와 확인할 이유Solution and explanation
[(2,6),(4,8)]입니다. 같은 행의 두 값을 함께 검사해야 하며 각 열에서 None을 별도 제거한 후 zip하는 방식은 짝을 바꿉니다.
The result is [(2,6),(4,8)]. Check both fields of the same row; separately dropping None and zipping can invent pairs.
59. 관찰과 정책 주장Observation and policy
실제 NJ·PA 완전짝 변화평균이 다릅니다. 이 차이를 바로 정책효과라 보고할 수 없는 이유를 두 가지 쓰세요.
Actual NJ/PA paired mean changes differ. Give two reasons this difference is not automatically an identified policy effect.
풀이와 확인할 이유Solution and explanation
관측집단의 반사실 변화경로를 모르며 비교 가능성·다른 시간충격 등 식별 조건이 자동 성립하지 않습니다. 완전짝 선택도 전체 410행과 달라 자료 범위를 명시해야 합니다.
Counterfactual paths and comparability/other time shocks are not automatically established. Complete-pair selection also differs from the 410-row frame and must be disclosed.
60. 전체 보고 고치기Repair the complete report
“국가·교육·점포 그림의 모든 선은 같은 사람의 변화이며 상관 0은 독립,범위는 95% CI,브라우저는 Python을 실행했고 미래 인과도 검증됐다”를 고치세요.
Repair: “All country, schooling and establishment lines track the same people; zero correlation means independence, ranges are 95% CIs, the browser runs Python, and future causation is validated.”
풀이와 확인할 이유Solution and explanation
국가·연도·사람·같은 원행 점포짝의 단위를 구분합니다. 0상관과 독립·미정의 상관을 나누고 관측 범위는 CI와 다르다고 밝힙니다. live는 JS,고정 언어 실행은 보관 기록이며 대표성·인과·미래 검증은 별도 조건과 자료가 필요합니다.
Separate country/year/person/source-paired-establishment units. Distinguish zero correlation, independence and undefined correlation; observed ranges are not CIs. Live calculations use JS; fixed language runs are archived. Representation, causation and future validation require additional conditions/data.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.