관측 단위·모집단·표본·측정Units, populations, samples and measurement
행 수의 오해에서 표집 설계·측정·결측 분모와 실제 자료 감사까지From misleading row counts to sampling design, measurement, missing-value denominators and actual-data audits
실습 6종 · 풀이 포함 연습문제 45개6 labs · 45 exercises with solutions
기초Foundations
1. 평균을 계산하기 전에 무엇을 센 것인지 묻기1. Ask what was counted before calculating an average
펭귄 몸무게 표에 344행이 있다고 합시다. 몸무게 숫자가 있는 행은 342개입니다. 합을 344로 나눌까요, 342로 나눌까요? 숫자 0과 비어 있는 칸을 구별하지 않으면 계산기를 정확히 눌러도 다른 질문에 답하게 됩니다.
국가별 45년 자료의 720행은 국가 720개가 아닙니다. 한 기업의 5개 품목을 2년 기록한 10행도 기업 10개가 아닙니다. 이 장은 공식보다 먼저 관측 단위·모집단·표본·측정·결측을 읽는 습관을 익힙니다. 실제 파일을 열어 주장과 행을 연결합니다.
A penguin table has 344 rows but only 342 recorded body masses. Which denominator should a mean use? Treating a blank as zero can make exact arithmetic answer the wrong question.
Seven hundred twenty country-year rows are not 720 countries. Ten product-year rows from one company are not ten companies. Begin with units, populations, samples, measurement and missing values, using actual source files.
기초Foundations
2. 기술·예측·인과 질문은 필요한 자료가 다르다2. Description, prediction and causation ask different questions
“기록된 펭귄의 평균 몸무게는?”은 자료 안의 기술 질문입니다. “새로 관측할 펭귄 몸무게는?”은 예측 질문으로, 새 대상이 기록된 대상과 얼마나 비슷한지와 예측 오차를 따져야 합니다. “먹이 조건을 바꾸면 몸무게가 변하는가?”는 개입의 인과 질문입니다.
같은 표를 세 질문에 사용할 수는 있어도 같은 계산이 같은 근거를 주지는 않습니다. 기술 평균에는 어떤 행이 포함됐는지, 예측에는 평가할 새로운 자료, 인과에는 비교 집단과 배정·교란·시간 순서에 대한 설계가 필요합니다.
먼저 완전한 문장으로 질문을 씁니다. 대상, 장소, 기간, 변수, 비교와 결과 단위를 넣습니다. “경제가 좋은가?”보다 “선택된 16개국의 2024년 1인당 실질 GDP를 국가 균등으로 평균하면 얼마인가?”가 어떤 계산인지 분명합니다.
The mean of recorded penguins is descriptive. Predicting a newly observed penguin needs a target context and prediction-error assessment. Asking how changing food conditions changes mass is causal.
The same table may inform all three, but the evidence differs: inclusion rules, genuinely new evaluation data, or a causal comparison and assignment design.
Write a full question specifying entities, place, period, variables and weights. A precise question identifies the calculation and its limits.
기초Foundations
3. 관측 단위는 한 행이 무엇을 나타내는가3. The observational unit is what one record represents
관측 단위는 한 번의 기록에서 값을 붙인 대상입니다. 펭귄 표에서는 기록된 개체의 측정, 국가 표에서는 국가·연도, 기업 표에서는 품목·회계연도일 수 있습니다. 통계표가 이미 집계되어 있으면 한 행은 집단일 수도 있습니다.
변수는 각 단위에서 기록하는 속성입니다. 몸무게, 날개 길이, 종, 측정 연도는 열이 됩니다. 식별자는 행을 연결하는 이름표로, 숫자로 적혔다고 평균낼 양이 되는 것은 아닙니다. row_id 1과 2가 몸무게 순위나 간격을 뜻하지는 않습니다.
데이터 사전에 “한 행은 …”을 먼저 적으세요. 독립적인 대상이 무엇인지는 별도의 질문입니다. 같은 대상의 반복 기록이나 같은 지역 안의 관측은 행이 여러 개여도 서로 관련될 수 있습니다.
An observational unit is what receives measurements in a record: a penguin measurement, country-year or product-fiscal-year. An aggregated table can instead record groups.
Variables are attributes; identifiers are labels. A numeric row identifier is not automatically a quantitative measurement or rank.
Start the data dictionary with “one row represents…”. Whether rows are independent is separate: repeated entities and shared environments can create dependence.
학부 연결 · 선택Undergraduate bridge · optional
4. 추출 단위·관측 단위·배정 단위를 나누기4. Sampling, observation and assignment units can differ
학교를 먼저 뽑고 그 안 학생을 조사한다면 1단계 추출 단위는 학교, 관측 단위는 학생입니다. 수업 방식을 학급 단위로 배정하고 학생 점수를 기록한다면 배정 단위는 학급입니다. 통계적 비교에서 실질적으로 무작위화한 단위를 밝혀야 합니다.
가정 예로 4개 학급에 학급당 25명이 있어 100개 점수를 얻어도 수업 방식 배정은 4번뿐입니다. 학생 100명의 점수가 있다고 독립적인 배정 100개로 분석하면 군집 구조를 놓칩니다. 정확한 표준오차 계산은 뒤의 표집·회귀에서 다루지만 단위 구별은 지금 필요합니다.
측정 도구가 반복해서 숫자를 출력한 단위와 일반화하려는 대상도 다를 수 있습니다. 한 가구의 1440분은 가구 1440개가 아니고 한 기업의 품목 5개도 기업 5개가 아닙니다.
If schools are sampled first and students measured within them, schools are primary sampling units and students observational units. If treatments are assigned by class, classes are assignment units.
Four classes of twenty-five students produce 100 scores but only four class assignments. Treating these as 100 independent randomized assignments ignores clustering.
Repeated instrument outputs also differ from the entities of generalization: 1440 minutes from one household are not 1440 households.
기초Foundations
5. 긴 표와 넓은 표: 행 수는 표현에 따라 바뀐다5. Long and wide tables change row counts without creating new entities
국가 한 개의 2023·2024 GDP를 한 행의 두 열로 쓰면 넓은 표, 연도별 두 행으로 쓰면 긴 표입니다. 표현을 바꿔도 국가가 새로 생기지 않습니다. 국가·연도를 함께 고유키로 삼으면 반복을 보존할 수 있습니다.
실제 World Bank 파일은 1980~2024년 45년과 선택한 16개국의 격자입니다. 720개의 국가·연도 키가 모두 고유하지만 변수별 값은 비어 있을 수 있습니다. “완전한 키 격자”와 “모든 지표 값이 완전함”은 다릅니다.
여러 자료를 합칠 때 국가만으로 연도 자료를 join하면 일대다·다대다 결합으로 행이 늘 수 있습니다. 행 수 증가가 표본 증가가 아니라 결합 오류일 수 있으므로 키와 기대 결합 관계를 먼저 선언합니다.
One country with two year-columns is wide; two country-year rows are long. Reshaping creates no new country. A country-year key preserves the repeated structure.
The actual file contains the 1980–2024 grid with unique keys, but indicator values can be missing. A complete key grid is not complete measurement coverage.
Joining annual tables by country alone can multiply rows through many-to-many matches. Declare keys and expected relationships before interpreting row growth as more data.
기초Foundations
6. 단위 실습: 행·대상·반복을 세 가지 숫자로6. Unit lab: count records, entities and repetitions separately
실제 국가·펭귄·기업 자료의 구조를 선택하고 한 행의 의미를 먼저 읽습니다. 관측 행 수, 고유한 대상 수, 시간 또는 범주 반복 수를 비교하세요. 같은 표라도 국가 평균과 국가·연도 평균의 분모는 다릅니다.
펭귄의 보조 row_id는 현재 사본의 행 식별자입니다. 그 자체로 추적 가능한 전 생애 개체 식별자나 독립성 증명으로 사용하지 않습니다. 공개된 간략 자료에서 확인하지 못한 반복 개체 여부나 표집 확률은 안다고 가정하지 않습니다.
기업의 5개 품목×2년을 보면 10개의 품목·연도 값, 2개 연도, 1개 기업입니다. 어떤 숫자가 필요한지는 연구 질문에 달려 있습니다. 엔진이 세어 준 행 수와 통계적 유효 표본 크기를 같은 것으로 부르지 않습니다.
Select an actual data structure and read the row definition. Compare records, distinct entities and time/category repetitions. A country mean and country-year mean use different denominators.
A helper penguin row_id identifies this copy of a record, not a verified lifetime animal identifier or proof of independence. Do not assume sampling probabilities or repeated-animal information absent from the simplified source.
Five categories over two years produce ten category-year values but one company. Statistical effective sample size does not equal a software row count automatically.
기초Foundations
7. 모집단은 질문으로 정한 전체 대상7. The target population is the full set defined by the question
모집단은 알고 싶은 전체 대상입니다. “펭귄 전체”라고만 쓰면 남극의 모든 종인지, 특정 섬의 성체인지, 특정 기간의 번식 개체인지 불분명합니다. 종·장소·연령·기간·포함 조건을 적어야 표본이 무엇을 대표해야 하는지 정해집니다.
이 책의 고정 자료 안 344기록을 모두 기술하는 질문에서는 그 기록들이 유한한 분석 대상 전체일 수 있습니다. 반면 다른 해·다른 섬의 펭귄으로 일반화하면 그 대상은 더 큰 모집단입니다. 파일을 전부 읽었다고 큰 모집단의 전수조사를 한 것은 아닙니다.
개인·기업·국가를 같은 모집단으로 섞지 마세요. 각 단위의 변수가 다른 의미를 가지면 먼저 어떤 비교·집계를 정당화할지 설계해야 합니다.
The target population is everyone or everything the question concerns. Specify species, place, age, period and inclusion rules rather than writing only “all penguins”.
All 344 fixed records can be the full descriptive target for one question. Generalizing to other islands or years defines a larger population. Reading the entire file is not a census of that larger target.
People, firms and countries are not interchangeable population units. Justify any aggregation before combining them.
기초Foundations
8. 목표 모집단·접근 가능한 대상·추출틀8. Separate the target, accessible population and sampling frame
목표 모집단은 질문의 전체, 접근 가능한 대상은 실제 접촉·관측 가능한 범위, 추출틀은 뽑는 데 사용하는 명단이나 장치입니다. 학교 학생 전체를 묻는데 온라인 응답자 명단만 쓰면 인터넷에 접속하지 않는 학생이 틀에서 빠질 수 있습니다.
추출틀의 누락은 미포함, 같은 대상의 중복 등록은 과대표집 가능성을 만듭니다. 무작위로 뽑아도 틀에 없는 대상은 선택될 수 없습니다. 무작위화는 틀의 범위 문제를 저절로 고치지 않습니다.
자료를 받으면 대상 선정 규칙과 명단을 요청하고, 모르면 모른다고 기록합니다. 실제 World Bank의 16개국은 본 교재를 위해 선택한 국가 집합이며 세계 국가의 확률표본으로 제공된 것이 아닙니다.
The target is the population of interest, the accessible population can actually be contacted, and the frame lists or locates sampling units. An online-only list can omit offline students.
Undercoverage and duplicate frame entries alter selection. Random sampling cannot select units absent from its frame.
Record inclusion rules and unknowns. The sixteen countries in this teaching file are a selected set, not a supplied probability sample of world countries.
기초Foundations
9. 표본·전수·모수·통계량의 역할9. Samples, censuses, parameters and statistics have distinct roles
표본은 정해진 모집단에서 실제 포함된 일부입니다. 전수조사는 그 모집단의 모든 단위를 조사하려는 설계입니다. 모집단 특성을 모수, 표본으로 계산한 함수를 통계량이라 부릅니다. 같은 평균 숫자도 질문에 따라 유한 대상의 완전 요약 또는 더 큰 대상의 추정량이 될 수 있습니다.
μN=N1i=1∑Nyi,yˉS=n1i∈S∑yi
첫 식은 고정 유한 모집단 N개 전체의 평균, 둘째는 비복원 표본 집합 S의 평균입니다. n과 N을 구별합니다. 모수는 반드시 미지수라는 이유만으로 모수가 되는 것이 아니라 정의한 모집단의 특성이기 때문에 모수입니다.
전수라도 측정 오류·무응답·정의 차이가 있을 수 있습니다. 표본오차가 없다는 것과 모든 오차가 없다는 것은 다릅니다. 큰 데이터도 목표와 측정이 틀리면 다른 대상을 매우 정확히 요약할 뿐입니다.
A sample contains observed units from a defined population; a census attempts every unit. Parameters describe the population, while statistics are functions of sample data.
μN=N1i=1∑Nyi,yˉS=n1i∈S∑yi
The first is a finite-population mean; the second a without-replacement sample mean. A parameter is defined by its population role, not merely by being unknown.
A census can still suffer measurement error or nonresponse. Eliminating sampling error does not eliminate every error.
기초Foundations
10. 기간·경계·포함 규칙이 대상을 바꾼다10. Time windows and inclusion rules change the target
2024년 자료만 쓰는지, 1980~2024년을 모두 쓰는지에 따라 질문이 달라집니다. 금액은 회계연도인지 달력연도인지, 인구는 어느 시점 기준인지, 물가는 어느 기준년인지 확인합니다. “최신”이라는 말만으로 같은 기간이 되지는 않습니다.
펭귄에서 성체 포획·측정 기록을 썼다면 새끼까지 모든 개체의 분포를 관측한 것이 아닙니다. 상장기업 공시를 모으면 비상장기업이 빠져 있고, 병원 기록을 모으면 병원을 찾지 않은 사람이 빠질 수 있습니다.
포함 규칙을 바꾸는 민감도 분석은 유용하지만 결과를 본 뒤 유리한 대상만 골랐다면 선택의 근거를 공개해야 합니다. 처음 질문과 수정된 질문을 구별하고 분석에 실제 들어간 집합을 기록합니다.
A 2024 cross-section and a 1980–2024 panel answer different questions. Check fiscal versus calendar years, population reference dates and price bases.
Adult measurement records need not represent chicks. Public-company filings omit private firms, and hospital records omit people who never visit.
Changing inclusion rules can support sensitivity analysis, but document the reasons and the actual analysis set. Do not hide post-result selection as the original target.
기초Foundations
11. 모집단 실습: 누가 질문에 속하고 누가 틀에 있나11. Population lab: membership and frame coverage are different
가정한 유한 명단에서 표적 ID 1~20은 고정하고 접근 가능한 범위와 추출틀 구성을 바꿉니다. “목표에 속함”,“틀에 있음”,“선택됨”,“응답함”을 다른 단계로 읽으세요. 최종 응답자 수만 보면 어디서 누가 빠졌는지 알 수 없습니다.
목표 100명 중 틀에 80명, 그중 20명을 뽑고 15명이 응답했다면 100→80→20→15의 흐름을 모두 기록합니다. 15/20은 선택자 응답률이고 15/100은 목표 전체 대비 관측 비율이어서 같은 지표가 아닙니다.
이 숫자 예는 구조를 보여 주는 가정 명단입니다. 실제 자료의 추출틀이나 응답 단계가 제공되지 않은 경우 같은 숫자를 만들어 붙이지 않습니다. 어떤 단계가 알려졌는지부터 확인합니다.
In a hypothetical finite roster, keep target IDs 1–20 fixed while changing the accessible range and frame composition. Distinguish target membership, frame availability, selection and response.
A flow of 100 target units to 80 in-frame, 20 selected and 15 responding has different rates: 15/20 is selected-unit response; 15/100 is observed coverage of the target.
The example is hypothetical. Do not invent comparable selection stages when actual data do not document them.
기초Foundations
12. 확률표집과 편의표집: 무작위라는 말의 범위12. Probability sampling and convenience selection have different mechanisms
확률표집은 설계에 따라 각 단위의 포함확률을 정의할 수 있는 추출입니다. 목표 추론에 필요한 단위가 양의 포함확률을 가져야 합니다. 단순무작위표집만 확률표집인 것은 아니며 층화·군집·불균등확률 설계도 가능합니다.
편의표집은 쉽게 만난 대상, 자발적 응답, 검색되는 기록처럼 접근성에 따라 선택합니다. 유용한 탐색 자료일 수 있지만, 알려진 확률 설계의 오차 공식을 자동 적용할 수는 없습니다. 표본 크기가 커져도 선택 메커니즘이 그대로면 편향이 남을 수 있습니다.
실제 관측 자료에서 분석용으로 일부 행을 무작위 선택하는 것과, 원래 모집단에서 확률표집한 것은 다릅니다. 공개된 선택 자료 안에서 무작위 split을 했다고 원선택의 대표성이 새로 생기지는 않습니다.
Probability sampling defines inclusion probabilities through a design, with positive coverage for units needed by the target inference. It includes more than simple random sampling.
Convenience and voluntary-response selection can be useful for exploration but do not automatically justify known-design error formulas. Larger samples need not remove selection bias.
Randomly splitting an already selected dataset does not turn its original population selection into a probability sample.
학부 연결 · 선택Undergraduate bridge · optional
13. 단순무작위 비복원 표집: 모든 같은 크기 부분집합을 공평하게13. Simple random sampling without replacement treats equal-sized subsets equally
고정 유한 명단 N개에서 n개를 비복원 단순무작위로 뽑으면 크기 n의 모든 부분집합이 같은 확률을 가집니다. 비복원은 같은 추출 안에서 같은 단위를 두 번 뽑지 않는다는 뜻입니다. 평균을 계산하는 여기서는 N≥1,1≤n≤N이어야 합니다. 빈 표본의 평균은 정의하지 않습니다.
가정 모집단 y=(1,2,3,4,10)의 전체 평균은 4입니다. n=2의 부분집합은 10개이고, 각 표본평균을 모두 계산해 동일 가중 평균내면 4가 됩니다. 개별 표본평균은 4가 아닐 수 있지만 설계의 모든 추출에 걸친 평균은 모집단 평균과 같습니다.
Edesign[yˉS]=N1i=1∑Nyi,P(i∈S)=Nn
유도하려면 포함 지시함수 Iᵢ를 써서 표본평균=(1/n)ΣIᵢyᵢ로 놓고 E[Iᵢ]=n/N을 대입합니다. 이것은 고정된 y값과 선택의 무작위성을 분리한 계산입니다. 기대값의 형식은 뒤 확률 장에서 다시 엄밀히 배웁니다.
Simple random sampling without replacement gives each size-n subset of N units equal probability. A unit cannot appear twice within one sample. For a defined sample mean require N≥1 and 1≤n≤N; an empty sample has no mean.
The hypothetical population (1,2,3,4,10) has mean four. There are ten size-two subsets; their equally weighted sample means average to four, although individual means differ.
Edesign[yˉS]=N1i=1∑Nyi,P(i∈S)=Nn
Write the mean as (1/n)ΣIᵢyᵢ and use inclusion probability n/N. Values are fixed while selection is random. Later probability chapters formalize this expectation.
기초Foundations
14. 한 번의 추출·반복 실험·난수 시드는 다르다14. One sample, repeated simulations and a random seed play different roles
한 표본은 선택된 명단 하나입니다. 여러 번의 가정 추출을 컴퓨터로 반복하면 표본평균이 얼마나 달라지는지 실험할 수 있습니다. 반복 횟수가 늘어난다고 실제 모집단에서 새 관측을 그만큼 얻은 것은 아닙니다.
시드는 의사난수 생성기의 시작 상태를 고정하는 값입니다. 같은 코드·알고리즘·입력·시드면 같은 선택을 재현할 수 있습니다. 시드가 같아도 라이브러리나 추출 알고리즘을 바꾸면 결과가 같다고 보장할 수 없으므로 버전과 명단 순서도 보관합니다.
이 장의 작은 모집단에서는 모든 부분집합을 열거해 정확한 평균을 확인할 수 있습니다. 모의 반복의 평균은 그 정확값에 대한 근사입니다. 시드를 바꿔 유리한 표본만 고른 결과를 무작위 실험의 일반 결론처럼 제시하지 않습니다.
One sample is one selected list. Repeated simulated selections show design variation but do not create new real observations.
A seed initializes a pseudorandom generator. Reproducibility also needs the algorithm, software version, input order and code, not merely the seed.
For the small example, enumerate every subset for an exact benchmark. A simulated average approximates it. Selecting a favorable seed after seeing results changes the reporting process.
기초Foundations
15. 선택 편향은 표본 크기만으로 없어지지 않는다15. More records do not automatically remove selection bias
y=(1,2,3,4,10)에서 작은 두 값만 쉽게 수집해 {1,2}를 쓰면 평균은 1.5입니다. 모집단 평균 4와 차이는 −2.5입니다. 그 두 값을 천 번씩 복사해도 평균은 1.5로 남습니다. 복제와 무작위 새 정보는 다릅니다.
선택확률이 성과나 응답 성향과 연결되면 관측 집단의 분포가 목표와 달라질 수 있습니다. 높은 만족도 고객만 응답하는 설문, 생존 기업만 남긴 자료, 관측 가능한 국가만 고른 비교가 그런 구조를 가질 수 있습니다. 실제 어느 방향인지 알려면 생성 과정을 조사해야 합니다.
선택 무게로 조정하는 방법도 있지만 확률·누락 과정·모형 가정이 필요합니다. “가중하면 항상 해결”이라고 외우지 않습니다. 이 장에서는 어떤 단위가 빠졌는지와 왜 포함됐는지를 기록하는 것이 첫 단계입니다.
Conveniently choosing {1,2} from (1,2,3,4,10) gives mean 1.5 instead of four. Replicating those values a thousand times leaves the discrepancy unchanged.
Selection related to outcomes or response can change the observed distribution. Investigate the actual mechanism before asserting its direction.
Weight adjustments require probabilities or modeling assumptions and are not automatic repairs. First record who was omitted and how inclusion occurred.
기초Foundations
16. 표집 실습: 한 표본의 오차와 설계의 평균16. Sampling lab: one sample can differ even when the design is centered correctly
고정된 작은 가정 모집단에서 비복원 표본을 선택하고 표본평균을 계산합니다. 전체 평균, 현재 표본평균, 모든 같은 크기 표본평균의 평균을 구별하세요. 한 번 평균이 전체와 다르다는 것만으로 설계가 편향됐다고 결론내리지는 않습니다.
y=(1,2,3,4,10),n=2에서 {1,2}의 평균은 1.5,{4,10}은 7입니다. 10개의 부분집합 평균을 동일 가중하면 4입니다. 반면 가장 작은 값만 고르는 규칙은 선택의 대칭성을 깨뜨립니다.
표시된 모의 실험은 정해진 유한 모집단에 가정한 선택 설계를 적용합니다. 실제 펭귄의 원표집이나 세계 국가 선택이 같은 설계로 이루어졌다고 주장하는 화면이 아닙니다. 표본 크기 n=N일 때는 비복원 표본이 전체 하나뿐이라는 경계도 확인하세요.
Compare a fixed population mean, one current sample mean and the mean over all equal-sized subsets. A discrepant single sample does not prove design bias.
For (1,2,3,4,10), n=2, sample means range from 1.5 to 7. Their equally weighted ten-subset mean is four. Always choosing the smallest values breaks the design symmetry.
The experiment assumes a design on a fixed teaching population; it does not establish the original sampling design of penguins or countries. At n=N only the full population is possible.
학부 연결 · 선택Undergraduate bridge · optional
17. 관찰연구·무작위 추출·무작위 배정은 서로 다르다17. Observation, random sampling and random assignment are different
관찰연구는 이미 생긴 조건·행동·기록을 관찰합니다. 무작위 추출은 누구를 자료에 포함할지 결정합니다. 무작위 배정은 포함된 단위에 어떤 처치를 줄지 결정합니다. 둘 다 “무작위”이지만 일반화와 인과 비교에서 다른 역할을 합니다.
무작위 배정은 설계에 따라 처치와 잠재적 결과의 관계를 끊는 근거를 제공하지만, 실제로 뽑힌 유한 집단의 모든 특성이 정확히 같아지는 것은 아닙니다. 우연 불균형·탈락·배정 불이행·단위 간 간섭을 검토해야 합니다. 한 번 배정했으니 다른 원인이 완전히 사라졌다는 표현은 지나칩니다.
가정 예로 같은 자격을 가진 두 학급에서 수업 방식을 배정한 비교와, 원래 다른 학급의 점수를 비교하는 관찰연구를 구별합니다. 처치 배정 단위와 반복 측정 단위를 4절로 돌아가 확인하세요. 여기서 실제 교육 실험을 수행했다고 주장하지는 않습니다.
Observation records existing conditions; random sampling selects who enters the data; random assignment allocates treatments. These address different generalization and causal-comparison questions.
Random assignment supports causal comparison through its design but does not exactly balance every characteristic in a realized finite sample. Chance imbalance, attrition, noncompliance and interference still matter.
Compare a hypothetical class-randomized teaching design with an observational comparison of preexisting classes. Identify assignment and repeated-measurement units before choosing analysis.
학부 연결 · 선택Undergraduate bridge · optional
18. 집단 관계를 개인에게 옮기지 않기18. Do not automatically transfer group relationships to individuals
국가 GDPpc가 높을수록 기대수명이 긴 관계가 보인다고 해서 그 국가의 소득 높은 개인이 반드시 더 오래 산다는 결론은 아닙니다. 국가 평균은 개인 분포를 압축한 다른 관측 단위입니다. 이를 무심코 개인 관계로 바꾸는 오류를 생태학적 오류라고 부릅니다.
가정 예에서 두 학교의 평균 공부시간·점수 관계와 같은 학교 안 학생 관계는 다를 수 있습니다. 집단 구성과 가중치 때문에 전체 관계와 하위 집단 관계가 달라지는 현상은 3장의 실제 펭귄 종별 상관에서 다시 봅니다.
집계 자료가 쓸모없다는 뜻이 아닙니다. 국가 정책·기업 품목 구조처럼 집단 자체가 관심 대상이면 집단 관계가 질문에 맞습니다. 단위를 유지하고 그 범위 안에서 결과를 설명하는 것이 중요합니다.
A country-level GDP–life-expectancy association does not establish the corresponding individual-income relationship. National averages compress a different unit; transferring the result can create an ecological fallacy.
Group composition and weights can make pooled relationships differ from within-group relationships. Chapter 3 returns to actual penguin species comparisons.
Aggregates are useful when groups themselves are the target. Retain the unit and interpret results within that scope.
기초Foundations
19. 범주·수량·식별자: 숫자 모양이 역할을 정하지 않는다19. Categories, quantities and identifiers are roles rather than appearances
종·섬은 범주형 변수이고 몸무게·길이는 수량형 변수입니다. 범주에 1,2,3을 붙여도 그 평균 2가 생물학적 중간 종을 뜻하지 않습니다. 우편번호·학번도 숫자 모양의 이름표일 수 있습니다.
수량형에서는 개수처럼 이산적인 양과 길이처럼 연속적으로 모형화하는 양을 구별합니다. 실제 기기는 길이를 정수 mm나 몸무게를 일정 간격 g로 기록할 수 있습니다. 저장 값이 이산 격자라는 사실과 기저 물리량을 연속 모형으로 보는 것은 다른 수준입니다.
변수 사전에 정의, 자료형, 단위, 허용값, 결측 기호를 함께 씁니다. 설명변수·결과변수라는 역할도 질문에 따라 정해지며 열의 위치만으로 원인·결과가 되지는 않습니다.
Species and island are categorical; mass and length are quantitative. Numeric codes do not turn species or identifiers into meaningful arithmetic quantities.
Counts are discrete; length is often modeled continuously even when recorded on a millimeter grid. Storage resolution and the underlying measurement model differ.
A dictionary records definition, type, units, allowed values and missing codes. Explanatory and response roles follow the question, not column order or causal truth.
기초Foundations
20. 명목·순서·간격·비율 척도에서 허용되는 비교20. Nominal, ordinal, interval and ratio scales support different comparisons
명목척도는 같음·다름을 구별하고, 순서척도는 순위를 더합니다. 만족도 “낮음·중간·높음”을 1,2,3으로 코딩해도 낮음→중간과 중간→높음의 차이가 같다고 보장되지 않습니다. 평균을 쓸지에는 측정 모형과 목적에 대한 추가 판단이 필요합니다.
간격척도는 차이를 비교할 수 있지만 영점이 임의일 수 있습니다. 섭씨 20도는 섭씨 10도의 두 배 절대 온도라고 해석하지 않습니다. 비율척도는 의미 있는 0과 비율 비교를 가지며, 몸무게 4 kg은 같은 측정 정의의 2 kg보다 두 배입니다.
이 구분은 자료를 이해하는 출발점이지 모든 분석을 기계적으로 금지·허용하는 완전 규칙은 아닙니다. 점수의 해석, 잠재 변수 모형, 근사 가정과 연구 목적을 함께 설명해야 합니다.
Nominal scales distinguish categories; ordinal scales add order. Coding low, medium, high as 1,2,3 does not establish equal gaps. Arithmetic summaries require a justified measurement model.
Interval scales support differences but may have an arbitrary zero. Twenty degrees Celsius is not twice ten in absolute temperature. Ratio scales such as mass have meaningful zero and ratios.
These distinctions guide interpretation rather than mechanically deciding every statistical method. Explain scoring models, approximations and purposes.
기초Foundations
21. 단위 변환은 값·차이·비율을 어떻게 바꾸나21. Unit transformations change values, differences and ratios differently
몸무게 g를 kg로 바꾸면 xkg=xg/1000입니다. 평균·차이는 1/1000배, 비율은 같습니다. 4000/2000=4/2=2처럼 비율척도의 양의 배율 변환은 배수 비교를 보존합니다.
xkg=xg/1000,F=59C+32,ΔF=59ΔC
섭씨→화씨는 배율과 이동이 함께 있어 차이는 9/5배가 되지만 값의 비율은 보존되지 않습니다. 섭씨 20/10=2, 화씨 68/50=1.36입니다. 온도의 절대 비율은 Kelvin 같은 절대 척도로 질문해야 합니다.
돈도 통화·물가 기준·기간을 확인합니다. 명목 달러와 불변가격 달러, 백만 달러와 달러를 같은 열에 조용히 섞지 않습니다. 비율이나 성장률이라도 분모·기준년이 같은지 검산합니다.
Converting grams to kilograms scales means and differences by 1/1000 while preserving ratios. Positive multiplicative changes preserve ratio-scale comparisons.
xkg=xg/1000,F=59C+32,ΔF=59ΔC
Celsius-to-Fahrenheit adds an offset, so differences scale but level ratios change: 20/10=2 while 68/50=1.36. Absolute-temperature ratios require an absolute scale.
Money also needs currency, price base, period and magnitude units. Ratios do not automatically repair inconsistent denominators or bases.
기초Foundations
22. 측정 실습: 숫자는 바뀌어도 어떤 비교는 남는다22. Measurement lab: identify the comparisons preserved by a conversion
g→kg와 섭씨→화씨 변환을 비교합니다. 값 두 개의 차이·비율·평균을 계산하고 변환 뒤 무엇이 유지되는지 확인하세요. 단위를 바꾼 결과는 새 관측이 아니라 같은 기록의 다른 표현입니다.
펭귄 4000 g를 4 kg로 쓸 때 평균 몸무게도 같이 변환해야 합니다. 한 열의 일부만 kg로 바꾸고 열 이름을 g로 유지하면 그럴듯한 이상치가 생깁니다. 0의 뜻과 측정 해상도까지 같이 적어야 합니다.
섭씨·화씨의 수준 비율이 다르다고 어느 도구가 틀렸다고 결론내리지 않습니다. 애초 간격척도에서 보존되도록 설계된 비교가 아니기 때문입니다. 질문에 적합한 불변량을 찾는 것이 실습 목표입니다.
Compare gram-to-kilogram and Celsius-to-Fahrenheit transformations. Calculate differences, ratios and means before and after. A converted record is not a new observation.
Converting only part of a column while retaining a gram label creates misleading outliers. Record zero meanings and resolution as well as units.
Changed Celsius/Fahrenheit level ratios do not imply a faulty instrument; interval-scale transformations were not meant to preserve those ratios.
기초Foundations
23. 개념을 관측 변수로 바꾸는 조작적 정의23. Operational definitions connect concepts to recorded variables
“삶의 질”,“학습”,“혁신”은 그대로 기기에 찍히는 숫자가 아닙니다. 설문 문항·시험 점수·특허 건수 같은 지표로 어떻게 관측할지 정하는 과정이 조작화입니다. 지표가 개념의 전부를 담는다는 보장은 없습니다.
GDPpc는 생산의 집계 비율이지 개인 소득·행복과 동일하지 않습니다. 기대수명은 현재 연령별 사망률 패턴이 유지된다는 조건의 기간 생명표 지표이지 그 해 태어난 모든 사람의 실제 생애를 끝까지 관찰한 평균이 아닙니다.
같은 이름의 지표라도 정의·조사 문항·분모·기준이 다르면 직접 비교가 어려울 수 있습니다. 비교하려는 시점·나라·집단에서 측정 정의가 유지되는지 확인하고, 정의 차이를 숫자 오차와 구별합니다.
Concepts such as quality of life, learning or innovation need operational definitions: questionnaire items, test scores or patent counts. An indicator need not capture the entire concept.
GDP per capita is not identical to personal income or happiness. Period life expectancy uses a life-table mortality pattern, not completed lifetimes of everyone born that year.
Similar indicator names can hide different definitions, denominators or survey items. Check comparability across groups and periods.
학부 연결 · 선택Undergraduate bridge · optional
24. 신뢰도·타당도·측정 오차를 나누기24. Distinguish reliability, validity and measurement error
같은 조건에서 반복 측정이 비슷하면 신뢰도가 높다고 볼 수 있습니다. 하지만 저울이 항상 200 g 무겁게 나오면 반복이 정밀해도 기준값과 다릅니다. 타당도는 측정이 의도한 개념·용도에 맞는 근거를 갖는지의 질문이며, 반복 일치만으로 보장되지 않습니다.
xrecorded=xtarget+e
이 식은 간단한 측정 오차 표현입니다. e가 항상 0평균·독립이라는 가정은 식 자체에서 나오지 않습니다. 기준 오프셋, 반올림, 기기 보정, 응답 편향이 서로 다른 오차 구조를 만들 수 있습니다. 고급 회귀에서 고전적 측정오차와 비고전적 오차를 구별하는 이유입니다.
관측값이 튄다고 바로 삭제하지 않습니다. 단위 혼합·입력 오류인지, 드물지만 유효한 값인지 원자료와 도구 기록을 확인합니다. 수정하면 근거와 원래 값을 보존합니다.
Consistent repeat measurements can be reliable yet systematically wrong, as with a scale always reading 200 g too high. Validity concerns evidence for the intended interpretation and use, not repetition alone.
xrecorded=xtarget+e
The additive expression does not itself imply zero-mean independent error. Offsets, rounding, calibration and response processes create different structures.
Investigate unusual values before deleting them. Distinguish unit or entry errors from rare valid observations, and preserve original values and correction reasons.
기초Foundations
25. 실제 통계자료도 직접 측정·추계·가공을 구별한다25. Actual statistical data can be measured, modeled or derived
출처가 있는 실제 통계자료라는 것과 모든 칸이 기기로 직접 측정됐다는 것은 다릅니다. World Bank 실업률 SL.UEM.TOTL.ZS는 ILO 모형 추정 지표입니다. 국민계정 GDP,기간 기대수명, 인구의 통계·추계 취합도 서로 다른 생성 과정을 가집니다.
펭귄 신체 측정, 기업의 회계 공시, 국제기구의 조화된 지표를 모두 쓸 수 있지만 같은 의미의 원시 측정이라고 부르지 않습니다. 원관측·공식 집계·모형 추정·분석자가 계산한 비율을 사전에서 구분합니다.
값이 “있음”은 비어 있지 않다는 뜻입니다. 그것만으로 직접 측정·오차 없음·최종 확정·비교 가능성이 보장되지는 않습니다. 출처 문서의 정의, 개정일, 모형 여부를 같이 읽습니다.
Actual sourced statistics are not all direct instrument measurements. World Bank unemployment indicator SL. UEM. TOTL. ZS is a modeled ILO estimate. National accounts, period life tables and population compilations have different production processes.
Distinguish direct measurements, official aggregates, modeled estimates and analyst-derived ratios in the dictionary.
A nonblank value means available, not automatically directly measured, error-free, final or comparable. Read definitions, revisions and model status.
기초Foundations
26. 빈칸·0·해당 없음·측정 한계는 서로 다르다26. Missing, zero, not applicable and detection limits are different
몸무게가 빈칸이라는 것은 0 g짜리 펭귄을 측정했다는 뜻이 아닙니다. 0이 가능한 변수에서도 실제 0과 누락을 구별해야 합니다. 세탁 전력의 분 에너지가 0 Wh인 기록은 유효한 값일 수 있고, 기록되지 않은 분과 같은 상태가 아닙니다.
자료의 NA,빈 문자열,−99 같은 코드는 사전을 보고 해석합니다. −99가 결측 코드라면 실제 온도 −99로 평균내지 않습니다. “해당 없음”은 개념이 적용되지 않는 구조적 상태일 수 있고,“한계 미만”은 구간 정보를 주는 검출·반올림 문제일 수 있습니다.
어떻게 바꿔 계산하든 원자료의 값·결측 기호와 변환 규칙을 보존합니다. 자동 0 채움이나 전체 행 삭제는 중립적인 읽기 방법이 아니라 분석 선택입니다. 그 선택이 분모와 목표를 바꿀 수 있습니다.
A blank mass is not a measured zero-gram penguin. A valid zero minute-energy reading also differs from an unrecorded minute.
Interpret NA, blanks and numeric sentinels through the dictionary. Not applicable can be structural, while below-detection-limit values contain interval information.
Preserve original codes and transformation rules. Zero filling or complete-row deletion are analysis choices that can change denominators and targets.
기초Foundations
27. 변수별 가용값과 완전사례의 분모27. Available-case and complete-case denominators answer different questions
몸무게 평균에 필요한 것은 몸무게 값입니다. 날개와 몸무게의 관계를 분석하려면 두 값이 모두 필요합니다. 여기에 sex별 비교까지 하면 세 값이 모두 있는 행이 필요할 수 있습니다. 분석마다 필요한 열과 포함 집합이 달라집니다.
실제 펭귄 사본은 전체 344행, 네 신체 측정이 모두 있는 342행, sex가 있는 333행입니다. 측정과 sex까지 모두 있는 행도 333행입니다. 몸무게 평균에 불필요한 sex 결측을 이유로 333행만 쓰면 몸무게 관측 9개를 추가로 버립니다.
yˉobserved=∑iRi∑i:Ri=1yi,Ri=1if the required value is available
관측평균은 유효값 수 ΣRᵢ>0일 때만 정의하며, 모두 결측이면 평균을 계산하지 않습니다. 관측값 평균은 관측 집합의 기술값입니다. 원래 전체 모집단의 평균과 같다고 추론하려면 결측 과정에 대한 가정이 더 필요합니다. 완전사례 삭제가 언제나 편향을 없애는 것도, 0 채움이 언제나 정당한 것도 아닙니다. 결측 메커니즘은 23장에서 깊이 배웁니다.
A mass mean needs mass; a flipper–mass relationship needs both; a sex comparison may require an additional observed sex field. Specify the required columns and inclusion set for each analysis.
The actual copy has 344 rows, 342 complete on four body measurements and 333 with recorded sex; 333 have both measurements and sex. Requiring sex unnecessarily removes nine otherwise measured records from a mass-only analysis.
yˉobserved=∑iRi∑i:Ri=1yi,Ri=1if the required value is available
The mean is defined only when ΣRᵢ> 0; an all-missing variable has no observed mean. Extending this description to the original population needs missingness assumptions. Complete-case deletion and zero filling are not universal bias repairs; Chapter 23 develops the mechanisms.
기초Foundations
28. 결측 실습: 합계와 분모를 따로 검산하기28. Missingness lab: audit the numerator and denominator separately
실제 펭귄 몸무게 합은 1,437,000 g입니다. 관측 342개로 나누면 약 4201.754386 g입니다. 결측 2개를 0으로 바꾸고 전체 344로 나누면 약 4177.325581 g가 됩니다. 두 번째는 새로 측정한 값이 아니라 잘못된 0 처리의 효과를 보여 주는 비교입니다.
실습에서 변수별 사용 가능한 행, 선택 열의 완전사례, 0 채움 시연을 비교합니다. 원래 자료는 바꾸지 않습니다. 분석 결과 옆에 전체 행 수·유효 행 수·누락 수·선택한 처리 방법을 함께 씁니다.
값을 가진 행을 남겼다는 사실만으로 원모집단 대표성이 회복되지는 않습니다. 이 실습은 분모 오독을 교정하며 결측값의 실제 수치를 발견하는 알고리즘은 아닙니다.
Actual recorded masses sum to 1,437,000 g. Dividing by 342 gives about 4201.754386 g. Replacing two missing values with zero and dividing by 344 gives about 4177.325581 g, an incorrect-processing demonstration rather than new measurements.
Compare available values, complete cases and the zero-fill demonstration without changing the source. Report total, valid and missing counts with the processing rule.
This corrects denominator interpretation; it neither discovers missing true values nor establishes population representativeness.
기초Foundations
29. 키·중복·범위·결합을 읽는 품질 점검29. Audit keys, duplicates, ranges and joins
첫 점검은 키입니다. 국가·연도가 고유해야 하는 표라면 중복 키를 찾습니다. 값이 같은 두 행이 서로 다른 유효 단위일 수도 있으므로 모든 중복 모양을 자동 삭제하지 않습니다. 키 중복, 행 전체 중복, 반복 측정은 다른 문제입니다.
다음에는 변수의 허용 범위와 단위를 봅니다. 음수 몸무게, 연도 열의 문자열, 숫자 열의 결측 코드를 검사하고 원문과 대조합니다. 불가능한 값과 드문 값을 구별하며, 검사를 통과했다는 이유만으로 측정이 참이라고 단정하지 않습니다.
결합 전후 행 수와 키 집합을 비교합니다. 품목 이름이 바뀌거나 국가 코드가 다른 경우 조용히 누락되지 않았는지 확인합니다. 전처리 보고서에는 입력 행→제외·수정→분석 행의 흐름과 이유를 남깁니다.
Check keys first. Distinguish duplicate keys, identical rows and valid repeated measurements before deleting anything.
Audit plausible ranges, types, units and missing codes against the source. An unusual value may be valid, and passing a range check does not prove accuracy.
Compare row counts and key sets before and after joins. Preserve a flow from input through exclusions and corrections to analysis, with reasons.
기초Foundations
30. 재현 가능한 자료 사전과 원문 보관30. Preserve a reproducible dictionary and source trail
원문 사본을 보관하고 가공 결과를 별도 파일로 만듭니다. 출처 URL·다운로드일·자료 버전·파일 해시·사용 권한을 기록하면 나중에 값이 개정됐을 때 어떤 입력으로 계산했는지 찾을 수 있습니다. 해시는 파일 동일성 단서이지 내용의 진실성 인증은 아닙니다.
사전에는 변수 이름, 정의, 단위, 관측 시점, 생성 방식, 결측 코드, 변환식, 분모를 적습니다. 코드는 각 변환의 이유를 표현하고 예외·제외 행을 추적할 수 있어야 합니다. 출력 그림의 숫자도 같은 계산에서 생성하면 손으로 복사하며 생기는 불일치를 줄입니다.
재현성과 타당성은 다릅니다. 틀린 0 채움도 같은 코드로 완벽히 재현할 수 있습니다. 따라서 재현 절차와 함께 질문·측정·선택 가정의 근거를 검토해야 합니다.
Keep source snapshots separate from derived files. Record URL, retrieval date, version, hash and permissions. A hash identifies a file; it does not certify truth.
Document definitions, units, timing, production methods, missing codes, transformations and denominators. Generate figures from the same calculations and track exclusions.
Reproducibility does not establish validity: incorrect zero filling can be perfectly reproducible. Review the question, measurement and selection assumptions as well.
기초Foundations
31. 실제 국가 자료: 720행과 716개 GDP값31. Actual country data: 720 records and 716 available GDP values
실제 World Bank 사본은 선택된 16개국, 1980~2024년 45년의 국가·연도 720행입니다. 키는 모두 고유하고 GDPpc 값은 716개, 기대수명과 인구는 각각 720개, 실업률은 544개입니다. 같은 파일이라도 변수별 유효 분모가 다릅니다.
2024년 단면의 16개 GDPpc는 모두 있고, 한국의 2014~2024년 11개 값도 모두 있습니다. 따라서 앞 장의 특정 분석에서 16 또는 11을 쓴 것과 파일 전체의 716·720을 쓰는 것은 서로 모순이 아닙니다. 선택한 분석 집합이 다르기 때문입니다.
국가별 반복은 독립성의 증명이 아닙니다. 세계 공통 충격·국가 안의 시간 의존을 고려하는 모형은 계량경제학에서 배웁니다. 이 장에서는 국가 16개를 720개의 독립 국가로 잘못 세지 않는 것이 핵심입니다.
The actual World Bank copy contains sixteen selected countries over 1980–2024, with 720 unique country-year records. GDPpc has 716 available values, life expectancy and population 720 each, and unemployment 544.
All sixteen 2024 GDPpc values and eleven Korean 2014–2024 values are available. Denominators 16,11,716 and 720 refer to different analysis sets, not inconsistent arithmetic.
Unique repeated keys do not prove independence. Later econometrics addresses time dependence and shared shocks. Do not count 720 independent countries.
기초Foundations
32. 실제 펭귄 자료: 344·342·333을 질문에 맞춰 읽기32. Actual penguins: interpret 344,342 and 333 by the question
Palmer 자료는 남극 Palmer 군도 근처 성체 펭귄의 크기·종·섬·sex·연도 기록을 제공합니다. 연구 연도는 2007·2008·2009이고 사본의 연도별 행 수는 110·114·120입니다. 공개 단순화 자료를 세계 모든 펭귄의 확률표본이라고 부르지 않습니다.
전체 344행에서 몸무게와 날개 등 네 신체 측정은 같은 2행이 비어 342개가 유효합니다. sex는 11개가 비어 333개입니다. row_id는 이 사본에 더한 위치 표식입니다. sex는 원자료가 기록한 생물학적 범주이며 인간의 성별 설문으로 읽는 변수가 아닙니다.
몸무게 평균의 관측 분모는 342이고, sex가 필요한 분석의 완전사례는 333입니다. 둘 중 어느 하나를 모든 질문의 유일한 n으로 외우지 마세요. 각 결과마다 필요한 변수와 포함 행을 함께 남깁니다.
The Palmer source records adult penguin size, species, island, sex and year near the Palmer Archipelago. The 2007,2008,2009 record counts are 110,114,120. This simplified dataset is not asserted to be a probability sample of every penguin worldwide.
Two of 344 rows lack the four body measurements, leaving 342. Eleven lack sex, leaving 333. The helper row_id is a copy-specific locator, and the recorded sex field is a biological category in this animal dataset.
Mass-only summaries use 342 recorded values; analyses requiring sex may use 333 complete rows. Match n to required variables rather than memorizing one universal count.
기초Foundations
33. 실제 기업 자료: 품목·연도 10개 값과 기업 1개33. Actual company data: ten category-year values from one company
Apple 공시의 5개 품목을 2023·2024회계연도에 기록했습니다. 품목×연도의 긴 표라면 10행, 연도를 두 열로 두면 5행입니다. 어느 표현에서도 기업 수는 1개입니다. 고객·거래 건수 자료는 제공되지 않았습니다.
금액 단위는 백만 미국 달러이고 총액은 각각 383285,391035입니다. 2023회계연도는 53주, 2024는 52주입니다. 연도 총매출의 기술 비교는 가능하지만 동일 기간의 고객 행동이나 기업 전체 모집단 효과로 곧바로 옮기지는 않습니다.
다섯 품목을 균등 가중한 평균과 매출 비중의 확률은 다른 대상입니다. 회사 수·품목 수·기간 수·금액 단위를 동시에 적으면 “표본 n=10 기업” 같은 오해를 막을 수 있습니다.
Five Apple categories over FY2023 and FY2024 form ten long-format rows or five wide-format rows, but one company. Customer and transaction counts are absent.
Units are million US dollars; totals are 383285 and 391035. Fiscal years contain 53 and 52 weeks. A descriptive annual comparison does not by itself identify equal-duration customer behavior or effects across firms.
Equal-category means and revenue-share probabilities describe different objects. State entity, category, period and money units together.
기초Foundations
34. 실제 자료 실습: 질문마다 분모와 관측 지위를 확인34. Actual-data lab: audit denominators and production status for each question
국가·펭귄·기업 자료를 바꾸며 한 행의 의미, 고유 대상 수, 필요 변수의 가용 개수, 측정 단위·출처를 읽습니다. 원값을 숨긴 요약만 보지 말고 표의 일부 행과 사전을 함께 확인하세요.
국가에서는 720 전체 키와 변수별 값 수, 펭귄에서는 344→342→333의 조건, 기업에서는 5품목×2년→기업1개의 관계를 설명합니다. 결측 수는 관측되지 않은 실제 값의 추정치가 아닙니다.
분석 질문을 한 문장으로 쓰고 분자·분모·단위·포함 규칙을 적어 보세요. 그 집합에 대한 기술 결과와 더 큰 모집단에 대한 추론을 구별할 수 있으면 다음 장의 그래프와 평균을 정확히 읽을 준비가 됩니다.
Switch actual datasets and inspect row definitions, distinct entities, required-variable availability, units and sources. Pair summary counts with sample rows and dictionaries.
Explain 720 keys versus available indicators, 344→342→333 inclusion conditions, and five categories over two years from one company. Missing counts do not estimate the missing true values.
Write the question, numerator, denominator, units and inclusion rule. Separate description of that set from inference to a larger target before reading Chapter 2 graphs and averages.
기초Foundations
35. 국가·생물 관측·기업 공시의 상세 케이스 스터디35. Detailed cases: countries, animal measurements and company filings
국가 사례 · 720행이 720개 국가라는 뜻은 아니다
스프레드시트에서 한 줄은 무엇을 뜻할까요? 이 질문을 건너뛰면 계산은 맞아도 해석이 틀릴 수 있습니다. 실제 World Bank 보관 자료에는 16개 국가의 1980~2024년 기록이 있습니다. 한 행은 국가 하나의 특정 연도이고, 키는 country와 year의 조합입니다. 16×45=720행이지만 국가의 종류는 16개입니다.
같은 실제 파일에서 서로 다른 질문에 맞춘 행 선택
질문
한 행의 단위
선택된 행 수
고유 국가 수
여러 나라의 연간 지표를 시간에 따라 읽기
국가-연도
720
16
2024년 국가 지표를 나란히 비교하기
2024년의 국가
16
16
한국 2014~2024년을 따라가기
한국의 연도
11
1
아래 그래프는 국가마다 보관된 전체 연도 기록 45개와 2024년 기록 1개를 셉니다. 막대는 표본의 독립성을 나타내지 않습니다. 같은 나라의 여러 연도는 정책·제도·과거 경기의 영향을 함께 받을 수 있으므로 서로 무관한 국가 45개처럼 취급할 수 없습니다.
1. 관측 단위·변수·값·대상을 나눠 적기
예를 들어 KOR|2019는 행을 찾는 키입니다. 변수는 gdp_pc이고 그 행의 값은 33,496.3113816입니다. 단위는 2015년 불변 USD/명입니다. 한국의 2019년 국민계정에서 계산한 국가 지표이며 한 개인의 월급을 측정한 값이 아닙니다. 고정 가격의 실질 지표, 현재 가격의 명목 지표, 구매력평가(PPP) 지표를 같은 열로 섞지 않습니다.
먼저 생각한 뒤 풀이 보기: “720명이 응답한 GDP 설문”이라고 설명하면 무엇이 틀린가요?
관측 대상은 응답자720명이 아니라 국가-연도720개입니다. GDP/명의 분모에 사람이 들어 있어도 한 행이 개인이라는 뜻은 아닙니다. 국가 지표의 차이를 개인의 임금 차이나 개인에 대한 인과효과로 곧바로 바꿀 수 없습니다.
2. 행 수와 유효한 값 수는 다를 수 있다
720행의 같은 파일에서도 변수별 분모가 다르다
변수
값이 있는 행
빈값 행
올바른 처리의 출발점
GDP/명
716
4
VNM 1980~1983 빈값을 보존
출생 시 기대수명
720
0
기간 사망률로 계산한 지표
인구
720
0
명 단위 확인
실업률 (ILO 모형 추정)
544
176
발표된 추정 계열;빈값은 0%가 아님
여기서 “값이 있다”는 보관한 공식 통계 열에 수치가 있다는 뜻입니다. GDP/명은 국민계정에서 가공한 값이고, 출생 시 기대수명은 해당 시점의 사망률 패턴이 유지된다는 조건의 인구 지표입니다. 실업률은 SL.UEM.TOTL.ZS, ILO 모형 추정 계열로 조사·보고된 정보와 모형을 통해 발표됩니다. 모든 칸을 직접 센 원측정값으로 취급하지 않습니다.
이 전체 파일의 GDP 열에는 값이716개뿐입니다. “관측된 GDP 값들의 단순 평균”을 원하면 유효값 합/716입니다. 하지만 서로 다른 국가·연도를 섞은 그 평균이 원하는 경제 질문에 답하는지도 먼저 확인해야 합니다. 2024년 국가 비교라는 질문이면 2024년16개만 선택합니다. 결측값4개를 실제 GDP0으로 만드는 처리는 다른 가정입니다.
3. 모집단은 파일 이름이 아니라 질문으로 정한다
질문이 “이16개국의2024년 지표는?”이면 선택한 유한 대상16개를 모두 기술할 수 있습니다. 질문을 “세계 모든 국가의2024년 평균”으로 바꾸면 이16개는 더 넓은 대상의 일부입니다. 어떤 이유로 포함되었는지, 빠진 국가가 무엇인지, 어떤 가중치를 쓸지를 검토해야 합니다. 숫자가 많다는 이유만으로 세계의 무작위·대표 표본이 되지 않습니다.
먼저 생각한 뒤 풀이 보기: 국가 코드에 1~16 숫자를 붙이면 평균 국가를 계산할 수 있나요?
계산기에서는 평균 코드8.5를 낼 수 있어도 국가라는 범주의 의미 있는 평균은 아닙니다. 숫자로 저장했다는 사실과 수량을 측정했다는 사실은 다릅니다. 키·범주·수량·시간 좌표의 역할을 자료사전에 적습니다.
실제 펭귄의 개체 측정 사례입니다. Palmer 군도 세 섬의2007~2009년 성체 펭귄 측정 자료에는344개 행이 있습니다. 원자료 작성자는 종·섬·몸 크기·성별 등을 공개했습니다. 여기서는 단순화된8변수 파일에 추적용 행번호 row_id만 추가한 실제 보관본을 사용합니다.
실제 처음 다섯 행 · 빈칸도 자료의 일부
row_id
종
날개 길이 (mm)
몸무게 (g)
성별 값
1
Adelie
181
3750
male
2
Adelie
186
3800
female
3
Adelie
195
3250
female
4
Adelie
빈값
빈값
빈값
5
Adelie
193
3450
female
1. 숫자로 적힌 열도 역할이 서로 다르다
종과 섬은 명목 범주이고, 몸무게와 길이는 물리량입니다. row_id=4는 네 번째 행이라는 뜻이며 펭귄의 과학적 특성이 아닙니다. year=2007은 연구 시기의 표시라서2008년이2007년보다 몸 크기가 “두 배에 가깝다”는 식의 해석은 불가능합니다. 몸무게3750 g=3.75 kg는 같은 관측을 다른 단위로 쓴 것입니다.
먼저 생각한 뒤 풀이 보기: 몸무게가 모두 정수 g로 저장되면 본래 이산적인 개수 변수인가요?
아닙니다. 물리적 몸무게는 연속적인 양이고 파일의 정수 표기는 보고 방식입니다. 펭귄 마릿수처럼 세는 양과 구별합니다. 정수 mm라는 사실만으로 측정 장비의 오차가 정확히±0.5 mm라고 단정하지도 않습니다. 기록 해상도와 정확도·오차 모형은 다릅니다.
2. 어떤 변수가 필요한지에 따라 분모를 먼저 세기
몸무게가 빈 행은 row_id4와272, 두 개입니다. 성별 값은11개가 비어 있습니다. 그래서 전체 행 수344, 몸무게 유효값342, 성별 유효값333은 모두 맞는 숫자이지만 서로 다른 질문의 분모입니다.
분석에 사용할 조건을 먼저 쓰고 행을 센다
조건
남는 행
이유
행 전체
344
관측행 보관
몸무게 있음
342
몸무게 요약에 필요한 조건
네 몸 측정값 모두 있음
342
몸 크기 네 변수 비교
성별 값 있음
333
성별 분석에 필요한 조건
네 측정값과 성별 모두 있음
333
이 다섯 변수를 함께 쓸 때
먼저 생각한 뒤 풀이 보기: 빈 두 몸무게를0으로 바꾸면 평균이 얼마나 달라지나요?
3421437000g≈4201.754386g,incorrect if blanks are treated as measured zeros3441437000g≈4177.325581g
관측된 몸무게의 합은1,437,000 g입니다. 오른쪽은 실제0 g를 측정했다고 잘못 가정한 처리 시연입니다. 원파일의 빈값은 그대로 보존합니다. 무엇을 분석하느냐에 따라 결측 처리의 적절성은 추가로 따져야 하며, 유효행만 썼다고 더 넓은 모집단에 대한 편향이 자동으로 사라지는 것도 아닙니다.
먼저 생각한 뒤 풀이 보기: 몸무게 평균만 구하는데 성별이 빈 행도 모두 지우면 어떨까요?
필요 없는 조건을 추가해 관측행을 더 버립니다. 몸무게가 있어도 성별이 비어 있는 행9개가 빠져342가333이 됩니다. 성별과 무관한 전체 몸무게를 기술하려는 질문이라면 그 추가 제외를 정당화할 이유가 필요합니다. 분석에 쓰는 변수와 유효행 조건을 함께 남깁니다.
3. 행번호는 개체 추적키나 무작위 표집의 증거가 아니다
이 단순화 파일의 row_id는 교육용으로 추가한 행번호입니다. 원자료의 Individual ID와 같은 추적 식별자가 아니므로 이 번호만으로 여러 시기 재측정 여부를 판정하지 않습니다. 또한344개 관측이 모든 남극 펭귄의 무작위 표본인 것은 아닙니다. 자료의 지역·종·시기·현장 수집 설계를 보고 관심 대상을 어디까지 넓힐 수 있는지 판단합니다.
먼저 생각한 뒤 풀이 보기: 부리 길이와 몸무게가 함께 크면 먹이를 더 주어서 커졌다고 말할 수 있나요?
이 파일은 관측 자료입니다. 먹이량을 무작위로 배정한 실험이 아닙니다. 종·성별·시기 같은 차이도 함께 있을 수 있습니다. 측정 두 값의 관계를 기술하는 일과 원인을 식별하는 일은 다른 단계입니다. 다음 장부터 분포와 관계를 보되 관측 설계의 범위는 계속 보존합니다.
Apple 2024 Form10-K의 실제 공시 표에서 FY2023과 FY2024의 다섯 품목을 선택합니다. 한 행을 기업×품목×회계연도로 정리하면10행입니다. 그러나 기업은1개이고 같은 품목5개가 두 연도에 반복됩니다. 행 수와 기업 수, 품목 수, 연도 수를 구별합니다.
같은 다섯 품목의 실제 공시 값을 짝지어 보관
품목
FY2023 순매출 (백만 USD)
FY2024 순매출 (백만 USD)
iPhone
200,583
201,183
Mac
29,357
29,984
iPad
28,300
26,694
웨어러블·홈·액세서리
39,845
37,005
서비스
85,200
96,169
그래프는 이 다섯 품목을 같은 순서로 비교합니다. 품목 간 막대를 선으로 연결해 시간 추세로 읽지 않고, 두 회계연도는 같은 품목끼리 짝을 맞춥니다. 이 표가 세계 기업10개의 무작위 표본이라고 해석할 수는 없습니다.
1. 측정 단위와 관측 기간을 함께 확인하기
실제 공시의 기간과 단위
회계연도
기간 종료일
기간 길이
다섯 품목 합계 (백만 명목 USD)
2023
2023-09-30
53주
383,285
2024
2024-09-28
52주
391,035
먼저 생각한 뒤 풀이 보기: 서비스96169라는 값을 “96,169달러의 이익”이라고 읽어도 되나요?
두 군데가 틀립니다. 단위가 백만 USD이므로96,169백만 USD=96,169,000,000 USD이고, 항목은 net sales(순매출)라서 이익이 아닙니다. 총액·거래 건수·고객 수 역시 다른 변수입니다. 변수를 읽을 때 이름과 단위를 같이 확인합니다.
먼저 생각한 뒤 풀이 보기: FY2023과 FY2024라는 숫자는 기간 길이가 같다는 뜻인가요?
아닙니다. 실제 공시는 FY2023 53주, FY2024 52주입니다. 회계연도 이름만 보고 같은365일이라고 가정하면 안 됩니다. 이 장에서는 원수치를 그대로 기술합니다. 주당 평균 등을 만들려면 기간 길이로 나누었다는 가공 기록과 해당 비교의 한계를 따로 적어야 합니다.
2. “전수”와 “표본”은 관심 대상에 따라 달라진다
관심 대상이 “이 공시가 구분한 FY2024 다섯 품목”이면 다섯 개를 모두 보관했습니다. 그러나 각 품목 안의 모든 거래를 수집한 것도, Apple 전체 고객을 조사한 것도 아닙니다. 회사가 공개한 집계값을 기술하는 질문에서 소비자의 구매확률이나 미래 기업 매출을 추론하는 질문으로 옮기려면 다른 자료·모형이 필요합니다.
먼저 생각한 뒤 풀이 보기: 품목을100개 하위 항목으로 나누면 독립 기업 표본이100개가 될까요?
분류가 세분화될 뿐 기업 수가 늘지는 않습니다. 집계 수준을 바꿔 행을 늘린 것과 독립적인 관측 대상을 추가로 수집한 것은 다릅니다. 반복·공유된 구조를 무시한 채 행 수를 표본 크기로 삼으면 불확실성을 잘못 평가할 수 있습니다.
먼저 생각한 뒤 풀이 보기: 분석을 시작하기 전에 세 줄로 자료의 범위를 적어 보세요.
① 대상:Apple 한 기업의 공시된5품목×2회계연도 집계. ② 변수·단위:품목별 순매출, 백만 명목 USD, FY2023 53주/FY2024 52주. ③ 해석:같은 품목의 공시값을 기술하며 거래·고객의 무작위 표본이나 미래 매출 보장으로 확대하지 않음. 이렇게 적으면 다음 장의 평균·중앙값과 상관을 무엇에 대해 계산하는지 분명해집니다.
What does one spreadsheet row represent? Skipping this question can produce correct calculations with incorrect interpretations. The retained actual World Bank data cover sixteen countries, 1980–2024. A row is one country in one calendar year; country and year together form its key. Sixteen times forty-five gives 720 rows, but only sixteen distinct countries.
Different questions select different observations from the same file
Question
Row unit
Selected rows
Distinct countries
Read national indicators over time
Country-year
720
16
Compare indicators in 2024
Country in 2024
16
16
Follow Korea in 2014–2024
Year within Korea
11
1
The plot counts forty-five retained annual rows and one 2024 row per country. Bar heights do not establish independence. Years from one country can share institutions, policy and economic history; they are not forty-five unrelated countries.
1. Record the observation unit, variable, value and target separately
KOR|2019 is a record key. The variable is gdp_pc and its value is 33,496.3113816 constant 2015 USD/person. It is a national-accounting indicator for Korea in 2019, not an observed individual wage. Keep constant-price real indicators, current-price nominal indicators and purchasing-power-parity indicators distinct.
Think first, then reveal: What is wrong with describing this as “a GDP survey of 720 people”?
The observations are 720 country-years, not 720 respondents. A person unit in GDP/person’s denominator does not make each record an individual. Differences in national indicators cannot automatically become individual wage differences or individual causal effects.
2. Record counts can differ from valid-value counts
Variable-specific denominators in the same 720 rows
Variable
Available values
Blanks
Starting point for analysis
GDP/person
716
4
Retain VNM 1980–1983 blanks
Life expectancy at birth
720
0
Indicator derived from period mortality
Population
720
0
Check persons as units
Unemployment (modeled ILO estimate)
544
176
Published estimated series; blank is not zero percent
“Available” means that the retained official series contains a published number. GDP/person is derived from national accounts; life expectancy at birth assumes continuation of period mortality patterns. Unemployment series SL.UEM.TOTL.ZS is the modeled ILO estimate, using reported information and modeling. Availability does not make every cell a directly counted raw measurement.
Think first, then reveal: May a GDP mean use 720 as its denominator?
Only 716 GDP values are observed in this full file. An unweighted mean of observed values uses their sum divided by 716. First ask whether mixing country-years answers the intended question. A 2024 country comparison instead uses sixteen selected records. Replacing four missing GDP values with actual zeros introduces another assumption.
3. Define the population by the question, not the filename
For “indicators of these sixteen countries in 2024,” all sixteen finite targets can be described. For “the 2024 mean of every country worldwide,” these are only part of a wider target. Investigate inclusion, omissions and weighting. A large row count does not turn selected countries into a representative random sample of the world.
Think first, then reveal: If country names are coded 1–16, is their average a meaningful country?
A calculator can return code 8.5, but that is not a meaningful mean of country categories. Numeric storage differs from measurement of a quantity. Record identifiers, categories, quantities and time coordinates separately in a data dictionary.
Individual-organism case · 344 penguin rows, 342 body masses
These are actual individual-organism measurements from adult penguins. The data contain 344 measurement rows from three Palmer Archipelago islands, 2007–2009. Data authors released species, island, size and recorded sex. Our retained simplified eight-variable dataset adds only a row_id for locating records.
First five actual rows · blanks are part of the record
row_id
Species
Flipper length (mm)
Body mass (g)
Recorded sex
1
Adelie
181
3750
male
2
Adelie
186
3800
female
3
Adelie
195
3250
female
4
Adelie
Missing
Missing
Missing
5
Adelie
193
3450
female
1. Numeric columns can play different roles
Species and island are nominal categories; mass and length are physical quantities. row_id=4 locates the fourth row, rather than measuring a scientific attribute. year=2007 locates study time; ratios of calendar labels do not measure relative body size. Body mass 3750 g=3.75 kg expresses the same observation in different units.
Think first, then reveal: Does integer gram storage make body mass a discrete count variable?
No. Physical mass is continuous; integer values reflect reporting. Distinguish it from counting penguins. Integer millimeter reporting alone also does not establish measurement error of exactly ±0.5 mm. Reporting resolution, accuracy and an error model are distinct.
2. Count valid observations for the variables actually needed
Body mass is missing at row IDs 4 and 272, while recorded sex has eleven blanks. Thus 344 total rows, 342 observed masses and 333 observed sex values are all correct counts for different questions.
Specify the selection rule before counting rows
Required information
Retained rows
Reason
All records
344
Preserve observed rows
Body mass observed
342
Needed for a mass summary
All four size measurements observed
342
Needed for four-variable size analysis
Recorded sex observed
333
Needed for analyses using sex
Four size measurements and sex observed
333
Needed when using all five variables
Think first, then reveal: What happens to the mean if the two missing masses become zero?
3421437000g≈4201.754386g,incorrect if blanks are treated as measured zeros3441437000g≈4177.325581g
Observed mass sums to 1437000 g. The right-hand calculation deliberately illustrates the incorrect assumption that blanks are observed zero-gram penguins. Actual blanks remain preserved. Appropriate missing-data handling depends on the question; restricting to valid rows does not automatically eliminate bias for a wider target population.
Think first, then reveal: Should rows with missing sex be dropped when calculating only a mass mean?
That adds an unnecessary requirement. Nine records with observed mass but missing sex would disappear, reducing 342 to 333. Describing mass without using sex requires a reason for this extra exclusion. Retain the variables used and the corresponding valid-row rule.
3. Row numbers establish neither tracking identities nor random sampling
The teaching row_id is an added record locator, not the source’s Individual ID. It cannot alone establish repeated measurements across periods. Nor do 344 records form a random sample of every Antarctic penguin. Inspect location, species, time and field collection before extending the target.
Think first, then reveal: If longer bills accompany larger body mass, can more food be declared the cause?
These are observations, not a randomized feeding experiment. Species, recorded sex and time can also differ. Describing two measurements’ association differs from identifying a cause. Distributional and relationship summaries in following chapters retain this observation-design scope.
Company case · Ten sales rows are not ten companies
Select five actual category totals for FY 2023 and FY 2024 from Apple’s 2024 Form 10-K. A company×category×fiscal-year table has ten rows, but only one company and five categories repeated across two periods. Distinguish record count, company count, category count and period count.
Retain actual category totals in matched pairs
Category
FY 2023 net sales (million USD)
FY 2024 net sales (million USD)
iPhone
200,583
201,183
Mac
29,357
29,984
iPad
28,300
26,694
Wearables, Home and Accessories
39,845
37,005
Services
85,200
96,169
The plot uses the same category order in both years. Do not connect categories as a time trend; match each category across fiscal periods. These are not ten randomly sampled companies from a worldwide population.
1. Verify measurement units and observation periods together
Actual fiscal periods and units
Fiscal year
Period end
Length
Five-category total (million nominal USD)
2023
2023-09-30
53 weeks
383,285
2024
2024-09-28
52 weeks
391,035
Think first, then reveal: May the Services value 96169 be read as “96169 dollars of profit”?
There are two errors. Million USD means 96169 million USD=96169000000 USD. The variable is net sales, not profit. Transaction counts and customer counts are different variables too. Read a variable’s name and unit together.
Think first, then reveal: Do the labels FY 2023 and FY 2024 imply equally long periods?
No. Actual periods contain 53 and 52 weeks respectively. A fiscal-year name does not establish an identical 365-day duration. This chapter describes original values. A per-week transformation must separately record division by period length and the limits of that comparison.
2. A census versus a sample depends on the target
For “all five FY 2024 categories distinguished in this filing,” every category is retained. That does not mean every underlying transaction or customer was collected. Moving from description of reported aggregates to purchase probabilities or future sales requires other data and models.
Think first, then reveal: Would splitting categories into a hundred subcategories create a hundred independent companies?
It changes classification, not company count. More rows from finer aggregation differ from additional independently collected entities. Ignoring shared and repeated structure while treating every row as sample size can misstate uncertainty.
Think first, then reveal: Write three lines defining the analysis before calculating.
1. Target: one company’s disclosed five categories over two fiscal years. 2. Variable and unit: category net sales, million nominal USD, with 53-week FY 2023 and 52-week FY 2024 periods. 3. Scope: describe matched category totals, without treating them as random customer/transaction records or guarantees of future sales. This specifies what the next chapters’ means, medians and correlations summarize.
Use OpenStax on data and sampling to build your own unit and design examples. In experimental design, distinguish sampling from assignment and avoid interpreting randomization as exact finite-sample balance.
Case enrichment includes people and official videos played within the chapter. Afterwards, describe one local dataset with “one row represents…”,“the target is…” and“missing means…”. Chapter 2 retains those definitions while building distributions and summaries.
자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.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.
통계란 무엇인가? 관측한 자료와 더 넓은 질문What Is Statistics?
CrashCourse · Statistics 1
본문에서 공식 입문 영상을 보고 “자료로 어떤 질문에 답할 수 있는가?”를 생각합니다. 세 사례의 한 행·변수·관심 대상을 각각 한 문장으로 써보세요.Watch the official introduction in this chapter. For each case, write one sentence defining a row, a variable and the target of interest.
교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.
보고 읽은 뒤 답하기Respond after watching/reading계산 전에 가장 먼저 확인할 것은 무엇인가요?What should be checked before calculating?
생각을 점검하는 해설Check your reasoning
한 행이 무엇이며 무엇을 어떤 단위로 측정했는지 확인합니다. 그다음 관측된 대상과 더 넓은 관심 모집단의 차이, 유효값의 분모를 적습니다.Identify what a row represents and what is measured, in which units. Then distinguish observed entities from the wider target and record the valid-value denominator.
플로렌스 나이팅게일 · 기록 체계와 통계적 질문Florence Nightingale: record keeping and statistical questions
University of St Andrews · MacTutor
대학 소개에서 나이팅게일(1820–1910)의 기록 체계와 통계 활용을 읽습니다. 단순 총수보다 대상·기간·분모가 명확한 비교가 왜 필요한지 연결합니다.Read the university account of Nightingale (1820–1910), record keeping and statistics. Ask why comparisons need clear targets, periods and denominators, rather than only totals.
보고 읽은 뒤 답하기Respond after watching/reading720행·344행·10행이라는 총수만 알면 충분한가요?Are totals of 720, 344 and 10 rows enough?
생각을 점검하는 해설Check your reasoning
아닙니다. 국가-연도인지 개체 측정인지 품목-회계연도인지 알아야 합니다. 변수마다 유효한 값의 수도 다르고, 같은 대상이 반복될 수도 있습니다.No. Identify country-years, organism measurements or category-fiscal years. Valid counts differ by variable, and entities may repeat.
모집단·표본·변수·값을 구별하는 말Population, sample, variable and value
OpenStax · Introductory Statistics 2e · 1.1 Key Terms
1.1의 핵심 용어와1.2의 자료 유형 도입부를 읽습니다. 수치 코드와 수량, 측정의 보고 형식과 본래 물리량을 구별하세요.Read the key terms in 1.1 and the opening data types in 1.2. Distinguish numeric codes from quantities and reported precision from the underlying physical quantity.
보고 읽은 뒤 답하기Respond after watching/reading표본이라는 말은 항상 무작위·대표성까지 보장하나요?Does calling a dataset a sample establish randomness or representativeness?
생각을 점검하는 해설Check your reasoning
그렇지 않습니다. 더 넓은 대상의 일부라는 사실과 어떻게 뽑혔는지는 다른 정보입니다. 이16개국·펭귄 현장 관측·기업 공시 각각의 수집 범위를 따로 적습니다.No. Being part of a wider target differs from how observations were selected. Record the collection scope of each country, penguin and filing dataset.
실제 연구 자료사전을 먼저 읽어 보기Read an actual research data dictionary first
Horst · Hill · Gorman · palmerpenguins
8변수·344행의 실제 자료사전을 읽고 열 이름, 단위, 기록 시기를 표시합니다. 단순화 자료와 원자료의 식별 열 차이도 살펴봅니다.Read the actual eight-variable, 344-row dictionary. Mark names, units and study years; compare identifier fields in the simplified and raw datasets.
보고 읽은 뒤 답하기Respond after watching/reading행번호4에서 무엇을 알고 무엇은 알 수 없나요?What does row 4 reveal, and what does it not reveal?
생각을 점검하는 해설Check your reasoning
종·섬·연도는 있지만 몸 측정·성별은 빈값입니다. 0 g나0 mm로 측정했다고 알 수 없고, 추가한 row_id만으로 원자료 개체의 장기 추적 관계도 알 수 없습니다.Species, island and year are known, but size and sex are missing. They are not measured zeros, and the added row ID does not establish longitudinal tracking identity.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 720행의 관측 단위Units in 720 records
16개국을 1980~2024년 기록한 720행에서 관측 단위·국가 수·기간 수를 쓰세요.
For 720 rows covering 16 countries over 1980–2024, state the observation unit, entity count and period count.
풀이와 확인할 이유Solution and explanation
한 행은 국가·연도이고 국가 16개, 기간 45개입니다. 16×45=720은 기록 수입니다. 720개의 독립 국가를 관측했다는 뜻은 아닙니다. 변수별 결측 여부도 별도 확인해야 합니다.
One row is a country-year, with 16 countries and 45 periods.720 is a record count, not a count of independent countries. Indicator availability is a separate question.
2. 넓은 표와 긴 표Wide versus long
기업 한 곳의 5품목×2년 자료를 넓은 표와 긴 표로 만들 때 행 수와 기업 수를 구하세요.
One company has 5 categories over 2 years. How many rows appear in wide and long formats, and how many companies?
풀이와 확인할 이유Solution and explanation
연도를 두 열로 둔 넓은 표는 5행, 품목·연도의 긴 표는 10행입니다. 기업은 두 경우 모두 1개입니다. 표현의 행 수 변화는 새 기업 관측의 증가가 아닙니다.
Wide format has 5 rows and long format 10, while both describe one company. Reshaping does not create new firm-level observations.
3. 배정 단위와 점수 수Assignment versus measurement counts
가정한 4학급 각25명에 수업 방식을 학급 단위로 배정했습니다. 점수100개를 독립 배정100개라고 할 수 있나요?
Four hypothetical classes of 25 students receive class-level assignments. Can 100 scores be called 100 independent assignments?
풀이와 확인할 이유Solution and explanation
배정 단위는 학급4개이고 관측 단위는 학생입니다. 점수100개가 있지만 같은 학급 학생은 같은 처치를 공유합니다. 독립 배정100개로 분석하면 설계 구조를 바꿉니다. 군집·반복을 고려하는 추론이 필요합니다.
No: there are 4 assignment units and 100 measured students. Shared class treatment creates a different design. Inference must respect clustering rather than relabeling scores as assignments.
4. 고유키와 독립성Unique keys versus independence
국가·연도 키가 모두 고유하면 연도별 국가값이 통계적으로 독립인가요?
Do unique country-year keys prove statistical independence?
풀이와 확인할 이유Solution and explanation
고유키는 같은 식별 조합의 중복이 없다는 뜻입니다. 같은 국가의 시간 변화나 세계 공통 충격은 값들을 관련되게 만들 수 있습니다. 키의 데이터 품질 조건과 확률적 독립성은 다릅니다.
They rule out duplicate identifier combinations, not dependence. Within-country dynamics and shared shocks can relate values. A data-key condition is not a probabilistic independence assumption.
5. 관측 흐름의 분모Denominators in an observation flow
가정 목표100명→틀80명→선택20명→응답15명에서 선택자 응답률과 목표 대비 관측비율을 구하세요.
For a hypothetical flow 100 target→80 frame→20 selected→15 responding, find response and target-observation rates.
풀이와 확인할 이유Solution and explanation
선택자 응답률은15/20=75%입니다. 목표 전체 대비 관측비율은15/100=15%입니다. 틀 포함률80%도 다른 지표입니다. 최종15명이라는 숫자만으로 누락 단계를 알 수 없습니다.
Response among selected units is 75%; observed share of the target is 15%. Frame coverage 80% is another rate. Each denominator answers a different question.
6. 목표 모집단의 문장Specify a target
“학생 공부시간 평균”을 측정할 질문을 대상·기간·변수·단위가 들어가게 구체화하세요.
Rewrite“average student study time”with entities, period, variable definition and units.
풀이와 확인할 이유Solution and explanation
예를 들어 “A학교 2026년2학기 재학생의 지난7일 자가보고 과제·복습시간 합을 시간 단위로 평균”이라고 쓸 수 있습니다. 학교·재학 조건·기간·정의·보고 방식을 포함했습니다. 실제로 그런 조사를 했다는 주장이 아니라 설계 예입니다.
One design example is mean self-reported hours of homework and review over the past 7 days among students enrolled at schoolA in a specified semester. The operational definition and reporting method are explicit; this does not claim a real survey occurred.
7. 파일 전부와 전수조사Entire file versus census
공개 펭귄344행을 모두 읽었습니다. 모든 남극 펭귄의 전수조사라고 할 수 있나요?
Does reading all 344 public penguin rows constitute a census of all Antarctic penguins?
풀이와 확인할 이유Solution and explanation
그344기록을 전부 기술한 것은 맞지만 남극 전체를 조사한 것은 아닙니다. 원자료의 장소·기간·성체 측정 범위와 선택 과정을 확인해야 합니다. 고정 파일 전체와 더 큰 목표 모집단을 구별합니다.
No. It covers every record in that file, not every penguin in the larger target. Check the source period, location, adult-measurement scope and selection process.
8. 모수와 통계량Parameter versus statistic
고정 명단N=5의 전체 평균4와 그중 표본{1,2}의 평균1.5를 유한 모집단 관점에서 구별하세요.
In a fixed five-unit population with mean 4, a selected sample{1,2}has mean 1.5. Distinguish their roles.
풀이와 확인할 이유Solution and explanation
전체 평균4는 정의된5개 유한 모집단의 모수입니다. 표본평균1.5는 선택 표본의 통계량입니다. 그5개 자체가 더 큰 모집단의 표본이라면 다시 다른 추론 역할이 생길 수 있습니다. 어떤 모집단인지 먼저 정해야 합니다.
Four is the finite-population parameter; 1.5 is a sample statistic. If those five units themselves sample a larger target, the roles require a new definition of population.
9. 완전한 키 격자와 결측Complete grid versus missing values
16×45의 국가·연도 키720개가 모두 있는데 GDPpc는716개입니다. 모순인가요?
A16×45 country-year grid has 720 unique keys but 716 GDPpc values. Is this inconsistent?
풀이와 확인할 이유Solution and explanation
아닙니다. 기록 구조는720개이고 그중 GDP 칸4개가 비었습니다. 키가 있는 것과 변수 값이 있는 것은 다릅니다. 다른 변수의 가용 수는 별도로 세어야 합니다.
No. Four GDP cells are missing inside a complete key grid. Record structure and variable availability differ, and each other variable needs its own count.
10. 모든 비복원 부분집합Count without-replacement subsets
N=5에서 n=2의 비복원 단순무작위 표본 수와 각 표본 확률을 구하세요.
For N=5, n=2, find the number of simple-random subsets and probability of each.
풀이와 확인할 이유Solution and explanation
서로 다른 두 단위의 순서 없는 선택은5·4/2=10개입니다. SRS에서는 각 부분집합 확률1/10입니다. 순서 있는20개를 쓰더라도 각 쌍이 두 번 나타나므로 같은 순서 없는 설계를 만들 수 있지만 표현을 구별해야 합니다.
There are 5·4/2=10 unordered subsets, each with probability 1/10. Ordered draws produce 20 sequences with each subset represented twice; keep the representations distinct.
11. 10개 표본평균의 검산Enumerate the ten means
가정 모집단(1,2,3,4,10)의 n=2 모든 표본평균을 쓰고 그 평균을 계산하세요.
List all size-two sample means from(1,2,3,4,10)and average them.
풀이와 확인할 이유Solution and explanation
평균들은1.5,2,2.5,5.5,2.5,3,6,3.5,6.5,7입니다. 합40을10으로 나누면4입니다. 두 표본이 같은 평균2.5를 갖더라도 서로 다른 단위 부분집합이므로 각각 확률1/10을 가집니다.
The means are 1.5,2,2.5,5.5,2.5,3,6,3.5,6.5,7. They sum to 40 and average to 4. Equal-valued means can arise from distinct equally probable subsets.
12. 설계 불편성의 간단 유도Derive design unbiasedness
고정 유한 값yᵢ와SRS 포함 지시함수Iᵢ에서 E[Iᵢ]=n/N으로 E[표본평균]=모집단평균을 유도하세요.
For fixed yᵢ and SRS indicators Iᵢ, use E[Iᵢ]=n/N to derive the expectation of the sample mean.
풀이와 확인할 이유Solution and explanation
표본평균은(1/n)ΣIᵢyᵢ입니다. 유한 합의 기대값을 항별로 쓰면(1/n)Σ(n/N)yᵢ=(1/N)Σyᵢ입니다. 각 Iᵢ의 상호 독립성은 이 평균 유도에 필요하지 않습니다. 비복원 추출의 포함은 실제로 서로 독립이 아닐 수 있습니다.
It is E[(1/n)ΣIᵢyᵢ]=(1/n)Σ(n/N)yᵢ=(1/N)Σyᵢ. Linearity suffices; mutual independence of inclusion indicators is unnecessary and generally absent without replacement.
13. 복제의 선택 편향Replication does not repair selection
전체(1,2,3,4,10)에서 편의 선택{1,2}를1000번씩 복제하면 평균과 전체평균 차이가 어떻게 되나요?
Replicate convenient values{1,2}one thousand times each from population(1,2,3,4,10). What happens to the mean discrepancy?
풀이와 확인할 이유Solution and explanation
평균은 계속1.5이고 전체4와의 차이는−2.5입니다. 행 수는 늘었지만 새로운 단위를 선택하지 않았습니다. 같은 선택의 반복 복사로 표집의 대표성 문제가 해결되지는 않습니다.
The mean remains 1.5 and discrepancy from 4 remains−2.5. More copied rows do not create new selected units or repair representativeness.
14. 전수 경계의 표본Full-sample boundary
N=5, n=5인 비복원 SRS에서 표본 수·표본평균의 설계 변동을 설명하세요.
For without-replacement SRS with N=n=5, describe possible samples and design variation of the mean.
풀이와 확인할 이유Solution and explanation
가능 표본은 전체 집합 하나뿐입니다. 그 평균은 모집단 평균과 같고 선택에 따른 변동은0입니다. 그래도 측정 오차나 더 큰 모집단으로의 일반화 문제가 사라지는 것은 아닙니다.
Only the full set is possible, so the mean equals the population mean with zero selection variation. Measurement error and generalization beyond that finite set remain separate.
15. 빈 표본의 평균An empty sample mean
n=0의 빈 표본을 선택할 수 있다는 것과 표본평균을 정의할 수 있다는 것이 같은가요?
Does the existence of an empty selected set imply its mean is defined?
풀이와 확인할 이유Solution and explanation
집합으로서 빈 표본은 만들 수 있습니다. 하지만 합0을 분모0으로 나누는 평균은 정의하지 않습니다. 이 장 SRS 평균에서는N≥1,1≤n≤N을 사용합니다.
No. The empty sum is zero, but division by sample size zero is undefined. The mean discussion requires N≥1 and 1≤n≤N.
16. 무작위 split의 범위Scope of a random split
자발적 온라인 응답자 자료를 train/test로 무작위 분할하면 전체 주민의 확률표본이 되나요?
Does a random train/test split of voluntary online responses make them a probability sample of all residents?
풀이와 확인할 이유Solution and explanation
아닙니다. 분할은 이미 선택된 응답자 안의 절차입니다. 비응답 주민이 원래 자료에 들어올 확률을 정의하지 않습니다. 같은 원선택 범위 안 평가와 전체 주민 일반화는 다른 질문입니다.
No. The split randomizes within already selected respondents. It does not define inclusion for omitted residents. Evaluation within that source and population generalization differ.
17. 시드와 재현Seed and reproducibility
같은 시드만 알면 언제나 같은 표본이 재현되나요? 함께 보관할 항목을 쓰세요.
Does a seed alone always reproduce a sample? What else is needed?
풀이와 확인할 이유Solution and explanation
명단 순서·추출 알고리즘·난수 생성기·소프트웨어 버전·표본 크기·복원 여부가 필요합니다. 다른 입력이나 알고리즘이면 같은 시드도 다른 선택을 줄 수 있습니다. 시드는 원표집의 타당성이나 대표성을 보증하지 않습니다.
Preserve roster order, sampling algorithm, generator, software version, sample size and replacement rule. Different inputs or algorithms can differ with the same seed. A seed does not certify validity or representation.
18. 무작위 추출과 배정Sampling versus assignment
학생을 무작위로 조사에 포함하는 것과 조사 참여자에게 수업 방식을 무작위 배정하는 것의 역할을 구별하세요.
Distinguish randomly selecting students into a study from randomly assigning teaching methods to participants.
풀이와 확인할 이유Solution and explanation
추출은 누가 자료에 들어오는지 결정하여 일반화 설계와 연결됩니다. 배정은 포함된 사람의 처치를 정하여 인과 비교와 연결됩니다. 하나를 했다는 사실만으로 다른 하나도 했다고 볼 수 없습니다.
Sampling determines inclusion and supports a generalization design. Assignment determines treatment and supports causal comparison. One does not imply the other occurred.
19. 무작위 배정의 정확한 의미Finite-sample imbalance
무작위 배정 후 두 집단의 사전 점수 평균이 다르면 무작위 배정이 불가능했다는 뜻인가요?
If pre-treatment score means differ after random assignment, does that prove random assignment was impossible?
풀이와 확인할 이유Solution and explanation
아닙니다. 유한 표본에서는 우연 불균형이 생길 수 있습니다. 배정 절차가 사전에 정의한 무작위 설계를 따랐는지 검토해야 합니다. 모든 특성이 정확히 같아야 한다는 주장은 무작위화의 의미를 과장합니다.
No. Chance imbalance can occur in a finite sample. Check whether the assignment followed its specified randomized mechanism. Exact equality of every covariate is not guaranteed.
20. 국가와 개인의 관계Countries versus individuals
국가 평균GDP와 기대수명의 관계를 개인 소득이 수명에 미치는 효과라고 바로 부를 수 있나요?
Can a country-average GDP–life-expectancy association be called the effect of personal income on lifespan?
풀이와 확인할 이유Solution and explanation
아닙니다. 국가 지표와 개인 변수는 관측 단위가 다르고 집계 안의 분포가 빠져 있습니다. 또한 관찰 관계의 인과 해석에는 별도 설계가 필요합니다. 집단 관계를 개인 관계로 옮기는 문제와 상관을 인과로 바꾸는 문제를 모두 확인합니다.
No. The units differ and aggregates omit within-country distributions. Causal interpretation also needs a separate design. Check both ecological transfer and association-versus-causation.
21. 범주 숫자의 평균Numeric category codes
종A,B,C를1,2,3으로 코딩했을 때 평균2가 “평균 종B”라는 뜻인가요?
If species A, B, C are coded 1,2,3, does mean 2 mean an average animal is species B?
풀이와 확인할 이유Solution and explanation
코드는 이름표라서 다른 숫자로 바꿔도 같은 범주 정보입니다. 평균은 재코딩에 따라 임의로 달라집니다. 종별 빈도·비율을 요약하는 것이 질문에 맞고 중간 종을 산술로 만들지 않습니다.
No. The codes are labels and can be replaced without changing categories. A code mean changes arbitrarily under relabeling. Use category counts or proportions instead.
22. 순서와 간격Order versus spacing
만족도 낮음·중간·높음에1,2,3을 붙이면 두 간격이 같다는 사실이 증명되나요?
Does coding low, medium, high as 1,2,3 prove equal gaps?
풀이와 확인할 이유Solution and explanation
순서만 지정됐을 뿐 간격 동등성은 증명되지 않습니다. 수량 해석이나 평균을 사용하려면 측정 모형·목적·근사를 설명해야 합니다. 코딩을 했다는 이유만으로 간격척도가 생기지는 않습니다.
No. It supplies order, not equal spacing. Arithmetic interpretation requires a measurement model and purpose. Coding alone does not create an interval scale.
23. g와kg의 변환Grams and kilograms
몸무게4200g,2100g의kg값·차이·비율을 변환 전후 비교하세요.
Convert 4200 g, 2100 g to kilograms and compare differences and ratios.
The values are 4.2 kg and 2.1 kg. The difference is 2100 g=2.1 kg, and the ratio remains 2. Unit values change while the physical comparison is preserved.
24. 온도 비율의 함정Temperature ratio trap
섭씨20도와10도를 화씨로 바꾸고 수준 비율·차이의 관계를 계산하세요.
Convert 20°C and 10°C to Fahrenheit and compare level ratios and differences.
풀이와 확인할 이유Solution and explanation
화씨68도와50도입니다. 수준 비율은섭씨2, 화씨1.36으로 다릅니다. 차이는10C에서18F로9/5배입니다. 이동이 있는 간격척도에서 수준 비율을 절대 배수로 읽지 않습니다.
The values are 68°F and 50°F. Ratios change from 2 to 1.36, while the difference scales from 10°C to 18°F. Do not interpret an interval-scale level ratio as an absolute-temperature multiple.
25. 정밀하지만 치우친 저울Precise but shifted scale
같은 물체를 잴 때 항상 참값보다200g 크게 나오고 반복값은 거의 같습니다. 신뢰도와 기준 오차를 설명하세요.
A scale repeatedly reads about 200 g above the target with very little variation. Describe reliability and error.
풀이와 확인할 이유Solution and explanation
반복 일치가 좋아 정밀·신뢰도가 높을 수 있지만 +200g의 체계적 오프셋이 있습니다. 반복 평균을 많이 내도 같은 오프셋은 남습니다. 기준 도구와 보정 과정을 확인해야 합니다.
Repeatability may be high, but a systematic+200 g offset remains. Averaging repeats does not remove that same offset. Check calibration against a reference.
26. 개념과 지표Concept versus indicator
GDPpc를 개인 행복 또는 개인 소득과 같은 변수로 취급할 수 없는 이유를 쓰세요.
Why is GDPpc not the same variable as personal happiness or personal income?
풀이와 확인할 이유Solution and explanation
GDPpc는 집계 생산을 인구로 나눈 지표입니다. 개인 간 분포·소득 구성·삶의 질을 전부 측정하지 않습니다. 그 개념과의 관련성은 분석할 수 있지만 동일 변수라고 정의를 바꾸면 안 됩니다.
It is aggregate production divided by population, not a complete measure of personal income variation or quality of life. Relations can be studied without identifying the constructs.
27. 실제 추계 지표A modeled actual indicator
World Bank SL.UEM.TOTL.ZS에 값이 있으면 모두 그 칸에서 직접 조사한 실업률이라는 뜻인가요?
Does an available World Bank SL. UEM. TOTL. ZS value mean a direct local measurement in that cell?
풀이와 확인할 이유Solution and explanation
아닙니다. 공식 지표는 modeled ILO estimate로 표시됩니다. 실제 출처의 통계자료이지만 모형 추정·조화 과정이 포함될 수 있습니다. 가용성, 생성 방식, 오차는 따로 읽어야 합니다.
No. The official indicator is labeled a modeled ILO estimate. Availability and a genuine source do not erase its estimation process or uncertainty.
28. 0과결측의 구별Zero versus missing
세탁 에너지0Wh와 비어 있는 펭귄 몸무게를 같은 숫자0으로 처리하면 무엇이 바뀌나요?
What changes if valid zero laundry energy and blank penguin mass are both stored as numeric zero?
풀이와 확인할 이유Solution and explanation
에너지0은 유효한 관측값일 수 있지만 빈 몸무게는 알려지지 않은 값입니다. 후자를0으로 바꾸면 존재하지 않는 측정을 더하고 평균 분모를 늘립니다. 사전의 결측 코드를 보존하고 분석 처리를 따로 기록해야 합니다.
The energy zero may be observed, but the mass is unknown. Zero filling invents a measurement and changes its denominator. Preserve missing codes and document analysis transformations separately.
29. 실제 관측 몸무게 평균Actual observed mass mean
실제 몸무게 합1437000g,유효값342개에서 평균과단위를 구하세요.
Compute the mean from actual mass sum 1437000 g and 342 observed values.
풀이와 확인할 이유Solution and explanation
평균은1437000/342=239500/57≈4201.754386g입니다. 이는 관측342개에 대한 기술평균입니다. 결측2개의 실제 값을 계산해낸 것이 아니며 원모집단 추론에는 선택·결측 가정이 추가됩니다.
The mean is 239500/57≈4201.754386 g. It describes 342 observed values, does not recover the two unknown masses, and needs further assumptions for population inference.
30. 잘못된0채움 평균Incorrect zero-filled mean
같은 합1437000g을344로 나눈 값과342로 나눈 값의 차이를 설명하세요.
Compare 1437000 g divided by 344 versus 342 and interpret the discrepancy.
풀이와 확인할 이유Solution and explanation
344분모는약4177.325581g이고 관측평균보다약24.428805g 작습니다. 합은 같아도 알 수 없는 두 값을0으로 해석해 분모를 바꿨기 때문입니다. 이는 실제 새로운 측정이 아닌 잘못된 처리의 시연입니다.
The first is about 4177.325581 g, about 24.428805 g below the observed mean. The same numerator now assumes two unobserved zeros. This is an incorrect-processing demonstration, not new data.
31. 불필요한sex필터An unnecessary sex filter
몸무게만 요약하는데sex결측을 모두 제거해333행만 남기면 신체측정342행에서 몇 개를 더 잃나요?
A mass-only summary retains 333 sex-complete rows instead of 342 measured rows. How many additional measurements are excluded?
풀이와 확인할 이유Solution and explanation
342−333=9개입니다. sex가 필요하지 않은 질문에 추가 조건을 넣어 분석 집합을 바꾼 것입니다. 항상 잘못이라고 단정하기보다 그 조건의 이유와 변경된 대상을 명시해야 합니다.
Nine. The filter adds a condition irrelevant to the stated variable and changes the analysis set. Justify that condition and name the resulting target rather than silently treating it as universal cleaning.
32. 완전사례와전체평균Complete cases and the population
관측값만 평균내면 항상 전체 모집단 평균의 편향 없는 추정이 되나요?
Does averaging only observed values always give an unbiased estimate of the full target mean?
풀이와 확인할 이유Solution and explanation
아닙니다. 값이 큰 대상이 더 자주 누락되면 관측 집합의 분포가 다를 수 있습니다. 관측평균의 기술 계산은 유효하지만 더 큰 대상 평균으로의 추론에는 결측·선택 가정이 필요합니다. 관측됨과 무작위로 빠짐은 다른 조건입니다.
No. If high values are more often missing, the observed distribution can differ. The descriptive calculation is defined, but population inference needs selection and missingness assumptions.
33. 숫자결측코드A numeric missing sentinel
가정한 값10,20,−99에서−99가 결측코드입니다. 그대로 평균낸 값과 가용값 평균을 비교하세요.
For hypothetical values 10,20,−99, with−99 defined as missing, compare the raw numeric mean and available-value mean.
풀이와 확인할 이유Solution and explanation
그대로 평균내면(10+20−99)/3=−23입니다. 사전에 따라 결측을 제외한 관측평균은15입니다. −99를 실제 값으로 해석하면 다른 자료를 계산한 것입니다. 제외 이유·유효분모2를 함께 기록합니다.
The raw mean is−23; the observed-value mean is 15. Interpreting the sentinel as a measurement changes the data. Report the missing-code rule and denominator 2.
34. 같은 값의두행Two equal-valued rows
서로 다른 펭귄기록의 몸무게가 같으면 중복오류라 한 행을 삭제해야 하나요?
If two penguin records have the same mass, must one be deleted as a duplicate error?
풀이와 확인할 이유Solution and explanation
아닙니다. 서로 다른 유효 단위가 같은 측정값을 가질 수 있습니다. 식별키와 원문을 확인해 행전체복사·키중복·반복측정인지 구별해야 합니다. 값의 같음만으로 단위의 같음이 증명되지 않습니다.
No. Different units can share a measurement. Check identifiers and source records to distinguish copying, duplicate keys and valid repetitions. Equal values do not prove identical units.
Two GDP rows for countryA in 2023,2024 join two population rows on country alone. How many rows result, and what key is needed?
풀이와 확인할 이유Solution and explanation
각 GDP행이 두 인구행과 맞아4행입니다. 국가+연도로 결합하면 대응2행입니다. 잘못늘어난2행은 새정보가 아니라 연도 불일치 조합입니다. 결합 전후 키와행수를 검산해야 합니다.
Each GDP row matches both population rows, giving 4. Use country and year for 2 correct matches. The extra rows are mismatched combinations, not new observations.
36. 해시와 타당성Hash versus validity
파일 해시가 같고 코드 결과가 재현되면 분석의 타당성이 증명되나요?
Do matching file hashes and reproduced results establish analysis validity?
풀이와 확인할 이유Solution and explanation
해시는 같은 입력 바이트를 확인하는 단서이고 재현은 절차 결과의 일관성입니다. 잘못된 0 채움이나 선택도 재현됩니다. 질문·측정·모집단·가정을 별도로 검토해야 합니다.
They support input identity and procedural reproducibility. Incorrect filling or selection can also reproduce. Review the question, measurement, population and assumptions separately.
37. 실제 국가 변수 가용 수Actual indicator availability
720행에서 GDP 716개, 실업률 544개가 있다면 각 결측 수와 빈값을 0으로 바꿀 수 없는 이유를 쓰세요.
Among 720 rows, GDP is available 716 times and unemployment 544 times. Find missing counts and explain why blanks cannot become zero.
풀이와 확인할 이유Solution and explanation
GDP 결측은 4개, 실업률 결측은 176개입니다. 두 변수의 빈 행 집합이 같다는 정보도 없고 빈값은 0이 아닙니다. 변수별 가용성과 함께 필요한 열의 교집합을 따로 계산해야 합니다.
Missing counts are 4 and 176. The missing sets need not coincide, and a blank is not zero. Required-column intersections must be audited separately.
38. 실제 펭귄 연도 합Actual penguin year totals
2007·2008·2009년 기록 110·114·120개의 합을 구하고 몸무게 평균 분모와 다를 수 있는 이유를 설명하세요.
Sum 110, 114, 120 records from 2007, 2008, 2009 and explain why this need not be the mass-mean denominator.
풀이와 확인할 이유Solution and explanation
합은 344입니다. 이는 연도가 기록된 전체 행 수입니다. 몸무게가 없는 2행을 제외하면 평균의 관측 분모는 342입니다. 시점별 행 수 합과 변수 유효 수는 서로 다른 점검입니다.
The total is 344 rows. Two lack mass, leaving 342 observed values. Year-row totals and variable availability are different audits.
39. 자료 사전의 sex와 row_idInterpret sex and row_id
펭귄 row_id와 sex 열에서 확인 가능한 것과 확인 불가능한 것을 구별하세요.
What can and cannot be established from penguin row_id and sex fields?
풀이와 확인할 이유Solution and explanation
row_id는 이 사본의 위치 식별자이고 sex는 원자료가 제공한 동물의 기록 범주입니다. row_id만으로 생애 개체 추적·독립성·확률표집을 증명할 수 없습니다. sex를 인간 대상 성별 설문과 같은 측정으로 해석하지 않고 공식 사전을 따릅니다.
The helper id locates a record in this copy; sex follows the animal-source dictionary. The id does not establish lifetime tracking, independence or probability sampling. Do not reinterpret this animal field as a human questionnaire.
40. 실제 회계연도 길이Fiscal-year lengths
Apple FY2023은 53주, FY2024는 52주입니다. 두 연도 총매출을 동일 주 수의 고객 구매 확률로 읽어도 될까요?
Apple FY2023 has 53 weeks and FY2024 has 52. Can annual revenues be read as equal-duration customer purchase probabilities?
풀이와 확인할 이유Solution and explanation
아닙니다. 총매출은 금액 집계이며 기간 길이도 다릅니다. 고객·거래 건수는 제공되지 않았습니다. 연도 공시의 기술 비교와 같은 기간의 행동 모형은 다른 질문입니다.
No. Revenue aggregates money over different durations, and customer counts are absent. Annual descriptive comparisons differ from equal-period behavioral probabilities.
41. 기술과 예측Description versus prediction
관측 342개 몸무게 평균을 계산한 뒤 새 섬의 모든 펭귄 몸무게를 정확히 예측했다고 말할 수 있나요?
Does computing the mean of 342 observed masses exactly predict every penguin on a new island?
풀이와 확인할 이유Solution and explanation
아닙니다. 기술 평균은 정해진 관측 집합을 요약합니다. 새 섬의 대상·종·기간 차이와 예측 오차를 별도로 검토해야 합니다. 관측 평균과 개별 미래 예측은 같은 목표가 아닙니다.
No. A descriptive mean summarizes a specified set. New-island species, periods and prediction errors need separate evaluation. A mean is not an exact individual prediction.
42. 이상치 점검Audit an unusual value
몸무게 열 한 값이 4.2이고 나머지는 4000 근처입니다. 바로 삭제하기 전 무엇을 확인해야 하나요?
One mass value is 4.2 while most are near 4000. What should be checked before deletion?
풀이와 확인할 이유Solution and explanation
4.2가 kg로 잘못 섞였는지, 단위·소수점·원문 입력이 맞는지 확인합니다. 변환 오류가 확인되면 원값을 보존하고 이유와 함께 g로 고칩니다. 드문 유효값을 임의 삭제하는 규칙으로 일반화하지 않습니다.
Investigate a possible kilogram/gram mix, decimal entry and source record. If confirmed, preserve the original and document conversion. Do not turn this into automatic deletion of rare valid values.
43. 변수 사전 작성Write a variable dictionary
실제 펭귄 body_mass_g에 대한 정의·단위·결측·분모·출처를 짧게 작성하세요.
Write definition, units, missing rule, denominator and source for actual body_mass_g.
풀이와 확인할 이유Solution and explanation
예: “기록된 성체 펭귄 몸무게, 그램, 빈값은 미관측이며 0이 아님, 344행 중 342값으로 관측 평균 계산, Palmer 공식 사전 및 원자료 사본.” 여기에 사용 파일 버전·변환 이력을 붙입니다. 정의와 계산 규칙을 함께 적어야 재현할 수 있습니다.
For example: recorded adult penguin body mass in grams; blank means unavailable, not zero; 342 observed values among 344 rows; official Palmer dictionary and frozen source copy. Add file version and transformations.
44. 선택 심화: 결측값 범위가 있다면Optional: bounded missing values
실제 관측 합 1437000 g, 전체 344개 중 결측 2개에 각각 0~10000 g이라는 학습용 가정 범위만 붙입니다. 전체 344개 평균의 가능 범위를 구하세요.
Actual observed sum is 1437000 g among 344 records with 2 missing. Suppose a teaching assumption bounds each missing value between 0 and 10000 g. Find the full-record mean range.
풀이와 확인할 이유Solution and explanation
미지 합은 0~20000 g이므로 전체 평균은 1437000/344부터 1457000/344, 약 4177.325581~4235.465116 g입니다. 이는 가정 범위에서의 민감도 구간이지 결측 두 개를 관측한 결과나 신뢰구간이 아닙니다. 범위를 바꾸면 결론도 바뀝니다.
The unknown sum ranges 0–20000 g, so the mean ranges 1437000/344 to 1457000/344, about 4177.325581–4235.465116 g. This is an assumption-based sensitivity interval, not observed missing masses or a confidence interval.
45. 종합 검토Integrated audit
누군가 720국가 표본·344펭귄 몸무게·10기업이라고 쓰고 빈값은 0으로 채웠습니다. 세 자료의 단위와 분모를 고치세요.
Someone reports 720 countries, 344 penguin masses and 10 companies, with blanks filled by zero. Correct the units and denominators.
풀이와 확인할 이유Solution and explanation
국가 자료는 16국×45년 720기록이고 GDP 유효값은 716개입니다. 펭귄 전체 344기록 중 몸무게는 342값이며 sex 필요 분석은 333완전사례일 수 있습니다. 기업은 1곳의 5품목×2년입니다. 빈값은 0 측정이 아니며 각 분석의 포함 집합과 모집단 범위를 다시 정의해야 합니다.
There are 16 countries over 45 years, 720 records and 716 available GDP values. Penguins have 344 records, 342 masses and possibly 333 sex-complete cases. The company data cover one firm with 5 categories over 2 years. Blanks are not observed zeros; redefine analysis sets and targets.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.