DATA-15 · DATA SCIENCE

자료를 읽고 공개하고 판단하기Reading, releasing and deciding with data

작은 표에서 접근성·집계 공개·출처·판단 비용까지From small tables to accessibility, aggregate releases, provenance and decision costs

실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions

기초Foundations

1. 10과 12를 읽는 세 가지 길1. Three ways to read ten and twelve

동아리의 설명용 표에 첫 달 10개, 다음 달 12개가 적혔다고 합시다. 다음 달에 2개 늘었고, 처음 10개의 2/10=20%만큼 증가했습니다. 이 한 문장을 쓰면 막대를 보지 않아도 변화 방향과 크기를 읽을 수 있습니다.

설명용 개수 · 실제 기관의 관측값 아님
기간개수
첫 달10
다음 달12

표는 두 원래 수를 정확히 찾는 길입니다. 문장은 둘의 관계를 바로 읽는 길이고, 그림은 높이 차이를 빠르게 살피는 길입니다. 같은 자료를 다른 길로 읽게 만들면 작은 글자나 색의 차이를 알아보기 어려운 독자도 필요한 정보를 찾기 쉬워집니다.

이 장에서는 먼저 작은 숫자로 표시 선택의 효과를 계산합니다. 그다음 실제 표의 분모·단위·출처를 붙이고, 공개할 정보와 판단에 쓰는 비용을 정합니다. 읽는 사람에게 필요한 정보를 제공하는 일과 원래 자료를 보존하는 일을 함께 연습합니다.

Suppose a toy club table records ten items in the first month and twelve in the next. The increase is two, or 2/10=20% of the original ten. This sentence communicates the direction and size even without a bar chart.

Toy counts · not observations from an actual institution
PeriodCount
First month10
Next month12

The table lets readers locate both original numbers. The sentence explains their relationship, while the chart offers a quick view of their heights. Alternative ways to obtain the same information help readers who have difficulty distinguishing small text or colors.

We start by calculating how display choices affect small examples. Then we connect actual tables to their denominators, units and sources, choose what to release and specify the costs used in a decision. Clear communication and retained source data are parts of the same workflow.

기초Foundations

2. 먼저 독자가 찾을 질문 하나를 적는다2. Start with one question the reader should answer

“다음 달에 몇 개 늘었나?”에는 차이 2가 답입니다. “몇 퍼센트 늘었나?”에는 처음 10을 분모로 한 20%가 답입니다. “두 달 합계는?”에는 22가 답입니다. 같은 두 수라도 질문이 달라지면 계산과 문장도 달라집니다.

그림 제목을 “결과”라고만 쓰면 어느 질문을 읽어야 할지 알기 어렵습니다. “두 달의 개수”라는 짧은 제목을 두고, 바로 옆에 “첫 달 10개에서 다음 달 12개로 2개 증가”라는 설명을 붙여 보세요. 제목·축·설명문이 서로 다른 숫자를 말하지 않는지 확인합니다.

실제 보고에서는 누가 무엇을 결정할지도 적습니다. 다음 달 물품을 준비하는 사람이 필요한 것은 지난달 개수일 수 있고, 비용을 비교하는 사람에게는 단가와 총비용이 더 필요할 수 있습니다. 아직 없는 정보를 채운 것처럼 표현하기 전에, 현재 표로 답할 수 있는 질문부터 고릅니다.

“How many more?” asks for the difference two. “What percentage increase?” asks for twenty percent using the original ten as denominator. “What is the total?” asks for twenty-two. Different questions require different calculations from the same pair.

A title saying only “Results” gives little guidance. Try a concise title, “Counts in two months,” with an adjacent sentence: “The count rose by two, from ten to twelve.” Check that the title, axis and explanation refer to the same numbers.

For an actual report, also identify the decision and its reader. A person preparing supplies may need counts; someone comparing spending may need unit prices and total costs. Choose a question the available table can answer before presenting information that has not been observed.

기초Foundations

3. 빈칸을 남겨도 읽을 수 있는 표를 만든다3. Make a readable table that retains missingness

설명용 값이 2, 빈칸, 4라고 합시다. 전체 기록은 3개, 가용값은 2개, 가용 합은 6입니다. 관측한 두 값의 평균은 6/2=3입니다. 빈칸을 0으로 채워 전체 세 행을 평균하면 6/3=2로 다른 계산이 됩니다.

설명용 세 기록의 서로 다른 분모
항목값
전체 기록 수3
가용값 수2
미가용값 수1
가용값 평균3

“평균 3”만 표시하는 대신 “가용 2개 평균 3 · 전체 3개 중 1개 미가용”이라고 쓰면 독자가 분모를 다시 찾지 않아도 됩니다. 표의 빈칸에는 “미가용”이라는 글자와 범례를 둘 수 있습니다. 측정한 0과 미가용은 다른 상태로 남깁니다.

화면 글자를 채우는 것과 숫자를 대체하는 것은 다릅니다. 빈칸을 “미가용”으로 표시해도 원래 계산 입력은 결측으로 보존할 수 있습니다. 이 장의 실습에서도 원위치·원문 값·가용 수를 함께 보여 줍니다.

Consider the toy values two, missing and four. There are three records, two available values and available sum six. Their available mean is 6/2=3. Filling the missing value with zero and averaging all three gives 6/3=2, a different calculation.

Different denominators for three toy records
QuantityValue
All records3
Available values2
Unavailable values1
Available mean3

Instead of showing only “Mean: 3,” write “Mean of two available values: 3; one of three records unavailable.” Readers can then find the denominator directly. A visible “Unavailable” label can explain an empty cell while keeping observed zero distinct.

Filling a display cell with a word is different from replacing a numerical input. The calculation can retain missingness while the screen supplies a readable label. The labs preserve original positions, original text and available counts.

기초Foundations

4. 1.245를 어떤 규칙으로 짧게 쓰는가4. State the rule used to shorten 1.245

소수 둘째 자리까지 나타내는 간격은 0.01입니다. 1.245는 1.24와 1.25의 정확한 중간입니다. 여기서는 가장 가까운 0.01의 배수를 고르고, 정확한 중간이면 0에서 먼 쪽을 고르겠습니다. 따라서 1.245→1.25, −1.245→−1.25입니다.

이 규칙은 원래 수를 바꾸는 지시가 아니라 표시값을 정하는 규칙입니다. 원문 문자열 “1.245”와 정확한 값 249/200을 남기고, 화면에서만 “1.25”라고 쓸 수 있습니다. 표시 자릿수가 두 자리라고 측정 오차도 0.01이라고 결론 내리지는 않습니다.

1.245=2492001.25−1.245=0.005−1.25−(−1.245)=−0.005\begin{gathered}1.245=\frac{249}{200}\\1.25-1.245=0.005\\-1.25-(-1.245)=-0.005\end{gathered}

언어의 기본 반올림 함수를 사용할 때는 그 함수의 중간값 규칙도 읽어야 합니다. 예를 들어 R의 기본 round는 대체로 가까운 짝수 쪽의 중간값 규칙을 설명하며, 실제 십진 입력의 이진 표현도 관련됩니다. 고정 참조 코드는 이 수업의 규칙을 별도 함수로 명시합니다.

Two decimal places use multiples of 0.01. The exact number 1.245 lies midway between 1.24 and 1.25. Here we choose the nearest multiple, sending exact halfway ties away from zero. Thus 1.245 becomes 1.25 and −1.245 becomes −1.25.

This defines a display value rather than replacing the original number. Retain the text “1.245” and exact value 249/200 while displaying “1.25.” Two display places do not establish a measurement error of 0.01.

1.245=2492001.25−1.245=0.005−1.25−(−1.245)=−0.005\begin{gathered}1.245=\frac{249}{200}\\1.25-1.245=0.005\\-1.25-(-1.245)=-0.005\end{gathered}

Read a programming language’s midpoint rule before using its default function. R’s round documentation generally describes ties toward the nearest even digit, with binary representation also relevant. The fixed references implement this lesson’s declared rule separately.

기초Foundations

5. 세 개를 각각 반올림한 합은 다를 수 있다5. Summing rounded rows can change the total

세 값이 모두 0.005라고 합시다. 원래 합은 0.005×3=0.015입니다. 각 행을 먼저 소수 둘째 자리로 반올림하면 0.01이 세 개라 합은 0.03입니다. 반면 원래 합 0.015를 마지막에 한 번 반올림하면 0.02입니다. 세 결과의 계산 순서가 다릅니다.

설명용 0.005 세 개 · 정확한 중간은 0에서 먼 쪽
계산 순서결과
원래 세 값의 합0.015
각 값을 반올림한 뒤 합0.03
원래 합을 한 번 반올림0.02

보고서에서 보이는 행 합이 표시된 총합과 조금 다르면 먼저 이 순서를 확인합니다. 숨은 값을 마음대로 수정해 표를 맞추기보다, 총합이 원값에서 계산되었는지와 표시 규칙을 밝힙니다. 필요하면 더 정밀한 수를 펼쳐 볼 수 있게 합니다.

Suppose all three values are exactly 0.005. Their original sum is 0.015. Rounding each row first gives three copies of 0.01, totaling 0.03. Rounding the original total once gives 0.02 instead. These are different calculation orders.

Three toy values of 0.005 · halfway ties away from zero
Order of calculationResult
Sum of original values0.015
Sum after rounding every row0.03
Original sum rounded once0.02

When displayed rows do not quite add to the displayed total, first check the order. State whether the total was calculated from original values and explain the display rule. Additional precision can be available on demand without changing hidden values merely to make the visible sum agree.

기초Foundations

6. 원래 평균과 표시된 행의 평균을 나눈다6. Separate the original mean from the mean of displayed rows

같은 세 값 0.005의 원래 평균은 0.015/3=0.005입니다. 각 행을 반올림한 뒤 평균하면 0.03/3=0.01입니다. 원래 평균을 마지막에 반올림해도 이 예에서는 0.01이지만, 계산한 대상은 서로 다릅니다.

다른 설명용 두 값 0.004와 0.014를 보세요. 원래 평균은 0.009라 두 자리 표시가 0.01입니다. 먼저 표시한 행 0.00과 0.01을 평균하면 0.005입니다. 그 중간 결과를 다시 표시하는지에 따라서도 화면 숫자가 달라집니다.

따라서 “평균”의 계산에는 원값과 가용 분모를 쓰고, 표시 자릿수를 별도 설정하는 방법이 자연스럽습니다. 실습은 원래 합·평균, 반올림한 행의 합, 원래 평균의 표시를 다른 칸에 둡니다.

The original mean of three values 0.005 is 0.015/3=0.005. Averaging their rounded rows gives 0.03/3=0.01. Rounding the original mean once also gives 0.01 in this example, but the objects being calculated differ.

For another toy pair, 0.004 and 0.014, the original mean is 0.009 and its two-place display is 0.01. Averaging the displayed rows 0.00 and 0.01 gives 0.005. Formatting that intermediate result again adds another operation.

A clear workflow uses original values and the available denominator for the mean, with display digits specified separately. The lab shows original sum and mean, sum of rounded rows and the formatted original mean in separate fields.

기초Foundations

7. 한 행의 오차를 합해서 전체 오차를 제한한다7. Bound total error using each row’s error

가장 가까운 0.01의 배수를 고르면 어느 유한한 값도 원래 수에서 0.005보다 멀리 움직이지 않습니다. 가용 n≥1개 원값을 xᵢ, 각각의 표시값을 rᵢ라고 합시다. 각 오차의 절댓값이 0.005 이하이므로 합 오차의 절댓값은 최대 n×0.005입니다.

∣ri−xi∣≤0.005∣∑i=1n(ri−xi)∣≤∑i=1n∣ri−xi∣≤0.005n\begin{gathered}|r_i-x_i|\le0.005\\\left|\sum_{i=1}^{n}(r_i-x_i)\right|\\\le\sum_{i=1}^{n}|r_i-x_i|\\\le0.005n\end{gathered}

세 개의 0.005는 모두 위로 0.005씩 움직여 합 오차 0.015를 만듭니다. 따라서 이 상계가 실제로 달성되는 예도 있습니다. 양·음 오차가 서로 상쇄되면 더 작을 수 있습니다. 이 수는 측정 오차나 표본 오차가 아니라 선언한 표시 변환의 오차입니다.

Nearest-multiple rounding at spacing 0.01 moves any finite value by at most 0.005. For n≥1 available originals xᵢ and displayed values rᵢ, the triangle inequality bounds the error in their summed rows by 0.005n:

∣ri−xi∣≤0.005∣∑i=1n(ri−xi)∣≤∑i=1n∣ri−xi∣≤0.005n\begin{gathered}|r_i-x_i|\le0.005\\\left|\sum_{i=1}^{n}(r_i-x_i)\right|\\\le\sum_{i=1}^{n}|r_i-x_i|\\\le0.005n\end{gathered}

Three copies of 0.005 each move upward by 0.005, attaining total error 0.015. Opposite signed errors may instead cancel. This bound concerns the declared display transformation, separately from measurement or sampling uncertainty.

기초Foundations

8. 실습 A: 원문 값과 짧은 표시를 함께 읽는다8. Lab A: Read original text alongside its shorter display

정확한 수는 따옴표로 감싼 문자열, 결측은 null로 입력합니다. 기본 1.245, 결측, 2.675에서 두 자리 표시를 먼저 손으로 계산해 보세요. 다음에는 양·음 중간값과 0.005 세 개를 넣어 합 차이를 살펴보세요.

가용값이 하나도 없으면 합 0과 평균 미정의를 구별합니다. 빈 목록을 유효하게 읽었다는 사실이 평균 0을 뜻하지 않습니다. 새 입력은 브라우저 JavaScript의 정확 분수 계산이며, 아래 고정 Python/R 기록은 실제로 실행한 선택 사례입니다.

Enter exact numbers as quoted text and missingness as null. First calculate the two-place displays for the default 1.245, missing and 2.675 by hand. Then compare positive and negative halfway ties and three copies of 0.005.

With no available values, distinguish sum zero from an undefined mean. Successfully reading an empty list does not produce mean zero. New inputs use exact-fraction browser JavaScript; the fixed Python/R records below are selected examples that actually ran.

기초Foundations

9. 같은 10과 12라도 막대 높이의 비는 달라진다9. The same ten and twelve can give different bar-height ratios

바닥을 0에 두면 높이는 10과 12라 비가 12/10=1.2입니다. 바닥을 9로 옮기면 높이는 1과 3이라 비가 3입니다. 원래 개수가 세 배가 된 것이 아니라, 9를 뺀 높이가 세 배가 된 것입니다.

원래 값은 언제나 10과 12
선택한 바닥첫 높이다음 높이높이 비
010121.2
9133

바닥 9를 표시한 그림으로 차이 2를 살필 수는 있습니다. 다만 막대 면적·높이를 원값의 크기처럼 읽는 독자에게는 크게 다른 인상을 줍니다. 독자가 원래 10과 12를 바로 찾게 수치 라벨과 표를 붙이고, 원래 증가율 20%와 높이 비 3을 구분합니다.

With origin zero, heights are ten and twelve, giving ratio 1.2. With origin nine, heights are one and three, giving ratio three. The original count did not triple; the displayed height after subtracting nine did.

Original values remain ten and twelve
Chosen originFirst heightNext heightHeight ratio
010121.2
9133

An axis beginning at nine can show the difference two. But readers interpreting bar heights or areas as original magnitudes may receive a very different impression. Give direct value labels and a table, and keep the original twenty-percent increase distinct from the height ratio three.

기초Foundations

10. 막대와 선에서 독자가 비교하는 것을 적는다10. State what readers should compare in bars and lines

막대의 바닥은 높이를 재는 기준입니다. 선 그래프에서는 연속된 점의 방향과 변화가 중심 질문일 수 있습니다. 어느 모양을 고르든 축의 범위와 수치 라벨이 있어야 독자가 무엇을 비교하는지 확인할 수 있습니다.

예를 들어 99, 100, 101이라는 세 시점 값을 98–102 범위의 선으로 그리면 작은 변화가 보입니다. 동시에 표에 세 수를 남기고 “시점별 값, 단위 X”를 붙이면 변화와 원래 크기를 함께 읽습니다. 축을 선택했다는 이유만으로 수치가 틀린 것은 아니지만, 범위를 숨기면 해석이 달라질 수 있습니다.

이 장의 축 실습은 막대에서 바닥을 바꾼 효과를 별도로 계산합니다. 모든 선 그래프를 0에서 시작해야 한다는 규칙을 증명하는 함수가 아닙니다. 먼저 비교 질문을 정하고 그 질문에 필요한 원값과 범위를 보여 줍니다.

A bar’s baseline determines the height being measured. For a line chart, the direction and change between successive points may be the main question. Either form needs visible ranges and values so readers can check the intended comparison.

For example, a line showing 99, 100 and 101 on a 98–102 axis reveals a small change. A table retaining all three numbers and a caption naming the unit make both change and original magnitude available. Choosing an axis does not make a value false, but hiding that range can change its interpretation.

The axis lab specifically calculates the effect of a bar origin. It does not prove that every line chart must start at zero. Choose a comparison question, then expose the original values and range needed to answer it.

기초Foundations

11. 첫 값이 0이면 증가율의 분모가 없다11. A zero first value has no relative-change denominator

첫 값이 0, 다음 값이 12이면 차이는 12입니다. 그러나 (12−0)/0과 12/0은 정의되지 않습니다. “무한 퍼센트 성장”이라는 표시로 대신하지 않고, “0에서 12로 12 증가 · 기존 값 기준 증가율 미정의”라고 쓸 수 있습니다.

첫 값 10에 바닥 10을 택해도 첫 높이가 0이라 다음 높이와의 비가 정의되지 않습니다. 바닥 11을 택하면 첫 높이는 −1이 됩니다. 계산한 차이는 남길 수 있지만 두 원값을 양의 막대 높이로 나타낸 비처럼 보고하지 않습니다.

실습은 원래 값의 비, 증가율, 부호 있는 높이를 각각 표시하고 정의된 경우에만 높이 비를 줍니다. 정의되지 않은 칸은 관측값 0과 다른 문구로 나타냅니다.

If the first value is zero and the next twelve, the difference is twelve. Neither (12−0)/0 nor 12/0 is defined. A readable report can say “Increased by twelve, from zero to twelve; relative growth against the original value is undefined.”

Choosing origin ten for an original first value ten also gives first height zero and an undefined height ratio. Origin eleven gives first height −1. Retain the signed difference without reporting it as a ratio of two positive bar heights.

The lab separates original-value ratio, relative change and signed heights, returning a height ratio only when defined. An undefined field is labeled differently from observed zero.

기초Foundations

12. 단위는 축에서 짧게, 범위는 설명문에서 자세히 쓴다12. Keep axis units concise and scope visible nearby

“시급”이라는 축에 548을 표시하면 센트인지 달러인지 알 수 없습니다. 실제 한 기록의 548센트/시간은 5.48달러/시간입니다. 숫자를 100으로 나눌 때는 축 단위도 바꿉니다. 반면 사람 수 3,017은 이 단위 변환으로 달라지지 않습니다.

축에는 “1976 USD/시간”처럼 짧게 쓰고, 설명문에 원자료·가용 분모·기간·환산을 풀어 쓰면 작은 화면에서 긴 문장이 그림을 밀어내지 않습니다. 선택 범위 밖 값이 있는지도 세어 알려 주세요. 범위를 바꿨다는 이유로 행이 조용히 사라지게 두지 않습니다.

이 장에서 단위 변환과 반올림은 계산 순서가 드러나야 합니다. 원래 센트 값을 달러로 정확히 바꾼 뒤 표시하는지, 먼저 센트 값을 반올림했는지를 구분합니다. 다운로드에는 원래 필드와 단위를 남깁니다.

An axis called only “Hourly wage” leaves 548 ambiguous. One actual source record has 548 cents per hour, equal to 5.48 dollars per hour. Dividing the value by one hundred requires changing the unit label. The count of 3,017 available people does not change.

Use a concise axis such as “1976 USD/hour,” placing source, denominator, period and conversion details in visible adjacent text. Count values outside the chosen range so a display choice does not silently remove records.

Make the order of conversion and rounding visible. Converting original cents exactly before formatting can differ from rounding cents first. Keep the original field and unit in the downloadable data.

기초Foundations

13. 실제 여섯 연도는 단위와 원값을 함께 남긴다13. Retain units and originals for six actual years

보관한 한국 2019–2024년 실질 1인당 GDP 여섯 값은 2015년 고정 USD/사람 단위입니다. 아래 표는 소수 셋째 자리 표시이며, 다운로드에는 받은 원십진을 남깁니다. 현재 달러의 명목 금액이나 임의 개인의 소득으로 바꿔 부르지 않습니다.

실제 보관 GDP 자료 · 소수 셋째 자리 표시
연도표시값 · 2015 고정 USD/사람
201933,496.311
202033,215.930
202134,792.940
202235,809.014
202336,347.704
202437,048.426

2019년에서 2024년의 원래 값 기준 증가는 약 10.604496%입니다. 바닥 33,000을 택하면 두 높이의 비는 약 8.157029입니다. 이 높이 비는 경제 성장 배수가 아닙니다. 단위와 원래 두 수를 같이 읽으면 왜 두 비가 다른지 앞의 10과 12 예와 연결할 수 있습니다.

자료는 보관한 API 응답의 선택 관측입니다. 화면의 표시 자릿수·선택 연도·막대 바닥을 바꿔도 원 응답과 원문 수치를 덮어쓰지 않습니다.

The six retained Korean GDP-per-person observations cover 2019–2024 in constant 2015 USD per person. This table displays three decimal places; the download retains received decimal text. These are not current-dollar nominal amounts or an individual person’s income.

Actual retained GDP observations · three display places
YearDisplay · constant 2015 USD/person
201933,496.311
202033,215.930
202134,792.940
202235,809.014
202336,347.704
202437,048.426

The change from the original 2019 value to the original 2024 value is about 10.604496%. Choosing origin 33,000 produces a height ratio about 8.157029. That is not an economic growth multiple. The original pair and units explain the difference, just as in the ten-and-twelve example.

These are selected observations from retained API replies. Changing display digits, selected years or a bar origin does not overwrite those replies or their original numerical text.

기초Foundations

14. 실습 B: 원래 증가와 높이의 비를 나란히 둔다14. Lab B: Compare original growth with height ratios

기본 10→12에서 바닥을 0과 9로 바꾸세요. 차이 2와 증가율 20%가 그대로인 동안 높이 비는 1.2에서 3으로 바뀝니다. 다음에는 첫 값을 0으로 놓고, 어떤 칸이 미정의가 되는지 원래 분모로 설명해 보세요.

허용 입력은 음수가 아닌 두 원값과 바닥입니다. 바닥이 값보다 높아도 원값을 삭제하지 않고 부호 있는 높이를 남기며, 양의 높이 비가 성립하는 조건을 따로 확인합니다. 실제 GDP 선택은 마지막 실습에서 같은 계산으로 연결합니다.

Change the origin from zero to nine for the default ten→twelve example. Difference two and original growth twenty percent remain unchanged while the height ratio changes from 1.2 to three. Then set the original first value to zero and explain undefined fields through their denominators.

Inputs are two nonnegative original values and a nonnegative origin. An origin above a value retains the signed height instead of deleting the source value. The positive-height ratio conditions are checked separately. The final actual-data lab connects the same calculations to retained GDP observations.

기초Foundations

15. 색 두 개도 명시한 숫자 규칙으로 비교한다15. Compare two colors through an explicit numerical rule

화면의 검정과 흰색을 예로 들면, 밝기 차이가 큰 글자는 배경에서 찾기 쉽습니다. 하지만 RGB 숫자를 그냥 더한 값이 읽기 쉬움의 척도는 아닙니다. 이 실습은 불투명한 여섯 자리 sRGB 색을 골라 W3C가 정한 상대 휘도와 대비비를 계산합니다.

예를 들어 #767676의 각 채널은 16진수 76, 즉 118입니다. 먼저 118/255로 0–1 범위로 옮기고, 아래 변환을 적용합니다. 빨강·초록·파랑의 변환값을 R, G, B라고 부릅니다. 가중치는 합해서 1입니다.

cs=channel255c={cs/12.92,cs≤0.04045((cs+0.055)/1.055)2.4,cs>0.04045L=0.2126R+0.7152G+0.0722B\begin{gathered}c_s=\frac{\text{channel}}{255}\\c=\begin{cases}c_s/12.92,&c_s\le0.04045\\((c_s+0.055)/1.055)^{2.4},&c_s>0.04045\end{cases}\\L=0.2126R+0.7152G+0.0722B\end{gathered}

이 계산에는 소수의 거듭제곱이 있어 화면 대비비는 수치 근사입니다. 투명도와 배경 이미지·번짐·글꼴 크기까지 전부 검사하는 함수로 읽지 않습니다. 두 색을 어떻게 입력했고 어느 수를 비교했는지는 직접 확인할 수 있습니다.

Black text on white illustrates how brightness differences can help readers locate letters. Simply adding RGB values is not the rule used here. For two opaque six-digit sRGB colors, this lab calculates W3C relative luminance and contrast ratio.

For #767676, each hexadecimal 76 channel equals 118. Divide by 255, then apply the transformation below. Let R, G and B denote the transformed channels; the luminance weights sum to one.

cs=channel255c={cs/12.92,cs≤0.04045((cs+0.055)/1.055)2.4,cs>0.04045L=0.2126R+0.7152G+0.0722B\begin{gathered}c_s=\frac{\text{channel}}{255}\\c=\begin{cases}c_s/12.92,&c_s\le0.04045\\((c_s+0.055)/1.055)^{2.4},&c_s>0.04045\end{cases}\\L=0.2126R+0.7152G+0.0722B\end{gathered}

Fractional powers make the displayed result a numerical approximation. This calculation does not inspect transparency, background images, blur or every font-size requirement. It does make the supplied pair and the compared numerical quantities inspectable.

기초Foundations

16. 4.5 바로 위와 아래를 반올림하기 전에 비교한다16. Compare values just above and below 4.5 before rounding

밝은 쪽 상대 휘도를 L₁, 어두운 쪽을 L₂라고 두면 대비비는 아래 값입니다. 검정은 휘도 0, 흰색은 1이라 대비비가 (1+0.05)/(0+0.05)=21입니다. 같은 색 두 개의 대비비는 1입니다.

contrast=L1+0.05L2+0.05\mathrm{contrast}=\frac{L_1+0.05}{L_2+0.05}

흰 배경의 #767676 글자는 대비비가 약 4.542이고, #777777은 약 4.478입니다. 보통 크기 글자의 선택한 4.5 기준과 비교하면 앞은 넘고 뒤는 못 넘습니다. 둘 다 소수 첫째 자리 표시가 4.5처럼 보일 수 있으므로, 표시를 반올림한 숫자로 기준을 판정하지 않습니다.

실습은 원래 계산한 근사값을 기준과 비교하고, 경계에 너무 가까운 수치 해상도에서는 판정을 유보하는 상태도 둡니다. 이 한 쌍의 수치 비교와 실제 사용자가 전체 화면을 읽는 경험은 별도로 확인합니다.

Let L₁ be the lighter relative luminance and L₂ the darker. Black has luminance zero and white one, giving contrast 21. Identical colors give contrast one:

contrast=L1+0.05L2+0.05\mathrm{contrast}=\frac{L_1+0.05}{L_2+0.05}

Against white, #767676 has contrast about 4.542 and #777777 about 4.478. The first exceeds the chosen ordinary-text threshold 4.5; the second does not. Both can display as 4.5 at one decimal place. Do not classify them using that rounded display.

The lab compares the underlying numerical result, with a separate indeterminate status when a threshold is too close for its numerical resolution. Checking the actual reading experience across the whole screen is a separate task.

기초Foundations

17. 같은 색이라도 비교할 글자 조건을 먼저 고른다17. Choose the text condition before selecting a contrast threshold

이 실습의 보통 글자 비교값은 4.5입니다. 큰 글자에 사용하는 3이라는 비교값을 선택할 수도 있지만, 숫자 3을 고른 행위가 화면 글자를 크게 만드는 것은 아닙니다. W3C의 큰 글자 설명은 일반적으로 18포인트 이상 또는 굵은 14포인트 이상을 구분하며 실제 글꼴과 표시 크기도 살핍니다.

강화 비교값 7은 이 실습에서 보통 글자에 쓰는 수치 선택입니다. 큰 글자의 강화 조건 등 다른 경우까지 자동으로 판정하는 단추가 아닙니다. 두 색·선택 기준·계산값을 함께 쓰면 어떤 질문에 답했는지 알 수 있습니다.

예를 들어 “흰 배경의 #777777은 계산 대비 약 4.478이므로 보통 글자 기준 4.5에 못 미친다”는 문장은 입력과 비교를 명시합니다. “우리 화면 전체를 누구나 읽을 수 있다”는 결론에는 실제 글자·조작·내용·다른 표시 조건을 더 확인해야 합니다.

The lab’s ordinary-text comparison uses 4.5. A user may instead select the large-text comparison 3, but selecting that number does not enlarge the displayed text. W3C’s large-text explanation generally distinguishes at least 18-point text or 14-point bold, with actual font and rendered size relevant.

The enhanced comparison 7 in this lab refers to ordinary text. It does not automatically classify every other case, including enhanced large text. Reporting the color pair, selected criterion and calculated result states what was checked.

For example, “#777777 against white has computed contrast about 4.478, below the ordinary-text threshold 4.5” names an input and comparison. Concluding that everyone can read the entire screen requires further examination of text, interaction, content and other display conditions.

기초Foundations

18. 색 이름 대신 값·선·글자를 함께 둔다18. Provide values, lines and words alongside color

설명용 그림의 파란 막대는 10, 주황 막대는 12라고 합시다. 범례에 “파랑/주황”만 쓰면 색을 구별하기 어려운 독자에게 어느 값이 어느 기간인지 찾는 일이 남습니다. 막대 바로 아래에 “첫 달/다음 달”, 위나 표에 “10/12”를 쓰면 같은 정보를 다른 방식으로 읽을 수 있습니다.

선 두 개를 비교할 때는 선 이름을 끝에 직접 붙이거나 서로 다른 선 모양을 함께 사용할 수 있습니다. 문장에는 “A는 10에서 12로 증가했고 B는 8을 유지했다”처럼 중요한 관계를 적습니다. 색을 제거했을 때도 질문에 답할 자료가 남는지 보세요.

복잡한 그림에는 짧은 설명으로 그림의 이름과 목적을 알리고, 가까운 글이나 표로 값·축 범위·중요한 관계를 제공합니다. 모든 숫자를 아주 긴 한 문장에 넣기보다 독자가 필요한 부분을 찾을 수 있게 구조를 나눕니다.

Suppose blue and orange bars represent ten and twelve. A legend saying only “blue/orange” still leaves readers who cannot distinguish those colors to identify each period. Labels “First/Next month” below the bars and values 10/12 above them or in a table give another reading path.

For two lines, place names near their ends or combine color with different line patterns. A sentence can state the important relationship: “A rose from ten to twelve while B remained eight.” Check whether the comparison remains answerable without color.

For a complex chart, a short description identifies its purpose, while nearby text or a table supplies values, ranges and important relationships. Structure that information so readers can find a needed part instead of packing every number into one long sentence.

기초Foundations

19. 표의 제목과 열 이름을 실제 구조로 연결한다19. Connect table captions and column headers structurally

앞의 두 달 표에는 표 전체를 설명하는 제목과 “기간/개수”라는 열 이름이 있습니다. HTML에서는 표 제목을 caption에, 열 이름을 th에 넣고 scope="col"로 열 방향을 명시할 수 있습니다. 화면에서 굵게만 보이게 만든 글자와 열 머리글이라는 구조는 다릅니다.

숫자 10을 읽을 때 “개수”라는 열과 “첫 달”이라는 행의 관계를 찾는 것이 목적입니다. 복잡한 다단 머리글은 연결 규칙을 더 설계해야 하므로 작은 두 열 표의 방법이 모든 표에 충분하다고 일반화하지 않습니다.

작은 화면에서 표를 가로로 움직여야 한다면 키보드로 해당 영역에 도달할 수 있는지, 앞의 제목과 뒤의 설명이 남는지도 확인합니다. 표 구조를 작성한 뒤 실제 화면·키보드·사용 보조 도구로 읽는 확인은 별도 작업입니다.

The two-month table has a caption describing the table and columns named “Period/Count.” HTML can use caption for the title, th for headers and scope="col" to name their column direction. Bold-looking text alone does not establish a header relationship.

The goal is to connect the value ten with the count column and first-month row. More complex header structures require additional design; a small two-column method is not automatically sufficient for every table.

When a table scrolls horizontally on a small screen, check keyboard access to the region and whether its title and description remain available. Writing semantic structure is followed by actual screen, keyboard and assistive-tool checks.

기초Foundations

20. 실습 C: 계산한 대비와 실제 색 쌍을 읽는다20. Lab C: Read a color pair and its numerical contrast

전경과 배경에 여섯 자리 색 코드를 입력합니다. 먼저 검정/흰색의 21과 같은 색끼리의 1을 확인하세요. 다음에는 흰 배경에서 #767676과 #777777을 비교하고, 표시된 소수만으로 기준을 판정했을 때 생길 차이를 설명해 보세요.

이 실습은 불투명 색 쌍의 계산입니다. 입력한 글자 크기를 자동으로 측정하지 않으므로 큰 글자 기준을 고르면 그 조건은 사용자가 별도로 확인해야 합니다. 실제 화면 조작과 전체 읽기 경험은 마지막 검토에서 따로 살핍니다.

Enter six-digit foreground and background colors. First check black/white at 21 and identical colors at one. Then compare #767676 and #777777 on white, explaining why classification from a rounded display could differ.

This is an opaque-pair calculation. It does not automatically measure font size, so selecting the large-text criterion requires a separate check of that condition. Actual interaction and the complete reading experience receive their own final review.

기초Foundations

21. 계산에 있는 칸과 공개하는 칸을 구분한다21. Distinguish calculation fields from released fields

설명용 집단 A에는 가용 2개·합 4·평균 2, 집단 B에는 가용 1개·합 10·평균 10이 있습니다. 보고 목적이 집단별 가용 수와 평균을 설명하는 것이라면 “집단/가용 수/평균” 세 칸을 먼저 고를 수 있습니다. 계산 내부의 합까지 반드시 같은 표에 보여야 하는 것은 아닙니다.

선택한 공개 칸의 설명용 표
집단가용 수평균
A22
B110

어떤 칸을 보여 주고 어떤 칸을 뺐는지 기록하면 보고서 내용을 검토하기 쉽습니다. 그렇다고 이 예의 B 평균이 한 사람 값 10을 그대로 드러낸다는 사실이 없어지지는 않습니다. “이름 열을 뺐다”와 “개별 수치가 드러나지 않는다”는 다른 주장입니다.

실습은 사용자가 제공한 작은 집계와 공개 칸 선택을 계산합니다. 공개 권한이나 외부의 이름 자료를 조회하는 기능은 없으며, 실제 개인 자료는 원래 공개된 두 집계행 범위만 사용합니다.

In a toy example, group A has two available values, sum four and mean two; group B has one, sum ten and mean ten. A report about available counts and means can select the three columns “Group/Available count/Mean” without also displaying every internal calculation field.

Toy table of selected release fields
GroupAvailable countMean
A22
B110

Recording included and omitted fields makes the report inspectable. It does not remove the fact that B’s mean reveals its single value ten. Removing a name column and preventing disclosure of an individual value are different claims.

The lab calculates supplied small aggregates and a field selection. It does not look up release permission or outside name files. Its actual personal-data input consists only of two already-public aggregate rows.

기초Foundations

22. 합에서 알려진 부분을 빼면 한 값이 드러날 수 있다22. Subtracting a known part can reveal one remaining value

설명용으로 가용값 3개의 합이 18이라고 합시다. 그중 알려진 2개의 합이 10이면 남은 개수는 1, 남은 합은 8입니다. 그 한 값은 8로 정해집니다. 이름 열을 사용하지 않아도 집계 사이의 관계가 이 숫자를 정합니다.

nrest=3−2=1Srest=18−10=8xrest=8\begin{gathered}n_{\rm rest}=3-2=1\\S_{\rm rest}=18-10=8\\x_{\rm rest}=8\end{gathered}

이 빼기는 부분 집계가 같은 전체 집계에 들어가고, 나머지와 겹치지 않으며 같은 유한 수치 정의를 사용한다는 조건이 필요합니다. 다른 연도나 다른 가용 집합의 합을 빼면 위 결론을 그대로 쓸 수 없습니다.

반면 3개 합 18에서 1개 합 4를 빼면 2개 합 14, 평균 7입니다. 그 두 값은 6과 8일 수도 있고 0과 14일 수도 있습니다. 평균이 7이라는 계산이 두 사람 각각을 7로 채우라는 뜻은 아닙니다.

Suppose three available values sum to eighteen, and a known part containing two of them sums to ten. The remainder has count one and sum eight, fixing that single value at eight. Relations between aggregates establish the number without a name column.

nrest=3−2=1Srest=18−10=8xrest=8\begin{gathered}n_{\rm rest}=3-2=1\\S_{\rm rest}=18-10=8\\x_{\rm rest}=8\end{gathered}

The subtraction assumes that the part belongs to the same total, is disjoint from the remainder and uses the same finite numerical definition. Totals from different years or available sets do not automatically satisfy these conditions.

Subtracting one value summing to four instead leaves two values summing to fourteen, with mean seven. They could be six and eight, or zero and fourteen. A remainder mean does not instruct us to fill both individuals with that mean.

기초Foundations

23. 집단 평균을 합칠 때는 가용 수를 곱한다23. Weight group means by their available counts

집단 A의 평균 2는 값 2개에서 왔고, B의 평균 10은 값 1개에서 왔습니다. 두 평균을 그냥 반반 평균하면 (2+10)/2=6입니다. 원래 세 값의 평균을 구하려면 A의 합 2×2=4와 B의 합 1×10=10을 더해 3으로 나누어 14/3을 얻습니다.

S=2⋅2+1⋅10=14n=2+1=3xˉ=143\begin{gathered}S=2\cdot2+1\cdot10=14\\n=2+1=3\\\bar x=\frac{14}{3}\end{gathered}

앞의 6은 집단마다 같은 무게를 준 평균이고 14/3은 가용 기록마다 같은 무게를 준 평균입니다. 어느 대상을 평균하는지 라벨을 붙이면 두 계산을 혼동하지 않습니다. 집단 전체 원행 수와 가용 수가 다르면, 가용값의 평균을 합칠 때 어느 수를 곱하는지도 다시 확인합니다.

A’s mean two comes from two available values, while B’s mean ten comes from one. Equal weighting of the two means gives six. To recover the mean of the original three available values, restore sums four and ten and divide their total by three:

S=2⋅2+1⋅10=14n=2+1=3xˉ=143\begin{gathered}S=2\cdot2+1\cdot10=14\\n=2+1=3\\\bar x=\frac{14}{3}\end{gathered}

Six weights groups equally; 14/3 weights available records equally. Label the object being averaged. If a group’s source-row count differs from its available count, check which count belongs in the reconstruction of an available-value sum.

기초Foundations

24. 공개된 두 교육 집계는 원행·가용·미가용을 남긴다24. Retain source, available and missing counts in two public groups

실제 개인 자료의 이 보고서는 학력연수 12 이하와 12 초과의 두 집계행만 제공합니다. 전체 3,613개 원기록에서 원문 절단 로그가 가용한 것은 3,010개입니다. 이 장의 실행 참조는 개별 기록이나 개인 코드를 다시 싣지 않습니다.

공개된 실제 두 집계 · 원문 1976년 시간당 센트 임금의 절단 로그
교육 집단원기록가용 로그미가용 로그
12 이하18061489317
12 초과18071521286

각 행에서 1,489+317=1,806, 1,521+286=1,807입니다. 두 집단을 합하면 가용 3,010·미가용 603·전체 3,613이 됩니다. 평균의 분모에는 각각 1,489와 1,521을 씁니다. 1,806과 1,807을 쓰는 계산은 다른 값입니다.

이 집계는 수치를 설명하기 위해 선택한 공개 형태입니다. 외부 자료와의 연결 가능성이나 형식적 익명성을 모든 경우에 보장한다고 부르지 않습니다. 현재 다운로드가 어떤 칸과 몇 행을 담는지는 직접 확인할 수 있습니다.

The actual person report contains only two aggregate rows, for schooling at or below twelve and above twelve. The source contains 3,613 records, of which 3,010 have available source-trimmed logs. This chapter’s fixed references do not reload individual records or codes.

Two actual public aggregates · source-trimmed log 1976 cents-per-hour wages
Education bandSource recordsAvailable logsUnavailable logs
At most 1218061489317
Above 1218071521286

Within groups, 1,489+317=1,806 and 1,521+286=1,807. Together there are 3,010 available logs, 603 unavailable and 3,613 source records. Group means use denominators 1,489 and 1,521. Using 1,806 and 1,807 would calculate something else.

This is a chosen public summary format. It is not a universal guarantee against linkage or a proof of formal anonymity. The actual fields and row count in this download are directly inspectable.

기초Foundations

25. 뺀 정보와 남은 질문을 함께 설명한다25. Explain omitted information and the questions that remain

두 집계행의 공개 표에서는 집단 이름·원행 수·가용 수·미가용 수·합·평균 중 필요한 칸을 고를 수 있습니다. 그 선택은 독자가 어떤 계산을 재현할 수 있는지도 바꿉니다. 합을 빼도 가용 수와 정확 평균을 함께 주면 곱해서 합을 되찾을 수 있습니다.

개별 분포를 보지 못하면 중앙값·극값·각 개인의 변화는 이 집계만으로 일반적으로 정해지지 않습니다. 예를 들어 두 값 0·14와 6·8은 모두 합 14·평균 7이지만 범위는 다릅니다. 현재 표에서 계산할 수 있는 것과 추가 자료가 필요한 것을 작은 반례로 설명할 수 있습니다.

보고 목적에 필요한 정보와 현재 공개 권한을 확인한 뒤 필드를 정합니다. 이 실습의 필드 선택은 작은 집계 투영을 보여 주는 계산이며, 실제 승인 절차나 법적 판단을 대신하지 않습니다.

For the two public groups, a report can select among label, source count, available count, missing count, sum and mean. Selection changes which calculations readers can reproduce. Omitting a sum still permits its recovery if the exact mean and its available count are both supplied.

An aggregate generally does not determine a median, extremes or individual changes. For example, zero/fourteen and six/eight share sum fourteen and mean seven but have different ranges. A small counterexample explains which questions require additional information.

Choose fields after considering the report’s purpose and the relevant release authorization. The lab demonstrates projection of supplied small aggregates; it does not execute an actual approval process or legal assessment.

기초Foundations

26. 실습 D: 공개 칸과 나머지 합을 계산한다26. Lab D: Inspect selected fields and a remainder sum

설명용 집단 A와 B에서 공개할 칸을 바꾸어 보고, 반환된 보고 행에 선택한 칸만 들어 있는지 확인합니다. 별도 전체/부분 집계 예에서는 3개 합 18에서 2개 합 10을 빼 한 값 8이 드러나는 계산을 보세요.

전체와 부분이 실제로 포함 관계인지, 같은 가용 집합·시점·단위인지가 빼기의 전제입니다. 남은 수가 0이면 평균을 만들지 않고, 남은 수가 2 이상이면 평균을 개별 값처럼 써 넣지 않습니다. 실제 두 집계는 마지막 실습에서 읽습니다.

Change the released fields for toy groups A and B and check that the returned report rows contain only the selected fields. A separate total/part example subtracts two values summing to ten from three summing to eighteen, revealing one value eight.

Subtraction assumes an actual nested relationship and common available set, period and units. A zero remainder count has no mean. With two or more remaining records, the mean is not inserted as each individual value. The final lab reads the actual two-group summary.

기초Foundations

27. 숫자가 어느 파일에서 왔는지 따라가게 쓴다27. Make the path from a number to its file inspectable

설명용 파일 counts.csv에 10과 12가 있고, report.py가 차이 2를 계산했다고 합시다. 보고서에는 입력 파일, 읽은 열, 단위, 계산식, 출력 위치를 연결할 수 있습니다. 파일 이름이 같아도 내용이 바뀔 수 있어 입력 바이트 해시를 함께 남깁니다.

숫자 한 개의 계산 경로
연결할 것설명용 내용
입력counts.csv · count 열
단위개수
처리다음 값−첫 값
출력차이 2
범위설명용 두 행

해시는 받은 바이트가 같은지 대조하는 도구입니다. 그 파일의 주장 전체가 참이거나 올바른 사용 허가를 받았다는 결론을 자동으로 주지는 않습니다. 원래 게시처·자료 기간·보관일·선택 규칙을 글로 남기면 해시와 다른 역할을 합니다.

이 장의 실제 파일은 원출처와 선택 집계·표시 변환·실행 기록을 나누어 연결합니다. 브라우저에서 자릿수를 바꾼 동작은 그 보관 파일을 새로 내려받거나 새 Python/R 코드를 실행한 사건이 아닙니다.

Suppose counts.csv contains ten and twelve, and report.py calculates difference two. Link the input file, selected column, unit, calculation and output location. Because a filename can stay unchanged while content changes, retain an input byte digest too.

A path to one reported number
LinkToy content
Inputcounts.csv · count column
UnitCount
CalculationNext minus first
OutputDifference 2
ScopeTwo toy rows

A digest helps compare retained bytes. It does not establish every claim in the file or supply permission to use it. Publisher, period, retrieval date and selection rules serve different roles.

Actual files here connect original sources, selected aggregates, display transformations and execution records separately. Changing browser display digits is not a new source download or a new Python/R process.

기초Foundations

28. 출처 이름과 사용한 범위를 같이 남긴다28. Name a source together with the scope actually used

“공식 자료 사용”이라는 문장보다 “보관한 2019–2024년 한국 GDP 여섯 값의 해당 지표 열”이 계산 범위를 더 잘 알려 줍니다. 개인 자료에서는 공개된 교육 집계 두 행을 사용했다고 쓰며, 원자료 3,613행을 이 실습이 모두 새로 읽었다고 확대하지 않습니다.

출처 표시에는 기관·자료 이름·원주소·보관 시점과 선택 규칙을 넣을 수 있습니다. 원문에 사용 조건이나 저작자 표시 요구가 있다면 해당 원문을 확인하고 제공하는 파일과 설명에 맞게 남깁니다. 숫자를 인용한 것과 원본 그림·페이지를 배포한 것은 범위가 다를 수 있습니다.

보고서의 한 칸을 고치면 그 칸이 출처의 원값인지, 우리가 계산한 값인지, 표현 문구인지 먼저 구분합니다. 원값을 바꾼 새 분석과 축 제목을 짧게 고친 표시 수정은 다른 이력으로 남깁니다.

“Official data were used” is less precise than “The selected indicator column for six retained Korean GDP observations, 2019–2024.” For the person lab, say that two public education-group aggregates were read; do not expand that into a claim that the lab freshly read all 3,613 individual records.

A source record can name the publisher, dataset, original address, retention date and selection rule. Check source-specific use and attribution terms for the files being supplied. Citing a number and redistributing an original chart or page can involve different material.

Before changing a report cell, identify it as an original value, a derived value or presentation wording. A new analysis changing inputs and a shorter axis title belong to different revision histories.

기초Foundations

29. 14개의 설명용 결과를 네 칸에 놓는다29. Put fourteen toy outcomes into four cells

불만 표지가 없었던 10개 중 실제 이탈은 2개, 비이탈은 8개였습니다. 표지가 있었던 4개 중 이탈은 3개, 비이탈은 1개였다고 합시다. 표지가 있으면 이탈을 예측하는 규칙을 고르면 맞춘 이탈 3, 잘못 경고한 비이탈 1, 놓친 이탈 2, 맞춘 비이탈 8입니다.

14개 설명용 기록 · 행은 표지, 열은 나중 결과
설명용 불만 표지실제 비이탈실제 이탈
없음82
있음13

정확도는 맞춘 전체 3+8=11을 전체 14로 나눈 11/14입니다. 재현율은 실제 이탈 5개 중 맞춘 3/5이고, 정밀도는 경고한 4개 중 실제 이탈 3/4입니다. 분모가 각각 14·5·4로 다릅니다. 숫자가 비슷하다는 이유로 세 지표의 이름을 바꾸지 않습니다.

원자료의 행·열 의미를 적은 뒤 혼동표를 만들면 어떤 오류를 줄이는 선택인지 이야기하기 쉽습니다. 아직 개입의 효과나 다음 기간의 성능을 계산한 것은 아닙니다.

In a toy set, ten records had no complaint flag: eight later stayed and two churned. Four had a flag: one stayed and three churned. Predicting churn whenever flagged gives three true positives, one false positive, two false negatives and eight true negatives.

Fourteen toy records · rows are flags, columns later outcomes
Toy complaint flagObserved stayObserved churn
Absent82
Present13

Accuracy is 11/14, using all records. Recall is 3/5, using observed churners. Precision is 3/4, using positive predictions. The denominators are 14, five and four. Similar-looking numbers do not make the names interchangeable.

Writing the cell meanings before constructing a confusion table makes the error tradeoff clearer. These are retrospective label calculations, separately from an intervention effect or future-period performance.

기초Foundations

30. 오류 두 종류에 다른 벌점을 줄 수 있다30. Assign different penalties to two kinds of error

설명용 14개에서 아무도 이탈로 예측하지 않으면 놓친 이탈이 5개이고 잘못 경고한 수는 0입니다. 모두 이탈로 예측하면 잘못 경고한 수가 9개이고 놓친 이탈은 0입니다. 표지 규칙은 각각 1개와 2개입니다.

잘못 경고한 1개당 벌점을 a, 놓친 1개당 벌점을 b라고 정하고 a,b≥0으로 둡니다. 두 오류 수에 각각 곱해 합합니다. 같은 벌점 a=b=1이면 세 점수는 5·3·9라 표지 규칙이 최소입니다.

L=a FP+b FNL=a\,FP+b\,FN

a=1,b=4라면 세 점수는 20·9·9입니다. 표지와 전원 경고가 동률 최소입니다. 둘 다 0이면 세 규칙이 모두 동률입니다. 가정 벌점을 실제 전화비·정책 수익·절약한 매출처럼 바꿔 부르지 않고, 어떤 비교 기준을 선택했는지 보고합니다.

Predicting no churn in the fourteen toy records misses five churners and creates zero false alarms. Predicting all churn creates nine false alarms and misses none. The complaint rule has one false alarm and two misses.

Choose nonnegative penalty a per false positive and b per false negative, then add the two weighted counts. Equal weights give scores five, three and nine, so the complaint rule is best:

L=a FP+b FNL=a\,FP+b\,FN

At a=one,b=four, scores are twenty, nine and nine: the complaint and all-positive rules tie. Both weights zero make all three tie. These chosen penalties are reported as comparison criteria, separately from actual call costs, policy returns or saved revenue.

기초Foundations

31. 경고를 하나도 안 하면 정밀도는 0이 아니다31. No positive predictions give undefined precision

아무도 이탈로 예측하지 않는 규칙은 양성 예측 수 TP+FP=0입니다. 정밀도의 분자도 0이지만 0/0은 정의되지 않습니다. “정밀도 0”이라는 관측 지표를 만들어 넣는 대신 “양성 예측 없음 · 정밀도 미정의”라고 표시합니다.

그 규칙도 전체 14개가 있으므로 정확도 9/14와, 실제 이탈 5개가 있으므로 재현율 0/5=0은 정의됩니다. 같은 행의 지표라도 각 분모를 따로 봅니다. 자료 자체가 0행이면 정확도 역시 정의되지 않습니다.

선택 결과에서도 동률은 남깁니다. 가정 벌점으로 표지와 전원 경고가 같은 9라면 두 최소 규칙을 모두 보고하고, 하나를 실행하려면 추가 기준을 명시합니다. 입력 순서가 먼저라는 이유만으로 과학적 우열을 만들지 않습니다.

The no-positive rule has TP+FP=zero. Its precision numerator is also zero, but 0/0 is undefined. Display “No positive predictions; precision undefined” instead of inventing precision zero.

Accuracy 9/14 remains defined because all fourteen records are present. Recall 0/5 is zero because five positive outcomes were observed. Check each denominator separately; with zero records, accuracy also becomes undefined.

Preserve ties in the selected rule set too. If the complaint and all-positive rules each score nine, report both minima. Choosing one for action requires another stated criterion; input order alone does not establish scientific superiority.

기초Foundations

32. 실습 E: 세 고정 규칙의 모든 동률을 읽는다32. Lab E: Read all ties among three fixed rules

행이 표지 0/1, 열이 실제 결과 0/1인 네 칸을 입력하고 두 오류 벌점을 바꿉니다. 세 규칙의 혼동표·분모·점수와 최소 목록을 확인하세요. 먼저 8·2·1·3의 설명용 표에서 손으로 구한 5·3·9를 재현해 보세요.

두 벌점이 0이면 모든 규칙이 동률입니다. 0건인 표에서는 형식적 벌점 합이 0이라도 관측 정확도·재현율·정밀도가 생기는 것은 아닙니다. 기존 기록의 오류 점수와 미래 예측·개입의 편익을 따로 읽습니다.

Enter four cells with rows for flag 0/1 and columns for observed outcome 0/1, then vary the two error weights. Inspect each confusion table, metric denominator, score and complete minimum list. First reproduce scores five, three and nine for the toy cells 8/2/1/3.

Zero weights make every rule tie. With zero records, formal penalty sums may be zero while observed accuracy, recall and precision remain undefined. Read retrospective error scores separately from future prediction or intervention benefits.

기초Foundations

33. 예측 오류와 개입의 결과는 다른 질문이다33. Prediction errors and intervention outcomes answer different questions

표지 규칙이 과거 이탈 5개 중 3개를 맞혔다고 합시다. 이것은 당시 기록의 표지와 나중 결과를 비교한 숫자입니다. 그 세 사람에게 전화를 걸면 몇 명이 남는지, 전화하지 않은 경우와 얼마나 달라지는지는 이 네 칸에 없습니다.

행동의 효과를 말하려면 무엇을 언제 했는지와 비교할 경우를 알아야 합니다. 전화비·기회비용·제안의 비용을 실제로 측정했는지, 아니면 설명용으로 정했는지도 적습니다. 점수 aFP+bFN의 a,b를 바꾸는 일은 과거 관측 결과를 바꾸는 실험이 아닙니다.

따라서 먼저 “이 기록에서 어떤 규칙이 어떤 오류를 만들었나?”를 답하고, 다음으로 행동의 비용과 효과를 알아볼 새 질문을 적습니다. 한 단계의 정확한 계산을 다음 단계의 아직 없는 근거로 확대하지 않습니다.

Suppose the flag rule correctly labeled three of five past churners. That compares recorded flags with later labels. The four cells do not say how many would stay after a phone call or how that differs from receiving no call.

An action-effect question needs information about what happened, when, and its comparison case. Also state whether call costs, opportunity costs and offer costs were measured or chosen for illustration. Varying a and b in aFP+bFN does not experimentally change past outcomes.

First answer which errors each rule made in these records. Then state the additional question about action costs and effects. An exact answer to the first question does not supply missing evidence for the second.

기초Foundations

34. 실제 3,150개 기록도 네 분모를 나누어 읽는다34. Separate denominators in 3150 actual records

실제 공개 고객 자료의 불만 표지와 12개월 이탈 결과를 교차하면 아래 네 칸입니다. 고객의 실명·회사 정체·달력 시점이 알려졌다고 덧붙이지 않고, 원자료의 질문과 기간 설명을 유지합니다.

실제 3,150개 원기록 · 표지와 나중 결과의 교차
실제 불만 표지실제 비이탈실제 이탈
없음2614295
있음41200

실제 이탈은 295+200=495개, 불만 표지는 41+200=241개입니다. 표지 규칙의 정확도는 (2,614+200)/3,150=67/75, 재현율은 200/495=40/99, 정밀도는 200/241입니다. 세 지표가 서로 다른 분모를 가진다는 점은 앞의 14개 설명용 표와 같습니다.

아무도 이탈로 예측하지 않으면 정확도는 2,655/3,150=59/70이지만 정밀도는 미정의입니다. 높은 전체 정확도 한 숫자만으로 실제 이탈을 얼마나 찾았는지는 알 수 없습니다.

The actual public customer data give the following complaint-flag versus month-twelve outcome cells. Retain the supplied timing and variable descriptions without inventing a real name, company identity or calendar date.

3150 actual source records · flags versus later outcomes
Actual complaint flagObserved stayObserved churn
Absent2614295
Present41200

There are 495 observed churners and 241 flagged records. The flag rule has accuracy 67/75, recall 40/99 and precision 200/241. These use different denominators, just as in the fourteen-record toy table.

Predicting no churn gives accuracy 59/70 but undefined precision. One overall accuracy number does not reveal how many observed churners were found.

기초Foundations

35. 실제 오류 수에 가정 벌점을 곱한다35. Apply assumed penalties to actual error counts

실제 세 규칙의 (FP,FN)은 무경고 (0,495), 표지 (41,295), 전원 경고 (2,655,0)입니다. 같은 벌점 1과 1을 곱하면 점수는 495·336·2,655입니다. 표지 규칙이 이 세 고정 규칙 중 최소입니다.

실제 오류 개수에 선택한 벌점을 적용 · 금전 수익 아님
가정 FP 벌점가정 FN 벌점무경고표지전원 경고
114953362655
120990059412655
201495111553100

놓친 이탈의 벌점을 20으로 올리면 전원 경고가 최소이고, 잘못 경고한 벌점을 20으로 올리면 무경고가 최소입니다. 같은 관측표라도 비교 기준이 달라지면 선택이 바뀝니다.

이 표의 20은 선택한 설명용 가중치입니다. 실제 고객 한 명의 손실·전화 단가·남은 매출을 관측한 값으로 쓰지 않습니다. 어떤 값을 넣었을 때 어떤 규칙이 최소인지가 이 계산의 결과입니다.

Actual (FP,FN) pairs are (0,495) for none, (41,295) for the flag and (2655,0) for all. Equal unit weights give scores 495, 336 and 2,655, making the flag best among these three fixed rules.

Actual error counts with chosen penalties · not monetary returns
Assumed FP weightAssumed FN weightNoneFlagAll
114953362655
120990059412655
201495111553100

Weighting misses at twenty makes all-positive best; weighting false alarms at twenty makes none-positive best. The same observed cells can support different choices under different criteria.

Twenty is an illustrative weight, not an observed individual loss, call price or retained revenue. The calculation establishes which rule minimizes the supplied criterion.

기초Foundations

36. 실습 F: 실제 표와 선택한 표현·벌점을 연결한다36. Lab F: Connect actual tables to chosen displays and penalties

국가에서는 여섯 GDP 원값의 연도와 표시 자릿수·막대 바닥을 고릅니다. 개인에서는 원자료를 새로 공개하지 않고 이미 제공된 두 교육 집계의 칸을 선택합니다. 고객에서는 실제 네 칸의 세 고정 규칙에 가정 오류 벌점을 적용합니다.

원자료의 수치와 가용 상태, 계산한 요약, 표시 선택, 가정한 평가 기준을 각각 읽으세요. 선택하지 않은 다른 사례의 입력 오류는 현재 계산에 끼우지 않습니다. 고정 Python/R 기록과 새 브라우저 JavaScript 결과는 같은 수학 질문을 다루되 실행 경로가 다릅니다.

For country data, choose years, display digits and origin for six original GDP values. For people, select fields from two already-public education aggregates. For customers, apply assumed error weights to three fixed rules on the actual four cells.

Read observations and availability, calculated summaries, display choices and assumed evaluation criteria separately. Inactive inputs from another case do not enter the selected calculation. Fixed Python/R records and new browser JavaScript answer related mathematical questions through different execution paths.

기초Foundations

37. 한 문단에 질문·수치·조건부 선택을 연결한다37. Connect question, numbers and a conditional choice in one paragraph

보고 문장을 “표지 규칙이 좋다”에서 멈추지 말고 계산 경로를 보여 주세요. 예: “기존 3,150개 기록에서 세 규칙을 비교했다. 실제 네 칸을 보존하고 FP와 FN의 벌점을 각각 1로 두면 점수가 495·336·2,655여서 표지 규칙이 최소였다.”

다음 문장은 판단 조건을 알려 줍니다. “FN 벌점을 20으로 바꾸면 전원 경고가 최소로 바뀐다. 미래 성능과 실제 개입 비용·효과는 이 계산에 들어 있지 않아 추가 자료가 필요하다.” 이렇게 쓰면 관측과 가정, 결과와 남은 질문이 연결됩니다.

동률이면 같은 문단에 두 선택을 모두 적습니다. 독자가 어떤 규칙을 실행할지 결정하려면 업무 용량이나 추가 자료처럼 다른 기준이 필요할 수 있습니다. 그 기준이 아직 없다는 사실도 읽을 수 있게 남깁니다.

Do more than say “The flag rule is good.” Show the calculation path: “We compared three rules on 3,150 existing records. Keeping the four observed cells and assigning FP/FN weights of one gives scores 495, 336 and 2,655, so the flag rule is minimal.”

Then identify the decision condition: “Increasing the FN weight to twenty selects all-positive instead. Future performance and actual intervention costs/effects were not inputs, so those questions need additional evidence.” This connects observation, assumption, result and next question.

If choices tie, include both. Selecting an action may need another criterion, such as operational capacity or more information. Make the absence of that criterion visible too.

기초Foundations

38. 짧은 설명은 목적을, 긴 설명은 값과 관계를 맡는다38. Let short descriptions identify purpose and longer ones give values and relationships

설명용 막대 두 개에 대한 짧은 설명은 “두 달의 개수 비교”가 될 수 있습니다. 이어지는 글이나 표에는 첫 달 10, 다음 달 12, 차이 2, 증가율 20%, 선택한 축 범위를 제공합니다. 중요한 관계를 그림의 색이나 위치에만 맡기지 않습니다.

실제 GDP 설명에는 자료의 단위와 여섯 연도, 2020년의 하락과 이후 증가를 원값에서 읽을 수 있습니다. 바닥을 33,000으로 바꿨다면 그림이 나타내는 높이는 원값에서 그 수를 뺀 것이라고 명시합니다.

설명은 그림을 보지 않는 독자에게도 필요한 정보를 주는 통로입니다. 단순히 “좋은 결과를 보이는 그래프”처럼 평가만 붙이거나, 실제 숫자와 다른 추세를 이야기하지 않도록 표와 다시 대조합니다.

A short description for the toy bars might say “Comparison of counts in two months.” Nearby text or a table supplies ten, twelve, difference two, growth twenty percent and the chosen range. Important relationships should not depend only on color or position.

For actual GDP, give the unit and six years, including the decline in 2020 and later increases visible in the source values. If origin 33000 is chosen, state that displayed heights subtract it from the originals.

A description gives needed information to readers who do not inspect the chart. Check it against the table rather than merely adding a judgment such as “a graph showing good results” or narrating a trend that the values do not support.

기초Foundations

39. 실제 32개 실행과 28개 그림을 구별해 읽는다39. Distinguish 32 actual runs from 28 plots

이 장의 고정 참조 프로그램은 Python 16개와 R 16개로 총 32개이며 모두 실제 성공 실행했습니다. 가용값이 없는 요약과 선택 집계 칸 예시는 각 언어에서 글 결과만 남겨 총 4개가 그림을 만들지 않습니다. 따라서 실제 SVG는 32−4=28개입니다.

Python은 기록한 3.11.8·Matplotlib 3.10.0 환경을 사용했고 R은 4.5.1을 사용했습니다. R 표시 옵션 digits=17,warn=1, UTC와 실제 locale 확인을 남깁니다. Python의 정확 분수 계산과 R의 binary64 근사는 결과 필드에서 구분합니다.

브라우저에서 새 값을 입력하는 동작은 JavaScript 계산입니다. 보관된 코드 미리보기와 다운로드는 실제 실행한 고정 프로그램을 읽는 길입니다. 새 Python/R 프로세스나 새 HTTP 수집을 수행했다고 표현하지 않습니다.

There are sixteen fixed Python references and sixteen R references: 32 actual successful programs. The no-available summary and selected-field projection produce text only in each language, so four make no plot. Actual SVG count is 32−4=28.

The recorded Python environment is 3.11.8 with Matplotlib 3.10.0; R is 4.5.1. The record includes R digits 17/warn 1, UTC and observed locale. Python exact fractions and R binary64 approximations are distinguished in result fields.

New browser inputs use JavaScript. Archived previews and downloads expose the actual fixed programs. They are not new Python/R processes or new HTTP exchanges.

기초Foundations

40. 같은 중간값 규칙을 두 언어의 작은 코드로 쓴다40. Write the same midpoint rule in two small code examples

Python 예시는 정확한 분수 249/200의 분자에 100을 곱하고 몫과 나머지를 구합니다. 나머지가 분모의 절반 이상이면 정수 몫을 1 올리고, 원래 부호를 돌려줍니다. 1.245를 이진 소수로 먼저 바꾸지 않습니다.

from fractions import Fraction as F
def nearest_away(q, digits):
    scale = 10 ** digits
    whole, rem = divmod(abs(q.numerator) * scale, q.denominator)
    integer = whole + (2 * rem >= q.denominator)
    return F((-1 if q < 0 else 1) * integer, scale)
assert nearest_away(F(249, 200), 2) == F(5, 4)
assert nearest_away(F(-249, 200), 2) == F(-5, 4)
print(nearest_away(F(249, 200), 2))

R 예시는 같은 작은 정수 비를 사용합니다. 코드에 적은 수 범위에서 정수 계수가 정확히 표현되는지를 확인하며, 임의 크기 분수를 다루는 R 패키지를 구현한 것은 아닙니다. 기본 round를 호출하지 않아 수업에서 정한 중간값 규칙을 직접 읽을 수 있습니다.

nearest_away_bounded <- function(numerator, denominator, digits) {
  stopifnot(denominator > 0, denominator < 2^53,
            abs(numerator) * 10^digits < 2^53)
  scaled <- abs(numerator) * 10^digits
  whole <- floor(scaled / denominator)
  remainder <- scaled - whole * denominator
  sign(numerator) * (whole + (2 * remainder >= denominator)) / 10^digits
}
stopifnot(nearest_away_bounded(249, 200, 2) == 1.25,
          nearest_away_bounded(-249, 200, 2) == -1.25)
print(nearest_away_bounded(249, 200, 2))

The Python example multiplies the exact numerator of 249/200 by one hundred and computes integer quotient/remainder. At least half a denominator adds one to the magnitude before restoring the sign. It does not first convert 1.245 to a binary floating input.

from fractions import Fraction as F
def nearest_away(q, digits):
    scale = 10 ** digits
    whole, rem = divmod(abs(q.numerator) * scale, q.denominator)
    integer = whole + (2 * rem >= q.denominator)
    return F((-1 if q < 0 else 1) * integer, scale)
assert nearest_away(F(249, 200), 2) == F(5, 4)
assert nearest_away(F(-249, 200), 2) == F(-5, 4)
print(nearest_away(F(249, 200), 2))

The R example uses the same small integer ratio and checks its stated representable range. It is not an arbitrary-precision fraction package. Avoiding the default round call makes this lesson’s own midpoint rule explicit.

nearest_away_bounded <- function(numerator, denominator, digits) {
  stopifnot(denominator > 0, denominator < 2^53,
            abs(numerator) * 10^digits < 2^53)
  scaled <- abs(numerator) * 10^digits
  whole <- floor(scaled / denominator)
  remainder <- scaled - whole * denominator
  sign(numerator) * (whole + (2 * remainder >= denominator)) / 10^digits
}
stopifnot(nearest_away_bounded(249, 200, 2) == 1.25,
          nearest_away_bounded(-249, 200, 2) == -1.25)
print(nearest_away_bounded(249, 200, 2))
심화Extension

41. 표시한 행의 평균 오차도 제한할 수 있다41. Bound the mean error after rounding rows

가용 n≥1개의 유한 원값 xᵢ를 간격 h>0의 가장 가까운 배수 rᵢ로 표시한다고 합시다. 정확한 중간을 어느 방향으로 보내든 한 행의 절대 오차는 h/2 이하입니다. 합 오차 상계를 n으로 나누면, 반올림한 행 평균과 원래 평균 차이도 h/2 이하입니다.

∣ri−xi∣≤h/2∣rˉ−xˉ∣=1n∣∑i=1n(ri−xi)∣≤h/2\begin{gathered}|r_i-x_i|\le h/2\\|\bar r-\bar x|\\=\frac1n\left|\sum_{i=1}^{n}(r_i-x_i)\right|\\\le h/2\end{gathered}

h=0.01에서 0.005 세 개를 모두 0.01로 나타내면 평균 차이가 0.005라 상계를 달성합니다. 이 결론은 행 평균을 비교한 것입니다. 원래 평균 자체를 다시 반올림하는 별도 동작이나 표본 평균의 통계적 오차와 혼동하지 않습니다. n=0에서는 이 평균을 정의하지 않습니다.

Let n≥1 finite available values xᵢ be displayed as nearest multiples rᵢ of spacing h>0. Any halfway convention keeps each absolute error at most h/2. Divide the triangle bound by n to compare means of original and rounded rows:

∣ri−xi∣≤h/2∣rˉ−xˉ∣=1n∣∑i=1n(ri−xi)∣≤h/2\begin{gathered}|r_i-x_i|\le h/2\\|\bar r-\bar x|\\=\frac1n\left|\sum_{i=1}^{n}(r_i-x_i)\right|\\\le h/2\end{gathered}

With h=0.01, rounding three copies of 0.005 upward attains mean error 0.005. This compares row means, separately from rounding the original mean again or quantifying sampling uncertainty. At n=zero the mean remains undefined.

심화Extension

42. 바닥이 높아질수록 어떤 비가 커지는지 유도한다42. Derive which ratio rises as the origin moves upward

원값이 0<a≤b이고 0≤o<a인 바닥을 택한다고 합시다. 원값의 비 b/a와 높이의 비 (b−o)/(a−o)의 차이를 통분합니다. 분모가 양수여서 차이의 부호를 바로 읽을 수 있습니다.

b−oa−o−ba=o(b−a)a(a−o)≥0\begin{gathered}\frac{b-o}{a-o}-\frac ba\\=\frac{o(b-a)}{a(a-o)}\\\ge0\end{gathered}

b>a이고 o>0이면 높이 비가 엄격히 더 큽니다. o를 a보다 작은 쪽에서 a에 가깝게 보내면 첫 높이는 0에 가까워지지만 두 번째 높이는 양수 b−a에 가까워져 비가 제한 없이 커질 수 있습니다. 원값의 비 b/a는 그대로입니다.

a=b이면 두 양의 높이의 비는 언제나 1입니다. o=a에서는 나누기가 정의되지 않습니다. 조건을 식 옆에 두면 증가·동률·미정의의 경계가 나뉩니다.

Assume original values 0<a≤b and choose 0≤o<a. Subtract the original ratio b/a from the height ratio. Their positive denominators expose the sign:

b−oa−o−ba=o(b−a)a(a−o)≥0\begin{gathered}\frac{b-o}{a-o}-\frac ba\\=\frac{o(b-a)}{a(a-o)}\\\ge0\end{gathered}

If b>a and o>zero, the height ratio is strictly larger. As o approaches a from below, the first height approaches zero while the second approaches positive b−a. The ratio can grow without bound even though b/a is unchanged.

If a=b, both positive heights have ratio one. At o=a division becomes undefined. The explicit conditions distinguish strict distortion, equality and an undefined endpoint.

심화Extension

43. 분모가 다른 평균은 합으로 돌아가 합친다43. Return to sums when pooling different denominators

서로 겹치지 않는 양의 정수 G개 집단에서 각 가용 수 n_g≥1이고 가용 평균이 μ_g라고 합시다. 전체 가용 합은 각 집단의 n_gμ_g를 더한 것입니다. 전체 가용 수 n은 모든 n_g의 합이라 양수입니다.

n=∑g=1GngS=∑g=1Gngμgμ=∑g=1Gngnμg\begin{gathered}n=\sum_{g=1}^{G}n_g\\S=\sum_{g=1}^{G}n_g\mu_g\\\mu=\sum_{g=1}^{G}\frac{n_g}{n}\mu_g\end{gathered}

가용 수 0인 집단이 있다면 평균을 새로 만들어 0을 곱하기보다 가용 합 0·가용 수 0으로 따로 다룹니다. 전체 가용 수가 양수일 때 합/수로 전체 평균을 구할 수 있습니다. 전체도 0이면 평균은 미정의입니다.

실제 교육 집계에서는 두 집단의 가용 수 1,489와 1,521을 사용합니다. 전체 원행 수 1,806과 1,807은 결측을 포함하므로 같은 가용 평균의 가중치로 바꾸어 넣지 않습니다.

For a positive integer G of disjoint groups, assume each available count n_g≥1 with mean μ_g. Restore each sum n_gμ_g and add counts to obtain positive total n:

n=∑g=1GngS=∑g=1Gngμgμ=∑g=1Gngnμg\begin{gathered}n=\sum_{g=1}^{G}n_g\\S=\sum_{g=1}^{G}n_g\mu_g\\\mu=\sum_{g=1}^{G}\frac{n_g}{n}\mu_g\end{gathered}

A group with zero available values is handled by available sum zero and count zero, without inventing a mean to multiply by zero. If the total available count is positive, total sum divided by count remains defined. Otherwise the mean is undefined.

The actual education summaries use available counts 1,489 and 1,521. Source counts 1,806 and 1,807 include missing records and cannot silently replace those weights.

심화Extension

44. 집단에 두 명이면 항상 숨겨진다는 주장도 확인한다44. Check the claim that a group of two always hides both values

유한 값 k≥1개가 남고 합이 S라는 정보만 있을 때 k=1이면 유일한 값 S가 정해집니다. k=2에서 별도 값 범위가 없다면 (0,S)와 (1,S−1)처럼 같은 합의 여러 쌍이 가능합니다. 두 값이 모두 같다고 정한 것은 아닙니다.

그렇다고 “두 명 이상이면 언제나 개별 값이 불명확하다”라고 일반화할 수도 없습니다. 두 값이 음수가 아니라고 알려져 있고 합이 0이면 둘 다 0이어야 합니다. 추가 조건이 가능한 값의 집합을 줄인 것입니다.

집계 공개를 검토할 때는 이번 표만이 아니라 함께 제공되는 범위·연결 관계·다른 표가 어떤 정보를 더하는지 봅니다. 여기서의 작은 계산은 그 이유를 설명하며, 실제 외부 개인 이름을 찾아 연결하지는 않습니다.

If k≥1 finite remaining values have known sum S, k=one fixes the single value S. With k=two and no extra support restriction, pairs such as (0,S) and (1,S−1) show nonuniqueness. A mean does not require both values to be equal.

But “At least two always hides individual values” is also false. If both values are known to be nonnegative and sum to zero, both must be zero. Additional conditions shrink the set of possible values.

Review aggregate information together with supplied ranges, linkage relations and other tables. These small calculations explain why; they do not search for or link an outside person’s name.

심화Extension

45. 어느 가정 벌점에서 최소 규칙이 바뀌는지 구한다45. Locate the penalty values where the best rule changes

실제 오류 수에서 a는 FP 벌점, b는 FN 벌점이며 a,b≥0입니다. 세 점수는 아래 식입니다. 표지 규칙이 두 다른 규칙보다 작거나 같을 조건을 각각 뺄셈으로 구합니다.

Lnone=495bLflag=41a+295bLall=2655aLflag≤Lnone⟺41a≤200bLflag≤Lall⟺295b≤2614a\begin{gathered}L_{\rm none}=495b\\L_{\rm flag}=41a+295b\\L_{\rm all}=2655a\\L_{\rm flag}\le L_{\rm none}\\\Longleftrightarrow 41a\le200b\\L_{\rm flag}\le L_{\rm all}\\\Longleftrightarrow295b\le2614a\end{gathered}

a>0이면 b/a가 41/200과 2,614/295 사이일 때 표지 규칙이 최소입니다. 아래 경계에서는 무경고와, 위 경계에서는 전원 경고와 동률입니다. 사이보다 작으면 무경고, 크면 전원 경고가 최소입니다. 이는 세 고정 규칙 안의 비교입니다.

a=0,b>0이면 전원 경고가, b=0,a>0이면 무경고가 최소입니다. 둘 다 0이면 모두 동률입니다. 임의 양수 λ로 두 벌점을 함께 곱하면 모든 점수도 λ배여서 최선 집합이 그대로라는 점도 확인할 수 있습니다.

For actual error counts, let nonnegative a and b penalize FP and FN. The three scores and the two conditions for the flag rule follow by subtraction:

Lnone=495bLflag=41a+295bLall=2655aLflag≤Lnone⟺41a≤200bLflag≤Lall⟺295b≤2614a\begin{gathered}L_{\rm none}=495b\\L_{\rm flag}=41a+295b\\L_{\rm all}=2655a\\L_{\rm flag}\le L_{\rm none}\\\Longleftrightarrow 41a\le200b\\L_{\rm flag}\le L_{\rm all}\\\Longleftrightarrow295b\le2614a\end{gathered}

For a>zero, the flag rule is minimal when b/a lies between 41/200 and 2614/295. At the lower boundary it ties none; at the upper it ties all. Below the interval none is best; above it all is best, among these three fixed rules.

If a=zero,b>zero, all is best. If b=zero,a>zero, none is best. Both zero make all tie. Multiplying both penalties by any positive λ scales every score by λ and preserves the complete optimal set.

기초Foundations

46. 다음 사람이 다시 읽을 보고서 묶음을 만든다46. Prepare a report another reader can inspect again

마지막으로 원출처·보관 입력·선택 규칙·원값의 요약·표시 설정·가정 벌점·계산 결과를 연결합니다. 작은 표에서 질문에 답한 뒤 실제 자료의 단위와 가용 분모가 같은 방식으로 읽히는지 확인합니다.

새 표시를 만들면 값 라벨·표·짧은 설명이 서로 맞는지 살핍니다. 선택한 공개 칸과 뺀 칸을 기록하고, 그 선택이 개별 값을 숨긴다는 일반 증명이 아님을 필요한 작은 예로 설명합니다. 판단에서는 동률과 추가 정보가 필요한 경우를 남깁니다.

이 인수인계는 원자료의 진실성·실제 사용성·개입 효과를 한 번에 보증하는 도장이 아니라, 다음 검토자가 어디를 확인할지 찾을 수 있는 계산 경로입니다. 필요한 검토가 수행됐는지도 각각의 기록으로 연결합니다.

Connect source, retained input, selection rule, original summary, display settings, assumed penalties and results. Start with an answer from a small table, then check that actual units and available denominators can be read in the same way.

For a new display, compare value labels, table and short description. Record included and omitted release fields, using small examples to explain why selection alone is not a universal confidentiality proof. Preserve ties and questions needing additional information in the decision.

The handover supplies an inspectable path for the next reviewer. Original-source truth, actual usability and action effects receive their own evidence and review records.

기초Foundations

47. 실제 세 사례: 표현·집계 공개·판단 기준47. Three actual cases: Displays, aggregate releases and decision criteria

국가 보고서 · 그래프를 보지 못해도 같은 근거를 읽을 수 있게

실제 World Bank 한국 1인당 실질 GDP의 2019~2024년 여섯 관측을 보고서로 전달합니다. 읽는 사람은 휴대전화, 확대 화면, 흑백 인쇄물이나 화면 낭독기를 쓸 수 있습니다. 그림을 색깔만으로 설명하면 같은 숫자를 제공해도 일부 독자는 관계를 읽기 어렵습니다. 이 사례는 값의 계산뿐 아니라 단위·기간·축·문장·표를 함께 설계하는 연습입니다. 접근성 확인은 코드의 숫자 검사와 다른 작업이며 실제 브라우저·보조기술의 검토도 필요합니다.

실제 관측값 · 2015년 불변 미국 달러/명, 화면 소수3자리 반올림
연도1인당 실질 GDP측정·빈티지 안내
201933,496.311연간 · 보관본 갱신 2026-10-08
202033,215.930연간 · 보관본 갱신 2026-10-08
202134,792.940연간 · 보관본 갱신 2026-10-08
202235,809.014연간 · 보관본 갱신 2026-10-08
202336,347.704연간 · 보관본 갱신 2026-10-08
202437,048.426연간 · 보관본 갱신 2026-10-08

그림의 내용을 말로도 읽어 봅시다. 한국의 이 연간 지표는 2019년 약 33,496.311에서 2020년에 낮아진 뒤 2024년 약 37,048.426까지 높아졌습니다. 처음과 마지막 값의 변화율은 약 10.604%입니다. 단위는 2015년 불변 미국 달러/명이고, 관측 기간은 2019~2024년입니다. 이 수치를 개인의 실측 소득, 가구의 현금이나 특정 정책의 인과효과라고 읽지 않습니다. 보관 원문이 갱신된 날짜와 내려받은 날짜도 관측 연도와 구별합니다.

짧은 그림 설명에는 무엇을 어느 단위·기간으로 그렸는지 적고, 본문과 표에는 실제 값과 주요 관계를 제공합니다. 제목이 “경제 그래프”뿐이면 부족합니다. 색 이름 대신 연도·계열 이름을 직접 쓰고, 표의 머리글과 설명을 연결합니다. 확대해 숫자를 읽거나 복사할 수 있는 표, 원수치가 보존된 CSV, 한영 단위 설명을 함께 두면 독자가 색과 마우스 움직임에만 의존하지 않아도 됩니다. 긴 수치 표를 이미지 하나로 바꾸는 것은 이러한 정보를 잃게 할 수 있습니다.

축도 메시지의 일부입니다. 실제 2019·2024 값의 비율은 약 1.106045배입니다. 그런데 막대의 시작을 가정한 33,000으로 잘라 두 막대의 남은 높이만 나누면 약 8.157029배가 됩니다. 이는 경제 값의 배율이 아닙니다. 여기에 제공한 막대 해석의 기준은 0입니다. 변동을 확대하려고 선 그래프의 축 범위를 좁히는 선택 자체를 무조건 잘못이라 하지 않지만, 원점·범위·질문을 명확히 밝혀야 합니다. 원수치와 다른 시각적 배율을 실제 성장률이라고 설명하지 않습니다.

먼저 생각한 뒤 풀이 보기: 표와 CSV가 있으니 색상 대비나 키보드 확인은 필요 없나요?

표·설명은 중요한 대체 경로이지만 화면에서 읽고 조작하는 접근성도 남습니다. 값의 일치, 문서의 의미 구조, 대비, 키보드 접근, 확대와 모바일 흐름을 각각 확인합니다. 이 원고의 수치 검산이 모든 환경의 접근성 인증이라는 뜻은 아닙니다.

먼저 생각한 뒤 풀이 보기: 소수 셋째 자리까지 보여 주면 원자료도 그만큼 정확하다는 뜻인가요?

표시 자리와 측정 정확도는 다릅니다. 여기서는 보관 원수치를 계산 입력으로 쓰고 화면에서만 반올림했습니다. 원 추계의 측정·작성·수정 한계가 긴 숫자 때문에 없어지지는 않습니다. 다운로드 CSV에는 원 값과 반올림 차이를 함께 남깁니다.

개인 자료 · 재현 가능한 요약과 불필요한 개인 기록의 재배포를 구별하기

실제 공개 Card 익명 자료의 3,613원행을 교육 연수 12년 이하·초과 두 집단으로 요약합니다. 전체 원행 수는 1,806·1,807개이고, 제공된 1976년 로그 임금이 가용한 원행 수는 각각 1,489·1,521개입니다. 이 로그는 원문에서 이상치를 절단해 제공한 센트/시간 임금의 로그입니다. 평균값을 달러 시급이라고 표시하지 않습니다. 두 집단은 관측된 교육 연수로 나눈 집단이며 교육을 무작위 배정한 실험 집단이 아닙니다.

본 보고서의 집계 공개본 · 제공 로그의 가용 분모와 반올림 평균
기록된 교육 집단전체 원행로그 가용로그 결측가용 로그 평균
교육 12년 이하180614893176.163655
교육 12년 초과180715212866.357943

이 장의 요약 보고서는 위 집계와 정확한 분모·합·평균, 자료원·기간·단위·해시를 내보냅니다. 집계표를 읽는 데 필요하지 않은 개인 코드와 원행 위치를 표에 반복하지 않습니다. 별도로 공개된 기관 원문은 독립 검산의 입력으로 사용합니다. 이 선택은 이 보고서의 정보량을 정한 것이지 원 기관이 공개한 자료를 새로 완전 익명화했다거나 사이트의 다른 자료를 모두 없앴다는 뜻이 아닙니다. 외부 이름·주소 자료와 연결해 사람의 실제 신원을 찾는 작업도 하지 않습니다.

숫자 코드로 이름을 바꾸는 것과 다른 자료를 함께 보아도 사람을 알아낼 수 없게 되는 것은 다릅니다. 코드의 해시는 입력 추적을 도울 수 있지만 자동으로 익명성을 보장하지 않습니다. 집계도 집단이 매우 작거나 여러 표를 합쳐 개인 값이 역산되면 정보가 새어 나갈 수 있습니다. “각 셀이 특정 개수 이상이면 언제나 안전하다”는 보편 법칙을 붙이지 않습니다. 실제 공개 목적·필요한 정보·결합 가능성을 함께 검토하는 이유입니다.

정보를 줄이면 무엇을 잃는지도 설명해야 합니다. 두 집단 평균만으로는 집단 안의 분포나 교육 13년과 20년의 차이를 알 수 없습니다. 반대로 원행을 모두 보여 준다고 대표성이나 교육의 인과효과를 얻게 되는 것도 아닙니다. 이 집계의 목적은 공개 요약의 분모와 의미를 정리하는 것이며, 개인정보 보호의 수학적 보장이나 법률 준수 판정을 계산한 것이 아닙니다. 필요한 분석과 공개 범위가 다르면 별도의 자료 접근·검토 설계가 필요합니다.

먼저 생각한 뒤 풀이 보기: 개인 코드를 삭제했으니 익명화 검사가 끝났다고 써도 되나요?

그 결론은 나오지 않습니다. 남은 변수의 조합과 다른 자료의 결합, 작은 셀과 여러 표의 재구성 가능성이 남습니다. 이 보고서가 실제로 내보내는 필드와 내보내지 않는 필드를 기록하고, 확인하지 않은 보호 수준을 약속하지 않습니다.

먼저 생각한 뒤 풀이 보기: 집계 평균이 더 높은 집단의 교육을 늘리면 임금이 그만큼 오르나요?

이는 관측 집단의 기술적 비교입니다. 다른 특성과 선택 과정, 결측, 원 로그의 절단을 고려하지 않은 평균 차이는 교육의 인과효과가 아닙니다. 공개 범위를 정하는 질문과 인과 식별 질문을 구별합니다.

고객·기업 실무 · 분류 숫자를 실제 유지 매출이라고 보고하지 않기

UCI Iranian Churn의 실제 익명 고객 3,150기록에서 불만 플래그와 12개월차 이탈을 집계합니다. 자료 설명은 첫 9개월 입력과 12개월차 결과, 그 사이 3개월의 간격을 말합니다. 실제 달력 연도·기업명·고객 신원을 이 파일에서 알아냈다고 하지 않습니다. 여기서는 학습한 예측 모형 없이 세 고정 규칙, 즉 아무도 이탈이라고 하지 않기·불만 플래그를 쓰기·모두 이탈이라고 하기를 같은 보관 자료에서 기술적으로 비교합니다.

실제 두 이진 변수의 네 셀 · 사람 수가 아닌 원 고객 기록 수
불만 플래그12개월차 결과원 기록 수
없음비이탈2614
없음이탈295
있음비이탈41
있음이탈200
실제 자료에서의 고정 규칙 비교 · 비율 소수는 반올림
규칙TPFPFNTN정확도재현율
아무도 이탈로 표시하지 않음0049526550.84290.0000
불만 플래그로 표시2004129526140.89330.4040
모두 이탈로 표시4952655000.15711.0000

불만 플래그 규칙의 정확도는 2,814/3,150이고, 실제 이탈 495건 중 200건을 표시하므로 재현율은 200/495입니다. 표시한 241건 중 200건이 실제 이탈이므로 정밀도는 200/241입니다. 세 분모는 다릅니다. 아무도 표시하지 않는 규칙은 정밀도의 분모가 0이므로 정밀도는 정의되지 않습니다. 0이나 100%를 넣어 비교표를 보기 좋게 맞추지 않습니다. 이 결과는 모든 고객에 같은 규칙을 적용한 사후 요약이며 미래 시험 성능은 아닙니다.

보고받는 사람은 서로 다른 실수를 다르게 중요하게 여길 수 있습니다. 가정한 오탐 점수 c_FP와 누락 점수 c_FN으로 아래 합을 계산합니다. 이는 명시한 평가 점수이며 실제 통화 비용이나 이탈 방지 수익이 아닙니다. 실제로 연락했을 때 이탈을 막는 효과, 연락의 부작용·비용·실행 가능성은 이 두 열만으로 식별되지 않습니다. 분류된 사람에게 조치를 취한 반사실 결과가 없기 때문입니다.

C=cFP FP+cFN FNC=c_{\rm FP}\,\mathrm{FP}+c_{\rm FN}\,\mathrm{FN}
명시한 가정 점수의 민감도 · 실제 금전이 아님
오탐 점수누락 점수아무도 표시 안 함불만 플래그모두 표시
114953362655
120990059412655
201495111553100

따라서 보고서는 실제 관측·그 위의 산술·선택한 평가 기준·아직 모르는 실행 효과를 나누어 씁니다. 한 가지 정확도만 크게 쓰거나 가정 점수를 원화 절감액으로 바꾸지 않습니다. 집계 고객 수와 원자료의 관측 단위·기간·공개 조건을 밝히고, 실제 사람 이름을 붙이지 않습니다. 이 사례의 규칙 비교는 어떤 실제 회사에 연락 정책을 실행하라는 권고가 아니라 의사결정 보고의 근거와 빈틈을 읽는 연습입니다.

먼저 생각한 뒤 풀이 보기: 가정 점수가 가장 작은 규칙을 찾으면 최선의 고객 대응도 찾은 건가요?

그 점수 정의 아래에서 고정 규칙을 비교했을 뿐입니다. 점수·관측 범위·미래 분포와 실제 조치 효과가 모두 중요합니다. 가정 점수의 민감도와 식별되지 않은 효과를 숨기지 않고 별도로 적습니다.

먼저 생각한 뒤 풀이 보기: 공개 자료의 익명 고객 플래그에 실제 고객 이름을 붙여도 되나요?

이 자료는 실제 신원 연결을 제공하지 않으며, 이 장에서는 그런 연결을 하지 않습니다. 필요한 실무 시스템의 신원·접근권한·목적·검토 설계는 별개 문제입니다. 교육용 집계 결과를 실제 개인의 낙인이나 조치 근거로 바꾸지 않습니다.

Country report · Make the evidence readable without seeing the chart

Report the six actual World Bank observations of Korean real GDP per capita for 2019–2024. Readers may use phones, magnification, monochrome printing or a screen reader. Color-only explanations can hide relationships even when the underlying numbers are available. Practice designing units, periods, axes, prose and a table alongside arithmetic. Accessibility review differs from a numeric code check and also requires actual browser/assistive-technology evaluation.

Actual observations · constant 2015 U.S. dollars/person, display rounded to three decimals
YearReal GDP per capitaPeriod/vintage note
201933,496.311Annual · retained update 2026-10-08
202033,215.930Annual · retained update 2026-10-08
202134,792.940Annual · retained update 2026-10-08
202235,809.014Annual · retained update 2026-10-08
202336,347.704Annual · retained update 2026-10-08
202437,048.426Annual · retained update 2026-10-08

Read the figure in words too. The Korean annual indicator falls in 2020 from its 2019 level of approximately 33,496.311, then rises to approximately 37,048.426 in 2024. First-to-last growth is approximately 10.604 percent. Units are constant 2015 U.S. dollars per person over 2019–2024. This is not observed personal income, household cash or a policy causal effect. Keep observation years separate from the retained source update and retrieval dates.

A short description identifies what is plotted, its units and period; nearby prose and a table provide values and important relationships. A title such as “economic chart” is insufficient. Refer to years/series by name rather than color, and associate table headings with explanations. A readable/copyable table, original-number CSV and bilingual units let readers work without relying only on color or hovering. Converting a numeric table into one image can lose these routes to the evidence.

Axes are part of the message. The actual 2024/2019 value ratio is approximately 1.106045. If a hypothetical bar origin is truncated at 33,000, the remaining-height ratio becomes approximately 8.157029. That is not the ratio of economic values. Use zero as the bar-length reference here. A zoomed line-chart axis can legitimately examine variation, but its origin/range and question must be explicit. Never report a visual height ratio as the actual growth rate.

Think first, then reveal: Do a table and CSV eliminate the need to check contrast and keyboard use?

They provide important alternative routes, but visual reading and interaction still matter. Check numeric agreement, semantic structure, contrast, keyboard use, magnification and mobile flow separately. An arithmetic audit is not accessibility certification across environments.

Think first, then reveal: Does a three-decimal display prove three-decimal measurement accuracy?

Display precision differs from measurement accuracy. Calculations use the retained source values; only presentation is rounded. Long numbers do not remove estimation/construction/revision limitations. The CSV preserves original values and the declared rounding differences.

Person data · Separate a reproducible summary from unnecessary row-level redistribution

Summarize the actual public anonymous Card source into recorded schooling of at most 12 years versus more than 12. The groups contain 1,806 and 1,807 original records, with 1,489 and 1,521 supplied 1976 log wages available. The source describes this log-of-cents/hour field as outlier trimmed. Do not label its mean as a dollar hourly wage. The schooling groups are observed categories, not randomized education assignments.

Aggregate release for this report · available-log denominators and rounded means
Recorded schooling groupOriginal rowsLog availableLog unavailableAvailable-log mean
Schooling at most 12 years180614893176.163655
Schooling above 12 years180715212866.357943

This chapter’s summary report releases aggregates, exact denominators/sums/means and source/period/unit/fingerprints. It does not repeat individual codes or row positions unnecessary for reading the summary. The separately published original remains an input to independent verification. This is a scoped report-release choice, not a claim to have formally anonymized the producer’s data or removed all other site datasets. No external name/address matching or attempt to find actual identities is performed.

Replacing a name with a code differs from preventing identification when information is combined. A code fingerprint can support traceability without guaranteeing anonymity. Aggregates can also disclose information through small groups or reconstruction across tables. No universal claim that every cell above a chosen count is safe is made. Consider the purpose, necessary information and possible linkage together.

Explain what information is lost too. Two means do not describe within-group distributions or distinguish 13 from 20 schooling years. Conversely, full row access does not establish representativeness or a causal education effect. The aggregate clarifies the summary’s denominator and meaning; it does not compute a formal privacy guarantee or legal-compliance determination. A different analytical purpose/release scope requires its own access and review design.

Think first, then reveal: May removal of individual codes be reported as completed anonymization?

That conclusion does not follow. Combinations of remaining variables, external information, small cells and cross-table reconstruction may matter. Record the fields actually included/excluded and do not promise unverified protection.

Think first, then reveal: Does the higher group mean predict the causal wage gain from more education?

This is a descriptive comparison of observed groups. Differences in characteristics, selection, unavailable fields and source trimming prevent interpreting the raw mean contrast as a causal gain. Release design and causal identification are separate questions.

Customer/business practice · Do not report classification counts as actual retention revenue

Aggregate actual complaint flags and month-12 churn in UCI Iranian Churn’s 3,150 anonymous customer records. The source describes first-nine-month inputs and a month-12 outcome, with a three-month planning gap. Do not infer a calendar year, named firm or customer identity from the file. Without fitting a predictor, compare three fixed labeling rules retrospectively on this retained dataset: predict none, use the complaint flag or predict all.

Actual four cells · original customer records
Complaint flagMonth-12 outcomeSource records
AbsentNo churn2614
AbsentChurn295
PresentNo churn41
PresentChurn200
Fixed-rule retrospective comparison · displayed fractions rounded
RuleTPFPFNTNAccuracyRecall
Predict none0049526550.84290.0000
Complaint flag2004129526140.89330.4040
Predict all4952655000.15711.0000

Complaint-rule accuracy is 2,814/3,150. It flags 200 of 495 actual churn records, giving recall 200/495. Of 241 flags, 200 are actual churn, giving precision 200/241. These denominators differ. With no predicted positives, the predict-none rule’s precision has denominator zero and is undefined, not zero or 100 percent for cosmetic completeness. These are retrospective fixed-rule summaries, not future test performance.

A decision maker may value different errors differently. Apply explicitly assumed false-positive and false-negative penalties in the following score. This is a declared evaluation score, not observed currency cost or retention revenue. The effect of contact on churn, adverse effects, costs and feasibility are not identified by these two columns: counterfactual intervention outcomes are absent.

C=cFP FP+cFN FNC=c_{\rm FP}\,\mathrm{FP}+c_{\rm FN}\,\mathrm{FN}
Sensitivity to explicitly assumed penalties · not actual money
FP penaltyFN penaltyPredict noneComplaint flagPredict all
114953362655
120990059412655
201495111553100

A report separates actual observations, arithmetic, selected evaluation criteria and unobserved intervention effects. Do not feature one accuracy number while relabeling an assumed score as money saved. State the original record unit, periods and source conditions without assigning real names. This comparison teaches how to read the evidence and gaps in a decision report; it does not validate a contact policy for a real firm.

Think first, then reveal: Does the rule with the lowest assumed score identify the best customer intervention?

It ranks fixed rules under that score definition only. Penalties, observation scope, future distributions and actual intervention effects all matter. Report sensitivity and unidentified effects separately.

Think first, then reveal: May anonymous source flags be assigned to named real customers?

The source does not provide that identity linkage and none is performed here. Identity, access, purpose and review in a real operational system are separate matters. A teaching aggregate is not evidence for labeling or acting on a named person.

기초Foundations

48. 권장 자료: 계산 규칙과 읽는 구조를 대조한다48. Readings: Compare numerical rules with reading structure

W3C G18에서는 상대 휘도와 두 휘도의 대비비 계산식을 확인하세요. 예외나 전체 적합성 판정까지 한 함수로 합치지 말고, 선택한 두 불투명 색의 수치 계산 범위를 읽습니다.

WAI 표 안내에서는 머리글의 의미와 scope 방향을, 복잡한 그림 안내에서는 짧은 목적 설명과 값을 담는 긴 설명을 확인하세요. 이 장의 두 달 표에 어떤 글과 구조가 필요한지 자기 말로 연결해 보세요.

R 문서는 기본 반올림의 중간값과 이진 수 표현을 설명합니다. 이 수업에서 별도로 정의한 0에서 먼 쪽 규칙과 비교하고, 고정 코드가 어느 입력에서 무엇을 실행했는지 읽습니다. 실제 화면·보조 도구·동영상 재생 확인은 별도 최종 검토입니다.

Python · R · 원자료·단위·가공·출처

Use W3C G18 to check relative luminance and the ratio of two luminances. Read the scope of a calculation on two opaque colors separately from exceptions or an overall conformance decision.

Use the WAI table tutorial for header meaning and scope direction, and the complex-image tutorial for short purpose descriptions plus detailed values. Apply those ideas in your own words to the two-month toy table.

The R documentation explains default midpoint handling and binary representation. Compare it with this lesson’s separately declared ties-away rule and inspect what the fixed examples actually ran. Actual screens, assistive tools and video playback are separate final checks.

Python · R · Inputs, units, transformations and sources

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.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.

python data15-reproduce.py
Rscript --vanilla --encoding=UTF-8 data15-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. 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.

W3C WAI · 충분한 색상 대비W3C WAI · Colors with good contrast

W3C Web Accessibility Perspectives · audio-described version

공식 시각 설명 포함 영상을 본문에서 봅니다. 그래프의 값·계열 이름·표를 색 이외의 경로로도 읽을 수 있는지 생각하세요.Watch the official audio-described version in the chapter. Consider whether values, series names and a table are understandable beyond color alone.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 파랑·빨강만 구별하면 두 집단을 언제나 읽을 수 있나요?Can blue/red alone always identify two groups?

생각을 점검하는 해설Check your reasoning

문자 이름과 다른 표시·수치 표를 함께 제공하고 대비·다양한 사용 조건을 확인합니다.Also provide names, other markers and a numeric table, and check contrast and varied use conditions.

플로렌스 나이팅게일 · 통계를 전달하는 목적Florence Nightingale · The purpose of communicating statistics

Royal Statistical Society · official historical account

학회 기록의 1858년 가입과 통계·시각화에 기반한 소통을 살펴봅니다. 모든 통계 그림을 처음 발명했다는 식으로 과장하지 않고, 오늘 보고서가 근거와 한계를 함께 전달하는지 묻습니다.Read the Society’s account of her 1858 membership and communication through statistics/visualization. Do not claim she invented every statistical graphic; ask whether a report communicates evidence and limitations.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 설득력 있는 그림이면 비교 조건이나 분모를 생략해도 되나요?Does a persuasive graphic justify omitting comparison conditions or denominators?

생각을 점검하는 해설Check your reasoning

그림의 영향력이 클수록 단위·분모·관측 범위와 불확실성을 함께 전달해야 합니다.An influential graphic still needs units, denominators, observation scope and uncertainty.

W3C 공식 · 복잡한 그림의 짧고 긴 설명Official W3C · Short and long descriptions of complex graphics

WAI Images Tutorial · Complex Images

짧은 식별 설명과 값·관계·추세를 전하는 긴 설명의 역할을 읽습니다. 실제 국가 표·본문과 연결해 그림 없이도 질문에 답할 수 있게 고쳐 봅니다.Read the roles of short identification and longer descriptions conveying values, relationships and trends. Connect the actual country table/prose so readers can answer without seeing the chart.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading “GDP 그래프”라는 대체 설명만 충분한가요?Is “GDP graph” a sufficient text alternative?

생각을 점검하는 해설Check your reasoning

지표·기간·단위와 핵심 관계를 설명하고 실제 표로 값을 확인할 수 있게 합니다.Identify the measure, period, unit and key relationship, with values available in a table.

ICO 공식 · 코드 대체와 신원 연결 가능성Official ICO · Replacing codes and possible identity linkage

ICO · technical distinction in introduction to anonymisation

이름을 코드로 대체하는 것과 결합해도 알아볼 수 없게 하는 구별만 읽습니다. 영국 지침의 기술적 설명을 이 사례의 익명성 보증이나 한국 법률 준수 판정으로 옮기지 않습니다.Read the distinction between replacing identifiers and preventing identification through combined information. The UK guidance’s technical discussion is not a privacy guarantee for these data or a legal-compliance determination for Korea.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 해시로 코드를 바꾸면 원자료의 다른 변수는 더 보지 않아도 되나요?Does hashing a code remove the need to consider other variables?

생각을 점검하는 해설Check your reasoning

아닙니다. 남은 값의 조합과 다른 자료와의 연결 가능성도 중요합니다.No. Combinations of remaining values and possible external linkage also matter.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 두 달의 차이와 증가율Difference and growth across two months

설명용 개수가 첫 달 10, 다음 달 12입니다. 절대 차이·원래 값의 비·처음 값 기준 증가율을 구하고, 그림 없이 읽을 한 문장을 쓰세요.

Toy counts are ten in the first month and twelve in the next. Find difference, original-value ratio and growth relative to the first count. Write one sentence readable without a chart.

풀이와 확인할 이유Solution and explanation

차이는 2, 비는 12/10=6/5, 증가율은 (12−10)/10=1/5=20%입니다. 예: “설명용 개수는 10에서 12로 2개, 처음 값 기준 20% 증가했다.” 원래 값의 비 1.2와 증가율 0.2를 구분합니다.

The difference is two, ratio 6/5 and growth 1/5=20%. For example: “The toy count rose by two, from ten to twelve, a twenty-percent increase.” Distinguish ratio 1.2 from relative increase 0.2.

2. 세 기록의 두 분모Two denominators for three records

설명용 값이 2, 결측, 4입니다. 전체·가용·미가용 수와 가용평균을 구하고, 별도 0 채움 평균과 비교하세요.

Toy values are two, missing and four. Find source, available and missing counts and the available mean. Compare a separate zero-filled mean.

풀이와 확인할 이유Solution and explanation

전체 3·가용 2·미가용 1, 가용 합 6이므로 가용평균은 3입니다. 결측을 0으로 채운 세 행 평균은 2로 다릅니다. 두 정의를 구분하고 원래 결측 상태는 보존합니다.

Counts are three, two and one. Available sum six gives mean three. Zero filling instead divides by three and gives two. Retain missingness and report the distinct definitions.

3. 가용값이 없는 요약No available observations

입력은 결측 두 개뿐입니다. 가용값 합을 빈 합 0으로 정의할 때 가용 수·합·평균은 무엇인가요? “입력 읽기 성공”이 평균 0을 뜻하나요?

Both input positions are missing. Define the empty available sum as zero. Give available count, sum and mean. Does successful input reading imply mean zero?

풀이와 확인할 이유Solution and explanation

가용 수 0, 합 0이지만 평균은 0으로 나눌 수 없어 미정의입니다. 입력 형식을 읽은 것과 평균이 정의되는 것은 다른 조건입니다. 원래 두 위치와 결측 두 개를 남깁니다.

Available count and sum are zero; the mean is undefined because its denominator is zero. Successful parsing does not establish a mean. Retain both original missing positions.

4. 양·음의 정확한 중간값Positive and negative halfway ties

가장 가까운 0.01의 배수를 고르고 정확한 중간은 0에서 먼 쪽을 택합니다. 1.245와 −1.245의 표시값·표시값−원값을 구하세요.

Round to the nearest multiple of 0.01, sending exact halfway ties away from zero. Give displays and display-minus-original errors for 1.245 and −1.245.

풀이와 확인할 이유Solution and explanation

표시값은 1.25와 −1.25입니다. 오차는 각각 0.005와 −0.005입니다. 부호에 관계없이 절대 오차는 0.005이며 원래 두 수는 별도로 보존합니다.

Displays are 1.25 and −1.25. Signed errors are 0.005 and −0.005, both with absolute error 0.005. Retain the originals separately.

5. 2.675를 먼저 분수로 읽기Read 2.675 as an exact fraction

정확한 십진 2.675와 −2.675를 가장 가까운 0.01로, 중간은 0에서 먼 쪽으로 표시합니다. 분수 표현과 두 결과를 구하세요.

Treat 2.675 and −2.675 as exact decimals. Round to nearest 0.01 with halfway ties away from zero. Give their fractional representation and displays.

풀이와 확인할 이유Solution and explanation

2.675=107/40입니다. 양수는 2.67과 2.68의 중간이라 2.68, 음수는 −2.68입니다. 컴퓨터의 이진 근사값을 새 원값으로 삼기 전에 주어진 정확한 십진을 읽는 계산입니다.

The positive value is 107/40. Displays are 2.68 and −2.68. This calculation uses the stated exact decimals rather than silently replacing them by binary floating inputs.

6. 합계 표시의 세 순서Three orders for displaying a total

정확한 값 0.005가 세 개입니다. 가장 가까운 0.01·중간은 0에서 먼 쪽 규칙에서 원래 합, 각 행을 먼저 반올림한 합, 원래 합을 한 번 반올림한 값을 구하세요.

There are three exact values 0.005. Under nearest 0.01 with ties away from zero, find the original sum, sum after rounding each row and original sum rounded once.

풀이와 확인할 이유Solution and explanation

원래 합은 0.015, 각 행 표시 0.01을 더하면 0.03, 원래 합 0.015를 한 번 표시하면 0.02입니다. 각각 합만 계산, 행 표시 후 합, 합 후 표시라는 다른 순서입니다.

They are 0.015, 0.03 and 0.02. The operations are original summation, row rounding before summation and rounding once after summation.

7. 두 행의 평균과 표시A mean before and after row formatting

정확한 값 0.004와 0.014를 사용합니다. 원래 평균과 그 두 자리 표시, 각 행을 먼저 두 자리 표시한 뒤의 평균을 구하세요. 중간값은 0에서 먼 쪽으로 표시합니다.

Use exact values 0.004 and 0.014. Find the original mean, its two-place display and the mean after displaying each row to two places. Exact halfway ties go away from zero.

풀이와 확인할 이유Solution and explanation

원래 평균은 0.018/2=0.009이고 그 표시는 0.01입니다. 행 표시 0.00과 0.01의 평균은 0.005입니다. 마지막 수를 다시 표시하면 0.01이 되지만 원래 평균과 같은 계산 경로는 아닙니다.

Original mean 0.009 displays as 0.01. Displayed rows 0.00 and 0.01 have mean 0.005. Formatting that intermediate mean again gives 0.01 but is another calculation path.

8. 네 행의 표시 오차 상계A four-row display-error bound

유한 가용값 4개를 가장 가까운 0.1의 배수로 표시합니다. 한 행·합·행 평균의 절대 오차 상계를 구하고, 중간을 0에서 먼 쪽으로 택할 때 달성 예를 쓰세요.

Four finite available values are displayed as nearest multiples of 0.1. Bound absolute single-row, sum and row-mean errors. Give attainment under ties away from zero.

풀이와 확인할 이유Solution and explanation

한 행은 0.05, 합은 4×0.05=0.2, 평균은 0.05 이하입니다. 네 값이 모두 0.05면 모두 0.1이 되어 합 오차 0.2와 평균 오차 0.05를 달성합니다. 측정 오차의 상계는 아닙니다.

Bounds are 0.05, 0.2 and 0.05. Four originals 0.05 all display as 0.1, attaining the sum and mean bounds. These describe the display transformation, not measurement error.

9. 가까운 짝수 규칙과 비교Compare nearest-even and away-from-zero ties

정확한 수 0.5와 −1.5를 정수로 표시합니다. 정확한 중간을 가까운 짝수 쪽으로 보내는 규칙과 0에서 먼 쪽 규칙의 결과를 비교하세요.

Display exact 0.5 and −1.5 as integers. Compare halfway ties to the nearest even integer with ties away from zero.

풀이와 확인할 이유Solution and explanation

가까운 짝수는 0과 −2, 0에서 먼 쪽은 1과 −2입니다. 첫 값에서 결과가 다릅니다. “반올림”이라는 이름만으로 중간값 처리가 정해지는 것은 아니므로 규칙을 적습니다.

Nearest-even gives zero and −2; away-from-zero gives one and −2. The first differs. A named midpoint convention is needed in addition to the word “rounding.”

10. 표시 두 자리와 측정 정확도Display places versus measurement accuracy

원자료 설명에 측정 오차가 없고 화면에서만 1.23456을 1.23으로 보입니다. 이 사실만으로 측정 오차가 0.005 이하라고 말할 수 있나요? 어떤 오차는 직접 계산할 수 있나요?

A screen displays recorded 1.23456 as 1.23, and no measurement-error information is supplied. Does this establish measurement error at most 0.005? What error can be calculated?

풀이와 확인할 이유Solution and explanation

측정 오차를 정할 수 없습니다. 표시값−원기록값은 −0.00456으로 계산할 수 있지만, 원기록과 알지 못하는 실제 측정 대상의 차이는 별도 정보가 필요합니다.

No measurement bound follows. Display-minus-record error is −0.00456. The difference between the record and an unknown measured truth requires other information.

11. 바닥 9의 높이 비Bar heights from origin nine

원값 10과 12를 바닥 9의 막대로 나타냅니다. 두 높이와 높이 비·원값 비·원래 증가율을 구하세요.

Display originals ten and twelve as bars above origin nine. Find heights, height ratio, original ratio and original growth.

풀이와 확인할 이유Solution and explanation

높이는 1과 3, 높이 비는 3입니다. 원값 비는 6/5, 증가율은 1/5=20%입니다. 높이 비 3을 원래 개수의 성장 배수로 바꾸지 않습니다.

Heights are one and three; their ratio is three. Original ratio is 6/5 and growth 1/5=20%. The height ratio is not the original growth multiple.

12. 바닥 5와 비의 차이Difference between ratios at origin five

원값 10과 12에서 바닥을 5로 놓습니다. 높이 비와 원값 비의 차이를 정확 분수로 구하세요.

For original values ten and twelve, choose origin five. Find the exact difference between the height ratio and original ratio.

풀이와 확인할 이유Solution and explanation

높이 비는 (12−5)/(10−5)=7/5입니다. 원값 비 6/5와의 차이는 1/5입니다. 원래 절대 차이는 여전히 2입니다.

Height ratio is 7/5; original ratio is 6/5. Their difference is 1/5. The original absolute change remains two.

13. 0에서 12로의 변화From zero to twelve

원래 첫 값이 0, 다음 값이 12입니다. 절대 증가·처음 값 기준 증가율·원값 비를 판정하고 보고 문장을 쓰세요.

The original first value is zero and next value twelve. Evaluate absolute increase, growth relative to the first value and value ratio, then write a report sentence.

풀이와 확인할 이유Solution and explanation

절대 증가는 12입니다. 증가율과 비는 0으로 나누므로 미정의입니다. “0에서 12로 12 증가했으며 원래 0 기준의 상대 증가율은 정의되지 않는다”라고 쓸 수 있습니다.

The absolute increase is twelve. Growth and ratio are undefined due to their zero denominator. Report the change from zero to twelve directly rather than manufacturing a percentage.

14. 첫 높이가 0인 막대A bar whose first height is zero

원값 10과 12에서 바닥도 10입니다. 원래 증가율과 두 높이·높이 비를 구하세요.

Original values are ten and twelve with origin ten. Give original growth, heights and the height-ratio status.

풀이와 확인할 이유Solution and explanation

원래 증가율은 20%입니다. 높이는 0과 2여서 높이 비는 2/0으로 미정의입니다. 바닥 선택은 원값을 0으로 바꾸지 않습니다.

Original growth is twenty percent. Heights zero and two give an undefined height ratio. Choosing the origin does not replace the original first value by zero.

15. 바닥이 첫 값보다 높으면An origin above the first value

원값 10과 12에서 바닥 11을 택합니다. 부호 있는 높이는 얼마인가요? 이를 두 양의 막대 높이의 비처럼 보고해도 되나요?

Original values are ten and twelve with origin eleven. Give signed heights. May they be reported as a ratio of two positive bar heights?

풀이와 확인할 이유Solution and explanation

높이는 −1과 1입니다. 두 양의 높이가 아니므로 실습의 양의 높이 비 조건을 만족하지 않습니다. 원래 차이 2·증가율 20%와 부호 있는 높이를 별도로 남깁니다.

Heights are −1 and one, so the positive-height comparison conditions fail. Retain signed heights separately from original difference two and growth twenty percent.

16. 센트와 달러의 라벨Labels for cents and dollars

실제 원행의 시급이 548센트/시간이고 이 변수가 가용한 기록 수는 3,017개입니다. 달러/시간으로 환산한 값과 가용 기록 수를 쓰세요.

An actual source wage is 548 cents/hour, and the variable is available on 3,017 records. Convert the wage to dollars/hour and give the available count.

풀이와 확인할 이유Solution and explanation

548/100=5.48달러/시간이며 가용 수는 3,017개 그대로입니다. 단위 환산은 시급 값을 바꾸지만 사람 수를 100으로 나누지 않습니다. 원래 1976년 금액이라는 기간도 유지합니다.

The wage is 5.48 dollars/hour and the count remains 3017. Value-unit conversion does not divide the number of people by one hundred. Retain the original 1976 period.

17. 바닥도 같은 단위로 바꾸기Convert the origin to the same unit too

원값 10·12달러, 바닥 9달러를 모두 센트로 바꿉니다. 두 센트 값·바닥·높이 비를 구하고, 바닥만 9센트로 남기면 왜 다른 문제인지 설명하세요.

Convert original values 10/12 dollars and origin nine dollars to cents. Give both values, origin and height ratio. Why is retaining origin nine cents a different problem?

풀이와 확인할 이유Solution and explanation

원값은 1,000·1,200센트, 바닥은 900센트라 높이 비는 300/100=3입니다. 바닥 9센트는 원래 9달러와 다르므로 높이 비 (1,200−9)/(1,000−9)를 계산하는 별도 설정입니다.

Values become 1000/1200 cents with origin 900, retaining height ratio three. Origin nine cents is not nine dollars and instead yields (1200−9)/(1000−9). All quantities in a subtraction need consistent units.

18. 그림 없이 읽는 짧은 설명A chart description readable without the image

설명용 세 시점 값이 99·100·101이고 선 그래프의 y축은 98–102입니다. 원값·추세·축 범위를 포함하는 짧은 설명을 쓰세요.

Toy values at three times are 99/100/101, plotted on a line chart with y-range 98–102. Write a short description including originals, trend and range.

풀이와 확인할 이유Solution and explanation

예: “설명용 값은 세 시점에서 99·100·101로 각각 1씩 증가했다. 그림은 y축 98–102를 사용하며 원값 세 개는 옆 표에도 제공한다.” 축 범위와 실제 증가량을 함께 알려 줍니다.

For example: “Values rose by one at each time, from 99 to 100 to 101. The chart uses y-range 98–102; the adjacent table retains all three values.” This states the display range alongside actual changes.

19. 검정·흰색과 같은 색의 대비Black/white and identical-color contrast

대비비는 (L₁+0.05)/(L₂+0.05)이고 L₁≥L₂입니다. 검정의 상대 휘도는 0, 흰색은 1입니다. 검정/흰색과 같은 색 두 개의 대비비를 계산하세요.

Contrast is (L₁+0.05)/(L₂+0.05), with L₁≥L₂. Black has luminance zero and white one. Calculate black/white contrast and contrast between identical colors.

풀이와 확인할 이유Solution and explanation

검정/흰색은 1.05/0.05=21입니다. 같은 색은 분자·분모가 같아 1입니다. 대비비 1은 0과 다른 값이며, 한 색 쌍 계산이 전체 화면 읽기 평가를 대신하지 않습니다.

Black/white gives 21. Identical colors give one because numerator and denominator agree. A ratio of one is not zero; this numerical pair comparison is separate from evaluating an entire screen.

20. 16진 채널 76을 읽기Read the hexadecimal 76 channel

여섯 자리 sRGB 색 #767676의 각 16진 채널은 76입니다. 이를 십진으로 바꾸고 255로 나눈 c_s를 정확 분수로 쓰세요. c_s≤0.04045일 때만 선형 나누기 가지를 쓰는 규칙에서 어느 가지인가요?

Each channel of sRGB color #767676 is hexadecimal 76. Convert to decimal and give c_s after division by 255. A rule uses the linear division branch only when c_s≤0.04045. Which branch applies?

풀이와 확인할 이유Solution and explanation

16진 76은 7×16+6=118, 따라서 c_s=118/255입니다. 약 0.4627로 0.04045보다 커서 ((c_s+0.055)/1.055)^2.4 가지를 사용합니다. RGB 원채널의 단순 평균을 상대 휘도로 대신하지 않습니다.

The channel is 118, giving 118/255≈0.4627. It exceeds 0.04045, so use the power branch ((c_s+0.055)/1.055)^2.4. A simple mean of raw RGB channels is not a replacement for relative luminance.

21. 4.499를 먼저 반올림하면Rounding 4.499 before comparison

어떤 색 쌍의 계산 대비비가 4.499이고 비교 기준은 “반올림 전 값이 4.5 이상”입니다. 한 자리 표시가 4.5라는 이유로 통과인가요?

A color pair has computed contrast 4.499. The criterion requires the unrounded value to be at least 4.5. Does a one-place display 4.5 make it pass?

풀이와 확인할 이유Solution and explanation

아닙니다. 4.499<4.5여서 주어진 비교를 통과하지 않습니다. 표시 숫자와 비교에 쓴 계산값을 구분해야 합니다. 반올림으로 원래 부등호를 바꾸지 않습니다.

No. The unrounded value is below 4.5. Distinguish display formatting from the value used in the inequality; rounding does not change that original comparison.

22. 두 회색의 세 기준Two grays and three numerical thresholds

흰 배경의 두 불투명 회색 대비비는 각각 약 4.542와 4.478입니다. 이 근삿값은 각 기준에서 판정이 바뀔 만큼 가까운 경계가 아니라고 가정합니다. 비교값 4.5·3·7에서 통과/미달을 각각 쓰세요.

Two opaque grays on white have contrast about 4.542 and 4.478. Assume numerical uncertainty cannot change their comparisons here. Classify each against 4.5, three and seven.

풀이와 확인할 이유Solution and explanation

4.5에서는 첫 색만 통과합니다. 3에서는 둘 다 통과하고, 7에서는 둘 다 미달입니다. 3이라는 큰 글자 비교값의 통과가 실제 글자가 큰 글자 조건을 만족함을 증명하지는 않습니다.

Only the first passes 4.5. Both exceed three and both fall below seven. Passing a numerical large-text comparison does not establish the actual font-size condition.

23. 가중 휘도와 흰 배경Weighted luminance against white

변환된 채널 R=1,G=0,B=0이고 L=0.2126R+0.7152G+0.0722B입니다. 흰 배경 L=1과의 대비비 (1+0.05)/(L+0.05)를 정확 분수로 구하고 3·4.5와 비교하세요.

Transformed channels are R=one,G=B=zero, with L=0.2126R+0.7152G+0.0722B. Compute exact contrast (1+0.05)/(L+0.05) against white and compare with three and 4.5.

풀이와 확인할 이유Solution and explanation

L=0.2126이므로 대비는 1.05/0.2626=5,250/1,313≈3.998입니다. 3 이상이지만 4.5 미만입니다. 입력은 이미 변환된 채널이라는 조건을 사용했으며 원 sRGB 8비트 값과 혼동하지 않습니다.

L=0.2126 gives 5250/1313≈3.998. It exceeds three but is below 4.5. The inputs are already transformed channels, not raw 8-bit sRGB values.

24. 한 색 쌍의 범위Scope of one color-pair check

불투명 전경·배경 두 색이 보통 글자 대비비 4.5를 넘었습니다. 이것만으로 화면의 키보드 조작·표 머리글·큰 글자 크기·모든 이용자의 읽기 경험까지 확인했다고 말할 수 있나요?

An opaque foreground/background pair exceeds ordinary-text contrast 4.5. Does that alone verify keyboard interaction, table headers, large-font qualification and every user’s reading experience?

풀이와 확인할 이유Solution and explanation

그럴 수 없습니다. 계산한 것은 입력한 두 불투명 색의 대비비입니다. 키보드 이동, 표 구조, 글꼴·크기와 실제 읽기 경험은 각각 다른 확인이 필요합니다. 성공한 좁은 수치 비교를 그대로 보고합니다.

No. The calculation checks that supplied opaque color pair. Interaction, semantics, font conditions and actual reading require separate checks. Report the successful numerical comparison at its actual scope.

25. 색 없이도 남는 두 기간Two periods without color dependence

파란 막대 10과 주황 막대 12가 첫 달·다음 달입니다. 범례가 “파랑/주황”뿐일 때 색을 쓰지 않고 기간·값·변화를 읽게 할 두 가지 보완을 쓰세요.

Blue and orange bars of ten and twelve mean first and next month, but the legend says only “blue/orange.” Give two improvements that expose periods, values and change without color.

풀이와 확인할 이유Solution and explanation

막대에 기간 이름과 수치 라벨을 직접 붙이고, 같은 값을 담은 표와 “10에서 12로 2 증가”라는 글을 제공할 수 있습니다. 색 이름만 다시 쓰는 것은 기간과 값을 읽는 다른 경로가 되지 않습니다.

Add direct period/value labels and provide an accompanying table and sentence stating the rise by two. Repeating color names alone does not create an alternative route to the information.

26. 짧은 설명과 값 표A short description and a value table

설명용 값이 10·12인 막대 그림에 “결과가 좋아진 그래프”라는 설명만 있습니다. 평가 단어 대신 그림의 목적과 값·관계를 담은 설명을 쓰세요.

A toy bar chart for ten and twelve has only the description “A graph showing better results.” Replace that evaluation with purpose, values and relationship.

풀이와 확인할 이유Solution and explanation

예: “두 달의 개수 비교. 첫 달 10, 다음 달 12로 차이는 2이며 원래 값 기준 20% 증가했다. 표에 두 원값과 단위를 제공한다.” 그래프 평가보다 독자가 확인할 정보를 줍니다.

For example: “Counts in two months: ten then twelve, an increase of two or twenty percent. The table gives both original values and units.” Supply inspectable information rather than only a judgment.

27. 열 머리글의 구조Column-header structure

HTML 표의 열이 “기간/개수”입니다. 굵은 글자만 쓰는 것과 th scope="col"를 쓰는 차이를 설명하고 표 전체의 이름을 두는 요소를 쓰세요.

An HTML table has columns “Period/Count.” Explain bold text versus th scope="col" and name the element for a table caption.

풀이와 확인할 이유Solution and explanation

굵게 보이는 것은 표현이고 th와 scope는 머리글·열 방향을 구조적으로 알려 줍니다. 표 전체의 이름은 caption에 둘 수 있습니다. 이 작은 구조를 작성한 사실과 실제 보조 도구로 읽는 검증은 구분합니다.

Bold appearance is presentation; th with scope identifies a column-header relationship. Use caption for the table’s name. Writing that structure is separate from testing the actual assistive reading experience.

28. 공개 칸만 남긴 보고A report containing only selected fields

집단 A는 가용 2개·합 4, B는 가용 1개·합 10입니다. 공개 칸을 집단 이름·가용 수·평균으로 정했습니다. 두 보고 행을 쓰고 어느 집단에서 한 값이 그대로 드러나는지 설명하세요.

Group A has two available values summing to four; B has one summing to ten. Release group label, available count and mean. Write both rows and identify any exposed single value.

풀이와 확인할 이유Solution and explanation

A는 (A,2,2), B는 (B,1,10)입니다. B는 가용 1개라 평균 10이 그 한 값입니다. 합 열과 이름 열의 생략만으로 개별 수치가 항상 감춰진다고 결론 낼 수 없습니다.

Rows are (A,2,2) and (B,1,10). B’s mean ten fixes its one available value. Omitting a sum or a personal-name field is not a universal proof against numerical disclosure.

29. 하나 남은 값의 복원Recover one remaining value

유한 가용값 3개 합이 18이고 그 안에 포함된 2개의 합이 10입니다. 부분과 나머지는 겹치지 않고 같은 수치 정의입니다. 나머지 수·합·값을 구하세요.

Three finite available values sum to eighteen. An included part of two sums to ten, disjoint from the remainder and using the same definition. Find remainder count, sum and value.

풀이와 확인할 이유Solution and explanation

수는 1, 합은 8이라 그 유일한 값은 8입니다. 포함 관계와 같은 가용 집합이라는 전제가 있어 전체−부분을 쓸 수 있습니다. 외부 실명 연결을 한 계산은 아닙니다.

The remainder has one value and sum eight, so its value is eight. The stated nesting and common available set justify subtraction. This calculation does not perform external name linkage.

30. 둘 남은 평균은 두 값이 아니다A two-value remainder mean is not two individual values

유한 값 3개 합 18에서 포함된 한 값 4를 뺍니다. 남은 수·합·평균을 구하고 가능한 서로 다른 두 값 쌍을 제시하세요.

From three finite values totaling eighteen, remove an included value four. Give remainder count, sum and mean, plus two distinct compatible pairs.

풀이와 확인할 이유Solution and explanation

남은 수 2·합 14·평균 7입니다. (6,8)과 (0,14)가 모두 가능합니다. 두 값을 각각 7이라고 채우는 것은 알려진 합에서 나오지 않는 추가 선택입니다.

Count two, sum fourteen and mean seven. Pairs (6,8) and (0,14) both fit. Assigning seven to each individual adds an assumption not implied by the sum.

31. 포함 관계가 없는 두 합Two sums without a nesting relationship

2020년 가용 3개 합 18과 2024년 다른 사람 가용 2개 합 10이 있습니다. 차이 8을 “남은 한 사람 값”이라고 부를 수 있나요?

Three available 2020 values sum to eighteen; two different people in 2024 sum to ten. May the difference eight be called one remaining person’s value?

풀이와 확인할 이유Solution and explanation

그럴 수 없습니다. 서로 다른 시점·사람의 집합이며 두 번째가 첫 번째에 포함되었다는 전제가 없습니다. 수와 합의 숫자 차이는 계산할 수 있어도 같은 전체에서 한 명을 남겼다고 해석할 수 없습니다.

No. Different people and periods do not establish that one set is an included part of the other. Arithmetic subtraction alone does not create a one-person remainder.

32. 나머지 0개의 합과 평균Zero remaining values: sum and mean

같은 유한값 전체와 부분의 개수가 모두 3이고 합도 모두 18입니다. 나머지 수·합·평균을 구하세요. 같은 수 조건에서 합이 18과 17이면 무엇을 확인해야 하나요?

A finite total and included part both have count three and sum eighteen. Give the remainder. What if their counts agree but sums are eighteen and seventeen?

풀이와 확인할 이유Solution and explanation

나머지 수 0·합 0·평균 미정의입니다. 빈 합은 0이지만 빈 평균은 없습니다. 전체−부분이 같은 유한값의 분할이라면 수 0·합 1은 모순이므로 포함 관계·합·정의 중 무엇이 맞지 않는지 확인해야 합니다.

The remainder has count zero, sum zero and undefined mean. A count-zero remainder with sum one is inconsistent with the stated partition of identical finite values; recheck nesting, sums or definitions.

33. 두 명이어도 범위 조건이 값을 정한다Two values can be determined by a support restriction

두 값 x,y가 음수가 아니며 x+y=0이라고 알려져 있습니다. 가능한 값을 구하고 “집단 크기 2면 언제나 개별 값이 감춰진다”는 주장을 평가하세요.

Nonnegative values x,y satisfy x+y=zero. Find them and assess “A group of two always hides the individual values.”

풀이와 확인할 이유Solution and explanation

둘 중 하나라도 양수면 합이 양수이므로 x=y=0뿐입니다. 비음수라는 추가 조건이 두 값을 모두 정했습니다. 집단 수만으로 모든 공개 정보의 효과를 판정할 수 없습니다.

Both must be zero: a positive one would force a positive sum. The extra support restriction identifies both values, so group size alone does not determine the effect of released information.

34. 같은 평균과 다른 범위Equal means with different ranges

설명용 두 자료 [1,3]과 [0,4]의 평균과 범위를 구하세요. 가용 수 2·평균 2만 공개하면 범위가 정해지나요?

Compare means and ranges of [1,3] and [0,4]. Does releasing count two and mean two determine the range?

풀이와 확인할 이유Solution and explanation

둘 다 평균 2지만 최대−최소 범위는 각각 2와 4입니다. 같은 수·평균이 같은 분포나 범위를 정하지 않습니다. 현재 집계로 답할 수 없는 질문을 작은 반례로 보인 것입니다.

Both have mean two; ranges are two and four. Count and mean do not determine distribution or range. The pair provides a counterexample rather than inventing missing individual data.

35. 두 실제 교육 집단의 합계Totals for two actual education groups

실제 교육 12 이하 집단은 원행 1,806·가용 1,489·미가용 317이고, 12 초과는 1,807·1,521·286입니다. 전체 세 수와 각 집단 평균의 올바른 가용 분모를 쓰세요.

The at-most-twelve schooling group has source/available/missing counts 1806/1489/317. The above-twelve group has 1807/1521/286. Give combined counts and the two available-mean denominators.

풀이와 확인할 이유Solution and explanation

전체 원행 3,613·가용 3,010·미가용 603입니다. 두 가용 평균의 분모는 1,489와 1,521입니다. 결측을 포함한 원행 수를 분모로 바꾸면 다른 계산입니다.

Combined counts are 3613/3010/603. The mean denominators are 1489 and 1521, not the source counts that include unavailable records.

36. 두 집단을 같은 무게로 놓으면Equal weighting of groups versus records

서로 겹치지 않는 집단 A는 가용 수 2·평균 2, B는 가용 수 1·평균 10입니다. 집단 균등 평균과 가용 기록 균등 평균을 구하세요.

Disjoint group A has available count two and mean two; B has count one and mean ten. Calculate equal-group and equal-available-record means.

풀이와 확인할 이유Solution and explanation

집단 균등은 (2+10)/2=6입니다. 기록 균등은 (2×2+1×10)/3=14/3입니다. 두 가중 대상이 달라 결과가 다르며 한 숫자를 다른 이름으로 바꾸지 않습니다.

The equal-group mean is six. The equal-record mean is 14/3. They use different weighting targets and should be labeled accordingly.

37. 가용 0개 집단의 합치기Pooling a group with no available values

서로 겹치지 않는 집단 A의 가용 수·합이 0·0이고 B는 2·4입니다. 전체 가용 평균을 구하세요. A의 평균을 0으로 만들어야 하나요?

Disjoint group A has available count/sum zero/zero; B has two/four. Find the pooled available mean. Must A be assigned mean zero?

풀이와 확인할 이유Solution and explanation

전체 가용 수 2·합 4라 평균 2입니다. A는 평균 미정의로 남기고 합 0·수 0을 더하면 됩니다. “0×미정의 평균”이라는 식을 만들 필요가 없습니다.

Total count two and sum four give mean two. Retain A’s undefined mean and pool sums/counts directly; there is no need to form zero times an undefined mean.

38. 합 열을 빼도 되찾을 수 있는 정보Information recoverable after omitting a sum column

가용 수 74와 정확 평균 1/2을 공개하고 합 열은 제외했습니다. 가용 합을 되찾을 수 있나요? 이 예가 합 열 생략의 어떤 범위를 보여 주나요?

A release includes available count 74 and exact mean 1/2 but omits the sum. Can the sum be recovered? What does this show?

풀이와 확인할 이유Solution and explanation

합은 74×1/2=37로 정해집니다. 열을 뺐다는 사실만으로 그 수치 정보도 사라진 것은 아닙니다. 다만 이 두 집계가 74개의 개별 값을 모두 정해 주는 것은 아닙니다.

The sum is 37. Omitting a column need not remove information recoverable from other exact fields. These aggregates still do not determine all 74 individual values.

39. 같은 해시와 원문 진실성Matching digests versus source truth

보고 파일의 SHA256이 보관 입력과 일치했습니다. 이 확인만으로 파일 내용의 모든 주장과 사용 허가가 맞다고 결론 내릴 수 있나요? 해시의 유한 충돌 존재도 설명하세요.

A report’s SHA256 agrees with a retained input. Does this alone validate every claim and usage permission? Also explain finite collision existence.

풀이와 확인할 이유Solution and explanation

해시는 기록한 바이트 대조의 증거이지 원문 주장·허가의 증거는 아닙니다. 가능한 33바이트 입력 2²⁶⁴개는 256비트 출력 2²⁵⁶개보다 많아 어떤 충돌은 존재합니다. 이는 특정 충돌 쌍을 찾았다는 뜻도 아닙니다.

A digest comparison concerns retained bytes, not every claim or permission. There are 2^264 inputs of 33 bytes but 2^256 digest outputs, so a collision exists by pigeonhole. This does not calculate a particular collision pair.

40. 새 브라우저 표시의 실행 경로Execution path for a new browser display

보관 파일 counts.csv를 사용한 Python 실행 기록이 있고, 브라우저에서 표시 자릿수를 바꿨습니다. 이 동작을 새 Python 실행·새 HTTP 수집이라고 써도 되나요? 무엇을 기록하면 구분되나요?

An archived Python run used counts.csv. A reader now changes display digits in the browser. Is this a new Python run or HTTP collection? What records distinguish them?

풀이와 확인할 이유Solution and explanation

현재 동작이 JavaScript 표시 계산이라면 그렇게 쓸 수 없습니다. 고정 실행의 프로그램·입력·출력 해시와 시점, 새 브라우저 입력·선택 자릿수·계산 경로를 나누어 적습니다.

If the current action is JavaScript calculation, neither claim follows. Separate the archived program/input/output evidence from the new browser inputs, display choice and execution path.

41. 14개 기록의 혼동표Confusion cells for fourteen records

설명용 표는 불만 없음에서 비이탈 8·이탈 2, 불만 있음에서 비이탈 1·이탈 3입니다. 불만이 있으면 이탈로 예측하는 규칙의 TP·FP·FN·TN을 쓰고 합을 확인하세요.

Toy cells are eight stays/two churns without a complaint and one stay/three churns with a complaint. Predict churn when flagged. Give TP,FP,FN,TN and their sum.

풀이와 확인할 이유Solution and explanation

TP=3,FP=1,FN=2,TN=8이며 합은 14입니다. 양성은 이탈, 행은 불만 표지, 열은 관측 결과라는 정의를 사용했습니다.

They are three, one, two and eight, totaling fourteen. Positive means churn; rows are complaint flags and columns observed outcomes.

42. 세 성능 지표의 세 분모Three metrics and three denominators

설명용 규칙의 TP=3,FP=1,FN=2,TN=8입니다. 정확도·재현율·정밀도를 정확 분수로 구하고 각 분모가 세는 대상을 쓰세요.

A toy rule has TP=three,FP=one,FN=two,TN=eight. Find exact accuracy, recall and precision and name their denominators.

풀이와 확인할 이유Solution and explanation

정확도는 (3+8)/14=11/14로 전체 기록이 분모입니다. 재현율은 3/(3+2)=3/5로 실제 양성, 정밀도는 3/(3+1)=3/4로 양성 예측이 분모입니다.

Accuracy 11/14 uses all records; recall 3/5 uses observed positives; precision 3/4 uses positive predictions. These are different conditional sets.

43. 무경고 규칙의 미정의 정밀도Undefined precision for a no-positive rule

관측 이탈 5·비이탈 9인 14개 기록에서 아무도 이탈로 예측하지 않습니다. 혼동표와 정확도·재현율·정밀도를 구하세요.

Fourteen records contain five observed churners and nine stays. Predict no churn. Give confusion counts and accuracy, recall and precision.

풀이와 확인할 이유Solution and explanation

TP=0,FP=0,FN=5,TN=9입니다. 정확도 9/14·재현율 0은 정의되지만 정밀도는 0/0으로 미정의입니다. 양성 예측이 없다는 문구를 붙입니다.

TP/FP/FN/TN are 0/0/5/9. Accuracy is 9/14 and recall zero. Precision is undefined because there are no positive predictions, rather than an observed precision zero.

44. 전원 경고의 다른 분모Denominators for predicting everyone positive

관측 이탈 5·비이탈 9인 14개 기록에서 모두 이탈로 예측합니다. 혼동표와 정확도·재현율·정밀도를 구하세요.

Fourteen records contain five observed churners and nine stays. Predict all churn. Give confusion counts and the three metrics.

풀이와 확인할 이유Solution and explanation

TP=5,FP=9,FN=0,TN=0입니다. 정확도와 정밀도는 5/14이고 재현율은 5/5=1입니다. 재현율 1이 모든 예측이 맞다는 뜻은 아닙니다.

TP/FP/FN/TN are 5/9/0/0. Accuracy and precision are 5/14; recall is one. Recall one does not mean that all predictions are correct.

45. 같은 오류 벌점의 세 규칙Three rules with equal error weights

설명용 세 규칙의 (FP,FN)은 무경고 (0,5), 표지 (1,2), 전원 경고 (9,0)입니다. 점수 L=aFP+bFN에서 a=b=1로 두고 모든 최소 규칙을 구하세요.

Toy (FP,FN) pairs are none (0,5),flag (1,2),all (9,0). For L=aFP+bFN with both weights one, find all minimizing rules.

풀이와 확인할 이유Solution and explanation

점수는 5·3·9라 표지 규칙만 최소입니다. 비교한 선택 집합은 제공된 세 고정 규칙이며 모든 가능한 예측 함수 중 최적을 구한 것은 아닙니다.

Scores are five, three and nine. Only the flag rule minimizes them. This comparison is among the three supplied rules, not every possible prediction function.

46. 놓침 벌점 4의 동률A tie when misses cost four

세 규칙의 (FP,FN)은 무경고 (0,5), 표지 (1,2), 전원 경고 (9,0)입니다. L=FP+4FN의 점수와 모든 최소 규칙을 구하세요.

Error pairs are none (0,5),flag (1,2),all (9,0). Calculate L=FP+4FN and every minimum.

풀이와 확인할 이유Solution and explanation

무경고 20, 표지 9, 전원 경고 9입니다. 표지와 전원 경고가 모두 최소입니다. 추가 기준 없이 한 규칙만 유일 최선이라고 지우지 않습니다.

Scores are twenty, nine and nine. Flag and all-positive both minimize the criterion; choosing one needs an additional stated rule.

47. 0건 표의 형식적 점수Formal scores on a zero-record table

불만×결과 네 칸이 모두 0인 표에 무경고·표지·전원 경고 규칙을 적용합니다. FP와 FN 벌점은 각각 1입니다. 점수 최선과 관측 성능 지표의 정의 여부를 구분하세요.

Every complaint/outcome cell is zero. Apply none,flag and all-positive with FP/FN weights one. Distinguish score minimizers from observed metric definitions.

풀이와 확인할 이유Solution and explanation

세 규칙의 FP,FN은 모두 0이라 형식적 점수는 0으로 모두 동률입니다. 전체·실제 양성·양성 예측 분모도 모두 0이라 정확도·재현율·정밀도는 미정의입니다. 점수 동률이 관측 성능의 증거는 아닙니다.

All formal scores are zero and all three rules tie. All metric denominators are zero, so accuracy, recall and precision are undefined. A formal tie does not supply observed performance evidence.

48. 벌점의 공통 양수 배율A common positive penalty multiplier

유한한 규칙 집합에서 점수는 L_j=aFP_j+bFN_j이고 오류 수는 유한합니다. a,b≥0을 같은 λ>0으로 곱해도 모든 최소 규칙이 보존됨을 증명하세요. λ=0과 비교하세요.

A finite rule set has finite scores L_j=aFP_j+bFN_j with nonnegative a,b. Prove multiplying both weights by λ>zero preserves all minimizers. Compare λ=zero.

풀이와 확인할 이유Solution and explanation

새 점수는 λL_j라 임의 j,k의 점수 차이 부호와 0 동률이 같습니다. 따라서 전체 최소 목록이 같습니다. λ=0이면 모든 점수가 0으로 같아져 원래 최소가 아닌 규칙도 동률이 될 수 있습니다.

Every score becomes λL_j, preserving the signs of all score differences and every tie. At λ=zero all scores are equal, so additional rules may become minimizers.

49. 실제 네 칸의 두 주변합Two margins of the actual four cells

실제 불만 없음의 비이탈·이탈은 2,614·295, 불만 있음은 41·200입니다. 전체·실제 이탈·불만 표지 수를 구하세요.

Actual stay/churn cells are 2614/295 without a complaint and 41/200 with a complaint. Find total, observed churners and flagged records.

풀이와 확인할 이유Solution and explanation

전체는 3,150, 실제 이탈은 495, 불만 표지는 241입니다. 열의 합과 행의 합은 서로 다른 대상을 세므로 495와 241을 바꾸어 쓰지 않습니다.

They are 3,150, 495 and 241. The outcome margin and flag margin count different sets and cannot be interchanged.

50. 실제 표지 규칙의 세 지표Three metrics for the actual flag rule

실제 불만×결과 표는 (비이탈,이탈) 순서로 불만 없음 (2,614,295), 있음 (41,200)입니다. 불만 표지로 이탈을 예측할 때 정확도·재현율·정밀도를 정확 분수로 구하세요.

Actual (stay,churn) cells are (2614,295) without a complaint and (41,200) with one. Predict churn on a complaint. Find exact accuracy, recall and precision.

풀이와 확인할 이유Solution and explanation

TP=200,FP=41,FN=295,TN=2,614입니다. 정확도 2,814/3,150=67/75, 재현율 200/495=40/99, 정밀도 200/241입니다. 전체·실제 이탈·예측 이탈의 세 분모를 보존합니다.

TP/FP/FN/TN are 200/41/295/2614. Accuracy is 67/75, recall 40/99 and precision 200/241, retaining all-record, observed-positive and predicted-positive denominators.

51. 일반 표시 오차 상계의 증명Prove general display-error bounds

가용 n≥1개의 유한 원값 xᵢ를 가장 가까운 h>0 간격의 배수 rᵢ로 표시합니다. 각 |rᵢ−xᵢ|≤h/2를 이용해 합 오차 nh/2와 행 평균 오차 h/2를 증명하세요.

For n≥one finite available originals xᵢ, choose nearest multiples rᵢ of spacing h>zero, so |rᵢ−xᵢ|≤h/2. Prove sum-error bound nh/2 and row-mean bound h/2.

풀이와 확인할 이유Solution and explanation

삼각부등식으로 합 오차의 절댓값은 각 절대 오차의 합 이하이고, 그 합은 nh/2 이하입니다. 양수 n으로 나누면 평균 차이는 h/2 이하입니다. 정확한 중간을 모두 같은 방향으로 보내는 값은 상계를 달성할 수 있습니다.

∣∑i=1n(ri−xi)∣≤nh/2∣rˉ−xˉ∣≤h/2\begin{gathered}\left|\sum_{i=1}^{n}(r_i-x_i)\right|\le nh/2\\|\bar r-\bar x|\le h/2\end{gathered}

Apply the triangle inequality to the summed signed errors, then divide by positive n. Halfway values all rounded in one direction can attain the bounds:

∣∑i=1n(ri−xi)∣≤nh/2∣rˉ−xˉ∣≤h/2\begin{gathered}\left|\sum_{i=1}^{n}(r_i-x_i)\right|\le nh/2\\|\bar r-\bar x|\le h/2\end{gathered}

52. 축 바닥과 비의 왜곡 유도Derive ratio distortion from the origin

원값은 0<a<b이고 바닥은 0<o<a입니다. (b−o)/(a−o)−b/a를 정리하고 부호와 o→a−에서의 높이 비를 설명하세요.

Assume 0<a<b and 0<o<a. Simplify (b−o)/(a−o)−b/a, determine its sign and describe the height ratio as o approaches a from below.

풀이와 확인할 이유Solution and explanation

차이는 o(b−a)/[a(a−o)]>0입니다. 따라서 높이 비가 원값 비보다 큽니다. o→a−에서는 분모가 0의 양수 쪽으로 가고 분자는 b−a>0으로 가므로 높이 비가 제한 없이 커집니다. 원값 b/a는 고정입니다.

b−oa−o−ba=o(b−a)a(a−o)\frac{b-o}{a-o}-\frac ba=\frac{o(b-a)}{a(a-o)}

The difference is strictly positive. The height denominator approaches zero from above and its numerator approaches b−a>zero, so the height ratio grows without bound while b/a stays fixed:

b−oa−o−ba=o(b−a)a(a−o)\frac{b-o}{a-o}-\frac ba=\frac{o(b-a)}{a(a-o)}

53. 집단 가중 평균의 일반 증명General pooled-mean identity

양의 정수 G개의 서로 겹치지 않는 집단에 유한 가용 수 n_g≥1·평균 μ_g가 있습니다. 전체 가용 수 n=Σn_g라 할 때 전체 평균이 Σ(n_g/n)μ_g임을 증명하세요.

A positive integer G of disjoint groups has finite available counts n_g≥one and means μ_g. With n=Σn_g, prove the pooled mean is Σ(n_g/n)μ_g.

풀이와 확인할 이유Solution and explanation

각 집단 합은 n_gμ_g입니다. 겹치지 않으므로 합과 수가 각각 더해져 전체 평균은 Σn_gμ_g/Σn_g가 됩니다. 분모 n이 양수여서 n_g/n을 가중치로 꺼낼 수 있고, 가중치 합도 1입니다.

Each group sum is n_gμ_g. Disjoint sums and counts add, giving Σn_gμ_g/Σn_g. Positive n permits the weighted expression, with weights summing to one.

54. 집단 균등과 기록 균등의 일치 조건When equal-group and equal-record means agree

서로 겹치지 않는 두 집단의 양의 가용 수는 n₁,n₂, 유한 평균은 μ₁,μ₂입니다. 기록 균등 평균과 집단 균등 평균 차이를 정리해 두 평균의 일치 필요충분조건을 구하세요.

Two disjoint groups have positive available counts n₁,n₂ and finite means μ₁,μ₂. Simplify the difference between record-weighted and equal-group means and give the necessary and sufficient equality condition.

풀이와 확인할 이유Solution and explanation

통분한 차이는 아래 값입니다. 분모가 양수여서 0일 조건은 (n₁−n₂)(μ₁−μ₂)=0, 즉 n₁=n₂ 또는 μ₁=μ₂입니다. 두 조건 중 하나만 없어졌다는 이유로 반드시 다르다고 말하지 않습니다.

n1μ1+n2μ2n1+n2−μ1+μ22=(n1−n2)(μ1−μ2)2(n1+n2)\begin{gathered}\frac{n_1\mu_1+n_2\mu_2}{n_1+n_2}-\frac{\mu_1+\mu_2}{2}\\=\frac{(n_1-n_2)(\mu_1-\mu_2)}{2(n_1+n_2)}\end{gathered}

The positive denominator makes equality equivalent to (n₁−n₂)(μ₁−μ₂)=zero: either counts agree or means agree. Failure of just one equality does not force the averages to differ:

n1μ1+n2μ2n1+n2−μ1+μ22=(n1−n2)(μ1−μ2)2(n1+n2)\begin{gathered}\frac{n_1\mu_1+n_2\mu_2}{n_1+n_2}-\frac{\mu_1+\mu_2}{2}\\=\frac{(n_1-n_2)(\mu_1-\mu_2)}{2(n_1+n_2)}\end{gathered}

55. 세 겹친 합의 복원Reconstruction from three overlapping sums

유한 값 x,y,z에 대해 공개 집계가 x+y=10,y+z=12,x+z=14입니다. 세 값을 구하고 각 집계가 두 값을 포함한다는 사실만으로 값을 숨긴다고 할 수 없는 이유를 설명하세요.

Finite values x,y,z satisfy released sums x+y=ten,y+z=twelve,x+z=fourteen. Recover the values and assess whether two values per aggregate alone ensures concealment.

풀이와 확인할 이유Solution and explanation

세 합을 더하면 2(x+y+z)=36이라 전체 합 18입니다. 각각 반대 쌍 합을 빼 x=6,y=4,z=8입니다. 여러 겹친 집계의 결합이 개별 수치를 정할 수 있습니다. 외부 실명을 찾았다는 뜻은 아닙니다.

Summing gives total 18. Subtracting opposite pair sums yields x=six,y=four,z=eight. Combined overlapping aggregates can determine individual numerical slots without performing external identity linkage.

56. 실제 두 가정 벌점의 선택Two assumed penalty scenarios on actual counts

실제 세 규칙의 (FP,FN)은 무경고 (0,495), 표지 (41,295), 전원 경고 (2,655,0)입니다. L=aFP+bFN에서 (a,b)=(1,20),(20,1)의 점수와 모든 최소 규칙을 구하세요.

Actual (FP,FN) pairs are none (0,495),flag (41,295),all (2655,0). For L=aFP+bFN, compute both scenarios (1,20) and (20,1), including every minimizer.

풀이와 확인할 이유Solution and explanation

(1,20)은 9,900·5,941·2,655라 전원 경고가 최소입니다. (20,1)은 495·1,115·53,100이라 무경고가 최소입니다. 두 결과는 가정 벌점에 따른 기존 기록의 비교이며 실제 돈이나 개입 효과가 아닙니다.

Scores are 9900/5941/2655 in the first, selecting all-positive; 495/1115/53100 in the second, selecting none. They are retrospective comparisons under assumed weights, not actual money or intervention effects.

57. 표지 규칙의 최소 구간The flag rule’s optimal penalty interval

세 점수는 L_none=495b,L_flag=41a+295b,L_all=2655a이고 a,b≥0입니다. 먼저 a>0에서 표지 규칙이 최소일 b/a의 닫힌 구간과 두 끝의 동률을 구하세요. a=0도 따로 판정하세요.

Scores are L_none=495b,L_flag=41a+295b,L_all=2655a for nonnegative a,b. For a>zero, find the closed interval of b/a making flag minimal and endpoint ties. Treat a=zero separately.

풀이와 확인할 이유Solution and explanation

표지≤무경고는 41a≤200b, 표지≤전원은 295b≤2,614a입니다. 따라서 41/200≤b/a≤2,614/295입니다. 아래 끝은 무경고와, 위 끝은 전원과 동률입니다. a=0,b>0은 전원이 유일 최소이고 a=b=0은 세 규칙 모두 동률입니다.

Lflag≤Lnone  ⟺  41a≤200bLflag≤Lall  ⟺  295b≤2614a\begin{gathered}L_{\rm flag}\le L_{\rm none}\iff41a\le200b\\L_{\rm flag}\le L_{\rm all}\iff295b\le2614a\end{gathered}

The interval is 41/200≤b/a≤2614/295. Its lower endpoint ties none; its upper ties all. At a=zero,b>zero, all-positive uniquely minimizes; both weights zero make all three tie:

Lflag≤Lnone  ⟺  41a≤200bLflag≤Lall  ⟺  295b≤2614a\begin{gathered}L_{\rm flag}\le L_{\rm none}\iff41a\le200b\\L_{\rm flag}\le L_{\rm all}\iff295b\le2614a\end{gathered}

58. 맞춘 이탈 200명과 전화의 효과Two hundred true positives versus a phone-call effect

기존 자료에서 불만 표지가 있는 실제 이탈이 200개였고 이 기록에 전화 개입 결과는 없습니다. 표지 규칙이 “전화로 200명을 남게 한다”고 결론 내릴 수 있나요? 추가 질문을 두 가지 쓰세요.

Existing data contain 200 flagged observed churners, with no phone-intervention outcome recorded. Does the rule establish that calls would retain 200 people? Give two additional questions.

풀이와 확인할 이유Solution and explanation

그럴 수 없습니다. 과거 양성을 맞춘 수와 전화의 인과효과는 다릅니다. 예를 들어 “전화한 경우와 하지 않은 비교 가능한 경우의 잔류 차이는?”과 “실제 연락·제안·기회비용은?”을 더 알아야 합니다.

No. Correct past labels are not a causal call effect. Ask how retention differs under comparable call/no-call conditions and what actual contact, offer and opportunity costs are.

59. 실행 수와 읽은 입력의 범위Execution count and the scope of read inputs

고정 Python/R 프로그램 32개가 모두 성공했고, 두 언어의 가용값 없는 요약과 집계 칸 선택은 각각 글만 출력했습니다. SVG 수를 구하세요. 개인 참조가 공개 집계 2행만 읽을 때 원개인 3,613행을 새로 실행 검산했다고 써도 되나요?

All 32 fixed Python/R programs succeed. No-available summaries and selected aggregate-field examples in both languages are text only. Count SVGs. If the person references read just two public aggregate rows, may they claim a fresh check of 3613 individual inputs?

풀이와 확인할 이유Solution and explanation

글만 출력한 것은 4개라 SVG는 28개입니다. 개인 참조는 공개된 집계 2행 입력 범위의 실행이며 개별 3,613행을 새로 읽었다고 확대하지 않습니다. 환경 조회 등 별도 프로세스와 브라우저 JavaScript도 32개 고정 참조와 구분합니다.

Four text-only programs leave 28 SVGs. Reading two public aggregates does not establish a fresh run on 3,613 individual rows. Separate additional environment probes and browser JavaScript from the 32 fixed references.

60. 짧고 다시 검토할 수 있는 인수인계A concise inspectable handover

보고에 실제 GDP 2019–2024년 6값·2015 고정 USD/사람, 개인 공개 집계 2행·전체/가용/미가용 3,613/3,010/603, 고객 실제 3,150개와 가정 FP/FN 벌점 1/1을 사용했습니다. 고객 세 점수는 495·336·2,655입니다. 관측·표시·공개 범위·조건부 판단과 실행 경로를 포함하는 짧은 보고를 쓰세요.

A report uses six actual 2019–2024 GDP values in constant 2015 USD/person; two public person aggregates with counts 3613/3010/603; and 3150 actual customer records with assumed FP/FN weights 1/1. Customer scores are 495/336/2655. Write a brief handover distinguishing observation, display, release scope, conditional choice and execution path.

풀이와 확인할 이유Solution and explanation

예: “GDP 원십진·단위를 보존하고 화면 자릿수와 축 바닥은 표시 설정으로 남겼다. 개인은 공개 집계 두 행만 읽고 3,010 가용·603 미가용 분모를 유지했다. 고객 3,150개의 실제 오류 수에 가정 벌점 1/1을 적용해 세 고정 규칙 중 표지가 최소였다. 실제 수익·개입 효과는 계산하지 않았다. 고정 Python/R 기록과 새 브라우저 JavaScript 입력을 구분했고, 실제 화면·접근성 사용 경험은 별도 검토 범위다.”

For example: “Retain original GDP decimals and units, with digits/origin as display choices. Read only two public person aggregates and retain available/missing denominators. On 3,150 customer records, the flag rule minimizes the three supplied scores under chosen unit weights. Actual returns and intervention effects were not calculated. Archived Python/R programs and new browser JavaScript are separate, with actual-screen and accessibility-use checks recorded in their own scope.”

자료와 출처Data and sources

실습에 추가한 실제 입력과 출처Additional observed lab inputs and provenance

실제 자료 사례Actual-data cases · 원자료·단위·결측·변환·출처Inputs, units, missingness, transformations and sources

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms