ML-23 · MACHINE LEARNING

입력 계약·배포·지연 라벨·모니터링Input contracts, deployment, delayed labels and monitoring

같은 모형을 관측하는 방법이 바뀌면 · 원기록부터 판단과 한계까지When observation changes around a frozen model: native records, decisions and limits

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

학부Undergraduate

잘 맞힌 모형이 계속 잘 작동하려면Keeping a useful model useful

택배 상자에 주소를 정확히 적어도 배송 차량이 잘못된 지역으로 가면 물건은 도착하지 않습니다. 예측 모형도 식 하나만으로 작동하지 않습니다. 어떤 열을 받는지, 그 숫자가 무슨 단위인지, 어떤 버전으로 계산했는지, 나중에 확인한 정답을 어디에 연결할지까지 이어져야 합니다. 시험 성적표는 이 전체 과정의 일부입니다.

앞 장은 같은 훈련·검증·시험 절차에서 와인 품질·개인 로그 임금·고객 이탈을 비교했습니다. 이 장에서는 그 모형을 고정합니다. 새 라벨을 본 뒤 더 잘 맞는 계수로 바꾸지 않고, 어떤 입력을 받았고 어느 정답까지 도착했는지 추적합니다. 다시 학습하는 문제와 이미 정한 모형을 관찰하는 문제를 나누면, 성능 변화가 어디에서 생겼는지 설명하기 쉬워집니다.

첫 질문은 “새 평균 오차가 얼마인가”보다 먼저 옵니다. 지금의 숫자는 올바른 열과 단위로 들어왔는가? 평가한 정답은 어떤 시점까지 도착했는가? 아직 정답이 없는 행도 분모에 표시했는가? 손실이 0인 관측과 평가할 관측이 없는 상황을 구분했는가? 이 질문에 답할 수 있어야 점수의 의미도 분명해집니다.

실제 자료의 화학 측정·로그 임금·이탈 라벨은 그대로 사용합니다. 세 자료에는 개인별 운영 이벤트와 정답 도착 날짜가 모두 들어 있지 않습니다. 따라서 뒤의 이벤트 순서와 라벨 지연은 실제 값 위에 따로 구성한 가상 실습 일정입니다. 이를 과거의 실제 서비스 로그나 미래 운영 시험으로 소개하지 않습니다.

A parcel can have a correctly written address and still fail to arrive if the delivery process uses the wrong route. A predictive model also depends on more than its equation: input columns, units, model version and the later connection to a verified outcome all matter. A test score describes only part of this process.

The previous chapter compared wine quality, individual log wages and customer churn under a common training, validation and test procedure. Here the selected models remain frozen. We track inputs and available outcomes without changing coefficients after seeing new labels. Separating observation from retraining makes the source of a change easier to explain.

Ask what the new error average means. Were the right columns and units supplied? Which outcomes had arrived by the cutoff? Do records without labels remain visible in the denominator report? Does zero loss differ from no evaluable record? These questions give the score its meaning.

We preserve the factual chemistry, wages and churn labels. The sources do not provide individual operational event and label-arrival dates. Subsequent event orders and delays are therefore explicitly constructed teaching overlays on factual values, rather than recovered service logs or prospective deployment trials.

학부Undergraduate

예측 시점과 정답 확인 시점은 다르다Prediction time and label availability differ

오늘 고객에게 점수 0.2를 부여했어도 그 고객이 떠날지는 나중에 알게 됩니다. 오늘 받은 점수와 오늘 확인한 정답을 같은 날짜의 같은 표처럼 섞으면, 정답이 일찍 나타난 사람만 평가할 수 있습니다. 빨리 확인되는 결과와 늦게 확인되는 결과가 다르면 그 평균은 전체 고객의 평균과도 달라질 수 있습니다.

행 하나에 이벤트 시점 t와 정답 도착 시점 a를 적겠습니다. 관찰 기준 c에서 이벤트를 이미 보았다는 조건은 t≤c이고, 정답까지 확인했다는 조건은 a≤c입니다. 정답이 원래 결측이거나 도착 시각이 지정되지 않았으면 그 조건만으로 정답을 만들어 내지 않습니다. 비중이 양수이고 예측도 있어야 오차 계산에 포함합니다.

Ii(c)=1{ti≤c, ai≤c, Yi observed, Y^i available, wi>0}I_i(c)=\mathbf 1\{t_i\leq c,\ a_i\leq c,\ Y_i\text{ observed},\ \widehat Y_i\text{ available},\ w_i>0\}
가상 도착 일정 · 기준 c=2
행이벤트 t정답 도착 a현재 상태
A11정답 확인 가능
B14정답 대기
C35아직 이벤트 밖
D1미지정도착 일정 없음

이 표의 숫자는 실습용 인덱스입니다. 실제 달력 날짜나 고객의 행동을 관측한 것이 아닙니다. B의 정답을 나중에 알고 있는 학습자도 c=2의 화면에서는 그 값을 가려야 합니다. C는 정답만이 아니라 예측 이벤트도 아직 관찰 범위 밖입니다. D는 도착 시각을 0으로 바꾸지 않고 미지정으로 남깁니다.

이 구분은 모형 평가와 업무 관리에 함께 필요합니다. 정답이 없는 고객이 많아 평균 오차를 계산할 수 없다면 “성능 좋음”이라고 결론 내리는 대신, 정답을 확보하는 절차와 시점을 먼저 확인합니다. 나중 절에서는 도착 비율과 도착한 정답의 위험을 따로 계산합니다.

A customer can receive score 0.2 today while the outcome becomes known later. Combining today’s scores with only the labels verified today can evaluate a selected early-arriving subset. Its average need not describe everyone when fast and slow outcomes differ.

Give each record an event index t and a label-arrival index a. At cutoff c, the event has been seen if t is at most c; its label can be used only if a is also at most c and the label actually exists. Missing labels and unspecified arrivals do not create outcomes. Scoring additionally requires positive weight and an available prediction.

Ii(c)=1{ti≤c, ai≤c, Yi observed, Y^i available, wi>0}I_i(c)=\mathbf 1\{t_i\leq c,\ a_i\leq c,\ Y_i\text{ observed},\ \widehat Y_i\text{ available},\ w_i>0\}
Constructed schedule at cutoff c=2
RecordEvent tLabel arrival aCurrent state
A11Label available
B14Waiting for label
C35Event not yet seen
D1UnspecifiedNo arrival specified

These are teaching indices, not observed dates or customer histories. Even if the learner knows B’s eventual label, a cutoff-two display must mask it. C’s prediction event is also outside the current window. D keeps an unspecified arrival rather than receiving an invented zero timestamp.

The distinction supports evaluation and management. A large unlabeled population is a reason to examine the outcome-collection process, rather than to declare good performance from an unavailable error mean. We will report arrival coverage separately from risk among arrived labels.

학부Undergraduate

배포할 것은 계수만이 아니라 계산 규칙이다A deployable artifact includes its calculation rule

다른 사람에게 “교육 연수 계수는 0.03”이라고만 말하면 같은 예측을 재현하기 어렵습니다. 교육 변수가 원래 연수인지 표준화 값인지, 절편이 얼마인지, 로그 임금의 어떤 열을 목표로 했는지가 빠져 있기 때문입니다. 모형 산출물은 숫자 목록과 그 숫자를 사용하는 규칙을 함께 담아야 합니다.

앞 장의 릿지는 훈련에서 구한 평균 μ와 범위 s로 각 설명변수를 바꾸었습니다. 새 입력에서도 같은 훈련 평균과 범위를 사용합니다. 새 고객 묶음의 평균으로 다시 중심을 맞추면 같은 계수라도 다른 예측 함수가 됩니다. 분산이 0인 훈련 열은 범위 대신 1을 쓰는 규칙도 함께 보존합니다.

y^=θ0+∑j=1pθjxj−μjsj\widehat y=\theta_0+\sum_{j=1}^{p}\theta_j\frac{x_j-\mu_j}{s_j}

산출물에는 특징 이름과 순서, 훈련 변환, 계수, 결과 단위, 이진 점수를 자르는 규칙, 모형 버전을 적습니다. 검증에서 어떤 손실로 골랐는지도 기록합니다. 이 장의 세 실제 모형은 앞 장 기본 분할에서 선택한 λ=1/100 릿지입니다. 운영 관찰 중에 λ를 다시 고르는 절차는 여기 포함하지 않습니다.

계산을 빠르게 하려고 위 식을 절편과 원 특징의 기울기로 정리할 수는 있습니다. b_j=θ_j/s_j, b_0=θ_0−Σ_j θ_j μ_j/s_j로 놓으면 같은 선형 함수를 다른 형태로 쓴 것입니다. 두 표현을 정확히 대조하면 최적화가 모형 변경인지, 같은 계산을 정리한 것인지 판단할 수 있습니다. 형식을 바꾼 사실과 새로 학습한 사실을 구분하세요.

A statement such as “the schooling coefficient is 0.03” does not identify a reproducible prediction. Is schooling measured in native years or transformed coordinates? What is the intercept, and which log-wage target is used? A model artifact needs numbers and the rule that interprets them.

The preceding ridge model centers and scales inputs using training means μ and ranges s. New inputs use those same frozen training quantities. Re-centering on a new customer batch changes the prediction function even if coefficient values stay the same. Preserve the convention that a constant training feature receives scale one.

y^=θ0+∑j=1pθjxj−μjsj\widehat y=\theta_0+\sum_{j=1}^{p}\theta_j\frac{x_j-\mu_j}{s_j}

Record feature names and order, training transformations, coefficients, outcome units, binary clipping and the model version. Include the validation criterion. The three factual models here are the lambda-one-hundredth ridge choices from the previous default split; monitoring does not reselect lambda.

An equivalent raw affine expression uses slope b_j=θ_j/s_j and intercept b_0=θ_0−Σ_j θ_j μ_j/s_j. This is an algebraic rewriting of the same function. Exact comparisons distinguish a computational optimization from a model change. A new representation and new learning are different events.

학부Undergraduate

열 이름·열 순서·원 ID를 함께 확인한다Check names, order and record identity

책가방에서 수학 공책과 영어 공책을 바꾸어 넣으면 두 공책이 모두 있어도 잘못된 수업에 준비해 온 셈입니다. 모형의 입력도 열 수만 맞아서는 부족합니다. 가상의 식 2×나이+교육 연수에서 두 열을 바꾸면 입력 숫자는 같아도 결과가 달라집니다. 배열 형태의 입력은 선언한 순서를 정확히 지켜야 합니다.

가상 인물의 나이가 20년, 교육 연수가 12년이면 이 식의 값은 52입니다. 두 값을 뒤집어 나이 12, 교육 20으로 넣으면 44가 됩니다. 이 식은 열 순서 설명용이며 실제 NLS 임금 모형의 식이 아닙니다. 실제 모형에서는 ed76, age76라는 원 변수 이름과 [교육, 나이] 순서를 함께 보존합니다.

서로 다른 세 종류의 식별 정보
이름하는 일보장하지 않는 것
행 ID같은 원행을 다시 찾기서로 다른 사람이라는 증명
묶음 ID정한 중복·분할 규칙 추적물리적 동일성 인증
모형 버전같은 계산 산출물 추적모형의 타당성·우수성

원 ID와 묶음 ID도 다른 역할을 합니다. 두 와인 행이 같은 설명변수 지문을 가지면 같은 분할에 둡니다. 그러나 두 행을 실제로 같은 병에서 측정했다고 확정할 수는 없습니다. 반대로 원 NLS 개인 ID와 행 번호는 파일에서 확인할 수 있으므로 둘 다 남깁니다.

프로그래밍에서는 특이한 열 이름도 조용히 없어지지 않아야 합니다. __proto__처럼 언어의 객체와 관련된 이름이 데이터의 열 이름으로 들어오면 이름 자체를 데이터로 보존하거나 계약에서 명시적으로 거절해야 합니다. 이 장의 입력 감사는 선언한 열 이름을 데이터 키로 보존합니다. 이름을 자동으로 바꾸어 계산했다면 그 변경도 기록해야 합니다.

Having both a mathematics notebook and an English notebook does not help if they are delivered to the wrong classes. Matching only the number of feature columns is similarly insufficient. A constructed expression two times age plus schooling changes when the input order is swapped.

Age twenty and schooling twelve give fifty-two; swapped values give forty-four. This is a feature-order teaching expression, not the factual NLS wage equation. The factual projection preserves both the native names ed76 and age76 and their declared schooling-then-age order.

Three distinct identifiers
IdentifierPurposeClaim not established
Row IDRecover the same native recordAuthenticated distinct people
Group IDTrace a duplication/split rulePhysical identity authentication
Model versionTrace the calculation artifactModel validity or superiority

Row and group IDs have different purposes. Identical wine predictor fingerprints stay in one split without establishing that the measurements came from the same bottle. For NLS, the supplied original ID and file row can both be retained.

Unusual column names must also remain traceable. A name such as __proto__ should be treated as a data key or explicitly rejected by a declared contract. Our audit preserves declared names as data keys. An automatic renaming operation would need its own recorded transformation.

학부Undergraduate

단위가 바뀌면 같은 숫자도 다른 입력이다Units change the meaning of a number

가입 기간 24개월과 2년은 같은 길이입니다. 그러나 “개월”을 요구하는 모형에 숫자 2를 그대로 넣으면 모형은 두 달로 읽습니다. 이름과 숫자가 정상적으로 보인다고 같은 측정이라는 결론은 나오지 않습니다. 측정 단위와 변환 책임을 입력 계약에 적습니다.

가상의 이탈 점수 식을 p=0.10+0.01m이라고 합시다. m은 개월입니다. 24개월을 넣으면 0.34이고, 2년을 숫자 2로 잘못 넣으면 0.12입니다. 두 점수는 여기서 모두 0과 1 사이이므로 범위 검사만으로 오류가 잡히지 않습니다. 이 예의 계수는 설명용이며 실제 이란 고객 자료에서 추정한 값이 아닙니다.

0.10+0.01×24=0.34,0.10+0.01×2=0.120.10+0.01\times24=0.34,\qquad 0.10+0.01\times2=0.12

이 장의 간단 입력 감사는 제공된 단위 문자열을 정확히 비교하고, 다른 단위를 자동으로 환산하지 않습니다. “years”와 “months”가 다르면 같은 숫자를 다른 단위로 읽을 수 있음을 알립니다. 필요한 환산은 명시적인 별도 단계에서 하고, 환산 후 열 이름·단위·값을 다시 확인합니다.

단위 메타데이터를 아예 주지 않은 행은 숫자 범위 검사를 통과할 수 있습니다. 그때 화면은 단위를 검증하지 않았다고 함께 표시합니다. 계산기가 물리적 측정을 직접 확인한 것은 아닙니다. 문서에 단위가 명시되지 않은 와인 화학 척도도 새 단위를 임의로 붙이지 않고 원 측정 척도라고 설명합니다.

허용 범위는 다른 질문입니다. 나이 250은 선언한 범위 0~120을 벗어날 수 있지만 나이 25는 허용 범위 안에 있으면서 잘못된 사람에게 연결된 값일 수 있습니다. 단위·범위·식별 연결·측정 타당성은 서로 보완하는 검사이며 한 가지 통과로 나머지가 입증되지는 않습니다.

Twenty-four months and two years describe the same duration. A model expecting months interprets the numeric value two as two months. Normal-looking names and numbers therefore do not establish the intended measurement. Record units and the responsibility for conversion.

Let a constructed churn score be p=0.10+0.01m with m in months. Twenty-four months give 0.34, while inserting the number two for two years gives 0.12. Both lie inside the unit interval, so a range check misses the mistake. These are teaching coefficients, not estimates from the Iranian customer data.

0.10+0.01×24=0.34,0.10+0.01×2=0.120.10+0.01\times24=0.34,\qquad 0.10+0.01\times2=0.12

The simple audit compares supplied unit strings exactly and performs no automatic conversion. Distinct strings such as years and months flag a mismatch. Apply an explicitly specified conversion in a separate step and verify the resulting name, unit and value.

A record without unit metadata may pass the numeric range checks while remaining explicitly unit-unverified. A calculator does not authenticate the physical measurement. For wine measurements without an explicit unit in the source description, retain the native scale rather than inventing a physical unit.

A declared range addresses another problem. Age 250 can violate a zero-to-120 contract, while an in-range age twenty-five can still be linked to the wrong person. Unit, range, identity-linkage and measurement-validity checks complement one another.

학부Undergraduate

0·null·빠진 열을 구별한다Distinguish zero, null and an omitted field

시험에 응시해서 0점을 받은 학생과 아직 채점하지 못한 학생은 다릅니다. 두 학생 모두 숫자 0으로 저장하면 나중에는 어느 학생을 다시 확인해야 하는지 알 수 없습니다. 모형 입력과 정답에서도 0, 명시적 결측, 열 자체의 누락을 나누어 기록합니다.

이 장의 일반 입력에서 숫자 0은 실제 수치입니다. null은 명시적으로 값을 모른다고 적은 상태입니다. 필요한 열을 아예 보내지 않은 것은 자료 구조가 계약과 다르다는 뜻입니다. nullable=true는 그 열에 null을 허용하지만, 이름이 사라져도 된다는 뜻은 아닙니다. 원 NLS의 결측 토큰 “.”은 문서화된 원자료 읽기 단계에서 null로 바꾸며, 일반 숫자 입력에 들어온 임의의 문자를 조용히 결측으로 바꾸지 않습니다.

숫자 감사에서 다른 세 입력
입력뜻검사
{"y":0}수치 0을 제공숫자·범위 검사
{"y":null}y열은 있으나 값 모름null 허용 여부 확인
{}y열 자체를 제공하지 않음필요 열 누락

라벨이 없는 행을 원 장부에서 삭제할 필요는 없습니다. 예정 역할과 원 ID를 남겨 어떤 집단의 정답이 비어 있는지 셀 수 있습니다. NLS의 원 3,613행 중 603개의 라벨 결측을 임금 0으로 만들면 모형의 목표 자체가 바뀝니다. 원래 값이 0인 이탈 라벨은 “아직 모름”이 아니라 원자료에 기록된 비이탈 값입니다.

빈 자료도 별도로 표시합니다. 모든 행이 계약을 지켰다는 문장은 행이 하나도 없을 때 논리적으로 참일 수 있습니다. 그래서 감사 결과에는 emptyFrame과 행 수를 함께 둡니다. 빈 목록이 오류를 내지 않았다는 사실로, 예측이 유효하다거나 실제 운영 자료를 충분히 받았다고 결론 내리지 않습니다.

A student who takes an exam and earns zero differs from one whose exam has not yet been marked. Recording both as zero loses the information needed for later follow-up. Model inputs and labels likewise distinguish numeric zero, explicit missingness and absent fields.

Here zero is a supplied number, null explicitly marks an unknown value, and an omitted required column violates the input structure. nullable=true permits null within a present field; it does not permit the field name to disappear. Native NLS dot tokens become null in the documented source-reading step. Arbitrary strings in generic numeric inputs are not silently turned into missing values.

Three distinct audit inputs
InputMeaningCheck
{"y":0}Numeric zero suppliedNumber and domain checks
{"y":null}Field exists; value unknownNullability check
{}Required field absentMissing-column issue

A missing-label record can remain in the original ledger with its ID and planned role. This allows group-specific missingness counts. Filling the 603 missing NLS labels with wage zero would change the target. A native churn label zero instead records non-churn rather than an unknown outcome.

An empty dataset also needs explicit treatment. “Every record passed” can be logically true when no record exists. Audit results therefore include the row count and emptyFrame. An error-free empty list does not establish useful prediction or adequate operating data.

학부Undergraduate

실습: 입력 계약의 한 항목씩 바꾸기Lab: change one input-contract condition at a time

아래 실습은 실제 개인을 새로 측정하는 화면이 아닙니다. 나이를 뜻하는 가상 age 열에 허용 범위 0~120년과 null 불허를 선언해 검사 원리를 배웁니다. 첫 행에는 나이 7과 단위 years를 넣습니다. 두 번째 행의 값도 7로 두고 단위만 months로 바꾸세요. 숫자가 같아도 단위 불일치 문제가 생깁니다.

다음에는 값만 121로 바꾸고 단위는 years로 되돌립니다. 단위 검사는 통과해도 범위 검사가 실패해야 합니다. 값을 null로 바꾸면 null 허용 조건이 적용됩니다. 이처럼 한 번에 한 조건만 바꾸면 결과를 해석할 수 있습니다. 여러 조건을 동시에 바꾼 경우에는 행마다 모든 문제 목록을 함께 읽습니다.

고급 JSON에서는 필요한 열 이름을 빠뜨린 행과 값이 null인 행을 구분해 보세요. 스키마의 nullable을 true로 바꿔도 빠진 열은 여전히 구조 문제입니다. 단위 정보를 아예 생략했을 때 오류 개수만 보지 말고 단위 확인 범위 설명도 읽습니다. 제공하지 않은 증거까지 검사기가 확인한 것은 아닙니다.

끝으로 행 수를 0으로 바꾸어 보세요. 빈 집합의 통과 표시와 빈 자료 표시가 함께 나타나는지 확인합니다. 업무에서 이 결과를 다음 단계에 넘기려면 최소 행 수와 어떤 집단이 있어야 하는지도 별도로 정해야 합니다. 간단 수치 계약 하나가 운영 판단 전체를 대신하지 않습니다.

This exercise does not collect new measurements about actual people. It declares a constructed age field with a zero-to-120-year domain and disallowed nulls. Start with age seven and units years. Keep the value seven in another record while changing only its unit to months: the same number should produce a unit mismatch.

Next set the value to 121 and restore units years. Unit checking can pass while the domain fails. Changing the value to null exercises nullability. Modify one condition at a time before interpreting simultaneous multi-issue records.

The advanced JSON distinguishes a missing field name from a present null value. Allowing null still leaves an omitted required field invalid. When units are omitted, inspect the unit-verification scope alongside the issue count; the audit cannot verify evidence that was never supplied.

Finally set the record count to zero. Check that vacuous all-row passage and empty-data status are both visible. A subsequent operational decision needs its own minimum-row and group-coverage requirements. One numerical contract is only one part of that decision.

학부Undergraduate

같은 바이트·같은 입력·같은 모형을 추적한다Trace bytes, inputs and model versions

친구가 보내 준 파일과 내가 가진 파일이 같은지 확인하려면 파일 이름만 비교해서는 부족합니다. 이름이 같아도 내용이 다를 수 있습니다. SHA-256 같은 해시는 파일 바이트에서 정해지는 지문을 만들어, 정확히 같은 파일인지 대조하는 데 도움을 줍니다. 이 지문은 표본의 대표성이나 측정의 진실성을 보증하는 도장은 아닙니다.

모형도 버전·입력·예측을 연결해야 합니다. 가상의 모형 A가 p=0.20+0.01x이고 B가 p=0.10+0.02x이면 x=10에서 둘 다 0.30입니다. 한 입력에서 출력이 같다는 사실만으로 두 모형이 같다고 할 수 없습니다. x=20에서는 각각 0.40과 0.50으로 달라집니다. 비교할 입력의 범위를 명시하고, 가능한 경우 식이나 산출물 자체를 확인합니다.

재현 기록에는 원자료 파일의 해시, 정확한 열 순서와 단위, 훈련 변환, 모형 버전, 계산 코드와 환경, 예측 행 ID가 들어갑니다. 실제 서비스에서는 그 시점에 사용한 특징 값과 산출물을 연결해 두어야 같은 입력에서의 차이를 추적할 수 있습니다. 지금의 데이터로 과거 입력을 임의로 덮어쓰면 무엇이 바뀌었는지 알기 어려워집니다.

공식 scikit-learn 모형 저장 문서는 계산 환경과 저장 형식의 관계를 설명합니다. 이 교재의 수치 예제는 읽을 수 있는 계수·변환·원자료를 보존하여 계산을 따라갈 수 있게 합니다. 같은 결과를 다시 계산했다는 것, 새 자료에서 잘 맞는다는 것, 운영 성과를 만들었다는 것은 각각 따로 확인할 질문입니다.

File names alone do not establish file identity: two files with the same name can have different contents. A digest such as SHA-256 helps compare exact bytes. It does not certify representative sampling or truthful measurement.

Connect model versions, inputs and predictions as well. Constructed model A, p=0.20+0.01x, and B, p=0.10+0.02x, both return 0.30 at x ten. At x twenty they return 0.40 and 0.50. Agreement on one example does not identify the entire function. Specify comparison inputs and inspect equations or artifacts where possible.

A reproduction record includes source-file digests, exact feature order and units, training transforms, model version, code/environment and row IDs. An operating system should link the features actually used at the time to the model artifact. Replacing historical inputs with today’s values obscures the source of a discrepancy.

The official scikit-learn persistence documentation explains the relationship between artifacts and computing environments. Our numeric examples retain readable parameters, transformations and source values. Recomputing an output, predicting accurately on new observations and improving operational outcomes remain separate questions.

학부Undergraduate

훈련 때의 계산과 사용 때의 계산을 맞춘다Align training and serving calculations

요리 실습 때는 재료를 그램으로 달고 실제 주방에서는 같은 숫자를 온스로 읽으면 같은 레시피가 아닙니다. 모형에서도 훈련 때 만든 특징과 실제 입력을 처리하는 특징의 의미가 어긋날 수 있습니다. 원자료 자체가 달라진 경우뿐 아니라, 같은 원자료를 다르게 계산한 경우도 확인해야 합니다.

가상의 고정 식 ŷ=2+3(x−10)/5를 다시 보세요. x=15를 훈련 규칙대로 계산하면 5입니다. 사용 단계에서 평균 10 대신 12로 중심을 맞추면 3.8이 됩니다. 모형 계수를 바꾸지 않았는데도 특징 처리 차이만으로 출력이 달라졌습니다. 이렇게 계산 경로가 어긋난 상황은 새 집단에서의 통계적 변화와 다른 원인입니다.

먼저 같은 원행·같은 모형 버전·같은 원 특징 값을 넣었을 때 두 경로가 같은 예측을 내는지 대조합니다. 오차가 생기면 열 순서, 단위 변환, 결측 처리, 범주 부호화, 훈련 평균·범위, 점수 자르기 순서를 추적합니다. 두 경로가 같아도 새로운 입력 집단에서의 성능은 별도로 평가해야 합니다.

Google의 Rules of Machine Learning도 사용 시점의 특징과 계산 차이를 기록해 살펴보는 문제를 다룹니다. 여기서는 복잡한 서비스를 만드는 대신, 실제 자료의 동결된 변환과 계수를 공개하여 같은 수치 경로를 재현합니다. 가상의 지연 일정이 실제 서비스 기록으로 바뀌는 것은 아닙니다.

A recipe measured in grams during a lesson changes if the kitchen later interprets the same numbers as ounces. Training and serving features can likewise differ in meaning. Examine both changed raw inputs and different computations applied to the same inputs.

For the constructed frozen rule prediction=2+3(x−10)/5, input fifteen gives five. Re-centering at twelve in the serving path gives 3.8 without changing the coefficient labels. A processing discrepancy is a different cause from a statistical change in the input population.

First compare the same source row, model version and raw feature values through both paths. Trace feature order, units, missingness, category encoding, training transformations and clipping order. Agreement between paths still leaves predictive performance on new observations to be evaluated.

Google’s Rules of Machine Learning discusses recording serving-time features and measuring such discrepancies. Here readable frozen transformations and coefficients support numerical reproduction. Constructed arrival schedules remain separate from actual service records.

학부Undergraduate

허용 범위와 훈련에서 본 범위는 다르다A declared domain differs from the observed training range

학교 도서관 이용 나이를 0~120세로 허용한다고 해 봅시다. 훈련 자료에는 우연히 20~40세만 들어 있었습니다. 새 이용자의 나이가 50세라면 허용 범위에는 들어 있지만 훈련에서 본 범위를 벗어납니다. 구조적으로 잘못된 값과 경험이 부족한 입력을 다른 표시로 남겨야 합니다.

선언한 범위는 자료를 받을 때 지키기로 한 조건입니다. 훈련 최소·최대는 실제 학습에 사용한 행에서 관측한 요약입니다. 둘을 혼동해 새 값 50을 훈련 최대 40으로 조용히 자르면 원래 50세인 사람을 다른 값으로 바꾸게 됩니다. 자르기를 분석 규칙으로 정하려면 바뀐 입력·모형과 그 이유를 기록하고 별도로 평가합니다.

가상 나이 예 · 선언 범위 [0,120], 훈련 범위 [20,40]
새 값선언 범위훈련 범위읽는 방법
30안안이 두 검사에서는 문제 없음
50안밖관측 범위 밖 진단
150밖밖입력 계약 범위 위반

훈련 범위 밖이라는 표시만으로 반드시 틀린 예측이라고 판정할 수는 없습니다. 선형 관계가 그 범위까지 이어질 수도 있고 크게 달라질 수도 있습니다. 반대로 훈련 범위 안의 값이라도 여러 특징의 새로운 조합이거나 결과 관계가 변하면 예측이 나쁠 수 있습니다. 각 열의 최소·최대는 전체 결합 분포의 증명이 아닙니다.

뒤의 실제 사례는 현재 보인 원행에서 훈련 범위를 벗어난 특징과 ID를 보여 줍니다. 이 목록은 원행을 삭제하거나 계약 위반으로 자동 처리하기 위한 정답이 아닙니다. 숫자가 어떻게 측정되었는지 확인하고, 예측 오차와 업무 조건을 추가로 검토할 대상을 찾는 진단입니다.

Suppose a library’s input contract allows ages zero to 120, while its training records happen to contain only ages twenty to forty. A new age fifty satisfies the contract but lies outside the observed training range. Invalid data and limited training experience deserve different flags.

The declared domain is an acceptance rule; a training minimum and maximum summarize the actual fitting frame. Silently clipping fifty to forty changes a factual input. If clipping is part of a new procedure, document the changed transformation and evaluate that procedure.

Constructed age example: domain[0,120], training range [20,40]
New valueDeclared domainTraining rangeInterpretation
30InsideInsideNo issue from these two checks
50InsideOutsideObserved-range diagnostic
150OutsideOutsideInput-domain violation

An out-of-range flag does not prove that a prediction is wrong: a linear relation might extend, or might fail. Values inside every separate range can also form unfamiliar combinations or encounter a changed outcome relationship. Marginal minima and maxima do not characterize the joint distribution.

The factual exercises list current native IDs and features outside their training ranges. This diagnostic does not delete them or automatically label them contract violations. It identifies records for measurement, performance and application-specific review.

학부Undergraduate

히스토그램은 같은 칸을 정하고 비교한다Compare histograms on a common set of bins

친구 반의 키를 150cm 미만·이상으로 나누고 우리 반은 160cm 미만·이상으로 나누면 두 비율을 바로 비교할 수 없습니다. 분포를 비교하려면 먼저 같은 경계와 경계값 포함 규칙을 정합니다. 이 장은 왼쪽 경계는 포함하고 오른쪽 경계는 포함하지 않는 칸을 사용합니다.

가상 값 0과 1을 경계 1/2로 나누면 0은 첫 칸, 1은 둘째 칸입니다. 값이 정확히 1/2이면 둘째 칸으로 갑니다. 정한 경계를 실제 도착 자료를 본 뒤 계속 바꾸면 숫자 차이가 자료 변화 때문인지 구간 변경 때문인지 알기 어렵습니다. 비교 경계도 기록해야 하는 산출물입니다.

pk=∑iwi1{xi∈Bk, xi observed}∑iwi1{xi observed},∑kpk=1p_k=\frac{\sum_iw_i\mathbf1\{x_i\in B_k,\ x_i\text{ observed}\}}{\sum_iw_i\mathbf1\{x_i\text{ observed}\}},\qquad \sum_kp_k=1

분모는 양의 비중을 가진 수치 관측의 합입니다. 기본 비중이 모두 1이면 단순 비율이 됩니다. 비중이 다르면 행 수와 질량을 따로 표시합니다. 값 0의 비중이 3이고 값 1의 비중이 1이면 두 칸 비율은 3/4과 1/4입니다. 원행이 두 개라는 사실과 비중 합 4라는 사실을 구별하세요.

결측값은 수치 0이 아니므로 첫 칸에 넣지 않습니다. 결측 질량과 전체 질량도 따로 보고합니다. 수치 관측이 하나도 없으면 이 정규화된 히스토그램은 미정의입니다. 비율의 합이 0인 빈 벡터를 확률분포라고 쓰면 다음 거리 계산도 잘못 해석하게 됩니다.

A class split at height 150 cannot be directly compared with another class split at 160. A distribution comparison needs shared boundaries and a rule for boundary ties. Our intervals include a finite lower endpoint and exclude a finite upper endpoint.

A cut at one-half puts constructed zero in the first bin and one in the second. Exactly one-half belongs to the second bin. Changing boundaries after each arrival makes changes in the data difficult to distinguish from changes in the measuring rule. Record the bins as part of the comparison.

pk=∑iwi1{xi∈Bk, xi observed}∑iwi1{xi observed},∑kpk=1p_k=\frac{\sum_iw_i\mathbf1\{x_i\in B_k,\ x_i\text{ observed}\}}{\sum_iw_i\mathbf1\{x_i\text{ observed}\}},\qquad \sum_kp_k=1

Normalize by positive weight on observed numeric values. Unit weights produce ordinary proportions. With weight three at zero and weight one at one, the bin masses become three-quarters and one-quarter. Two source rows and total analysis mass four are separate quantities.

Missing values do not enter the zero bin. Report their mass and the total mass separately. When no positive numeric mass exists, the normalized histogram is undefined. An all-zero empty vector is not a probability distribution for the next distance calculation.

학부Undergraduate

전체 변동 거리는 옮겨야 할 질량이다Total variation measures moved probability mass

두 칸에 절반씩 있던 구슬 비율을 3/4과 1/4로 바꾸려면 둘째 칸에서 첫째 칸으로 1/4만큼 옮기면 됩니다. 두 칸의 절댓값 차이는 각각 1/4이라 합이 1/2입니다. 같은 이동을 출발 칸과 도착 칸에서 두 번 세었으므로 2로 나눕니다. 이것이 유한 확률분포의 전체 변동 거리, TV입니다.

TV⁡(p,q)=12∑k=1K∣pk−qk∣,0≤TV⁡(p,q)≤1\operatorname{TV}(p,q)=\frac12\sum_{k=1}^{K}|p_k-q_k|,\qquad 0\leq\operatorname{TV}(p,q)\leq1
가상 두 칸 분포
칸기준 p현재 q절댓값 차이
첫째1/23/41/4
둘째1/21/41/4
거리——(1/4+1/4)/2=1/4

각 칸에서 겹치는 질량의 합 Σ min(p_k,q_k)는 1−TV입니다. 위 예에서는 1/2+1/4=3/4이 겹칩니다. TV가 0이면 선언한 칸의 비율이 모두 같고, TV가 1이면 그 칸들에서 겹침이 없습니다. 표본 수가 많다는 뜻이나 모형이 옳다는 뜻은 이 정의에 포함되지 않습니다.

거리 자체는 p값이나 신뢰도가 아닙니다. 작은 표본에서도 우연히 큰 차이가 생길 수 있고, 큰 표본에서는 작은 차이가 정밀하게 보일 수 있습니다. 관측 단위의 의존성과 표본 추출 조건도 따로 필요합니다. 이 교재의 실제 지문 묶음을 썼다는 사실만으로 독립 표집을 입증하지 않으므로 자동 유의성 판정을 만들지 않습니다.

이 수치는 먼저 “정한 수치 칸의 비중이 얼마나 달라졌는가”에 답합니다. 그것이 업무상 중요한지, 결과 관계까지 달라졌는지, 어떤 조치를 할지는 추가 질문입니다. 이후의 모의 출시 기준에서 문턱을 정하더라도 그 문턱은 선언한 관리 규칙으로 읽습니다.

Moving a quarter of the mass from the second bin to the first changes proportions from one-half each to three-quarters and one-quarter. The absolute differences sum to one-half because departure and arrival count the same movement twice. Dividing by two gives finite total variation distance.

TV⁡(p,q)=12∑k=1K∣pk−qk∣,0≤TV⁡(p,q)≤1\operatorname{TV}(p,q)=\frac12\sum_{k=1}^{K}|p_k-q_k|,\qquad 0\leq\operatorname{TV}(p,q)\leq1
Constructed two-bin distributions
BinReference pCurrent qAbsolute difference
First1/23/41/4
Second1/21/41/4
Distance——(1/4+1/4)/2=1/4

Summed overlap, the minimum mass in each bin, equals one minus TV. Here the overlap is three-quarters. Zero TV means equal proportions in the declared bins; TV one means no overlap in those bins. Neither model correctness nor sample size is part of that definition.

The distance is not a p-value or confidence level. A small sample can fluctuate greatly, while a large sample can reveal small differences precisely. Sampling and dependence conditions remain separate. Predictor fingerprints do not establish independent sampling, so the exercises provide no automatic significance verdict.

First interpret TV as a change in declared bin proportions. Business importance, outcome relationships and appropriate actions are further questions. A later simulated release threshold remains a predeclared management rule.

학부Undergraduate

실습: 비중·경계·빈 분포를 따로 바꾸기Lab: vary weights, boundaries and empty frames

아래 가상 실습은 기준 값 0과 1에 비중 1씩, 현재 값 0에 비중 3과 값 1에 비중 1을 둡니다. 경계 1/2에서 기준 분포는 [1/2,1/2], 현재 분포는 [3/4,1/4]이고 TV는 1/4입니다. 먼저 이 결과를 손계산과 비교하세요.

현재 비중을 3과 1에서 30과 10으로 동시에 늘려 보세요. 현재 총 질량은 달라지지만 정규화된 비율과 TV는 같습니다. 다음에는 값 하나를 경계에 정확히 놓아 어느 칸으로 들어가는지 확인합니다. 이 과정을 끝낸 뒤 경계 자체를 바꾸어, 같은 기록도 다른 구간 요약으로 보일 수 있음을 관찰합니다.

기준 입력을 빈 목록으로 바꾸면 비교 가능한 두 확률분포가 없어 TV가 미정의가 되어야 합니다. 모든 값을 null로 두었을 때에도 수치 질량은 없습니다. 이 경우를 거리 0으로 표시하면 변화가 없다는 잘못된 메시지를 주게 됩니다. 다른 분모의 결측 비율과 함께 읽으세요.

선택적으로 공통 칸 함수의 값 범위 [0,4]를 입력하면 초기 TV=1/4에 대해 차이 상한 1을 얻습니다. 이 상한은 그 칸에서 값이 고정된 같은 함수에 대한 것입니다. 실제 모형 손실이 칸 안의 화학 값이나 결과 조건에 따라 달라지면 그 모형의 위험 차이에 이 숫자를 그대로 붙일 수 없습니다.

The constructed reference has values zero and one with unit weights; the current input has weight three at zero and one at one. At cut one-half, the distributions are [1/2,1/2] and [3/4,1/4], giving TV one-quarter. Match this with the hand calculation first.

Multiply both current weights by ten. Total mass changes while normalized proportions and TV remain fixed. Place a value exactly at the cut to verify endpoint inclusion, then change the cut itself to see how the same records receive a different summary.

An empty reference cannot be normalized into a second probability distribution, so its distance is undefined. All-null values also leave no numeric mass. Reporting zero would falsely signal unchanged proportions. Read the separately normalized missingness fraction as well.

Optional common-bin function bounds zero to four give a difference bound one for initial TV one-quarter. This is a bound for the same function fixed within each bin. It cannot be attached automatically to a model whose loss varies within the bins or whose outcome relationship changes.

학부Undergraduate

결측 비율은 수치 분포와 따로 보고한다Report missingness separately from numeric proportions

기준 자료에 값 0, 1, 결측이 하나씩 있고 비중은 모두 1이라고 합시다. 수치 값 두 개의 분포는 절반씩이고 결측 비율은 1/3입니다. 현재 자료의 수치 값도 0과 1에 비중 1씩인데 결측 행의 비중을 8로 두면, 수치 분포는 그대로여도 전체 비중 중 결측은 8/10입니다.

이 예에서 두 수치 분포의 TV는 0입니다. 그렇다고 두 입력 흐름 전체가 같지는 않습니다. 값을 관측하지 못한 질량이 크게 늘었습니다. 현재에는 가상 원행이 세 개이며, 결측 행 하나에 분석 비중 8을 준 것입니다. 여덟 개의 실제 관측을 새로 발견한 것으로 말하지 않습니다.

가상 결측 질량 비교
양기준현재
수치 0의 비중11
수치 1의 비중11
결측 행 비중18
수치 분포[1/2,1/2][1/2,1/2]
전체 질량 중 결측1/34/5

왜 분모를 나눌까요? 수치 칸의 비율은 값이 있는 사람들 안에서 어디에 몰렸는지를 묻습니다. 결측 비율은 전체 대상 중 얼마나 값이 없는지를 묻습니다. 둘은 서로 다른 질문입니다. 한 비율을 좋게 보이게 하려고 결측 행을 지운 뒤 전체 대상이었던 것처럼 보고하면 두 번째 질문을 잃게 됩니다.

실제 NLS에서 임금 라벨이 없는 사람도 교육·나이 특징은 있을 수 있습니다. 현재 특징 분포를 볼 때 라벨 결측만으로 그 사람을 삭제하면 특징의 대상 집합도 바뀝니다. 이 장은 정한 예정 시험 행의 특징을 보고, 그중 라벨이 도착해 위험을 평가할 수 있는 집합을 따로 표시합니다. 특징 관측과 정답 관측의 선택을 한꺼번에 숨기지 않습니다.

Let reference records contain zero, one and a missing value with unit weights. Numeric values split equally and missingness occupies one-third of total mass. Keep current numeric weights equal but assign weight eight to its one missing record: numeric proportions stay equal while missingness becomes eight-tenths.

Numeric-bin TV is zero, yet the whole input flow differs substantially. The current example still has three constructed records, one carrying analysis weight eight; it does not introduce eight factual observations.

Constructed missing-mass comparison
QuantityReferenceCurrent
Weight at zero11
Weight at one11
Missing-record weight18
Numeric distribution[1/2,1/2][1/2,1/2]
Missing fraction of all mass1/34/5

Numeric proportions ask where observed values lie among records with values. Missingness asks how much of the whole target lacks a value. Dropping missing records and reporting the remaining set as the whole target loses the second question.

NLS records without wage labels can still contain schooling and age. Dropping them merely because of label missingness changes the feature-distribution target. We inspect covariates of the declared planned test records and separately identify the arrived-label scoring frame. Feature and outcome selection should remain visible.

학부Undergraduate

특징이 같아도 정답 관계는 바뀔 수 있다Unchanged inputs can face a changed outcome relationship

가상 특징 X가 0과 1에 절반씩 있는 두 집단을 보겠습니다. 고정한 예측은 ŷ=X입니다. 기준 집단에서는 Y=X라서 모든 예측이 맞습니다. 현재 집단에서는 Y=1−X라고 별도로 정해 보겠습니다. X의 비율은 전혀 바뀌지 않았는데 정답 관계가 뒤집혀 모든 예측이 틀립니다.

이 반례는 실제 와인이나 고객의 결과 규칙을 발견한 것이 아닙니다. 입력 분포만 보는 감시가 무엇을 알 수 없는지 보여 주기 위해 만든 두 가상 법칙입니다. 이진 점수의 Brier 손실은 기준에서 0, 현재에서 1입니다. X 분포의 TV는 0입니다. 특징 변화가 없다는 표시가 성능 보장은 아니라는 것을 정확히 보여 줍니다.

가상 조건부 결과 관계의 변화
X고정 예측기준 Y현재 Y
0001
1110

정답이 늦게 도착하면 이 관계 변화는 특징 검사만으로 드러나지 않을 수 있습니다. 도착한 라벨의 오차를 계산하더라도 그 라벨이 전체를 대표하는지 확인해야 합니다. 빠른 라벨만 좋아 보이는 사례와 입력 변화가 없는 사례는 같은 평균 표 안에서도 섞일 수 있습니다.

반대 방향도 가능합니다. 특징 분포가 달라져도 중요한 손실이 거의 변하지 않을 수 있습니다. 따라서 분포 차이를 발견한 뒤에는 입력 계산이 맞는지, 어떤 집단이 달라졌는지, 어떤 정답을 평가했는지, 실제 의사결정 손실은 무엇인지 순서대로 확인합니다. 거리 하나를 자동 재학습의 정답으로 만들지 않습니다.

Consider two constructed populations with X equally likely zero or one and frozen prediction equal to X. In the reference population let Y=X, giving perfect predictions. In the current population separately define Y=1−X. The input distribution is unchanged while every prediction becomes wrong.

These are teaching laws, not recovered wine or customer mechanisms. Reference Brier loss is zero, current Brier loss is one, and input TV is zero. The example identifies a limitation of covariate-only monitoring without claiming a factual outcome reversal.

Constructed conditional-outcome change
XFrozen predictionReference YCurrent Y
0001
1110

When labels arrive late, input checks alone can miss this change. Even arrived-label errors require examining whether the available outcomes describe the whole target. Unchanged inputs and selected early labels can coexist.

A changed input distribution can also leave an important loss nearly unchanged. After finding a difference, examine calculation consistency, affected cohorts, available outcomes and the application loss. A single distance is not an automatic answer about retraining.

대학원 연결Graduate bridge

심화: TV로 평균 차이를 제한하는 정확한 조건Advanced: the conditions behind a TV mean bound

TV가 위험 변화와 언제 연결되는지 조건을 분명히 하겠습니다. 공통 칸 k에서 같은 함수 값 g_k가 두 집단 모두에 적용되고 a≤g_k≤b라고 합시다. 여기서 “같은”은 중요한 가정입니다. 정답 관계가 달라져 g 자체가 바뀌거나, 같은 칸 안의 구성 변화로 칸 평균 손실이 바뀌면 이 조건이 아닙니다.

∣∑k(qk−pk)gk∣≤(b−a)TV⁡(p,q)\left|\sum_k(q_k-p_k)g_k\right|\leq(b-a)\operatorname{TV}(p,q)

증명은 간단한 질량 계산입니다. 차이 δ_k=q_k−p_k의 합은 0입니다. 양수인 δ의 합과 음수 δ의 절댓값 합은 모두 TV입니다. 평균 차이를 가장 크게 하려면 늘어난 칸에 g=b, 줄어든 칸에 g=a를 두면 됩니다. 따라서 가장 큰 양의 차이는 b×TV−a×TV=(b−a)TV입니다. 부호를 뒤집어도 같은 상한이므로 절댓값 부등식이 됩니다.

p=[1/2,1/2], q=[3/4,1/4], g=[4,0]이면 두 평균은 2와 3입니다. 차이 1은 (4−0)×1/4=1과 같아 상한을 달성합니다. 하지만 S15에서는 기준과 현재의 손실 함수가 다르므로 TV=0을 넣어 위험 차이도 0이라고 결론 내릴 수 없습니다.

또 하나의 조건은 구간 요약입니다. 여러 세부 값을 한 칸으로 합치면 TV는 커지지 않습니다. 칸 안의 양·음 차이가 서로 지워질 수 있기 때문입니다. 그러므로 한 특징을 몇 칸으로 나눈 거리만으로 전체 특징의 TV를 위에서 제한할 수는 없습니다. 작은 요약 거리는 보이지 않은 큰 차이를 배제하지 못합니다.

TV⁡(Pbin,Qbin)≤TV⁡(PX,QX)\operatorname{TV}(P_{\mathrm{bin}},Q_{\mathrm{bin}})\leq\operatorname{TV}(P_X,Q_X)

실제 대시보드에서는 제한된 특징·구간의 진단이라고 정확히 쓰고, 그 진단에서 성능 보장으로 넘어가려면 어떤 공통 조건부 손실과 범위 가정이 더 필요한지 설명합니다. 유용한 관리 지표를 쓰는 것과 그 지표에 없는 정리를 덧붙이는 것은 다른 일입니다.

To connect TV with an expectation difference, assume a common function value g_k in each shared bin, with all values between a and b. The same function must apply in both populations. A changed outcome law or a changed within-bin composition can violate this condition.

∣∑k(qk−pk)gk∣≤(b−a)TV⁡(p,q)\left|\sum_k(q_k-p_k)g_k\right|\leq(b-a)\operatorname{TV}(p,q)

Write δ_k=q_k−p_k. Its sum is zero, so total positive change and total absolute negative change both equal TV. The largest positive expectation difference assigns b to increasing bins and a to decreasing bins, giving (b−a) × TV. Reversing signs gives the absolute-value bound.

With p=[1/2,1/2], q=[3/4,1/4] and g=[4,0], the expectations are two and three. Their difference one reaches the bound four times one-quarter. Section fifteen changes the loss relationship itself, so its zero input TV cannot be inserted into this common-function argument.

Coarsening also matters. Merging fine values into bins cannot increase TV because opposite signed differences may cancel within a bin. Consequently a small one-feature binned distance is not an upper bound for the full input distance.

TV⁡(Pbin,Qbin)≤TV⁡(PX,QX)\operatorname{TV}(P_{\mathrm{bin}},Q_{\mathrm{bin}})\leq\operatorname{TV}(P_X,Q_X)

Describe a dashboard as the limited feature/bin diagnostic it actually computes. A performance bound needs additional common conditional-loss and boundedness assumptions. A useful management metric should retain its stated mathematical scope.

학부Undergraduate

이벤트·정답·확인의 세 장부Keep event, outcome and availability ledgers

가게가 월요일에 주문을 받았고 목요일에 반품 여부를 확인했다고 해 봅시다. 주문을 받은 날과 반품의 정답을 확인한 날은 다릅니다. 월요일에 만든 예측을 목요일의 정답으로 평가할 수는 있지만, 월요일 당시에 그 정답을 알고 있었다고 말하면 정보 순서가 바뀝니다.

이벤트 장부에는 언제 어떤 대상에게 어떤 모형으로 예측했는지 적습니다. 정답 장부에는 어떤 대상의 결과를 무엇으로 확인했는지 적습니다. 둘을 합치는 가용성 장부에는 원 ID, 이벤트 인덱스, 라벨 도착 인덱스, 현재 창에 포함되는지, 정답을 쓸 수 있는지를 남깁니다. 같은 행을 연결하는 키가 없으면 다른 사람의 정답을 붙일 수도 있습니다.

이 교재의 일반 실습은 정수 인덱스로 이 순서를 표현합니다. 이벤트 t보다 라벨 도착 a가 앞서는 입력은 거절합니다. 도착이 지정되지 않았다는 null을 0으로 바꾸지 않습니다. 실제 달력 시각을 이용하는 다른 업무라면 시간대·시각 형식·수정 기록도 계약에 포함해야 하지만, 여기의 숫자 인덱스를 실제 시간으로 해석하지 않습니다.

실제 와인·NLS·이탈 자료는 과거에 수집된 값과 라벨을 제공합니다. 개인별 서비스 요청과 라벨 도착 시각을 복원할 수는 없습니다. 따라서 사건 순서를 원행 순서로 만든 실습은 관찰된 시간 흐름이 아니라 재현 가능한 가상 일정입니다. 실제 값의 출처와 실습 일정의 출처를 장부에서 나란히 적습니다.

Suppose a store records an order on Monday and verifies its return outcome on Thursday. Prediction and label-verification times differ. Thursday’s label can later evaluate Monday’s prediction without becoming information known on Monday.

An event ledger identifies the unit, model and prediction event. An outcome ledger identifies the verified result. An availability ledger links these by row ID, event index, label-arrival index and current-window status. A missing join key can connect a prediction to someone else’s outcome.

Our general exercises use integer indices. A label declared to arrive before its event is rejected, and an unspecified arrival remains null. Real calendar systems would additionally need explicit time formats, zones and correction histories. Abstract indices here do not measure factual elapsed time.

The wine, NLS and churn sources provide historical values and outcomes without individual service and arrival timestamps. Enumerating source rows creates a reproducible teaching schedule, rather than an observed time series. Record provenance for factual values and constructed schedules separately.

학부Undergraduate

라벨 상태와 오차 제외 사유를 나눈다Separate label state from scoring exclusion

어떤 행을 평균에서 뺐다는 사실만 적으면 원인을 고칠 수 없습니다. 이벤트가 아직 창 밖인지, 정답이 원래 없는지, 기다리면 도착하도록 정했는지, 예측을 계산하지 못했는지에 따라 다음 행동이 달라집니다. 데이터 표에 각 상태를 구체적으로 남깁니다.

라벨 상태는 현재 이벤트 창 밖, 원 라벨 결측, 도착 미지정, 라벨 대기, 라벨 도착으로 나눕니다. 별도로 오차 계산에는 양의 비중과 예측이 필요합니다. 그러므로 라벨이 도착했어도 예측이 null이면 오차를 계산할 수 없습니다. 비중이 0인 행은 라벨을 보여 줄 수 있어도 가중 위험에는 질량을 더하지 않습니다.

가상 행의 라벨과 평가 적격성
행라벨 상태예측비중오차 계산
A도착있음1가능
B도착없음1불가능 · 예측 결측
C대기있음1불가능 · 라벨 대기
D도착있음0질량 0으로 제외

이 장의 화면은 주된 제외 상태와 라벨 상태 개수를 함께 제공합니다. 한 행에 여러 문제가 있어도 그 행을 한 번만 평균에 넣어야 하며, 라벨 수와 비중 질량을 같은 수치로 읽지 않아야 합니다. “도착한 라벨 1개, 양의 평가 질량 0”도 가능한 결과입니다.

분류의 정오도 같은 원칙입니다. 예측이 틀린 false와, 정답이 아직 없어 정오 자체를 정할 수 없는 미정의는 다릅니다. 값이 들어 있는 상태 객체를 그대로 “참”으로 읽으면 틀린 행과 결측 행까지 맞았다고 표시할 수 있습니다. 실습 표에서는 예·아니요·미정의를 각각 원 결과와 대조합니다.

A bare statement that a record was excluded does not identify the remedy. An event outside the window, a native missing label, a waiting arrival and an unavailable prediction represent different problems. Preserve their specific states.

Label states distinguish outside-window, native missing, unspecified arrival, waiting and arrived labels. Scoring additionally requires an available prediction and positive weight. Thus an arrived label with a missing prediction cannot be scored, while a zero-weight labeled row adds no risk mass.

Constructed label state and scoring eligibility
RecordLabel statePredictionWeightScoring
AArrivedAvailable1Eligible
BArrivedMissing1Excluded: missing prediction
CWaitingAvailable1Excluded: waiting label
DArrivedAvailable0Excluded from positive mass

The display reports primary exclusion states alongside label-state counts. A row enters the mean only once, and record counts differ from weight mass. One arrived label with zero positive scoring mass is a possible result.

Incorrect classification is false; classification without a known label is undefined. A container holding a value is not itself a true classification verdict. The exercise preserves and checks separate yes, no and undefined cells.

학부Undergraduate

도착 비율과 평가 위험은 분모가 다르다Arrival coverage and scoring risk have different denominators

정답을 얼마나 확보했는지와 확보한 정답에서 얼마나 틀렸는지는 다른 질문입니다. 첫 질문의 분모는 현재 창에 들어온 양의 대상 비중입니다. 둘째 질문의 분모는 라벨·예측이 모두 있어 실제 오차를 계산할 수 있는 비중입니다. 같은 “평균”이라는 말로 합치지 않습니다.

c^(c)=∑i∈E(c)wi1{Yi arrived}∑i∈E(c)wi,R^arr(c)=∑i∈A(c)wiℓ(Yi,Y^i)∑i∈A(c)wi\widehat c(c)=\frac{\sum_{i\in E(c)}w_i\mathbf1\{Y_i\text{ arrived}\}}{\sum_{i\in E(c)}w_i},\qquad \widehat R_{\mathrm{arr}}(c)=\frac{\sum_{i\in A(c)}w_i\ell(Y_i,\widehat Y_i)}{\sum_{i\in A(c)}w_i}

E(c)는 정한 이벤트 창의 대상 집합이고, A(c)는 그중 정답 도착·예측 가능 조건까지 충족한 평가 집합입니다. 단위 비중의 네 행 중 두 행의 라벨이 도착했다면 도착 비율은 1/2입니다. 그 두 행 중 하나의 예측이 없으면 실제 위험은 나머지 한 행으로만 계산합니다. 평가 가능 비중 비율은 1/4이 됩니다.

비중을 다르게 주면 같은 행 수도 다른 질량 비율이 됩니다. 도착한 한 행의 비중이 9, 기다리는 한 행의 비중이 1이면 라벨 개수 비율은 1/2이지만 가중 도착 비율은 9/10입니다. 어떤 비중을 쓰는지가 관리 지표의 뜻을 바꿉니다. 기본 실제 비교는 원 표본 비중을 자동 채택하지 않고 단위 분석 비중을 사용합니다.

이벤트 대상이 없거나 양의 질량이 없으면 도착 비율도 미정의입니다. 이벤트는 있지만 아직 정답을 평가할 수 없으면 위험이 미정의일 수 있습니다. 이를 모두 0으로 채우면 “아무것도 못 보았다”와 “관측된 오차가 없었다”를 구분할 수 없습니다.

Label coverage asks how much outcome information has arrived. Risk asks how inaccurate the predictions are among evaluable labels. The first denominator is positive mass in the current event window; the second additionally requires an arrived label and a prediction.

c^(c)=∑i∈E(c)wi1{Yi arrived}∑i∈E(c)wi,R^arr(c)=∑i∈A(c)wiℓ(Yi,Y^i)∑i∈A(c)wi\widehat c(c)=\frac{\sum_{i\in E(c)}w_i\mathbf1\{Y_i\text{ arrived}\}}{\sum_{i\in E(c)}w_i},\qquad \widehat R_{\mathrm{arr}}(c)=\frac{\sum_{i\in A(c)}w_i\ell(Y_i,\widehat Y_i)}{\sum_{i\in A(c)}w_i}

E(c) is the declared event-window frame; A(c) adds the scoring conditions. Two arrived labels among four unit-weight events give coverage one-half. If one arrived record lacks a prediction, risk uses only the other record and scoring coverage is one-quarter.

Weights change the interpretation. One arrived record of weight nine and one waiting record of weight one give a label-count fraction one-half and weighted coverage nine-tenths. Our factual benchmark uses unit analysis weights rather than automatically adopting a source survey-weight variable.

No positive event mass makes coverage undefined. Events with no evaluable outcomes can leave risk undefined as well. Replacing these cases by zero confuses unavailable information with an observed zero error.

학부Undergraduate

실습: 기준 시점만 움직여 보기Lab: move only the availability cutoff

아래 가상 일정에서 예측과 정답을 고정하고 기준 시점만 움직여 보세요. 처음에는 도착한 행, 대기하는 행, 원 라벨 결측, 도착 미지정을 함께 둡니다. 기준을 뒤로 옮길수록 대기 라벨은 사용할 수 있게 되지만 원 라벨 결측과 도착 미지정이 자동으로 알려진 값이 되지는 않습니다.

시작 기준에서 보이는 행 ID와 정답을 먼저 적습니다. 다음 기준에서 어떤 ID가 새로 평가에 들어오는지 비교합니다. 입력 표에 저장된 미래 정답을 알고 있어도 현재 기준의 결과 칸에서는 가려져야 합니다. 이벤트 자체가 아직 창 밖이면 현재 예측도 보이지 않는지 확인하세요.

라벨 도착을 이벤트보다 앞서 지정하면 왜 거절되는지 설명해 보세요. 이 실습의 라벨은 그 이벤트를 평가하는 정답이라는 계약입니다. 현실의 다른 종류 정보가 이미 존재했다면 그것은 별도 특징이나 다른 이벤트 정의로 문서화해야 합니다. 입력 오류를 해결한다고 도착을 임의의 0으로 바꾸지 않습니다.

마지막으로 한 행의 비중을 0으로 바꿉니다. 라벨 상태 개수와 가중 도착 질량·평가 질량이 어떻게 달라지는지 살펴보세요. 이 조작은 가상 비중 실습입니다. 실제 자료에서 불편한 행을 보이지 않게 만들 목적으로 비중을 0으로 두어도 된다는 뜻은 아닙니다.

Keep predictions and labels fixed while moving the cutoff in this constructed schedule. Include arrived, waiting, native-missing and unspecified-arrival records. Later cutoffs can reveal waiting labels; they do not automatically repair native missingness or create unspecified arrivals.

Write down the visible row IDs and labels at the first cutoff, then identify newly eligible records at the next. Future truth stored in the teaching input must remain masked in the current result. Check that an event outside the window also has no currently visible prediction.

Explain why an arrival before its event is rejected under this outcome-linkage contract. Already existing information with another meaning needs a different documented feature or event definition. Do not repair the input by inventing timestamp zero.

Set one constructed weight to zero and compare label-state counts, arrival mass and scoring mass. This illustrates denominators; it does not authorize suppressing inconvenient factual records.

학부Undergraduate

미래 값을 가리는 것과 미래를 검증하는 것은 다르다Retrospective masking differs from prospective validation

문제집의 답을 뒤쪽 페이지에서 알고 있어도, 문제를 풀 당시에는 답을 보지 않았다고 정할 수 있습니다. 그러나 그 약속이 실제 시험에서 답을 절대로 보지 않았다는 증거는 아닙니다. 과거 자료로 미래 상황을 흉내 내는 실습도 같은 한계를 가집니다.

이 교재는 고정한 모형에 과거 실제 특징을 넣고, 정답을 정한 인덱스까지 가립니다. 그 계산 규칙이 미래 정답을 평균 오차에 넣지 않는지는 검사할 수 있습니다. 하지만 모형을 처음 설계할 때 어떤 정보를 보았는지, 자료가 언제 수정되었는지, 실제 운영에서 누가 무엇을 알았는지를 새로 입증하지는 못합니다.

따라서 “기준 c에서 가려진 회고적 실습”이라고 쓰는 것이 정확합니다. 실제 예측 시점에 보관한 특징·모형과 이후 확인한 결과를 연결해 평가하는 것은 추가 자료 수집이 필요한 다른 설계입니다. 개인별 날짜가 없는 NLS·와인·이탈 파일에서 그 날짜를 만들어 채운다고 실제 미래 검증이 되지 않습니다.

가린 정답을 볼 수 있는 원자료 다운로드는 재현 학습을 위해 남깁니다. 학습자는 공개 원파일과 현재 기준 화면의 역할을 구분해야 합니다. 이 장의 화면은 정보 순서를 계산하는 교육 도구이며, 자료 접근을 통제하는 운영 보안 시스템이나 과거 정보 환경을 인증하는 장치는 아닙니다.

Knowing a workbook answer on a later page while pretending not to use it is different from evidence that an exam taker never saw the answer. Historical simulations of future availability have a comparable limitation.

The lesson applies a frozen model to factual historical covariates and masks labels until declared indices. We can check that the current risk calculation excludes future labels. This does not reconstruct what was known during model design, data revisions or actual operations.

Describe the exercise as a retrospective constructed-cutoff evaluation. A prospective design would additionally preserve actual-time features and model artifacts and connect subsequently verified outcomes. Inventing dates in sources without individual dates cannot establish that design.

Original factual downloads remain available for reproducible learning. Distinguish those historical files from the cutoff-specific display. This educational information-order calculator is neither an access-control system nor an authentication of the historical information environment.

학부Undergraduate

빨리 도착한 쉬운 정답만 보면An easy early-label subset can look perfect

가상의 두 이벤트가 모두 인덱스 1에 들어왔다고 합시다. 고정 예측은 두 행 모두 0입니다. 첫 정답은 0이며 즉시 도착하고, 둘째 정답은 1이지만 인덱스 4에 도착하도록 정합니다. 기준 1에서는 평가할 수 있는 첫 행 손실이 0이라 평균도 0입니다. 기준 4에서는 두 손실 0과 1을 모두 평균내어 1/2입니다.

가상 조기 라벨 선택 반례
행고정 예측실습 정답라벨 도착
쉬운 행001
늦은 행014
R^arr(1)=0,R^arr(4)=0+12=12\widehat R_{\mathrm{arr}}(1)=0,\qquad \widehat R_{\mathrm{arr}}(4)=\frac{0+1}{2}=\frac12

모형이 나빠진 것이 아닙니다. 같은 두 예측이었고 평가 집합이 달라졌습니다. 두 행의 특징이 같다고 정하면 특징 분포 차이도 0일 수 있습니다. 입력 감시가 조용하고 조기 오차가 작아도 전체 결과의 오차는 더 클 수 있다는 반례입니다.

이를 확률 기호로 쓰면 도착 여부 R=1인 집합의 평균 E[ℓ|R=1]과 목표 집합의 평균 E[ℓ]이 다를 수 있다는 말입니다. 도착이 결과나 오차와 관련되면 둘의 일치를 가정할 근거가 약합니다. 두 수치의 차이를 모형 개선·악화라고 이름 붙이기 전에 평가 대상 변화부터 확인합니다.

가상 결과 의존 지연 규칙을 실제 자료의 값 위에 얹으면 같은 문제를 재현할 수 있습니다. 이것은 그 자료에서 실제로 그런 지연이 발생했다는 발견이 아닙니다. 공개 원파일은 유지하고, 지연을 구성한 규칙을 별도 설명하여 어떤 선택을 의도적으로 만든 것인지 알 수 있게 합니다.

Two constructed events both occur at index one and both receive frozen prediction zero. The first outcome zero arrives immediately; the second outcome one arrives at index four. At cutoff one, the only evaluable loss is zero. At cutoff four, losses zero and one average to one-half.

Constructed early-label selection
RecordFrozen predictionTeaching outcomeLabel arrival
Easy record001
Later record014
R^arr(1)=0,R^arr(4)=0+12=12\widehat R_{\mathrm{arr}}(1)=0,\qquad \widehat R_{\mathrm{arr}}(4)=\frac{0+1}{2}=\frac12

The model did not deteriorate: predictions stayed fixed while the scoring frame changed. Give both rows identical covariates and their feature distance can also be zero. Quiet input diagnostics and low early error do not establish full-frame quality.

In probability notation, mean loss conditional on an arrived label, E[ℓ|R=1], can differ from target mean E[ℓ]. Arrival related to outcomes or errors weakens the assumption that these means agree. Examine the evaluation-frame change before naming a trend model improvement or deterioration.

An explicitly constructed outcome-dependent delay overlay on factual values reproduces this selection problem without asserting that the source actually experienced such delays. Keep the original file and describe the separate schedule rule.

학부Undergraduate

누적 창과 최근 창은 서로 다른 대상을 센다Cumulative and recent windows target different events

이번 달의 고객을 평가하는 것과 지금까지 온 모든 고객을 평가하는 것은 다릅니다. 같은 기준 c에서 정답을 확인해도 이벤트 창의 시작 s를 어디로 두는지에 따라 대상 집합이 바뀝니다. 최근 창으로 바꿔 오래된 성과를 지우는 것이 적절할 수도 있지만, 그 변화를 같은 누적 평균의 개선이라고 말해서는 안 됩니다.

A(s,c)={i:s≤ti≤c, ai≤c, Yi,Y^i available, wi>0}A(s,c)=\{i:s\leq t_i\leq c,\ a_i\leq c,\ Y_i,\widehat Y_i\text{ available},\ w_i>0\}

일반 실습의 시작·끝 경계는 모두 포함합니다. s=1,c=2라면 이벤트 1과 2를 포함하고 이벤트 0과 3은 창 밖입니다. 이벤트 1의 정답이 3에 도착하면 c=2에서는 아직 평가하지 못합니다. 기준을 3으로 옮기면서 최근 창을 [2,3]으로도 바꾸면, 그 행은 정답이 도착했지만 새 이벤트 창에서는 제외됩니다.

화면의 “현재 창에서 보임”은 과거에 한 번도 본 적이 없다는 뜻이 아닙니다. 시작 이전의 오래된 이벤트도 현재 대상 밖일 수 있습니다. 보고서에는 이벤트 창, 라벨 가용성 기준, 누적·최근 방식과 비중을 함께 적습니다. 서로 다른 창의 두 평균을 비교할 때에는 구성과 분모 변화를 먼저 확인합니다.

이 장 실제 자료의 기본 실습은 시작 0을 두고 원행에서 만든 이벤트 순서를 누적해서 봅니다. 이 순서는 실제 달력 시간이 아니므로 “최근 200명의 실제 고객”이라고 부르지 않습니다. 일반 창 실습은 대상 집합을 정하는 원리를 배우는 가상 예입니다.

Evaluating this month’s customers differs from evaluating every customer seen so far. At the same label cutoff c, event-window start s changes the target frame. A recent window can be useful without becoming an improvement in the same cumulative quantity.

A(s,c)={i:s≤ti≤c, ai≤c, Yi,Y^i available, wi>0}A(s,c)=\{i:s\leq t_i\leq c,\ a_i\leq c,\ Y_i,\widehat Y_i\text{ available},\ w_i>0\}

Both endpoints are inclusive. Window [1,2] includes events one and two, excluding zero and three. An event-one label arriving at three cannot be scored at cutoff two. Moving to cutoff three while also choosing recent window [2,3] still excludes that older event, despite its now-arrived label.

Visible in the current window does not mean never previously observed. Older events can be outside the current target. Report the event window, availability cutoff, cumulative/recent convention and weights together before comparing averages.

The factual teaching overlay uses cumulative original-row order starting from zero. This is not calendar time and is not described as the most recent 200 factual customers. General window exercises illustrate target-frame design.

학부Undergraduate

기준별 스냅샷을 이어 읽는 방법Read a sequence of auditable snapshots

한 숫자의 추세를 그리기 전에 각 점이 어떤 장부를 요약하는지 정해야 합니다. 인덱스 10, 50, 200에서 도착 행의 평균을 계산했다면 세 평균은 서로 다른 가용 집합일 수 있습니다. 각 점에 이벤트 수, 라벨 도착 수, 평가 비중, 집단 구성을 함께 기록하면 추세를 오해할 가능성이 줄어듭니다.

가상 첫 창에 음성 라벨만 있다면 이진 분류의 AUC나 양성 재현율은 미정의일 수 있습니다. 다음 창에 양성 정답이 도착하면 그 지표가 새로 정의됩니다. 그래프에서 첫 점을 0으로 채워 “AUC가 0에서 좋아졌다”고 그리지 않습니다. 빈 점의 이유를 보여 주고 원 장부를 확인할 수 있게 합니다.

원자료의 정렬도 중요합니다. 이 장 와인 파일은 적포도주 기록 뒤에 백포도주 기록을 이어 붙였습니다. 그 순서를 이벤트 순서로 쓰면 이른 가상 구간에는 적포도주가 많을 수 있습니다. 혼합 훈련 집합과 초기 구간의 차이가 보이더라도 포르투갈 산업에서 시간에 따라 그런 변화가 일어났다는 증거는 아닙니다.

스냅샷 비교의 최소 설명은 고정한 모형 버전, 정한 인덱스·창, 지연 규칙, 도착·평가 분모, 코호트와 미정의 이유입니다. 실제 업무라면 기록된 시각의 출처와 결과 수정 이력도 추가합니다. 숫자 선 하나가 이 설명을 대신하지는 못합니다.

Before drawing a trend, define what each point summarizes. Arrived-label averages at indices ten, fifty and two hundred can use different available sets. Attach event counts, arrival counts, scoring mass and cohort composition to each snapshot.

A constructed first window containing only negative labels can have undefined AUC or positive recall. These become defined when positive outcomes arrive. Do not insert a zero first point and report an improvement from zero AUC. Preserve the reason for an absent point and its underlying ledger.

Source ordering matters. The wine files concatenate red records before white records. Using that order as a constructed event schedule can make an early segment disproportionately red. Its difference from a mixed training reference is not evidence of historical temporal change in the Portuguese industry.

An auditable comparison specifies model version, index/window, delay rule, arrival/scoring denominators, cohorts and undefined reasons. Real operations additionally need provenance for actual times and outcome revisions. A line on a graph cannot replace that description.

학부Undergraduate

실습: 도착한 정답의 위험을 계산한다Lab: score the labels available by the cutoff

이제 가용성 장부와 손실 계산을 연결합니다. 가상 두 행의 예측을 모두 0으로 고정하고, 첫 정답 0은 인덱스 1, 둘째 정답 1은 인덱스 4에 도착하게 만듭니다. 기준 1에서 평균 제곱 손실이 0인지 확인한 뒤, 다른 값을 건드리지 않고 기준만 4로 바꿉니다. 두 행이 모두 도착하면 평균은 1/2입니다.

처음의 0과 나중의 1/2은 같은 분모의 성적 변화가 아닙니다. 원행 표에서 평가에 새로 들어온 ID를 찾으세요. 이벤트 행 수, 도착 라벨 수, 평가 질량과 MSE를 함께 읽습니다. 한 클래스만 평가되면 AUC·균형 정확도 같은 지표가 미정의일 수 있습니다.

다음 실험 전에는 두 행·예측 0·기준 4를 원래대로 맞춥니다. 한 행의 예측만 null로 바꾸면 라벨 도착 비율은 같지만 평가 질량이 줄어야 합니다. 라벨을 null로 바꾸는 것과 어떤 차이가 있는지 제외 사유를 비교합니다. 한 항목을 바꾼 실험을 끝낸 뒤에는 반드시 초기값을 복구하고 다음 실험을 시작하세요.

분류 문턱을 바꾸는 실험에서는 점수와 정답을 고정합니다. 점수 오차는 같아도 분류가 달라질 수 있습니다. 현재 라벨을 여러 번 보며 문턱을 골랐다면 그 결과는 고정 문턱의 외부 평가와 다른 절차입니다. 실제 업무의 선택·평가 경계를 보고서에 남깁니다.

Connect the availability ledger to loss calculation. Freeze two constructed predictions at zero, with outcome zero arriving at index one and outcome one at four. Verify zero mean squared loss at cutoff one, then change only the cutoff to four. Both labels now give mean loss one-half.

These values use different scoring denominators. Identify the newly eligible row ID and read event counts, arrived labels, scoring mass and MSE together. A window with only one observed class can have undefined AUC or balanced accuracy.

Before the next experiment, restore the two records, zero predictions and cutoff four. Set only one prediction to null: label coverage stays fixed while scoring mass falls. Compare this with a missing label and inspect the exclusion reasons. Restore the original settings before each separate intervention.

Threshold experiments keep scores and labels fixed. Score loss can remain unchanged while classifications change. Selecting a threshold after repeatedly inspecting these labels defines a different procedure from externally evaluating a frozen threshold. Document that boundary.

학부Undergraduate

MSE·MAE·R²의 단위와 기준Units and references for MSE, MAE and R-squared

모든 오차 숫자를 같은 뜻으로 읽으면 안 됩니다. MSE는 결과 차이의 제곱 평균이고, MAE는 절댓값 평균입니다. 와인에서는 각각 품질 점수의 제곱과 품질 점수, NLS에서는 로그 점의 제곱과 로그 점입니다. 결과가 다른 두 업무의 MSE 크기만 비교해 모형 우열을 정하지 않습니다.

MSE⁡=∑iwi(yi−y^i)2W,MAE⁡=∑iwi∣yi−y^i∣W,W=∑iwi>0\operatorname{MSE}=\frac{\sum_iw_i(y_i-\widehat y_i)^2}{W},\quad \operatorname{MAE}=\frac{\sum_iw_i|y_i-\widehat y_i|}{W},\quad W=\sum_iw_i>0

가상의 두 정답 0,1을 각각 1/4,3/4로 예측하면 오차 절댓값은 둘 다 1/4, 제곱은 둘 다 1/16입니다. 따라서 MAE=1/4, MSE=1/16입니다. 평균 절댓값의 제곱이 항상 MSE와 같은 것은 아닙니다. 이 예는 두 오차 크기가 같아 우연히 같아진 특수한 경우입니다.

R²는 같은 평가 집합의 관측 평균 주위 변동과 오차를 비교합니다. 위 예의 관측 평균은 1/2, 제곱 변동 합은 1/2, 오차 제곱합은 1/8이라 R²=1−(1/8)/(1/2)=3/4입니다. 기준은 그 창의 결과 평균이며, 고정한 훈련 평균 기준선과 항상 같지는 않습니다.

R2=1−∑iwi(yi−y^i)2∑iwi(yi−y‾w)2R^2=1-\frac{\sum_iw_i(y_i-\widehat y_i)^2}{\sum_iw_i(y_i-\overline y_w)^2}

평가 결과가 모두 같으면 분모가 0이라 R²는 미정의입니다. 음수 R²도 가능합니다. 정답 0,1에 모두 0을 예측하면 오차 제곱합 1이 변동 합 1/2보다 커 R²=−1입니다. 이를 프로그램 오류나 허용 범위 위반으로 지우지 말고, 현재 평가 집합에서 비교 기준보다 오차가 컸다고 읽습니다.

MSE averages squared errors and MAE averages absolute errors. Their units differ: squared quality-score units versus quality-score units, or squared log units versus log units. Their sizes across unrelated tasks do not define universal model rankings.

MSE⁡=∑iwi(yi−y^i)2W,MAE⁡=∑iwi∣yi−y^i∣W,W=∑iwi>0\operatorname{MSE}=\frac{\sum_iw_i(y_i-\widehat y_i)^2}{W},\quad \operatorname{MAE}=\frac{\sum_iw_i|y_i-\widehat y_i|}{W},\quad W=\sum_iw_i>0

For constructed labels zero and one with predictions one-quarter and three-quarters, each absolute error is one-quarter and each squared error one-sixteenth. MAE is one-quarter and MSE one-sixteenth. Squaring MAE does not generally produce MSE; equal error magnitudes make that identity hold in this particular example.

R-squared compares error with variation around the weighted outcome mean of the same scoring frame. Here the outcome mean is one-half, total variation sum one-half and squared error sum one-eighth, giving R-squared three-quarters. This window-specific reference need not equal the frozen training-mean baseline.

R2=1−∑iwi(yi−y^i)2∑iwi(yi−y‾w)2R^2=1-\frac{\sum_iw_i(y_i-\widehat y_i)^2}{\sum_iw_i(y_i-\overline y_w)^2}

Constant scoring outcomes give zero denominator and undefined R-squared. Negative values are possible: predicting zero for labels zero and one gives squared error sum one and R-squared minus one. Interpret this relative error rather than deleting it as an invalid value.

학부Undergraduate

점수 오차·순위·분류는 각각 확인한다Inspect score error, ranking and classification separately

고객 두 명에게 0.2와 0.4를 주었다고 합시다. 점수의 순위는 두 번째가 더 높습니다. 양성 문턱을 0.5로 두면 둘 다 음성으로 분류합니다. 문턱을 0.3으로 바꾸면 두 번째만 양성이 됩니다. 순위와 점수는 그대로이고 분류 행동만 바뀐 것입니다.

실제 이란 고객의 기본 시험 771행에서 동결된 점수와 문턱 1/2를 사용하면 음성 639행은 음성으로 분류되고 양성 132행도 음성으로 분류됩니다. 정확도는 639/771로 약 0.829지만 양성 재현율은 0입니다. 예측 양성 질량이 없어 정밀도는 미정의이고, 두 실제 클래스가 있으므로 균형 정확도는 1/2입니다. 높은 전체 정확도 하나가 양성을 찾아냈다는 뜻은 아닙니다.

실제 기본 시험 집합 · 문턱 1/2, 모든 라벨 가용 시
양값뜻
정확도639/771전체 중 맞힌 비율
양성 재현율0이탈 양성을 찾아낸 비율
음성 재현율1비이탈 음성을 맞힌 비율
정밀도미정의예측 양성 분모 없음
균형 정확도1/2두 재현율의 평균

이 집합의 AUROC는 약 0.8154입니다. 문턱 1/2에서 양성을 고르지 못한 것과 모순이 아닙니다. AUC는 양성 점수가 음성 점수보다 높은 정도를 전체 쌍에서 읽으며, 이 문턱을 넘었는지와는 다른 질문입니다. 두 점수가 모두 0.5 아래라도 양성의 점수가 더 크면 그 쌍의 순위는 맞을 수 있습니다.

Brier 손실은 각 점수와 0/1 정답의 제곱 차이입니다. 문턱만 바꾸면 Brier와 순위는 그대로입니다. 연락 비용·미탐 비용을 고려해 문턱을 정하는 것은 의사결정 문제이며, 그 선택과 평가에 어떤 라벨을 썼는지 기록해야 합니다. 미래 상담의 인과 효과는 이 표에서 계산되지 않습니다.

Scores 0.2 and 0.4 rank the second customer higher. Threshold 0.5 classifies both as negative; threshold 0.3 classifies only the second as positive. Scores and order stay fixed while the decision rule changes.

On the factual default Iranian churn test frame of 771 records, the frozen scores at threshold one-half classify 639 negatives and 132 positives all as negative. Accuracy is about 0.829, yet positive recall is zero. Precision is undefined with no positive predictions; balanced accuracy is one-half because both actual classes exist.

Factual default test frame, threshold one-half, all labels available
MetricValueMeaning
Accuracy639/771Overall correct fraction
Positive recall0Fraction of churn positives found
Negative recall1Fraction of negatives found
PrecisionUndefinedNo positive-prediction denominator
Balanced accuracy1/2Mean of the two recalls

AUROC on this frame is approximately 0.8154. This does not contradict zero positive recall at the chosen threshold. AUROC ranks positive-negative score pairs rather than asking whether they crossed one-half. A positive can outrank a negative even when both scores are below the threshold.

Brier loss measures squared score error against binary labels. Changing only a threshold preserves Brier and ranking. Choosing a contact rule requires costs and a documented selection/evaluation boundary. This table does not identify the causal effect of retention actions.

학부Undergraduate

집단별 분모를 보면 평균 뒤의 구성이 보인다Cohort denominators reveal the composition behind an average

가상 회귀 평가에서 집단 G의 비중 질량이 9이고 평균 손실이 1, H의 질량이 1이고 평균 손실이 9라고 합시다. 전체 가중 평균은 (9×1+1×9)/10=1.8입니다. 집단별 평균을 단순 평균내면 5, 최악 집단은 9입니다. 세 수치는 다른 대상을 요약합니다.

어느 수치가 무조건 옳다는 결론보다 목적을 먼저 적습니다. 전체 질량의 평균을 줄일지, 각 집단을 같은 비중으로 볼지, 가장 나쁜 집단의 위험을 제한할지 정해야 합니다. 검증 결과를 여러 방식으로 본 뒤 마음에 드는 기준을 골랐다면 그 선택도 평가 절차의 일부입니다.

R^pooled=∑gWgR^g∑gWg\widehat R_{\mathrm{pooled}}=\frac{\sum_gW_g\widehat R_g}{\sum_gW_g}

도착 속도가 집단마다 다르면 전체 조기 위험은 집단 구성 변화도 반영합니다. H의 라벨이 늦게 오면 초기 평균에는 G가 더 많이 들어갑니다. 집단별 도착·평가 비중과 손실을 함께 읽으면 전체 평균이 왜 움직였는지 설명할 수 있습니다. 집단 열이 있다고 자동으로 공정성이나 인과 효과가 식별되지는 않습니다.

현재 창에 어떤 집단의 정답이 없으면 그 집단 위험은 미정의입니다. 0으로 채우면 누가 아직 평가되지 않았는지 감춥니다. 실제 사례의 와인 종류·교육 연수 구간·요금제는 선언한 서술 집단입니다. 그 집단 이름을 물리적 동일성·개인의 가치·정책 우선순위에 대한 결론으로 바꾸지 않습니다.

In a constructed regression evaluation, group G has weight mass nine and mean loss one; H has mass one and mean loss nine. Pooled risk is 1.8, the unweighted mean of group risks is five, and the worst group risk is nine. These summarize different targets.

Specify the objective: improve pooled mass-weighted loss, give equal weight to groups or limit the worst group. Choosing a criterion after inspecting multiple validation summaries is itself part of the selection procedure.

R^pooled=∑gWgR^g∑gWg\widehat R_{\mathrm{pooled}}=\frac{\sum_gW_g\widehat R_g}{\sum_gW_g}

Different arrival speeds change early cohort composition. If H’s labels arrive later, G dominates the initial mean. Read group-specific arrival mass, scoring mass and loss together. A cohort variable does not automatically identify fairness or a causal effect.

A cohort with no evaluable labels has undefined risk. Filling it with zero hides who remains unevaluated. Wine type, schooling bands and tariff plans in the factual cases are declared descriptive groups, not conclusions about physical identity, personal worth or policy priority.

학부Undergraduate

관리 문턱과 통계적 경보를 구별한다Distinguish a management threshold from a statistical alarm

대시보드에서 “TV가 0.2보다 크면 살펴보자”라는 규칙을 정할 수 있습니다. 이는 거리가 그 수치를 넘었다는 관리 신호입니다. 모형이 나쁠 확률이 20%라는 뜻도, 유의수준 20%의 통계 검정이라는 뜻도 아닙니다. 어떤 수치를 왜 선택했는지 기록합니다.

알림의 첫 목적은 조사할 상황을 찾는 것입니다. 입력 계산 오류, 새 집단 구성, 결측 증가, 정답 도착 지연, 실제 오차 변화는 대응이 다릅니다. 모든 알림에 즉시 재학습한다고 정하면 원인 파악 없이 새 편향을 만들 수도 있습니다. 모형 버전과 이전 상태를 보관하고 변경 이유를 설명해야 합니다.

자주 보는 지표일수록 우연한 흔들림을 만날 기회도 많습니다. 통계적 오경보 비율을 말하려면 표본 조건·의존성·반복 확인 규칙을 정해야 합니다. 이 장의 정확 TV는 입력 자료의 유한한 거리이며 자동 p값을 만들지 않습니다. 후반 심화에서는 반복 검정의 추가 전제를 따로 살펴봅니다.

관리 문턱에는 단위와 분모도 필요합니다. 와인 품질 MSE 1과 로그 임금 MSE 1은 같은 허용 오차가 아닙니다. 도착 라벨이 적을 때의 평균과 대부분 도착한 뒤의 평균을 같은 신뢰도로 읽지 않습니다. 알림에는 값 하나와 함께 대상·가용성·범위 설명을 붙입니다.

A dashboard can declare “investigate when TV exceeds 0.2.” That is a management rule on a distance. It is neither a 20-percent probability that the model is bad nor a statistical test at a 20-percent level. Document the reason for the chosen value.

An alert identifies something to investigate. Processing errors, changed cohort composition, missingness, label delays and actual error changes require different responses. Automatic retraining after every alert can introduce new problems without identifying the cause. Preserve versions and explain changes.

Repeatedly inspected metrics create more opportunities for random fluctuations. Statistical false-alarm claims require sampling, dependence and repeated-look assumptions. Exact empirical TV here supplies no automatic p-value. A later advanced section separates those additional conditions.

Management thresholds also need units and denominators. Wine MSE one and log-wage MSE one are not the same tolerated error. A mean based on a few labels and a mostly complete-label mean carry different information. Attach target and availability scope to the alert.

학부Undergraduate

실습: 출시 판정의 알려진 실패와 미지정 정보를 나눈다Lab: distinguish a known failed gate from missing information

이 실습의 “출시 허용”은 선언한 수치 조건을 확인하는 모의 판정입니다. 서버나 실제 모형을 바꾸는 버튼이 아닙니다. 기본 가상 값은 검증 위험 1/4·상한 1/4, TV 1/5·상한 1/5, 라벨 도착 비율 4/5·최솟값 4/5, 계약 문제 수 0입니다. 세 경계의 동률을 허용하는 규칙에서 모두 통과합니다.

검증 위험만 null로 바꾸면 나머지가 통과해도 정보 부족입니다. 그 상태에서 계약 문제 수를 1로 바꾸면 알려진 실패가 있으므로 보류입니다. 다음 실험 전에는 위험을 1/4, 문제 수를 0으로 복구하세요. 이제 위험을 1/3으로만 바꾸면 상한을 넘어 보류되어야 합니다. 무엇을 바꾸었는지와 각 판정의 이유를 함께 읽습니다.

이 판정은 전달받은 위험 값이 정말 검증 자료에서 계산되었는지 스스로 인증하지 못합니다. 실제 업무에서는 원자료·분할·모형 버전·선택 경로를 추적해야 합니다. 시험 위험이라는 다른 입력 이름은 이 연습의 계약에서 거절하지만, 시험 값을 검증 값이라고 이름만 바꿔 넣는 행위까지 숫자 하나로 탐지할 수는 없습니다.

위험 상한의 단위도 먼저 정합니다. 로그 점 제곱의 문턱에 원 임금 금액의 손실을 비교할 수 없습니다. 통과했다는 말은 선언한 조건을 충족했다는 뜻이며, 조건이 충분한지와 미래 운영 성과는 별도 검토입니다. 미지정 정보를 0으로 채워 자동 통과시키지 않습니다.

The release outcome is a simulated review of declared numerical conditions, not a change to a real server. Defaults are validation risk 1/4 with maximum 1/4, TV 1/5 with maximum 1/5, arrival fraction 4/5 with minimum 4/5, and zero contract issues. The inclusive boundary rules pass all checks.

Set only validation risk to null: the result becomes insufficient information. Keep that unknown and set contract issues to one: a known failure gives hold. Restore risk one-quarter and issues zero before the next experiment. Changing only risk to one-third now exceeds its cap and holds the release.

A supplied number cannot authenticate that its risk was actually computed on validation data. Real review needs source, split, artifact and selection lineage. The contract rejects a separate test-risk input, but cannot detect someone relabeling a test value as validation.

Declare risk units before comparison. A squared-log-unit threshold cannot be compared with a wage-currency loss. Passage establishes compliance with the declared rules; rule adequacy and future outcomes require additional review. Unknown values are not replaced with zero.

학부Undergraduate

세 가지 판정은 서로 다른 정보를 표현한다Three gate outcomes express different information

세 조건을 모두 확인한 통과와 아직 값을 모르는 상태는 다릅니다. 비 오는지 모른다고 “비가 오지 않는다”고 말하지 않는 것과 같습니다. 모의 판정은 모든 조건이 알려져 통과하면 허용, 알려진 조건이 하나라도 실패하면 보류, 실패는 없지만 모르는 조건이 남으면 정보 부족으로 구분합니다.

가상 판정의 논리
계약검증 위험거리·도착 조건결과
통과통과모두 통과모의 허용
통과미지정모두 통과정보 부족
실패미지정모두 통과보류
통과실패미지정 포함보류

알려진 실패가 있는데 다른 항목이 미지정이라는 이유로 그 실패를 숨기지 않습니다. 반대로 알려진 실패가 없다는 사실만으로 모든 검토를 마쳤다고 하지도 않습니다. 각 조건에는 정의됨 여부와 통과 여부를 따로 두므로, 상태 표시와 숫자 비교를 뒤섞지 않을 수 있습니다.

빈 평가 집합은 이 논리에서 중요합니다. 위험이 미정의인 상태에서 아무 오류가 기록되지 않았다고 통과시키면 정답을 하나도 확인하지 않은 모형을 승인할 수 있습니다. 최소 자료량·필수 집단·행동 비용 같은 조건이 추가로 필요하다면 관리 계약 자체를 확장하고 그 변경을 기록해야 합니다.

실제 자료 실습의 문턱은 원리를 보여 주는 사전 선언입니다. 와인 품질 제곱 1, 로그 점 제곱 1/4, Brier 1/5 등의 수치가 현장의 승인 기준이라는 출처는 없습니다. 이 예시 문턱과 조직의 실제 운영 요구를 구분합니다.

Known passage differs from unknown information. Not knowing whether it is raining does not establish that it is dry. Our simulated gate allows only when every condition is known and passes, holds when any known condition fails, and otherwise reports insufficient information.

Logic of constructed gate outcomes
ContractValidation riskDrift/arrival checksOutcome
PassPassAll passSimulated allow
PassUnknownAll passInsufficient information
FailUnknownAll passHold
PassFailSome unknownHold

Unknown information does not hide a known failure; absence of a known failure does not complete all checks. Store definedness separately from the passed value.

An empty scoring frame matters: accepting a model because no error was recorded would approve it without any verified label. Additional minimum-data, required-cohort or action-cost conditions belong in an explicitly extended management contract.

The factual exercise caps illustrate this logic. Values such as one squared quality-score unit, one-quarter squared log unit and one-fifth Brier loss are declared teaching thresholds, not sourced organizational approval standards.

학부Undergraduate

오프라인 비교·그림자 평가·실제 행동 변경Separate offline comparison, shadow evaluation and action changes

과거 자료에서 예측을 계산하는 것은 오프라인 평가입니다. 실제 운영 입력으로 예측만 추가 계산하고 기존 의사결정에는 영향을 주지 않는 방식은 흔히 그림자 평가라고 부릅니다. 그 점수로 실제 연락·혜택·가격·승인 행동까지 바꾸면 결과가 만들어지는 과정도 달라질 수 있습니다.

가상 고객에게 이탈 점수가 높아 쿠폰을 주었다고 해 봅시다. 그 고객이 남았다는 사실만으로 쿠폰이 이탈을 막았다고 결론 내릴 수는 없습니다. 쿠폰을 주지 않았어도 남았을 수 있고, 높은 점수 고객을 골라 행동했기 때문에 단순 비교 집합도 달라집니다. 예측과 개입 효과의 반사실은 다른 질문입니다.

행동을 바꾸는 실험에는 결과 지표, 배정 방식, 비용·부담과 중단 조건, 비교 대상, 관찰 기간을 사전에 정합니다. 실제 무작위 변경 실험이나 타당한 준실험은 그 설계 조건 아래 다른 근거를 줄 수 있습니다. 이 교재의 정적 데이터와 가상 도착 일정은 그러한 실험을 대신하지 않습니다.

다음 장의 모형 카드와 변경 보고서는 이런 경계를 기록하는 문서가 됩니다. 어떤 산출물이 바뀌었고, 어떤 대상·정보 순서에서 무엇을 확인했는지, 아직 알 수 없는 결과는 무엇인지를 적습니다. 모의 판정이 통과한 것을 실제 홈페이지나 외부 시스템을 자동으로 수정했다는 뜻으로 읽지 않습니다.

Computing predictions on historical data is offline evaluation. Running an extra predictor on live inputs while leaving the existing decision unchanged is often called shadow evaluation. Using the score to change contacts, benefits, prices or approvals can also change how outcomes arise.

If a constructed high-score customer receives a coupon and stays, the observation alone does not establish that the coupon prevented churn. The customer might have stayed anyway; targeting high-score customers also changes the comparison frame. Prediction and an intervention counterfactual answer different questions.

An action-changing experiment needs prespecified outcomes, assignment, costs and burdens, stopping rules, comparison units and follow-up. A randomized or defensible quasi-experimental design can supply additional evidence under its assumptions. Static datasets with constructed arrivals do not replace that design.

The next chapter’s model card and change report document these boundaries: what changed, for whom, under which information order, and what remains unknown. A passing simulated gate performs no automatic website or external-system change.

학부Undergraduate

국가 맥락 사례 · 와인 기록을 가상 시간으로 읽기Country-context case: wine records under constructed time

포르투갈산 와인 자료는 국가 간 패널이 아니다. UCI Wine Quality의 적포도주 1,599행과 백포도주 4,898행, 총 6,497개의 원기록이다. 감각 품질 점수를 화학 측정값으로 예측하되, 원파일에는 개별 서비스 시각과 평가 결과가 도착한 날짜가 없다. 따라서 아래 시간 그래프의 가로축은 우리가 붙인 예정 시험 행의 순서이다. 실제 시장 수요가 변한 날짜로 해석하지 않는다.

훈련 3,255행에서 정한 평균·범위와 이전 검증에서 선택한 릿지 모형을 고정한다. 검증 1,628행과 시험 1,614행을 바꾸지 않는다. 같은 설명변수 지문은 같은 역할로 묶었으나 지문은 실제 병의 고유 식별자가 아니다. 예정 시험의 원래 순서를 유지하면 적포도주가 백포도주보다 먼저 나타난다. 초기 구간의 구성 변화는 파일 배열의 효과일 수 있다.

기준 인덱스 200에서 순환 지연은 198개 라벨을, 결과 의존 지연은 196개 라벨을 공개한다. 도착 MSE는 각각 약 0.408405와 0.412229이며, 모든 원 라벨이 공개되면 두 일정 모두 약 0.566539가 된다. 모형을 다시 학습하지 않았는데도 지표가 바뀐다. 원인 후보는 새 모형이 아니라 평가 집합의 변화이다.

실습 전 예측 오차의 단위가 원 품질 점수의 제곱임을 쓰고, 초기 빨간 점이 실제 경보 시각을 뜻하는지 질문하자. 아래 원표·그림은 이 구분을 확인하는 자료다.

원자료의 값과 이전에 고정한 모형을 사용한다. 이벤트·도착 인덱스는 두 가상 규칙으로 구성했으며 실제 서비스 날짜가 아니다. 원자료 전체와 모든 계산행은 다운로드 파일에 보존한다.

분모와 동결 범위
틀·대상행 수·값해석
원기록6497삭제 전 원자료
훈련3255이전 모형 학습
검증1628이전 선택·동결 검증 위험
원 라벨 관측 시험1614완전 공개 위험의 분모
예정 모니터링 시험1614원 결측도 보존
원 목표 결측0전체 원자료 기준
고정 모형ridge:1/100시험·모니터링으로 재선택하지 않음
같은 모형 · 다른 공개 집합
일정기준도착/이벤트도착 비율MSE가상 게이트
순환200198/2000.990.40840509hold
순환16221614/161410.56653931allow-simulated-release
결과 의존200196/2000.980.41222867hold
결과 의존16221614/161410.56653931allow-simulated-release
전체 원 관측 라벨 공개 후 지표
집단지표값채점 행단위
allMSE0.566539311614원 품질 점수의 제곱
allMAE0.584475431614원 품질 점수
allR20.264580071614무차원
redMSE0.41650513384원 품질 점수의 제곱
whiteMSE0.613379251230원 품질 점수의 제곱
기준 200의 한 특징 구간 진단
수치 구간훈련 기준 비율현재 이벤트 비율전체 구간 TV
(-∞,9)0.0463901690.0050.21810292
[9,10)0.352995390.540.21810292
[10,11)0.263901690.2950.21810292
[11,12)0.189247310.110.21810292
[12,∞)0.147465440.050.21810292
기준 200 순환 일정의 앞 10행 · 전체 CSV 별도
원행 ID이벤트도착공개 Y공개 예측현재 상태
wine-red-row:41165.6791136ready
wine-red-row:62355.2938752ready
wine-red-row:73555.3005016ready
wine-red-row:174775.905573ready
wine-red-row:245955.3645454ready
wine-red-row:346665.4077797ready
wine-red-row:377865.6605275ready
wine-red-row:4881055.6115213ready
wine-red-row:4991255.4868678ready
wine-red-row:51101455.2686769ready

미정의는 0이 아니다. 아래 전체 파일에는 이 표에 없는 원행과 정확 분수도 보존한다. 표의 짧은 값은 읽기용 근사이며 식별자·도착 상태·누락을 원장과 대조할 수 있다.

기준 200의 전체 공개 장부 · 원 역사 라벨과 구성 일정 · 모든 창·집단 위험 · 모든 그림 좌표

와인 원기록 · 도착 라벨 MSE

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

와인 원기록 · 도착 라벨 MSE
원본 벡터 · 클릭하여 확대 · SVG · PNG

와인 원기록 · 라벨 도착 비율

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

와인 원기록 · 라벨 도착 비율
원본 벡터 · 클릭하여 확대 · SVG · PNG

와인 원기록 · 기준 200의 특징 분포

특징 alcohol의 제한된 구간 진단. 결과 위험 보장이 아님.

와인 원기록 · 기준 200의 특징 분포
원본 벡터 · 클릭하여 확대 · SVG · PNG

와인 원기록 · 구성한 지연 인덱스

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

와인 원기록 · 구성한 지연 인덱스
원본 벡터 · 클릭하여 확대 · SVG · PNG

Python 전체 계산 코드 · R 전체 계산 코드 · 동결 파라미터

The Portuguese wine data are not a cross-country panel. UCI Wine Quality contains 1,599 red-wine and 4,898 white-wine records, 6,497 in total. We predict native sensory quality from chemical measurements. Individual serving timestamps and label-arrival dates are absent, so the horizontal time-like axis below is a constructed index of planned test records, not a date of market change.

Keep training means/ranges from 3,255 rows and the previously validation-selected ridge model frozen. The validation and test frames remain 1,628 and 1,614 rows. Equal predictor fingerprints share a role, but a fingerprint does not certify bottle identity. Native file order places red records before white records; early composition changes can reflect that ordering.

At cutoff 200, cyclic delay releases 198 labels and outcome-dependent delay releases 196. Their arrived-label MSEs are about 0.408405 and 0.412229. After all native labels arrive, both reach about 0.566539. The fitted model never changes: the scored set does. Before interpreting an alert, identify the denominator and the squared native quality-score unit. Use the source tables and original figures below to audit those claims.

Values are factual native observations under a previously frozen model. Event and arrival indices are constructed under two teaching rules, not measured service dates. Complete native records and computed rows are retained in downloads.

Denominators and frozen scope
Frame or quantityRows/valueInterpretation
Native records6497Before outcome exclusions
Training3255Prior model learning
Validation1628Prior selection/frozen validation risk
Observed-label test1614Full-release risk denominator
Planned monitoring test1614Includes native missing labels
Native missing outcome0Across all native records
Frozen modelridge:1/100Not reselected on test/monitoring
Same model, different revealed sets
ScheduleCutoffArrived/eventsArrival fractionMSESimulated gate
cyclic200198/2000.990.40840509hold
cyclic16221614/161410.56653931allow-simulated-release
outcome-dependent200196/2000.980.41222867hold
outcome-dependent16221614/161410.56653931allow-simulated-release
Metrics after releasing all native observed labels
CohortMetricValueScored rowsUnit
allMSE0.566539311614native ordered sensory quality-score units squared
allMAE0.584475431614native ordered sensory quality-score units
allR20.264580071614dimensionless
redMSE0.41650513384native ordered sensory quality-score units squared
whiteMSE0.613379251230native ordered sensory quality-score units squared
One-feature bin diagnostic at cutoff 200
Numeric binTraining fractionCurrent-event fractionOverall binned TV
(-∞,9)0.0463901690.0050.21810292
[9,10)0.352995390.540.21810292
[10,11)0.263901690.2950.21810292
[11,12)0.189247310.110.21810292
[12,∞)0.147465440.050.21810292
First 10 cyclic-schedule rows at cutoff 200; complete CSV separately
Source IDEventArrivalVisible YVisible predictionCurrent state
wine-red-row:41165.6791136ready
wine-red-row:62355.2938752ready
wine-red-row:73555.3005016ready
wine-red-row:174775.905573ready
wine-red-row:245955.3645454ready
wine-red-row:346665.4077797ready
wine-red-row:377865.6605275ready
wine-red-row:4881055.6115213ready
wine-red-row:4991255.4868678ready
wine-red-row:51101455.2686769ready

Undefined is not zero. Complete files retain remaining source rows and exact fractions. Short displayed numbers are reading approximations; IDs, arrival states and missingness can be checked against the ledgers.

Complete cutoff 200 visible ledger · Historical labels and constructed schedules · Every window/cohort risk · All chart coordinates

Wine records: arrived-label MSE

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

Wine records: arrived-label MSE
Original vector; activate to enlarge · SVG · PNG

Wine records: label-arrival coverage

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

Wine records: label-arrival coverage
Original vector; activate to enlarge · SVG · PNG

Wine records: feature bins at cutoff 200

Limited binned diagnostic for alcohol, not a risk guarantee.

Wine records: feature bins at cutoff 200
Original vector; activate to enlarge · SVG · PNG

Wine records: constructed delay indices

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

Wine records: constructed delay indices
Original vector; activate to enlarge · SVG · PNG

Complete Python calculation · Complete R calculation · Frozen parameters

학부Undergraduate

개인 사례 · 결측 임금과 늦게 온 임금은 다르다Individual case: missing wages differ from late labels

Card의 NLS 자료는 3,613개 개인 원기록을 보존한다. 설명변수는 ed76와 age76, 목표는 원래의 절단된 1976년 로그 시급 lwage76이다. 임금 결측 603행은 원자료에 없는 사실을 뒤늦게 알게 되는 행이 아니다. 이 장은 그 값을 채워 넣지 않으며, 결측 사유를 무응답이라고 단정하지도 않는다.

고정 역할에서 훈련 임금 관측자는 1,520명, 검증은 745명, 시험 임금 관측자는 745명이다. 그러나 모니터링의 예정 시험 대상은 임금 결측 159명을 포함한 904명이다. 시험 위험의 분모 745와 예정 대상의 분모 904를 한 숫자로 합치면 결측을 숨기게 된다. 교육 연수와 나이가 있다고 해서 임금도 관측된 것은 아니다.

full-target native-label fraction=745904≈0.824115\text{full-target native-label fraction}=\frac{745}{904}\approx0.824115

기준 200에서 도착 라벨은 순환 일정 169개, 결과 의존 일정 166개다. 기준을 912까지 늘려도 원 결측 159개는 도착하지 않는다. 최종 예정 시험 904명 전체를 분모로 한 원 라벨 비율이 1이 되지 않는 이유는 계산 실패가 아니라 분석 대상의 정의이다. 이 비율은 초기·최근 이벤트 창의 도착 비율 상한이 아니다. 도착한 사람의 MSE를 모든 예정 대상의 MSE라고 쓰려면 추가 가정이나 별도 수집이 필요하다.

순환 일정의 기준 200 MSE 약 0.162564와 전체 관측 임금 공개 후 약 0.161166을 비교한다. 이는 로그 시급 단위의 제곱이다. 원 시급의 제곱이나 임금 인상률로 바꾸어 읽지 않는다. 또한 단순한 예측 평가로 교육의 인과 수익을 증명하지 않는다.

원자료의 값과 이전에 고정한 모형을 사용한다. 이벤트·도착 인덱스는 두 가상 규칙으로 구성했으며 실제 서비스 날짜가 아니다. 원자료 전체와 모든 계산행은 다운로드 파일에 보존한다.

분모와 동결 범위
틀·대상행 수·값해석
원기록3613삭제 전 원자료
훈련1520이전 모형 학습
검증745이전 선택·동결 검증 위험
원 라벨 관측 시험745완전 공개 위험의 분모
예정 모니터링 시험904원 결측도 보존
원 목표 결측603전체 원자료 기준
고정 모형ridge:1/100시험·모니터링으로 재선택하지 않음
같은 모형 · 다른 공개 집합
일정기준도착/이벤트도착 비율MSE가상 게이트
순환200169/2000.8450.16256402allow-simulated-release
순환912745/9040.824115040.16116601allow-simulated-release
결과 의존200166/2000.830.16309683allow-simulated-release
결과 의존912745/9040.824115040.16116601allow-simulated-release
전체 원 관측 라벨 공개 후 지표
집단지표값채점 행단위
allMSE0.16116601745원 1976년 로그 시급의 제곱
allMAE0.32297796745원 1976년 로그 시급
allR20.14807964745무차원
schooling-at-most12MSE0.16784047361원 1976년 로그 시급의 제곱
schooling-over12MSE0.15489133384원 1976년 로그 시급의 제곱
기준 200의 한 특징 구간 진단
수치 구간훈련 기준 비율현재 이벤트 비율전체 구간 TV
(-∞,8)0.0171052630.020.067105263
[8,12)0.142105260.0750.067105263
[12,16)0.583552630.5950.067105263
[16,∞)0.257236840.310.067105263
기준 200 순환 일정의 앞 10행 · 전체 CSV 별도
원행 ID이벤트도착공개 Y공개 예측현재 상태
nls-row:4115.52146096.1234393ready
nls-row:5236.59167376.4423253ready
nls-row:12355.99146456.1218062ready
nls-row:16475.70378256.11854ready
nls-row:175원 결측미정의 / 없음6.4038935native-label-missing
nls-row:19666.48920496.3188644ready
nls-row:217원 결측미정의 / 없음6.0850075native-label-missing
nls-row:268106.40357426.201936ready
nls-row:279126.541036.3621955ready
nls-row:2910147.24422756.6729159ready

미정의는 0이 아니다. 아래 전체 파일에는 이 표에 없는 원행과 정확 분수도 보존한다. 표의 짧은 값은 읽기용 근사이며 식별자·도착 상태·누락을 원장과 대조할 수 있다.

기준 200의 전체 공개 장부 · 원 역사 라벨과 구성 일정 · 모든 창·집단 위험 · 모든 그림 좌표

NLS 개인 원기록 · 도착 라벨 MSE

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

NLS 개인 원기록 · 도착 라벨 MSE
원본 벡터 · 클릭하여 확대 · SVG · PNG

NLS 개인 원기록 · 라벨 도착 비율

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

NLS 개인 원기록 · 라벨 도착 비율
원본 벡터 · 클릭하여 확대 · SVG · PNG

NLS 개인 원기록 · 기준 200의 특징 분포

특징 ed76의 제한된 구간 진단. 결과 위험 보장이 아님.

NLS 개인 원기록 · 기준 200의 특징 분포
원본 벡터 · 클릭하여 확대 · SVG · PNG

NLS 개인 원기록 · 구성한 지연 인덱스

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

NLS 개인 원기록 · 구성한 지연 인덱스
원본 벡터 · 클릭하여 확대 · SVG · PNG

Python 전체 계산 코드 · R 전체 계산 코드 · 동결 파라미터

Card’s NLS source retains 3,613 individual records. Predictors are ed76 and age76; the outcome is native trimmed 1976 log hourly wage, lwage76. The 603 native missing wages are not merely delayed known facts. We neither impute them nor infer that nonresponse caused the missingness.

The fixed complete training, validation and test frames contain 1,520, 745 and 745 wage observations. Monitoring instead tracks all 904 planned test records, including 159 native missing wages. The risk denominator 745 and target denominator 904 answer different questions.

full-target native-label fraction=745904≈0.824115\text{full-target native-label fraction}=\frac{745}{904}\approx0.824115

At cutoff 200, cyclic and outcome-dependent schedules reveal 169 and 166 labels. Even cutoff 912 cannot reveal the 159 absent native wages. With all 904 planned test records in the denominator, the final native-label fraction below one records a target-frame limitation, not a failed computation. It is not an upper bound on arrival coverage in an earlier or recent event window. An arrived-label MSE cannot become the full-target MSE without additional assumptions or data.

Compare cyclic MSE about 0.162564 at cutoff 200 with about 0.161166 after all observed wages are released. The unit is squared native log hourly wage, not squared raw wage or a wage growth rate. Predictive evaluation does not establish a causal return to schooling.

Values are factual native observations under a previously frozen model. Event and arrival indices are constructed under two teaching rules, not measured service dates. Complete native records and computed rows are retained in downloads.

Denominators and frozen scope
Frame or quantityRows/valueInterpretation
Native records3613Before outcome exclusions
Training1520Prior model learning
Validation745Prior selection/frozen validation risk
Observed-label test745Full-release risk denominator
Planned monitoring test904Includes native missing labels
Native missing outcome603Across all native records
Frozen modelridge:1/100Not reselected on test/monitoring
Same model, different revealed sets
ScheduleCutoffArrived/eventsArrival fractionMSESimulated gate
cyclic200169/2000.8450.16256402allow-simulated-release
cyclic912745/9040.824115040.16116601allow-simulated-release
outcome-dependent200166/2000.830.16309683allow-simulated-release
outcome-dependent912745/9040.824115040.16116601allow-simulated-release
Metrics after releasing all native observed labels
CohortMetricValueScored rowsUnit
allMSE0.16116601745native trimmed 1976 log-hourly-wage units squared
allMAE0.32297796745native trimmed 1976 log-hourly-wage units
allR20.14807964745dimensionless
schooling-at-most12MSE0.16784047361native trimmed 1976 log-hourly-wage units squared
schooling-over12MSE0.15489133384native trimmed 1976 log-hourly-wage units squared
One-feature bin diagnostic at cutoff 200
Numeric binTraining fractionCurrent-event fractionOverall binned TV
(-∞,8)0.0171052630.020.067105263
[8,12)0.142105260.0750.067105263
[12,16)0.583552630.5950.067105263
[16,∞)0.257236840.310.067105263
First 10 cyclic-schedule rows at cutoff 200; complete CSV separately
Source IDEventArrivalVisible YVisible predictionCurrent state
nls-row:4115.52146096.1234393ready
nls-row:5236.59167376.4423253ready
nls-row:12355.99146456.1218062ready
nls-row:16475.70378256.11854ready
nls-row:175Native missingUndefined / absent6.4038935native-label-missing
nls-row:19666.48920496.3188644ready
nls-row:217Native missingUndefined / absent6.0850075native-label-missing
nls-row:268106.40357426.201936ready
nls-row:279126.541036.3621955ready
nls-row:2910147.24422756.6729159ready

Undefined is not zero. Complete files retain remaining source rows and exact fractions. Short displayed numbers are reading approximations; IDs, arrival states and missingness can be checked against the ledgers.

Complete cutoff 200 visible ledger · Historical labels and constructed schedules · Every window/cohort risk · All chart coordinates

NLS individual records: arrived-label MSE

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

NLS individual records: arrived-label MSE
Original vector; activate to enlarge · SVG · PNG

NLS individual records: label-arrival coverage

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

NLS individual records: label-arrival coverage
Original vector; activate to enlarge · SVG · PNG

NLS individual records: feature bins at cutoff 200

Limited binned diagnostic for ed76, not a risk guarantee.

NLS individual records: feature bins at cutoff 200
Original vector; activate to enlarge · SVG · PNG

NLS individual records: constructed delay indices

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

NLS individual records: constructed delay indices
Original vector; activate to enlarge · SVG · PNG

Complete Python calculation · Complete R calculation · Frozen parameters

학부Undergraduate

기업 사례 · 높은 정확도 뒤의 이탈 고객Company case: churn customers behind high accuracy

Iranian Churn의 실제 통신 고객 원기록 3,150행을 사용한다. 공식 설명은 앞 9개월의 속성과 12개월 말의 이탈을 연결하지만 개별 날짜는 제공하지 않는다. 이 장의 매일처럼 보이는 인덱스나 1·8칸 지연은 실제 기업 운영 이력이 아니다. 가입 기간은 개월, 사용량은 총 통화 초, 통화 실패는 횟수라는 단위 계약부터 확인한다. 원코드북 범위와 다른 원변수 Charge Amount의 코드 10 일곱 원값도 지우지 않는다.

훈련 1,593행, 검증 786행, 시험 771행에서 이전 선택 모형을 고정한다. 마지막 시험의 실제 이탈은 132개, 비이탈은 639개다. 점수의 순위는 어느 정도 구분력을 가지지만 0.5 경계에서 모든 행을 비이탈로 분류한다. 정확도 약 82.9%만 보고 배포하면 놓친 이탈 고객을 설명할 수 없다.

전체 시험 라벨 공개 후 0.5 경계의 결과
실제·예측행 수
참음성 TN639
거짓음성 FN132
참양성 TP0
거짓양성 FP0

양성 재현율은 0, 음성 재현율은 1, 균형 정확도는 1/2이다. 양성으로 예측한 행이 없으므로 정밀도는 미정의다. 0이라고 자동 채우면 분모가 없다는 정보를 잃는다. AUROC 약 0.8154는 순위의 지표이며 이 경계의 유용성을 보증하지 않는다.

지연 일정이나 분류 경계를 바꿔 평가를 비교하되 시험 라벨을 보고 좋은 경계를 골라 최종 검증 성과라고 부르지 않는다. 실제 할인 쿠폰의 이탈 억제 효과를 알고 싶다면 예측 점수 비교 외에 배정·간섭·관측 기간을 설계한 변경 실험이 필요하다.

원자료의 값과 이전에 고정한 모형을 사용한다. 이벤트·도착 인덱스는 두 가상 규칙으로 구성했으며 실제 서비스 날짜가 아니다. 원자료 전체와 모든 계산행은 다운로드 파일에 보존한다.

분모와 동결 범위
틀·대상행 수·값해석
원기록3150삭제 전 원자료
훈련1593이전 모형 학습
검증786이전 선택·동결 검증 위험
원 라벨 관측 시험771완전 공개 위험의 분모
예정 모니터링 시험771원 결측도 보존
원 목표 결측0전체 원자료 기준
고정 모형ridge:1/100시험·모니터링으로 재선택하지 않음
같은 모형 · 다른 공개 집합
일정기준도착/이벤트도착 비율MSE가상 게이트
순환200198/2000.990.13978186allow-simulated-release
순환779771/77110.12441445allow-simulated-release
결과 의존200198/2000.990.13695736allow-simulated-release
결과 의존779771/77110.12441445allow-simulated-release
전체 원 관측 라벨 공개 후 지표
집단지표값채점 행단위
allMSE0.12441445771이진 Brier 손실 · 무차원
allMAE0.25265236771원 이진 라벨 · 무차원
allR20.12319142771무차원
allBrier0.12441445771이진 Brier 손실 · 무차원
allaccuracy0.82879377771무차원
allpositiveRecall0771무차원
allnegativeRecall1771무차원
allprecision미정의 / 없음771무차원
allbalancedAccuracy0.5771무차원
allAUROC0.81541945771무차원
pay-as-you-goMSE0.13244021705이진 Brier 손실 · 무차원
contractualMSE0.03868477666이진 Brier 손실 · 무차원
기준 200의 한 특징 구간 진단
수치 구간훈련 기준 비율현재 이벤트 비율전체 구간 TV
(-∞,0)000.092250471
[0,3)0.322661640.270.092250471
[3,10)0.342749530.4350.092250471
[10,∞)0.334588830.2950.092250471
기준 200 순환 일정의 앞 10행 · 전체 CSV 별도
원행 ID이벤트도착공개 Y공개 예측현재 상태
customer-row:11100.15439771ready
customer-row:62300.18610569ready
customer-row:83500.059501801ready
customer-row:94700ready
customer-row:105900.14520928ready
customer-row:146600.16567339ready
customer-row:207800.04482474ready
customer-row:2281000.092449853ready
customer-row:2891210.21583729ready
customer-row:31101400.07837119ready

미정의는 0이 아니다. 아래 전체 파일에는 이 표에 없는 원행과 정확 분수도 보존한다. 표의 짧은 값은 읽기용 근사이며 식별자·도착 상태·누락을 원장과 대조할 수 있다.

기준 200의 전체 공개 장부 · 원 역사 라벨과 구성 일정 · 모든 창·집단 위험 · 모든 그림 좌표

통신 고객 원기록 · 도착 라벨 MSE

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

통신 고객 원기록 · 도착 라벨 MSE
원본 벡터 · 클릭하여 확대 · SVG · PNG

통신 고객 원기록 · 라벨 도착 비율

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

통신 고객 원기록 · 라벨 도착 비율
원본 벡터 · 클릭하여 확대 · SVG · PNG

통신 고객 원기록 · 기준 200의 특징 분포

특징 Call Failure의 제한된 구간 진단. 결과 위험 보장이 아님.

통신 고객 원기록 · 기준 200의 특징 분포
원본 벡터 · 클릭하여 확대 · SVG · PNG

통신 고객 원기록 · 구성한 지연 인덱스

실제 원값·동결 모형에 별도로 구성한 추상 인덱스 일정. 실제 날짜·지연 기록이 아님.

통신 고객 원기록 · 구성한 지연 인덱스
원본 벡터 · 클릭하여 확대 · SVG · PNG

Python 전체 계산 코드 · R 전체 계산 코드 · 동결 파라미터

Use all 3,150 factual Iranian Churn records. The official description links first-nine-month attributes to churn at the end of month twelve, but individual dates are unavailable. Our index and one/eight-step delays are not an operational company history. Check units first: subscription months, total call seconds and count of call failures. Preserve the seven native charge-code 10 values even though the codebook describes 0 through 9.

Freeze the prior selected model on training 1,593, validation 786 and test 771 rows. The fully revealed test has 132 churn and 639 non-churn records. Scores have some ranking information, yet threshold 0.5 predicts non-churn for every row. Accuracy about 82.9% conceals every missed churn customer.

All test labels released, threshold 0.5
Actual/predicted resultRows
True negative TN639
False negative FN132
True positive TP0
False positive FP0

Positive recall is zero, negative recall one and balanced accuracy one half. Precision is undefined because no row is predicted positive. Replacing that missing denominator with zero loses information. AUROC about 0.8154 measures ranking, not usefulness of this threshold.

Explore delays and thresholds without selecting a favourable test threshold and reporting it as untouched validation. A claim that retention coupons reduce churn needs a change experiment addressing assignment, interference and outcome horizon; predictive ranking alone is insufficient.

Values are factual native observations under a previously frozen model. Event and arrival indices are constructed under two teaching rules, not measured service dates. Complete native records and computed rows are retained in downloads.

Denominators and frozen scope
Frame or quantityRows/valueInterpretation
Native records3150Before outcome exclusions
Training1593Prior model learning
Validation786Prior selection/frozen validation risk
Observed-label test771Full-release risk denominator
Planned monitoring test771Includes native missing labels
Native missing outcome0Across all native records
Frozen modelridge:1/100Not reselected on test/monitoring
Same model, different revealed sets
ScheduleCutoffArrived/eventsArrival fractionMSESimulated gate
cyclic200198/2000.990.13978186allow-simulated-release
cyclic779771/77110.12441445allow-simulated-release
outcome-dependent200198/2000.990.13695736allow-simulated-release
outcome-dependent779771/77110.12441445allow-simulated-release
Metrics after releasing all native observed labels
CohortMetricValueScored rowsUnit
allMSE0.12441445771native binary outcome units squared
allMAE0.25265236771native binary outcome units
allR20.12319142771dimensionless
allBrier0.12441445771native binary outcome units squared
allaccuracy0.82879377771dimensionless
allpositiveRecall0771dimensionless
allnegativeRecall1771dimensionless
allprecisionUndefined / absent771dimensionless
allbalancedAccuracy0.5771dimensionless
allAUROC0.81541945771dimensionless
pay-as-you-goMSE0.13244021705native binary outcome units squared
contractualMSE0.03868477666native binary outcome units squared
One-feature bin diagnostic at cutoff 200
Numeric binTraining fractionCurrent-event fractionOverall binned TV
(-∞,0)000.092250471
[0,3)0.322661640.270.092250471
[3,10)0.342749530.4350.092250471
[10,∞)0.334588830.2950.092250471
First 10 cyclic-schedule rows at cutoff 200; complete CSV separately
Source IDEventArrivalVisible YVisible predictionCurrent state
customer-row:11100.15439771ready
customer-row:62300.18610569ready
customer-row:83500.059501801ready
customer-row:94700ready
customer-row:105900.14520928ready
customer-row:146600.16567339ready
customer-row:207800.04482474ready
customer-row:2281000.092449853ready
customer-row:2891210.21583729ready
customer-row:31101400.07837119ready

Undefined is not zero. Complete files retain remaining source rows and exact fractions. Short displayed numbers are reading approximations; IDs, arrival states and missingness can be checked against the ledgers.

Complete cutoff 200 visible ledger · Historical labels and constructed schedules · Every window/cohort risk · All chart coordinates

Telecom customer records: arrived-label MSE

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

Telecom customer records: arrived-label MSE
Original vector; activate to enlarge · SVG · PNG

Telecom customer records: label-arrival coverage

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

Telecom customer records: label-arrival coverage
Original vector; activate to enlarge · SVG · PNG

Telecom customer records: feature bins at cutoff 200

Limited binned diagnostic for Call Failure, not a risk guarantee.

Telecom customer records: feature bins at cutoff 200
Original vector; activate to enlarge · SVG · PNG

Telecom customer records: constructed delay indices

Factual values and a frozen model under separately constructed index schedules; not observed dates or delay logs.

Telecom customer records: constructed delay indices
Original vector; activate to enlarge · SVG · PNG

Complete Python calculation · Complete R calculation · Frozen parameters

학부Undergraduate

동결된 모형에서 무엇만 바꾸는가What changes when the model stays frozen?

이 실습은 새 모형 대회를 반복하지 않는다. 평균·범위·계수·이진 점수의 0과 1 사이 자르기는 이전 검증 선택의 산물로 고정한다. 바꾸는 것은 이벤트를 어디까지 보았는지와 라벨을 어떤 교육용 규칙으로 공개하는지이다. 그래서 지표 차이는 재학습 효과로 해석할 수 없다.

원자료의 정확한 유리수 값에 대해 중심화 식과 공통 분모를 이용한 빠른 식은 같은 예측을 낸다. 계산 표현을 바꾸는 최적화는 새로운 추정이 아니다. 반대로 훈련 평균을 현재 창의 평균으로 교체하면 다른 예측 함수를 만든다. 이 둘을 변경 기록에 서로 다른 범주로 적자.

f^(x)=θ0+∑jθjxj−μjtrainsjtrain\hat f(x)=\theta_0+\sum_j\theta_j\frac{x_j-\mu_j^{\rm train}}{s_j^{\rm train}}

파라미터 파일은 합법적인 재현 입력이지만 답안 위험 파일은 입력이 아니다. 아래 공개 코드는 원기록 네 CSV와 동결 파라미터만 읽어 검증 위험, 모든 예측, 가상 도착 일정과 모니터링 표를 계산한다. 그 표에서 검증 MSE는 새로 계산되며 모니터링 결과로 모형을 고르지 않는다.

This experiment does not run another model tournament. Means, ranges, coefficients and binary clipping to [0,1] remain frozen from the earlier validation choice. Only the observed event cutoff and constructed label-release rule change. Resulting metric differences are not retraining effects.

For exact source rationals, a centred expression and its compiled common-denominator form produce the same predictions. Changing arithmetic representation is an implementation optimisation. Replacing training means with current-window means instead changes the prediction function and belongs in a different change category.

f^(x)=θ0+∑jθjxj−μjtrainsjtrain\hat f(x)=\theta_0+\sum_j\theta_j\frac{x_j-\mu_j^{\rm train}}{s_j^{\rm train}}

A frozen parameter file is a legitimate reproduction input; a metric-answer file is not. The public programs read only four factual native CSVs and those parameters to recompute validation risk, every prediction and the constructed schedules. Monitoring outcomes never choose the fitted model.

학부Undergraduate

실제 자료 실습 · 같은 모형의 두 도착 일정Real-data lab: two arrival schedules for one model

먼저 와인과 순환 지연, 기준 200을 선택하고 실행한다. 실제 행 수 6,497과 예정 시험 1,614를 확인한다. 현재 200개 중 라벨 198개를 평가했다는 문장을 직접 써 보자. 다음으로 결과 의존 지연으로 바꾸어 실행하면 도착 196개와 다른 MSE가 나타난다. 입력을 바꾼 상태에서 이전 결과를 새 결과처럼 읽지 말고 다시 실행한 뒤 비교한다.

둘째 실험은 NLS로 새로 시작한다. 기준을 912로 설정해 실행하고 최종 예정 시험 대상의 원 라벨 비율 745/904를 확인한다. 904와 745를 각각 목표 대상과 임금 관측 위험의 분모라고 표시한다. 기준을 더 늘려도 결측 임금이 생성되지 않는지 원행 장부에서 확인한다.

마지막으로 기업 자료의 전체 공개 기준 779를 실행한다. 정확도와 양성 재현율, 정밀도의 미정의를 함께 읽는다. 언어·표 페이지·원본 확대는 결과를 보는 동작이다. 모형을 다시 학습하거나 현재 결과를 다시 계산해야 하는 동작과 구분한다. 큰 원결과는 페이지로 읽고 전체 파일로 내려받아 필요한 행을 검색할 수 있다.

Start with wine, cyclic delay and cutoff 200. Run explicitly and verify 6,497 native records and 1,614 planned test rows. Write: 198 labels are evaluated among 200 seen events. Change to outcome-dependent delay and run again: 196 labels and a different MSE appear. Changed inputs require a new run; stale results are not evidence about the new request.

For an independent second experiment, choose NLS and set cutoff 912. Verify the native-label fraction 745/904 in the complete planned test frame, naming 904 as target records and 745 as observed-wage risk rows. The complete ledger should show that increasing the index cannot manufacture missing wages.

Finally choose company records and full-release cutoff 779. Read accuracy, positive recall and undefined precision together. Switching language, table pages and original-image zoom inspects a cached result; it should not refit or recompute the model. Read large exact results in bounded pages or download the complete file to find a particular row.

학부Undergraduate

실습 파일에서 결과까지 직접 재현하기Reproduce directly from input files

자료 묶음에서 원기록 네 CSV, frozen-model-parameters.csv, Python 또는 R 프로그램을 같은 새 폴더에 둔다. 원ZIP과 코드북은 출처·열 해석 확인용으로 함께 보존한다. 계산 프로그램에는 브라우저 결과 JSON, 미리 계산된 예측 CSV 또는 웹 엔진을 넣을 필요가 없다. 해시가 다르면 동일 빈티지 재현이라고 쓰지 않는다.

Python은 정확한 분수 계산을 제공한다. 기본 R은 이진 부동소수 근사로 계산하며, 정확값이라고 인증하지 않는다. 새 출력 폴더로 실행한 뒤 첫·중간·마지막 원행의 식별자와 역할을 대조하고 예측, 도착 장부, 창별 위험을 비교한다. 작은 반올림 차이와 서로 다른 표본을 사용한 차이는 같은 문제가 아니다.

python reproduce-input-monitoring.py --source-dir . --model-file frozen-model-parameters.csv --output-dir computed-new
Rscript reproduce-input-monitoring.R --source-dir . --model-file frozen-model-parameters.csv --output-dir computed-R-new

원래 값과 역사 라벨이 들어 있는 파일, 기준 200에서 공개 가능한 값만 담은 파일은 역할이 다르다. 과거 원값으로 정답을 채점할 수 있다는 사실이 당시 그 값을 알았다는 증거는 아니다. 재현 보고서에는 입력 파일 버전·기준·도착 규칙·제외 분모·단위를 남긴다.

Place the four factual native CSVs, frozen-model-parameters.csv and a Python or R program in a fresh folder. Retain original ZIPs and codebooks for source attribution and variable interpretation. Calculation does not require a browser result JSON, precomputed predictions or the web engine. A changed hash means the preserved vintage is no longer identical.

Python provides rational arithmetic. Base R uses declared binary64 approximations and does not certify exactness. Run into a new output folder, check first/middle/last source IDs and roles, then compare predictions, arrival ledgers and window metrics. Small rounding differences are different from a changed evaluation frame.

python reproduce-input-monitoring.py --source-dir . --model-file frozen-model-parameters.csv --output-dir computed-new
Rscript reproduce-input-monitoring.R --source-dir . --model-file frozen-model-parameters.csv --output-dir computed-R-new

A file containing historical labels serves a different purpose from a file restricted to values visible at cutoff 200. Being able to score with historical truth does not prove that truth was available then. Record input versions, cutoff, delay rule, exclusion denominators and units.

학부Undergraduate

실패 조사 · 원인을 성급히 확정하지 않기Investigating failure without inventing a cause

경보가 나면 원인과 관측을 두 열로 나눈다. 와인의 초기 분포 차이, 개인 임금의 결측, 기업의 양성 재현율 0은 관측이다. 센서 고장, 응답자의 회피, 실제 고객 행동 변화는 아직 확인하지 않은 설명 후보다. 원자료의 날짜가 없는데 특정 사건 이후 악화했다고 쓰면 분석을 꾸민 셈이 된다.

수학적으로 같은 모형이더라도 행 순서·라벨 도착·현재 창이 달라지면 평가 대상이 달라진다. 그래서 오류를 추적할 때 먼저 원행 ID와 모형 버전, 입력 단위, 기준 인덱스, 지연 규칙을 맞춘다. 이후 같은 대상에서 새 예측이 달라졌는지 비교한다. 순서를 바꾸어 나쁜 결과가 사라졌다면 시간 운영 문제를 해결한 것이 아니라 보고 집합을 바꿨을 수 있다.

짧은 조사 메모를 작성하자. 확인된 현상 한 문장, 아직 가능한 원인 두 개, 추가로 수집할 자료 한 가지, 그 자료가 오기 전 보류할 주장 한 가지를 쓴다. 어느 집단의 불편을 줄일지는 손실 함수만으로 자동 결정되지 않으므로 당사자와 운영 책임자에게 물을 항목도 명시한다.

Separate observations from causes. Early wine composition, missing wages and zero positive churn recall are observations. Sensor failure, respondent avoidance or changed customer behaviour are hypotheses requiring further evidence. Without source dates, attributing deterioration to a particular historical event invents a chronology.

A mathematically identical model can be evaluated on different rows when ordering, arrival and the window change. Align source ID, model version, input units, cutoff and delay rule before comparing new predictions on the same targets. If a new ordering removes a bad result, the report frame may have changed rather than the operating problem.

Write a short investigation memo: one confirmed observation, two plausible causes, one additional measurement and one claim to withhold until that measurement arrives. A loss function does not automatically decide whose inconvenience matters; identify questions for affected users and operational owners.

대학원 연결Graduate bridge

대학원 연결 · 도착 확률로 보정하려면Graduate bridge: when arrival-probability weighting works

라벨이 빨리 온 사람만 평균 내면 선택된 집합의 위험을 계산한다. 보정을 생각할 때는 실제로 알지 못하는 도착 확률을 먼저 알고 있다고 가정한 이상화부터 시작한다. 고정된 N개 손실을 생각하고, 라벨 관측 지시자 R의 주변 확률 π가 각 행에서 양수이며 알려져 있다고 하자. 아래 비정규화 역확률 합의 기대값은 전체 N개 손실 평균이다. 행들 사이 독립은 이 기대값 계산 자체에 필요하지 않다.

R^HT=1N∑i=1NRiℓiπi,ER[R^HT]=1N∑iℓi\widehat R_{\rm HT}=\frac1N\sum_{i=1}^N\frac{R_i\ell_i}{\pi_i},\qquad E_R[\widehat R_{\rm HT}]=\frac1N\sum_i\ell_i

손실 0과 1, 도착 확률 1과 1/2인 두 행에서 둘째 라벨이 오면 추정량은 1, 오지 않으면 0이다. 두 경우가 반반이므로 기대값은 1/2다. 그러나 가중치를 다시 합해 나눈 비율 추정량은 각각 2/3과 0이어서 기대값 1/3이다. 안정적인 분모를 위해 비율을 쓰기도 하지만 유한 표본 불편향은 자동 보존되지 않는다.

관측 자료에서는 π를 추정해야 하고 양의 도착 가능성, 모형·관측 조건, 분산을 다뤄야 한다. X 조건부로 관측 여부와 손실이 독립이고 올바른 π(X)를 알 때의 식별 논리는, 결과나 오류에 직접 의존하는 미관측 선택에 그대로 옮길 수 없다. 이 장의 일정은 인위적으로 만든 지연이며 실제 기업·조사의 도착 확률을 추정한 것이 아니다. 실습 도구는 자동 역확률 보정을 제공하지 않는다.

A mean over early labels estimates risk in a selected set. Begin with an idealised design before proposing correction: hold N losses fixed, and suppose every observation indicator has a known positive inclusion probability. The unnormalised inverse-probability estimator below is design-unbiased for the full finite-frame mean. Independence between records is not required for this expectation identity.

R^HT=1N∑i=1NRiℓiπi,ER[R^HT]=1N∑iℓi\widehat R_{\rm HT}=\frac1N\sum_{i=1}^N\frac{R_i\ell_i}{\pi_i},\qquad E_R[\widehat R_{\rm HT}]=\frac1N\sum_i\ell_i

Take losses zero and one, with inclusion probabilities one and one half. The estimate is one when the second label arrives and zero otherwise, giving expectation one half. Renormalising by the realised sum of inverse weights instead gives two thirds or zero, with expectation one third. Ratio estimators can stabilise denominators, but finite-sample unbiasedness is not automatic.

In observational applications the probabilities, positivity, selection assumptions and uncertainty need justification. Conditional independence of availability and loss given X with a correct probability model does not cover arbitrary unobserved outcome-dependent selection. Our constructed delays do not estimate an actual company or survey arrival process; the lab provides no automatic inverse-probability correction.

대학원 연결Graduate bridge

입력 변화와 관계 변화는 다른 축이다Input shift and relationship change are different axes

같은 반 학생의 키 분포가 변하는 것과 같은 키에서 신발 크기의 관계가 변하는 것은 다르다. 앞의 현상을 X의 분포 변화, 뒤를 X 조건부 결과의 관계 변화로 생각하자. 모형의 오류를 결정하는 것은 입력의 분포 하나가 아니라 결과와 예측을 함께 포함한 결합 분포이다.

가상 예에서 X가 0·1을 반반 취하고 예측이 X라면, Y=X일 때 오차는 0이고 Y=1−X일 때 제곱오차는 모든 행에서 1이다. 입력 TV는 0이지만 위험은 0에서 1로 변한다. 반대로 입력 구성이 바뀌어도 항상 정답인 예측 함수가 있다면 위험은 0일 수 있다. 그러므로 입력 경보와 결과 위험을 한 축으로 섞지 않는다.

Rt(f)=Et[ℓ(Y,f(X))]=EX∼Pt{Et[ℓ(Y,f(X))∣X]}R_t(f)=E_t[\ell(Y,f(X))]=E_{X\sim P_t}\{E_t[\ell(Y,f(X))\mid X]\}

특히 구간화한 한 변수의 TV는 더 풍부한 분포 차이를 놓칠 수 있다. 같은 두 구간 안에서 값이 움직이거나 변수 사이 연관이 뒤집히면 단변량 구간 비율은 같을 수 있다. 현재 도구의 TV는 제한된 진단이며 전체 결합 분포나 손실을 인증하지 않는다.

A changed distribution of student heights is different from a changed relationship between height and shoe size. The first concerns the marginal input distribution; the second concerns outcomes conditional on inputs. Prediction risk involves their joint law.

In a constructed example, let X be equally likely zero or one and predict X. If Y=X, risk is zero. If Y=1−X, squared loss is one everywhere while input TV stays zero. Conversely, input composition may change while a perfectly correct predictor keeps risk zero. Input alerts and outcome risk therefore belong on separate axes.

Rt(f)=Et[ℓ(Y,f(X))]=EX∼Pt{Et[ℓ(Y,f(X))∣X]}R_t(f)=E_t[\ell(Y,f(X))]=E_{X\sim P_t}\{E_t[\ell(Y,f(X))\mid X]\}

Binning one feature loses additional information. Values may move within bins or dependence between features may reverse without changing their marginal bin proportions. The displayed TV is a limited diagnostic, not a certificate for the joint distribution or model loss.

대학원 연결Graduate bridge

늦은 결과의 위험 범위를 손으로 구하기Hand bounds for unrevealed outcomes

아직 안 온 성적을 모두 맞았다고 가정한 평균과 모두 틀렸다고 가정한 평균 사이에 실제 오답률이 들어간다. 이 생각은 손실이 미리 0과 L 사이에 있다고 보장될 때만 일반화할 수 있다. 고정한 대상에서 예측이 있는 양의 총 비중을 W, 그중 라벨 도착 비중을 W관측, 관측 손실 합을 S라고 하자.

SW ≤Rtarget≤ S+L(W−Wobserved)W,W>0,0≤ℓi≤L\frac{S}{W}\ \le R_{\rm target}\le\ \frac{S+L(W-W_{\rm observed})}{W},\quad W>0,\quad0\le\ell_i\le L

가상 네 행 중 두 라벨이 오고 한 개가 오답이면, 도착 오답률은 1/2이지만 전체 네 행 오답률은 1/4부터 3/4까지이다. 미도착 두 개의 정답·오답을 모두 배치해 양끝을 실제로 만들 수 있다. 이 범위는 확률 95% 구간이 아니라 주어진 손실 상한 아래 가능한 값의 범위이다.

Brier 손실은 예측을 [0,1]로 제한하고 결과가 0·1이면 L=1을 쓸 수 있다. 그러나 일반 회귀의 제곱오차에는 이런 보편적 상한이 없다. 현재 관측 최대 오차를 미래의 상한으로 선언하면 보장을 만들어 낸다. 임금 원 결측에 대한 범위도 별도의 정당한 상한 없이는 수치로 강제하지 않는다. 아래 계산은 이론 예제이며 실습 API가 자동 출력하는 새 지표가 아니다.

If unrevealed exam results are all correct or all incorrect, their assignments give lower and upper bounds on the full error rate. Generalisation requires an a priori loss bound. In a fixed target with positive prediction weight W, observed-label weight W_observed and observed loss sum S:

SW ≤Rtarget≤ S+L(W−Wobserved)W,W>0,0≤ℓi≤L\frac{S}{W}\ \le R_{\rm target}\le\ \frac{S+L(W-W_{\rm observed})}{W},\quad W>0,\quad0\le\ell_i\le L

For four constructed records, two arrived labels and one error, arrived risk is one half but full risk ranges from one quarter to three quarters. Assigning both unseen labels correctly or incorrectly achieves the endpoints. These are feasible-value bounds under a stated loss restriction, not a 95% interval.

Brier loss has L=1 when predictions lie in [0,1] and outcomes are binary. General squared regression loss has no such universal bound. The largest currently observed error does not certify a future upper bound. Native missing wages also require a defensible extra restriction before numeric risk bounds follow. This is a hand-worked theoretical example, not a new automatically returned API metric.

대학원 연결Graduate bridge

반복 경보를 해석하는 수학The mathematics of repeated alarms

매일 같은 기준을 보며 한 번만 울려도 실패라고 부르면, 한 번의 오류 확률과 전체 기간의 오류 확률은 다르다. 그러나 현재 TV 경보는 유효한 검정의 p값을 계산한 것이 아니다. 따라서 0.2 문턱에서 ‘20% 거짓 경보’라고 읽어서는 안 된다. 먼저 어떤 사건의 어떤 확률을 관리하는지 정의해야 한다.

별도로 설계한 K개 검정에서 귀무 아래 k번째 잘못된 경보 사건의 확률이 αk 이하라면, 독립 여부와 무관하게 합집합 부등식이 성립한다. 다섯 번에 각각 0.01을 배정하면 적어도 한 번의 잘못된 경보 확률은 0.05 이하이다. 이는 각 검정 자체의 확률 보장이 먼저 있을 때의 이야기이다.

P0 ⁣(⋃k=1KAk)≤∑k=1KP0(Ak)≤∑k=1KαkP_0\!\left(\bigcup_{k=1}^K A_k\right)\le\sum_{k=1}^K P_0(A_k)\le\sum_{k=1}^K\alpha_k

각 경보 사건이 독립이고 확률이 모두 α일 때만 정확히 1−(1−α)^K라고 곱할 수 있다. 겹치는 최근 창은 같은 관측을 공유하므로 이 독립을 추측하지 않는다. 순차적 추론·변화점 분석은 추가 설계가 필요한 다음 학습 주제이며 현재의 단순 임계 규칙에 그 보장을 붙이지 않는다.

Looking every day changes the probability of seeing at least one false alarm. Yet the current TV gate is not a calibrated hypothesis test, so a threshold of 0.2 does not mean a 20% false-alarm probability. Define the probability event before assigning a statistical guarantee.

For separately designed tests whose kth false-alarm event has null probability at most alpha_k, the union bound needs no independence. Five valid per-look bounds of 0.01 give an overall bound of 0.05.

P0 ⁣(⋃k=1KAk)≤∑k=1KP0(Ak)≤∑k=1KαkP_0\!\left(\bigcup_{k=1}^K A_k\right)\le\sum_{k=1}^K P_0(A_k)\le\sum_{k=1}^K\alpha_k

Only independent events each with probability alpha justify the exact expression 1−(1−alpha)^K. Overlapping windows share records, so independence is not presumed. Sequential inference and change-point methods require additional design; their guarantees do not automatically attach to this simple gate.

학부Undergraduate

학자와 경영 관점 · Shewhart와 DemingScholars and management: Shewhart and Deming

Walter A. Shewhart는 공정의 관측 변동을 통계적으로 조사하는 품질관리의 역사와 연결된다. NIST의 역사 자료는 Bell 연구소에서 1924년 관리도 메모를 제시하고 1931년 책으로 발전시킨 과정을 소개한다. 이 장의 비유에서는 결과 한 번의 등락보다 과정과 관측 조건을 함께 살피는 태도를 배우자. 현재 도구가 정통 관리도의 모든 통계 가정을 구현했다는 뜻은 아니다. NIST의 원 설명 읽기.

W. Edwards Deming의 경영 관점은 과정을 하나의 시스템으로 보고 변동의 문맥을 살피는 데 연결된다. Deming Institute의 설명은 유해한 불안정성을 관리하는 것과 모든 다양성을 없애는 것이 같지 않다고 강조한다. 통신 고객의 서로 다른 요구를 지우기보다 오류를 만드는 입력 파이프라인을 조사하는 식으로 이 구분을 적용해 보자. Deming Institute의 설명 읽기.

인물의 권위가 현재 모형의 정확성을 대신하지 않는다. 두 소개를 읽은 뒤, 평균 오차가 나아졌지만 특정 집단의 누락이 커진 시스템을 어떻게 조사할지 본인의 관측·가설·대응 메모를 작성한다.

Walter A. Shewhart connects this chapter to statistical investigation of process variation. NIST describes his 1924 Bell Laboratories control-chart memorandum and 1931 book. The useful analogy is to examine process and observation conditions rather than react to every individual movement; our lab does not implement every assumption of a classical control chart. Read the NIST historical account.

W. Edwards Deming connects variation to management of a system. The Deming Institute distinguishes reducing harmful unreliability from eliminating useful variety. Apply that distinction by investigating a faulty customer-input pipeline without erasing different customer needs. Read the Institute discussion.

A scholar’s authority does not validate a model. Write your own observation–hypothesis–response memo for a system whose mean error improves while missingness rises in a particular group.

학부Undergraduate

본문 영상 · 지속적 학습과 모니터링In-page video: continual learning and monitoring

Full Stack Deep Learning 2022의 Josh Tobin 강의 Lecture 6: Continual Learning을 본문에서 재생한다. 아래 질문은 강의의 모니터링·입력 변화·오프라인과 온라인 평가 주제를 현재 사례에 연결하는 학습 과제다. 시간 위치를 외우기보다 관련 부분을 찾아 멈추고 원표에 적용하자.

시청 전에는 라벨 없이 측정 가능한 입력 통계와 라벨이 있어야 측정 가능한 위험을 두 칸에 쓴다. 시청 중에는 관측된 분포 변화만으로 성능 저하를 확정할 수 없는 이유를 찾는다. 시청 후에는 와인의 가상 초기 구간, NLS 원 결측, 통신 이탈 재현율 중 한 사례에 필요한 추가 측정을 적는다.

공식 강의 노트는 설명을 대조하는 읽기 자료다. 이 강의를 시청했다는 사실이 실제 사례에서 없는 날짜나 운영 로그를 만들어 주지는 않는다.

Play Josh Tobin’s FSDL 2022 Lecture 6: Continual Learning here. Before watching, separate label-free input statistics from label-dependent risk. While watching, ask why drift alone cannot establish degraded performance. Afterwards, propose one additional measurement for the wine, NLS or churn case. These are viewing questions, not claimed timestamp annotations.

Compare your explanation with the official course notes. A lecture does not supply missing dates or real operational logs for these datasets.

학부Undergraduate

읽기 지도 · 문서마다 다른 질문을 던지기A reading map with a different question for each source

처음에는 Google의 운영 단계 안내를 읽고 모형 밖에서 유지해야 하는 입력·평가 항목을 적는다. 다음 Rules of Machine Learning에서 훈련과 서비스의 불일치가 생길 수 있는 파이프라인 지점을 찾아 이 장의 단위 예제와 연결한다. 전체 문서를 규칙 암기장으로 바꾸기보다 현재 시스템에서 확인할 수 있는 한 가지 검사를 제안한다.

scikit-learn의 모형 보관 문서에는 버전과 환경, 저장 방식의 문제가 등장한다. 파라미터 숫자만 복사하는 것과 같은 예측 서비스를 재현하는 것의 차이를 설명하자. 이 교재의 숫자 파라미터 CSV가 임의 실행 객체 파일과 같은 보관 방식이라고 혼동하지 않는다.

마지막으로 Stanford CS329S의 공식 과목 자료에서 전체 시스템 관점의 학습 흐름을 살핀다. 이 장의 출처 목록에서 원자료·코드북·모형 파라미터·계산 코드·교육 영상의 역할을 각각 한 줄로 요약한다. 서로 다른 문서의 권고가 현재 사례의 수치 정답을 대신하지는 않는다.

Start with Google’s production-stage guide: list checks outside the model itself. Read Rules of Machine Learning to locate a possible training/serving mismatch and propose one check for the units example. Treat these as questions about a system rather than rules to memorise.

Use scikit-learn’s persistence documentation to distinguish copying numeric coefficients from reproducing a prediction service with its environment and versions. A numeric parameter CSV is not an arbitrary executable-object format.

Use the official Stanford CS329S course page to place the chapter within a systems perspective. Assign separate roles to native data, codebooks, parameters, calculation code and instructional video. Reading recommendations do not replace calculation on this case.

학부Undergraduate

종합 사례 · 배포 보류를 설명하는 보고서Capstone: explaining a simulated release hold

와인·순환 지연·기준 200의 네 조건을 한 장에 적는다. 입력 계약 위반은 0, 동결 검증 MSE는 상한 1 이하, 도착 비율은 99/100으로 하한 4/5 이상이다. 그러나 선언한 한 특징 구간 TV는 28397/130200≈0.218103으로 상한 1/5를 넘는다. 따라서 규칙은 보류를 반환한다. 이것은 오차가 통계적으로 유의하게 커졌다는 검정 결과가 아니다.

와인 가상 게이트의 문장화
조건관측판정
입력 계약 위반0통과
동결 검증 MSE약 0.516489; 상한 1통과
선언 구간 TV28397/130200; 상한 1/5실패
도착 비율99/100; 하한 4/5통과

담당자는 원행 순서가 적포도주를 먼저 배치했다는 점, 이 TV가 알코올 한 특징의 구간 진단이라는 점, 실제 날짜가 없다는 점을 보고서에 적어야 한다. 보류 규칙을 만족시키려고 시험 행 순서를 유리하게 섞는 것은 시스템 안정성을 입증하지 않는다. 데이터 수집·운영 시점 확인이나 다른 사전 기준이 필요한지 별도로 판단한다.

같은 양식으로 NLS의 허용 결과도 제한과 함께 쓴다. 규칙이 허용해도 159개 원 임금 결측의 전체 대상 위험은 알아내지 못했다. 정직한 보고서는 초록색 결과와 남은 미지 정보를 동시에 제시한다.

For wine under cyclic delay at cutoff 200, record all four conditions. Contract violations are zero; frozen validation MSE is below its cap of one; arrival coverage 99/100 exceeds 4/5. However the declared one-feature binned TV, 28397/130200, about 0.218103, exceeds 1/5. The rule therefore returns hold. It is not a significance test for deteriorated error.

Writing the wine simulated gate
ConditionObservationDecision
Input contract violations0Pass
Frozen validation MSEAbout 0.516489; cap 1Pass
Declared binned TV28397/130200; cap 1/5Fail
Arrival fraction99/100; floor 4/5Pass

Report that red-wine records come first, TV concerns only binned alcohol and real dates are absent. Reordering test records to obtain a favourable gate does not demonstrate operating stability. Decide separately what new collection or predeclared criterion is needed.

Use the same format for an NLS allow result: it still does not identify full-target risk for 159 native missing wages. An honest report shows a green gate and its unresolved information together.

학부Undergraduate

완성 프로젝트 · 재현 가능한 운영 판단Final project: a reproducible monitoring judgement

세 사례 중 하나를 선택해 같은 동결 모형의 순환·결과 의존 지연을 비교한다. 원자료와 코드북을 보존하고, 기준 0·200·전체 공개의 세 상태를 설명한다. 표 하나에는 원행 수·예정 대상·도착 라벨·실제 채점 분모를 따로 쓰고, 그림 두 개에는 도착 비율과 도착 위험을 서로 다른 세로축·단위로 그린다. 원본 확대와 전체 수치 CSV도 함께 제공한다.

보고서는 네 문단으로 쓴다. 첫 문단은 무엇을 예측하고 무엇을 바꾸지 않았는지, 둘째는 재현 가능한 계산과 단위, 셋째는 게이트 결과와 실패한 조건, 넷째는 아직 증명하지 못한 실제 운영·인과·전체 대상 성능의 범위이다. 단순한 행사 보고처럼 ‘모형을 운영했다’고 쓰지 말고, 실제 수행한 회고적 계산과 구성한 가상 일정을 분명히 쓴다.

자체 검산은 작은 가상 표로 시작한다. 빈 창의 위험 미정의, 양성 예측 없는 정밀도 미정의, 경계값 동률 통과, 미래 라벨 마스킹을 손으로 확인한다. 그런 다음 원자료의 첫·중간·마지막 행을 찾아 예측과 가용성을 대조한다. 다음 장에서는 이 근거를 모형 카드, 변경 실험과 실패 분석 보고서로 연결한다.

Choose one factual case and compare cyclic versus outcome-dependent arrivals under the same frozen model. Preserve native files and codebooks, and explain cutoffs zero, 200 and full release. In one table distinguish native records, planned targets, arrived labels and scoring denominators. Plot coverage and arrived risk separately with explicit units; provide original-image zoom and the complete numeric CSV.

Write four paragraphs: task and frozen quantities; reproducible calculations and units; gate outcome and failed conditions; limits on real operations, causal claims and full-target performance. Describe the retrospective calculation and constructed schedule actually performed, rather than claiming an operational rollout.

Begin verification with small constructed rows: undefined empty-window risk, undefined precision without positive predictions, passing exact boundary ties and masking future labels. Then locate first/middle/last native IDs and compare predictions and availability. The next chapter turns this evidence into model cards, change experiments and failure-analysis reports.

영상·학자·함께 읽기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.

운영 단계에서 확인할 것Checks for the production stage

Google Developers official guide

모형 밖의 입력·평가 조건을 적습니다.Name input and evaluation conditions outside the model.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 입력 계약을 통과하면 실측값의 진실성과 예측 성능까지 확인되나요?Does passing the input contract verify measurement truth and predictive quality?

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

아닙니다. 선언한 구조·범위·제공된 단위 등 검사 범위만 확인합니다. 측정 출처와 실제 결과 성능은 별도 근거가 필요합니다.No. It checks declared structure, ranges and supplied units within its scope. Measurement provenance and outcome performance require separate evidence.

훈련·서비스 불일치Training and serving mismatch

Google Developers official Rules of ML

단위·처리·로그의 경계를 조사합니다.Investigate units, processing and logging boundaries.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 계수는 같지만 새 묶음의 평균으로 중심을 바꾸면 같은 예측 함수인가요?Do unchanged coefficients preserve the function after re-centering on a new batch?

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

일반적으로 아닙니다. 훈련 평균·범위도 예측 함수의 일부입니다. 같은 원행에서 두 계산 경로를 대조하고 변환 변경을 기록합니다.Generally no. Training means and scales are part of the function. Compare both paths on the same native row and record a changed transformation.

모형 보관과 환경Model persistence and environment

Official scikit-learn documentation

숫자 계수와 실행 환경의 차이를 설명합니다.Distinguish numeric coefficients from an execution environment.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 숫자 파라미터 CSV만 보존하면 같은 예측 서비스를 재현할 수 있나요?Does a numeric parameter CSV alone reproduce the same prediction service?

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

변환·열 순서·단위·계산 규칙과 환경·버전도 필요합니다. 읽을 수 있는 숫자 CSV를 임의 실행 객체 저장과 같은 형식으로 보지 않습니다.Transformations, column order, units, calculation rules and environment versions also matter. A readable numeric CSV is distinct from a serialized executable object.

기계학습 시스템의 전체 흐름The machine-learning systems perspective

Official Stanford CS329S course

자료·모형·운영의 연결을 읽습니다.Read the connections between data, models and operations.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 재현 가능한 가상 도착 인덱스가 실제 운영 로그를 입증하나요?Does a reproducible constructed arrival index establish a real operational log?

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

아닙니다. 실제 값의 출처와 구성 일정의 출처를 구분합니다. 실제 운영·미래 검증에는 당시 특징·모형·시각과 이후 결과 기록이 추가로 필요합니다.No. Separate the provenance of factual values from constructed schedules. Operational or prospective validation additionally needs actual-time features, artifacts, timestamps and later outcomes.

통계적 품질관리의 역사History of statistical quality control

NIST/SEMATECH primary handbook

Shewhart 소개와 현재 도구의 범위를 구분합니다.Separate Shewhart’s historical contribution from this lab’s scope.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 현재의 TV 문턱이 고전 관리도의 오경보 확률을 보장하나요?Does the current TV threshold inherit a classical control chart false-alarm guarantee?

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

아닙니다. 현재 값은 제한된 경험 구간 거리와 선언한 관리 규칙입니다. 확률 보장에는 표본·의존성·반복 확인에 대한 별도 통계 설계가 필요합니다.No. It is a limited empirical binned distance under a declared management rule. Probability guarantees need a separate statistical design for sampling, dependence and repeated looks.

지속적 학습과 모니터링Lecture 6: Continual Learning

Full Stack Deep Learning 2022 / Josh Tobin

본문에서 재학습과 모니터링을 하나의 검토 과정으로 연결합니다.Connect retraining and monitoring through the in-page lecture.

본문에서 영상 재생Play the video in the chapter

보고 읽은 뒤 답하기Respond after watching/reading 입력 분포가 달라졌다는 신호만으로 곧바로 재학습을 결정해도 되나요?Does a signal of changed input distribution by itself justify immediate retraining?

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

아닙니다. 입력 정의·관측 분모·정답 가용성과 과제 손실을 함께 확인해야 합니다. 변경 후보도 검증하고, 운영 효과가 실제 관측인지 구성한 시나리오인지 구분하세요.No. Check input definitions, observation denominators, label availability and task loss. Evaluate the proposed change and distinguish observed operational effects from a constructed scenario.

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

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

1. 점수가 낮아진 두 가지 이유Two reasons for a lower reported error

모형을 바꾸지 않았는데 평균 오차가 줄었습니다. “빠르게 정답이 도착한 쉬운 행만 보였다”와 “모든 대상에서 예측이 좋아졌다”를 구분하려면 무엇을 확인해야 할까요?

Reported mean error fell without a model change. What would distinguish a selected easy early-label subset from improvement across the full target set?

풀이와 확인할 이유Solution and explanation

이벤트 기준·정답 도착 기준, 전체 본 행 수·도착 라벨 수·평가 가능 수, 집단별 구성과 분모를 확인합니다. 같은 원행에서 고정 모형을 비교하고 아직 정답이 없는 행을 장부에 남깁니다. 도착한 행의 평균만으로 미도착 행의 성능을 알 수는 없습니다.

Inspect event/arrival cutoffs, seen, arrived and scored counts, weight denominators and cohort composition. Compare frozen models on the same records and retain unlabeled records in the ledger. Arrived-label risk alone does not identify performance on the waiting population.

2. 도착 표를 손으로 읽기Read a schedule by hand

S2의 표에서 c=2일 때 정답을 볼 수 있는 행, 정답을 기다리는 행, 아직 이벤트 밖인 행을 쓰세요. D의 도착 시각을 0으로 채워도 될까요?

At cutoff two in the S2 table, identify the arrived-label, waiting-label and future-event records. May D receive an arrival index of zero?

풀이와 확인할 이유Solution and explanation

A는 이벤트 1·도착 1이므로 볼 수 있습니다. B는 이벤트를 보았지만 도착 4가 기준 뒤라 대기합니다. C는 이벤트 3부터 기준 뒤입니다. D는 도착 일정이 미지정이므로 0으로 채울 근거가 없습니다. 미지정·대기·이벤트 밖을 서로 다른 상태로 남깁니다.

A is available because both event and arrival equal one. B’s event is seen but its arrival four exceeds the cutoff. C’s event three is outside the window. D has no declared arrival, so zero would be invented. Preserve these distinct states.

3. 훈련 변환을 고정하기Freeze the training transform

가상의 모형이 ŷ=2+3(x−10)/5입니다. x=15의 예측을 계산하세요. 새 묶음의 평균이 12라고 10을 12로 바꾸면 같은 모형인가요?

A constructed model is prediction=2+3(x−10)/5. Predict at x fifteen. Does replacing ten with a new-batch mean twelve preserve the model?

풀이와 확인할 이유Solution and explanation

고정한 식은 2+3×1=5입니다. 중심만 12로 바꾸면 2+3×3/5=19/5=3.8입니다. 계수 2와 3이 같아도 입력 변환이 달라 예측 함수가 바뀌었습니다. 훈련 평균과 범위를 산출물의 일부로 보존해야 합니다.

The frozen expression gives five. Re-centering at twelve gives 2+9/5=19/5, or 3.8. Unchanged coefficient labels do not preserve the function when its input transform changes. Retain training means and scales as part of the artifact.

4. 열 순서를 바꾸면Swapping feature order

가상의 f(나이,교육)=2×나이+교육에서 (20,12)와 뒤집은 (12,20)을 계산하세요. 두 열의 단위가 모두 년이면 순서 검사가 필요 없을까요?

For constructed f(age, schooling)=2 × age + schooling, evaluate (20,12) and (12,20). If both variables use years, is order checking unnecessary?

풀이와 확인할 이유Solution and explanation

각각 52와 44입니다. 단위가 같아도 특징의 의미와 계수가 다르므로 순서를 바꿀 수 없습니다. 실제 NLS의 입력은 ed76, age76라는 이름과 [교육, 나이] 순서를 함께 확인합니다. 이 가상 식의 계수를 실제 임금 효과로 해석하지 않습니다.

The values are fifty-two and forty-four. Shared year units do not make the variables or coefficients interchangeable. Check both native NLS names and the declared schooling-then-age order. The constructed coefficients are not factual wage effects.

5. 단위가 틀려도 범위 안에 있다An in-range unit mistake

가상의 p=0.10+0.01m에서 m은 개월입니다. 2년을 바르게 넣은 값과 숫자 2를 그대로 넣은 값을 비교하세요. 0≤p≤1 검사가 오류를 찾을까요?

For constructed p=0.10+0.01m with months m, compare correctly entering two years with entering the number two. Does a unit-interval score check detect the error?

풀이와 확인할 이유Solution and explanation

2년은 24개월이므로 올바른 점수는 0.34입니다. 숫자 2를 넣으면 0.12입니다. 두 값 모두 0과 1 사이여서 범위 검사만으로 찾지 못합니다. 단위 확인과 명시적인 년→개월 환산이 필요합니다.

Two years equal twenty-four months, giving 0.34; inserting two gives 0.12. Both satisfy the unit-interval range. Detecting the error requires unit verification and an explicit year-to-month conversion.

6. 허용 범위·단위·null의 문제 목록Range, unit and null issues

age열을 years, 범위 0~120, nullable=false로 선언했습니다. (7,years),(7,months),(121,years),(null,years)를 보내면 어떤 행이 통과하나요?

Declare age in years, range zero to 120, nullable false. Which of (7, years), (7, months), (121, years), (null, years) passes?

풀이와 확인할 이유Solution and explanation

첫 행만 통과합니다. 두 번째는 단위 문자열 불일치, 세 번째는 최대값 초과, 네 번째는 null 불허입니다. 문제를 같은 “나쁜 숫자” 하나로 합치면 환산할지, 원기록을 확인할지, 결측 규칙을 정할지 구분하기 어렵습니다.

Only the first passes. The second has a unit mismatch, the third exceeds the maximum and the fourth violates nullability. Separate reasons guide different remedies: conversion, record checking or an explicit missingness policy.

7. nullable이면 열을 빼도 될까Does nullable permit an omitted column?

y열은 nullable=true입니다. {"y":null}과 {}를 같은 입력으로 보아도 될까요?

A required y field is nullable true. Are a present null value and an omitted field equivalent?

풀이와 확인할 이유Solution and explanation

아닙니다. 첫 입력은 y라는 열을 제공했고 그 값이 알려지지 않았습니다. 둘째는 필요한 열 자체가 없어 구조가 계약과 다릅니다. 이 장의 감사는 null 허용 여부와 필요 열 존재를 따로 검사합니다. 원자료의 “.” 같은 토큰은 문서화한 읽기 단계의 규칙으로만 변환합니다.

A present null supplies the required y field with an unknown value. An omitted field changes the structure. This audit checks required-column presence separately from nullability. Native tokens such as dots need their own documented source-reading rule.

8. 빈 자료의 통과Passage of an empty dataset

행이 0개인 입력 감사가 allRowsPass=true와 emptyFrame=true를 함께 냈습니다. 모순인가요? 실제 자료가 충분하다는 뜻인가요?

An audit of zero records returns both allRowsPass true and emptyFrame true. Is this contradictory, and does it establish adequate data?

풀이와 확인할 이유Solution and explanation

모순이 아닙니다. 반례가 되는 행이 없으므로 “모든 행이 통과했다”는 명제는 빈 집합에서 참일 수 있습니다. 그러나 실제 관측이 충분하다는 결론은 나오지 않습니다. 행 수와 최소 집단·표본 요구를 별도로 확인해야 하며 빈 평균 위험은 0이 아니라 미정의입니다.

There is no contradiction: no record violates the universal statement. Adequate observations do not follow. Check record counts and minimum sample/group requirements separately. An empty risk mean is undefined rather than zero.

9. 같은 파일이 말해 주는 것What identical files establish

같은 해시의 NLS 파일 두 개가 있습니다. 이것만으로 표본이 현대 전체 노동시장을 대표하고 교육의 인과 효과를 식별한다고 결론 낼 수 있나요?

Two NLS files have matching digests. Does that establish representation of today’s labor market and identification of a causal schooling effect?

풀이와 확인할 이유Solution and explanation

해시는 같은 원 바이트를 확인하는 데 쓰입니다. 표본의 남성·시기·관측 범위, 원변수 정의, 결측 선택, 인과 식별 조건은 별도 문제입니다. 같은 자료를 재현해서 읽었다는 것과 사회 전체에 대한 주장에 근거가 충분하다는 것을 분리합니다.

A digest helps establish byte identity. The male sample, historical period, variable definitions, missingness selection and causal identification assumptions require separate evidence. Reproducing a file does not establish every substantive claim about a population.

10. 한 점의 일치와 모형의 일치Agreement at one point and agreement of models

가상의 A(x)=0.20+0.01x, B(x)=0.10+0.02x입니다. x=10에서 같으니 두 버전이 같다는 주장에 답하세요.

Constructed A(x)=0.20+0.01x and B(x)=0.10+0.02x agree at x ten. Does this identify the versions as equivalent?

풀이와 확인할 이유Solution and explanation

x=10에서는 둘 다 0.30입니다. 그러나 x=20에서 A는 0.40, B는 0.50입니다. 한 입력에서 같은 답을 준 서로 다른 함수입니다. 모형 산출물과 계산식을 비교하고, 재현 검사는 선언한 입력 범위에서 수행해야 합니다. 한 예의 일치를 미래 전체 성능 보장으로 확대하지 않습니다.

Both give 0.30 at ten, but at twenty A gives 0.40 and B gives 0.50. Distinct functions can cross at one input. Compare artifacts and equations and declare the input scope of reproduction checks. Agreement on one example does not guarantee future performance.

11. 같은 원행의 계산 차이A processing discrepancy on one row

고정 식 2+3(x−10)/5에 x=15를 넣은 값과, 사용 단계에서 중심만 12로 바꾼 값을 비교하세요. 입력 집단이 달라졌다고 설명해야 하나요?

Compare the frozen rule 2+3(x−10)/5 at x fifteen with a serving path centered at twelve. Is a changed input population needed to explain the discrepancy?

풀이와 확인할 이유Solution and explanation

원래 값은 5, 바뀐 계산은 3.8이며 차이는 1.2입니다. 같은 원행의 처리 규칙만 달라진 것이므로 집단 변화를 가정할 필요가 없습니다. 먼저 계산 경로를 맞춘 뒤 새로운 집단에서의 성능 문제를 따로 봅니다.

The outputs are five and 3.8, differing by 1.2. Different processing of the same row explains the discrepancy without an input-population change. Align the paths before evaluating performance on a new population.

12. 범위 밖이면 계약 위반일까Does outside-training imply invalid input?

선언 나이 범위는 [0,120], 훈련 범위는 [20,40]입니다. 새 값 50과 150을 각각 어떻게 표시하나요?

The declared age domain is [0,120] and observed training range [20,40]. How do values fifty and 150 differ?

풀이와 확인할 이유Solution and explanation

50은 선언 범위 안이지만 훈련 범위 밖입니다. 150은 선언 범위와 훈련 범위를 모두 벗어납니다. 50을 자동으로 40으로 바꾸지 않습니다. 훈련 범위 밖의 예측이 반드시 틀렸다는 결론도 이 검사만으로 나오지 않습니다.

Fifty passes the declared domain and receives an outside-training-range diagnostic. One hundred fifty violates both. Do not silently change fifty into forty. The diagnostic alone also does not prove its prediction wrong.

13. 두 칸의 TVTwo-bin TV

기준 0,1의 비중은 각각 1이고 현재 0,1의 비중은 각각 3,1입니다. 경계 1/2에서 두 비율·TV·겹침을 계산하세요.

Reference weights at zero and one are 1,1; current weights are 3,1. With cut one-half compute proportions, TV and overlap.

풀이와 확인할 이유Solution and explanation

기준은 [1/2,1/2], 현재는 [3/4,1/4]입니다. TV=(|1/2−3/4|+|1/2−1/4|)/2=1/4, 겹침은 min(1/2,3/4)+min(1/2,1/4)=3/4입니다. 거리와 겹침의 합이 1인지 확인합니다.

The proportions are [1/2,1/2] and [3/4,1/4]. Half the summed absolute differences is 1/4. Summed overlap is 1/2+1/4=3/4. The two quantities add to one.

14. 경계에 정확히 있는 값A value exactly at the cut

경계 1/2에서 값 1/2은 어느 칸으로 가나요? 기준과 현재가 모두 이 값 하나이면 TV는 얼마인가요?

At cut one-half, which bin contains exactly one-half? What is TV when each frame contains only that value?

풀이와 확인할 이유Solution and explanation

첫 칸은 (−∞,1/2), 둘째는 [1/2,∞)이므로 둘째입니다. 두 정규화 분포가 모두 [0,1]이 되어 TV는 0입니다. 소수 표시의 반올림으로 비교하지 않고 선언한 정확값과 포함 규칙을 사용합니다.

The bins are below one-half and at least one-half, so the value enters the second. Both normalized distributions are [0,1], giving TV zero. Use exact values and endpoint rules rather than rounded display values.

15. 세 칸의 이동Mass movement across three bins

p=[1/2,1/4,1/4], q=[1/4,1/2,1/4]입니다. TV를 구하고 어떤 질량 이동으로 만들 수 있는지 설명하세요.

For p=[1/2,1/4,1/4] and q=[1/4,1/2,1/4], compute TV and describe a mass movement.

풀이와 확인할 이유Solution and explanation

절댓값 차이는 [1/4,1/4,0]이므로 TV는 1/4입니다. 첫 칸의 질량 1/4을 둘째로 옮기고 셋째는 그대로 두면 q가 됩니다. 출발·도착의 차이를 더한 1/2을 이동량 자체라고 부르면 두 번 센 것입니다.

Absolute differences are [1/4,1/4,0], giving TV 1/4. Move one-quarter from the first bin to the second and leave the third unchanged. The summed difference one-half counts both ends of that movement.

16. 크기가 다른 같은 분포Equal proportions with different volume

기준 두 칸의 질량이 2,2이고 현재는 200,200입니다. TV가 0이면 자료량도 같다고 말할 수 있나요?

Reference bin masses are 2,2 and current masses 200,200. If TV is zero, are their volumes equal?

풀이와 확인할 이유Solution and explanation

정규화하면 모두 [1/2,1/2]이므로 TV=0입니다. 전체 질량은 각각 4와 400으로 다릅니다. 이 거리는 비율 차이를 측정하며 전체량의 차이는 별도의 수치입니다. 표본 수와 비중의 합도 구별해서 표시해야 합니다.

Both normalize to [1/2,1/2], so TV is zero. Total masses are four and 400. TV compares proportions; volume is a separate quantity. Distinguish record counts from total analysis weight as well.

17. 결측이 늘었는데 TV는 0Zero numeric TV with more missingness

S14의 기준 비중 1,1,1과 현재 비중 1,1,8을 사용하세요. 수치 분포 TV와 두 결측 비율을 계산하고 해석하세요.

Use S14 weights 1,1,1 versus 1,1,8 at zero, one and missing. Compute numeric TV and both missing fractions.

풀이와 확인할 이유Solution and explanation

수치 질량의 두 칸은 모두 [1/2,1/2]여서 TV=0입니다. 기준 결측은 1/3, 현재는 8/10=4/5입니다. 관측된 숫자의 조건부 분포가 같다는 것과 전체 입력의 결측 상태가 같다는 것은 다릅니다.

Both numeric distributions are [1/2,1/2], giving TV zero. Missing fractions are 1/3 and 8/10=4/5. Equal proportions conditional on a numeric value do not imply equal overall missingness.

18. 빈 기준 분포An empty reference distribution

기준 목록이 비었고 현재에는 값 0이 하나 있습니다. TV를 0 또는 1로 채워도 될까요?

The reference is empty and the current frame contains one zero. May TV be filled with zero or one?

풀이와 확인할 이유Solution and explanation

기준의 양의 수치 질량이 0이라 정규화된 확률분포를 만들 수 없습니다. 따라서 이 비교의 TV는 미정의입니다. 기준 확률을 [0,0]으로 임의로 두면 합이 1이 아니므로 확률분포 사이 거리의 전제를 어깁니다. 빈 자료와 실제 값 0은 다른 상황입니다.

Zero reference numeric mass prevents normalization into a probability distribution. The comparison is undefined. An invented all-zero vector has total probability zero, violating the distance’s premise. Empty data differ from an observed value zero.

19. TV 상한을 달성하는 함수A function attaining the TV bound

p=[1/2,1/2], q=[3/4,1/4], 공통 g=[4,0]입니다. 두 평균과 차이, 범위×TV를 계산하세요.

For p=[1/2,1/2], q=[3/4,1/4] and common g=[4,0], compute both expectations, their difference and range times TV.

풀이와 확인할 이유Solution and explanation

기준 평균은 2, 현재 평균은 3, 차이는 1입니다. g의 범위 길이는 4, TV는 1/4여서 상한도 1입니다. 같은 g가 두 분포에 적용되므로 이 부등식을 쓸 수 있습니다. 결과 관계가 달라져 g 자체가 바뀐 S15에는 이 계산을 그대로 적용할 수 없습니다.

The expectations are two and three, differing by one. Function range four times TV 1/4 also equals one. The same g applies in both populations. A changed outcome relationship that changes g, as in S15, violates this premise.

20. 구간을 합치면 보이지 않는 차이A difference hidden by coarsening

기준은 X=0에 질량 1, 현재는 X=1에 질량 1입니다. 두 값을 한 칸에 합치면 TV는 얼마인가요? 세부 분포의 TV와 g(X)=X의 평균 차이도 구하세요.

The reference puts all mass at zero, the current at one. Merge both into one bin. Compare coarse TV, fine TV and the expectation difference of g(X)=X.

풀이와 확인할 이유Solution and explanation

한 칸 비율은 두 집단 모두 [1]이라 요약 TV는 0입니다. 세부 두 값의 분포는 [1,0]과 [0,1]이어서 TV는 1입니다. g 평균도 0에서 1로 달라져 차이가 1입니다. g는 합친 칸 안에서 상수가 아니므로 요약 TV=0에 공통 칸 상수 함수의 상한을 적용할 수 없습니다.

The merged distributions are both [1], so coarse TV is zero. Fine distributions [1,0] and [0,1] have TV one. The mean of g changes from zero to one. Because g is not constant inside the merged bin, the bin-constant bound cannot use coarse TV zero.

21. 도착이 이벤트보다 앞선 입력An arrival before its event

가상 이벤트 t=5의 정답 도착을 a=3으로 보냈습니다. 왜 이 실습에서 거절되나요? 도착을 0으로 바꾸면 고쳐지나요?

A teaching event at index five is assigned label arrival three. Why is it rejected, and does replacing the arrival by zero repair it?

풀이와 확인할 이유Solution and explanation

이 입력 계약에서 라벨은 해당 이벤트의 이후 확인 정답이므로 a≥t여야 합니다. 0은 더 앞선 값이라 문제를 해결하지 않습니다. 다른 의미의 과거 정보라면 다른 특징·이벤트 정의로 기록해야 하며, 모르는 도착은 명시적으로 null로 남깁니다.

The label is defined as a later verified outcome for that event, requiring arrival at least the event index. Zero is earlier still. Information with a different historical meaning needs a different feature/event definition; an unknown arrival remains null.

22. 창 밖의 현재 표시A record outside the current window

이벤트 t=0, 도착 a=1인 행을 s=2,c=3 창으로 평가합니다. 정답이 도착했으니 반드시 현재 평균에 넣어야 하나요?

An event zero with arrival one is evaluated under window start two and cutoff three. Must it enter the current mean because its label has arrived?

풀이와 확인할 이유Solution and explanation

아닙니다. 도착 조건은 충족하지만 이벤트가 [2,3] 창 밖입니다. 현재 대상 집합에서 제외하며, 과거에 정답을 몰랐다고 해석하지 않습니다. 누적 창 [0,3]을 선택했다면 다른 대상 집합에서 포함될 수 있습니다.

Arrival availability holds, but the event lies outside [2,3]. Exclude it from this target without claiming the label was historically unknown. A cumulative window [0,3] would define another frame that includes it.

23. 도착 2개·평가 1개의 분모Two arrived labels and one scored record

단위 비중 이벤트 네 행이 있습니다. A는 라벨·예측 모두 있음, B는 라벨은 있고 예측 결측, C는 라벨 대기, D는 원 라벨 결측입니다. 도착 비율과 평가 가능 비중 비율을 계산하세요.

Four unit-weight events contain: A with label and prediction, B with label but missing prediction, C waiting for its label, and D with a native missing label. Compute arrival and scoring coverage.

풀이와 확인할 이유Solution and explanation

A와 B의 라벨이 있으므로 도착 비율은 2/4=1/2입니다. 오차 계산은 A 한 행만 가능하여 평가 가능 비중 비율은 1/4입니다. 위험 평균의 분모는 A의 비중 1이며, 도착한 모든 행의 수 2와 다릅니다.

Labels exist for A and B, so arrival coverage is 2/4=1/2. Only A can be scored, giving scoring coverage 1/4. The risk mean’s denominator is A’s weight one, not the two arrived records.

24. 가중 도착 비율Weighted arrival coverage

도착한 한 행의 비중은 9, 대기 중인 한 행은 1입니다. 라벨 개수 비율과 가중 도착 비율을 비교하세요.

One arrived record has weight nine and one waiting record weight one. Compare label-count coverage with weighted coverage.

풀이와 확인할 이유Solution and explanation

행 수 기준으로는 두 행 중 하나여서 1/2입니다. 가중 도착 비율은 9/(9+1)=9/10입니다. 어느 비율을 보고하는지와 그 비중을 선택한 이유를 함께 적습니다. 서로 다른 비중으로 계산한 지표를 같은 분모라고 부르지 않습니다.

Count coverage is one of two, or 1/2. Weighted coverage is 9/(9+1)=9/10. State the chosen quantity and why those weights apply. Different weighting conventions do not share the same denominator.

25. 가려진 미래 정답A masked future outcome

이벤트 t=2, 라벨 도착 a=5, 정답 1, 예측 0인 가상 행이 있습니다. 기준 c=1과 c=3에서 무엇을 보여 주나요?

A constructed event has t two, arrival five, outcome one and prediction zero. What is visible at cutoffs one and three?

풀이와 확인할 이유Solution and explanation

c=1에서는 이벤트가 창 밖이라 현재 예측·정답을 모두 가립니다. c=3에서는 이벤트를 보았으므로 예측 0은 보이지만 도착 5가 아직 뒤여서 정답은 가립니다. 어느 경우에도 아직 평가 가능한 제곱 손실 1이라고 평균에 넣지 않습니다.

At cutoff one, mask both the prediction and outcome because the event is outside the window. At cutoff three, show prediction zero but keep the label masked until arrival five. Neither snapshot scores the eventual loss one yet.

26. 초기 위험 0과 전체 위험 1/2Early zero risk and eventual risk one-half

S22의 두 행에서 기준 1과 4의 Brier 평균을 계산하세요. 모형이 더 나빠졌다는 결론이 필요한가요?

Compute mean Brier loss for the two S22 records at cutoffs one and four. Does this require model deterioration?

풀이와 확인할 이유Solution and explanation

기준 1은 예측 0·정답 0인 첫 행만 평가하여 0입니다. 기준 4는 손실 0과 1의 평균 1/2입니다. 예측은 같고 정답 가용 집합만 달라졌으므로 모형이 바뀌거나 악화되었다고 결론 낼 필요가 없습니다. 초기 선택 집합의 점수를 전체 성능으로 읽지 않습니다.

At cutoff one, only the zero-prediction, zero-label record is ready, giving zero loss. At four, losses zero and one average to 1/2. Predictions are unchanged; label availability changed. No model-change explanation is required.

27. 라벨 없음은 완벽한 성능인가Does no label mean perfect performance?

현재 창의 양의 이벤트 질량은 5이지만 평가 가능한 행은 없습니다. 위험을 0으로 써도 되나요? 도착 비율과 구별해서 답하세요.

The event window has positive weight mass five but no records eligible for loss evaluation. May risk be zero? Distinguish it from arrival coverage.

풀이와 확인할 이유Solution and explanation

평가 위험의 분모가 0이라 미정의입니다. 도착 라벨도 전혀 없다면 도착 비율은 0/5=0으로 정의됩니다. 라벨은 도착했지만 예측만 없는 경우라면 도착 비율은 양수일 수도 있습니다. “라벨 없음”과 “평가 불가능”의 구체 사유를 확인해야 합니다.

Risk is undefined because scoring mass is zero. With no arrived labels, arrival coverage is the defined value 0/5=0. If labels arrived but predictions were missing, coverage could instead be positive. Identify the specific reason for unavailable scoring.

28. 비중 0인 도착 행An arrived zero-weight record

정답과 예측이 있는 이벤트 하나의 비중이 0입니다. 도착 라벨 행 수와 가중 평가 질량, 위험 평균은 어떻게 되나요?

One event has a label and prediction but weight zero. What are its arrived-label count, scoring mass and risk mean?

풀이와 확인할 이유Solution and explanation

도착 라벨의 원행 수는 1일 수 있습니다. 그러나 양의 평가 질량은 0이고 가중 위험 평균은 미정의입니다. 원행을 삭제하지 않고 비중 0 사유를 남깁니다. 원행 개수와 분석 질량을 같은 숫자로 간주하면 이 구분을 잃습니다.

Its arrived-label record count can be one, while positive scoring mass is zero and weighted mean risk is undefined. Retain the row and its zero-weight reason. Counts and analysis mass are distinct.

29. 한 클래스만 도착한 창A window with only one arrived class

이진 창의 도착 정답이 모두 0입니다. 예측 점수로 AUC와 양성 재현율을 바로 계산할 수 있나요?

All arrived labels in a binary window are zero. Are AUROC and positive recall automatically available?

풀이와 확인할 이유Solution and explanation

양성·음성 쌍이 없어 AUROC는 미정의이고, 실제 양성 질량이 0이라 양성 재현율도 미정의입니다. 음성에 대한 점수 오차나 음성 재현율은 그에 필요한 분모가 있으면 계산할 수 있습니다. 미정의 AUC를 0으로 그려서 다음 창과 추세 비교하지 않습니다.

AUROC lacks positive-negative pairs and positive recall lacks positive-label mass, so both are undefined. Squared score error or negative recall may still be defined on their own denominators. Do not insert zero AUC into a trend.

30. 와인 원행 순서를 시간으로 읽으면Interpreting wine file order as time

적포도주 파일 뒤에 백포도주 파일을 합친 원행 순서에서 초기 200개 가상 이벤트가 주로 적포도주입니다. 실제 산업에서 적포도주 수요가 먼저 늘었다고 말할 수 있나요?

Red records precede white records in a concatenated file, and early constructed events are mostly red. Does this establish an earlier rise in factual red-wine demand?

풀이와 확인할 이유Solution and explanation

아닙니다. 파일을 합친 순서와 가상 이벤트 순서에 따른 구성입니다. 원자료에 실제 이벤트 날짜나 수요가 관측되지 않았습니다. 초기 집단과 혼합 훈련 기준의 분포 차이는 그 계산 일정의 결과로 설명하고, 실제 시간·수요 변화 주장으로 바꾸지 않습니다.

No. The composition follows file concatenation and the constructed schedule. The source does not observe those individual event dates or demand. Describe the diagnostic under that schedule without turning it into a temporal demand claim.

31. 한 항목만 바꾼 위험 실습A one-variable risk experiment

예측 0인 두 행의 정답은 0과 1이며 도착은 1과 4입니다. 기준을 1에서 4로만 옮겼습니다. 어떤 것은 고정이고 어떤 것은 달라졌나요?

Two zero predictions have labels zero and one arriving at one and four. Only the cutoff changes. What remains fixed and what changes?

풀이와 확인할 이유Solution and explanation

모형·예측·원 정답·이벤트 집합은 고정입니다. 라벨 가용 집합과 평가 분모는 한 행에서 두 행으로 바뀝니다. 평균 제곱 손실은 0에서 1/2로 바뀌지만 같은 분모의 모형 변화 실험은 아닙니다.

Model, predictions, native outcomes and event frame stay fixed. Availability and scoring denominators expand from one row to two. MSE changes from zero to one-half without a model-change experiment on a fixed scoring frame.

32. 세 오차 요약의 손계산Hand-calculate three error summaries

정답 0,1에 예측 1/4,3/4를 주고 비중은 1씩입니다. MSE·MAE·R²를 계산하세요.

For labels zero and one, predictions 1/4 and 3/4 and unit weights, calculate MSE, MAE and R-squared.

풀이와 확인할 이유Solution and explanation

각 절댓값 오차는 1/4, 제곱은 1/16이므로 MAE=1/4, MSE=1/16입니다. 관측 평균은 1/2, SST=1/2, SSE=1/8이어서 R²=1−(1/8)/(1/2)=3/4입니다. MSE와 MAE의 단위는 각각 제곱 단위와 원 결과 단위입니다.

Both absolute errors are 1/4 and squared errors 1/16, so MAE is 1/4 and MSE 1/16. The outcome mean is 1/2, SST 1/2 and SSE 1/8, giving R-squared 3/4. MSE uses squared units; MAE uses original outcome units.

33. 음수 R²와 미정의 R²Negative and undefined R-squared

정답 0,1에 모두 0을 예측한 경우의 R²를 구하세요. 정답이 모두 0으로 바뀌면 분모는 어떻게 되나요?

Predict zero for labels zero and one, then calculate R-squared. What happens to its denominator if all labels instead equal zero?

풀이와 확인할 이유Solution and explanation

처음에는 SSE=1, SST=1/2이므로 R²=−1입니다. 두 정답이 모두 0이면 SST=0이라 R²는 미정의입니다. 첫 값은 정의된 음수이고 둘째는 분모가 없어 계산하지 못한 상태입니다. 둘을 같은 0으로 덮지 않습니다.

Initially SSE is one and SST one-half, giving R-squared minus one. Constant zero outcomes give SST zero and undefined R-squared. A defined negative value and an undefined denominator are distinct.

34. 높은 정확도와 0인 양성 재현율High accuracy with zero positive recall

실제 기본 시험의 TN=639,FN=132,TP=FP=0을 사용해 정확도·양성 재현율·정밀도·균형 정확도를 구하세요.

Using the factual default test counts TN=639, FN=132 and TP=FP=0, calculate accuracy, positive recall, precision and balanced accuracy.

풀이와 확인할 이유Solution and explanation

정확도는 639/771, 양성 재현율은 0/(0+132)=0입니다. 정밀도는 0/(0+0)이므로 미정의입니다. 음성 재현율은 1이어서 균형 정확도는 (0+1)/2=1/2입니다. 전체 정확도가 높아도 이 문턱에서 이탈 양성을 찾지는 못했습니다.

Accuracy is 639/771 and positive recall zero. Precision has denominator zero and remains undefined. Negative recall is one, so balanced accuracy is 1/2. The high overall accuracy does not mean this threshold found positive churn cases.

35. 문턱만 바꾸었을 때Changing only a threshold

정답 0,1과 점수 0.2,0.4가 있습니다. 문턱 0.5와 0.3에서 정확도를 비교하고 Brier와 AUC가 바뀌는지 설명하세요.

For labels zero and one with scores 0.2 and 0.4, compare thresholds 0.5 and 0.3. Do Brier loss and AUC change?

풀이와 확인할 이유Solution and explanation

0.5에서는 모두 음성이어서 정확도 1/2, 0.3에서는 두 행을 모두 맞혀 1입니다. Brier는 [(0.2−0)²+(0.4−1)²]/2=(0.04+0.36)/2=0.2로 같습니다. 양성 점수 0.4가 음성 0.2보다 높아 AUC는 두 경우 모두 1입니다. 점수·순위와 분류 행동을 구분합니다.

Threshold 0.5 predicts both negative, giving accuracy 1/2. Threshold 0.3 gets both correct, giving one. Brier remains (0.04+0.36)/2=0.2. The positive score outranks the negative, so AUC stays one. Decisions change while scores and ranking do not.

36. 평균·집단 평균·최악 위험Pooled, group-average and worst risk

G의 비중 질량 9·위험 1, H의 질량 1·위험 9에서 전체 평균·집단 단순 평균·최악 위험을 구하세요.

Given group masses nine and one with risks one and nine, compute pooled risk, the unweighted group mean and worst risk.

풀이와 확인할 이유Solution and explanation

전체 평균은 18/10=1.8, 집단 단순 평균은 (1+9)/2=5, 최악 위험은 9입니다. 대상과 비중이 다른 요약이므로 서로 모순되지 않습니다. 어떤 목표로 선택·관리할지는 결과를 보기 전에 선언합니다.

Pooled risk is 1.8, the unweighted group mean five and worst risk nine. These are compatible summaries with different targets and weights. Declare the selection/management objective before inspecting results.

37. 미지정과 실패의 우선순위Unknown and failed gate precedence

검증 위험은 null이고 다른 수치 조건은 통과합니다. 계약 문제 수가 0일 때와 1일 때 모의 판정을 비교하세요.

Validation risk is unknown and other numeric checks pass. Compare zero versus one contract issue.

풀이와 확인할 이유Solution and explanation

문제 수 0에서는 실패가 알려지지 않았지만 위험을 모르므로 정보 부족입니다. 문제 수 1에서는 알려진 계약 실패가 있으므로 보류입니다. null을 0 위험으로 바꾸거나, 다른 미지정 항목 때문에 알려진 실패를 숨기지 않습니다.

Zero issues leave insufficient information because risk is unknown. One issue supplies a known failure and gives hold. Do not replace unknown risk with zero or let another unknown hide a known failure.

38. 경계의 동률은 어떤 규칙인가Declare the boundary-tie rule

위험=상한=1/4, TV=상한=1/5, 도착 비율=최솟값=4/5, 문제 수 0입니다. 이 장의 모의 판정은 무엇인가요? 위험만 0.251이면요?

Risk and cap equal 1/4, TV and cap 1/5, arrival and minimum 4/5, with zero issues. What happens at these boundaries and after changing only risk to 0.251?

풀이와 확인할 이유Solution and explanation

위험·TV는 이하, 도착 비율은 이상을 허용하므로 동률에서 모두 통과합니다. 0.251은 1/4=0.25보다 커 위험 조건이 실패하여 보류합니다. 소수 표시의 반올림이 아니라 선언한 정확 비교와 포함 규칙을 사용합니다.

Risk and TV use inclusive upper bounds; arrival uses an inclusive lower bound. The boundary values pass. Risk 0.251 exceeds 0.25 and holds the release. Use exact values and the declared inclusion rule.

39. TV 0.2는 실패 확률 20%일까Is TV 0.2 a twenty-percent failure probability?

현재 분포의 TV가 0.2입니다. “모형 실패 확률이 20%”라는 해석이 맞나요?

A current empirical distribution has TV 0.2. Does this mean a twenty-percent probability of model failure?

풀이와 확인할 이유Solution and explanation

아닙니다. 선언한 칸의 정규화 비중 사이 거리입니다. 겹침 1−TV=0.8이라는 질량 해석은 가능하지만 모형이 틀릴 확률이나 p값은 이 거리만으로 정해지지 않습니다. 위험과 연결하려면 공통 손실 함수·범위·평가 대상 등의 추가 조건이 필요합니다.

No. It is a distance between normalized masses in declared bins. Overlap equals 0.8, but neither a model-failure probability nor a p-value follows. Connecting it to risk needs additional common-loss, boundedness and target-frame conditions.

40. 남은 고객은 쿠폰의 효과일까Does a retained customer prove a coupon effect?

높은 이탈 점수 고객에게 쿠폰을 주었고 그 고객이 남았습니다. 이 기록만으로 쿠폰의 효과를 계산할 수 있나요?

A high-score customer receives a coupon and stays. Does this record alone identify the coupon effect?

풀이와 확인할 이유Solution and explanation

쿠폰을 주지 않았을 결과가 관측되지 않았으므로 효과를 알 수 없습니다. 높은 점수로 대상을 골랐다는 선택도 비교를 어렵게 합니다. 예측 성능과 실제 행동 변경의 효과를 구분하고, 비용·결과·배정·비교 설계를 명시한 추가 평가가 필요합니다.

The no-coupon outcome is unobserved, and score-based targeting changes the comparison frame. Separate prediction quality from the effect of changing actions. Additional design must specify costs, outcomes, assignment and a defensible comparison.

41. 와인 분모Wine denominators

와인 6,497행 중 훈련·검증·시험이 3,255·1,628·1,614행이다. 합계와 기준 200 순환 도착 198의 분모를 설명하라.

Wine has 6,497 rows, split into 3,255 training, 1,628 validation and 1,614 test rows. Check the sum and the denominator for 198 cyclic arrivals at cutoff 200.

풀이와 확인할 이유Solution and explanation

3,255+1,628+1,614=6,497이다. 198/200은 현재 본 이벤트 중 도착 비율 99/100이다. 198/1,614는 최종 예정 시험 중 현재 도착한 비율로 다른 질문이며, 현재 창의 도착 비율로 표시하면 안 된다.

3,255 + 1,628 + 1,614 = 6,497. The current event-window arrival fraction is 198/200 = 99/100. Dividing by 1,614 instead asks what fraction of all eventual planned test records has arrived now.

42. NLS의 사라지지 않는 결측Persistent native missingness

예정 시험 904명 중 원 임금 관측 745명이다. 모든 지연을 해소하면 도착 비율이 1이 되는가?

Of 904 planned NLS test records, 745 have native observed wages. Does eliminating all delays produce coverage one?

풀이와 확인할 이유Solution and explanation

아니다. 최대는 745/904≈0.824115다. 나머지 159개의 임금은 원자료 결측이다. 늦게 도착한다고 가정하거나 임금 0으로 채우면 목표와 손실을 바꾼다.

No. The maximum is 745/904, about 0.824115. The remaining 159 wages are absent in the native data. Assuming eventual arrival or filling them with zero changes the target and loss.

43. 정확도만의 함정The accuracy trap

기업 시험에서 TN639, FN132, TP0, FP0이다. 정확도·양성 재현율·정밀도·균형 정확도를 계산하라.

Company test counts are TN = 639, FN = 132, TP = 0 and FP = 0. Compute accuracy, positive recall, precision and balanced accuracy.

풀이와 확인할 이유Solution and explanation

정확도=639/771≈0.828794, 양성 재현율=0/132=0, 정밀도=0/0으로 미정의, 균형 정확도=(0+1)/2=1/2이다. 정밀도 미정의와 재현율 0은 분모가 달라 구별해야 한다.

Accuracy is 639/771, about 0.828794. Positive recall is 0/132 = 0. Precision is undefined because its denominator is zero. Balanced accuracy is (0 + 1)/2 = 1/2. Undefined precision and zero recall are different statements.

44. 배포 표현과 재학습Representation versus refitting

중심화 예측식을 정확히 같은 원시 좌표 계수로 바꾸는 것과 현재 창의 평균으로 중심을 바꾸는 것은 같은 변경인가?

Is rewriting a centred predictor into exactly equivalent raw coefficients the same as replacing its centre with the current-window mean?

풀이와 확인할 이유Solution and explanation

전자는 모든 같은 입력에 같은 예측을 내는 표현 변경이다. 후자는 계수를 그대로 둔다면 일반적으로 예측을 바꾼다. 예를 들어 θ0=0, θ1=1, 척도1, 훈련 평균2에서 x3 예측1이지만 현재 평균3으로 바꾸면 예측0이다.

The former preserves the function on identical inputs. The latter generally changes predictions if coefficients stay fixed. With intercept zero, slope one, scale one and training mean two, x=3 predicts one; replacing the centre by three predicts zero.

45. 원행과 역할 보존Preserving records and roles

NLS의 임금 결측 시험 행을 도착률 계산에서 삭제하면 무엇이 달라지는가?

What changes if NLS planned test records with missing wages are removed from arrival coverage?

풀이와 확인할 이유Solution and explanation

목표 분모가 904에서 745로 바뀐다. 완전 공개 시 745/745=1이 되어 원 결측이 없는 것처럼 보인다. 관측 임금 위험만 분석하려는 명시적 별도 질문은 가능하지만 원래 예정 대상 전체의 도착률이라고 부르면 안 된다.

The target denominator changes from 904 to 745, making full-release coverage 745/745 = 1 and hiding native missingness. An explicitly different observed-wage question is possible, but it is not coverage of all originally planned targets.

46. 파일과 시점Files and availability time

역사 라벨이 든 다운로드 파일을 얻었다. 이것만으로 기준 200에 그 라벨이 운영자에게 보였다고 입증할 수 있는가?

A downloaded file contains historical labels. Does possession of that file prove that an operator saw those labels at cutoff 200?

풀이와 확인할 이유Solution and explanation

아니다. 현재 보유한 역사 자료와 당시 정보 집합은 다르다. 실제 시점 증명에는 당시 데이터 빈티지·도착 로그·모형 버전 등이 필요하다. 이 장은 원값을 마스킹하는 회고적 교육 프로토콜이며 실제 운영 접근 제어를 구현한 것이 아니다.

No. Present historical data and the information available then are different objects. Timestamped vintages, arrival logs and model versions would be needed. This chapter provides a retrospective masking protocol, not an operational access-control system.

47. 알려진 포함 확률Known inclusion probabilities

고정 손실이 0,1이고 포함 확률이 1,1/2이다. N=2인 HT 위험의 가능한 값과 기대값을 구하라.

Fixed losses are zero and one, with inclusion probabilities one and one half. Find possible HT risk estimates and their expectation for N=2.

풀이와 확인할 이유Solution and explanation

둘째 행이 관측되면 (0/1+1/(1/2))/2=1, 관측되지 않으면 0이다. 각각 확률1/2이므로 기대값1/2는 두 손실 평균과 같다. 포함 확률이 알려지고 양수라는 전제를 썼다.

If the second row is observed, the estimate is (0/1 + 1/(1/2))/2 = 1; otherwise it is zero. Both occur with probability one half, so expectation one half equals the finite-frame mean. Known positive inclusion probabilities are essential.

48. 분모를 다시 정규화하면Renormalising the denominator

앞 문제에서 관측된 역확률 비중 합으로 나누는 비율 추정량은 유한 표본에서 같은 기대값을 갖는가?

In the previous problem, does dividing by the realised sum of inverse weights retain the same finite-sample expectation?

풀이와 확인할 이유Solution and explanation

둘째 행이 오면 분자2, 분모3으로 2/3이고 안 오면 0/1=0이다. 기대값은 1/3으로 1/2가 아니다. 이것이 비율 추정량을 항상 금지한다는 뜻은 아니며, 편향·안정성·점근 성질을 별도로 분석해야 한다.

With the second arrival, numerator two and denominator three give two thirds; without it the ratio is zero. Expectation is one third rather than one half. Ratio estimators are not therefore forbidden, but their bias, stability and asymptotic properties need separate analysis.

49. 조사 메모An investigation memo

와인의 기준 200 MSE와 최종 MSE가 다르다. 확인된 현상 하나와 아직 확정할 수 없는 원인 두 개를 써라.

Wine MSE at cutoff 200 differs from final MSE. State one verified observation and two causes that are not established.

풀이와 확인할 이유Solution and explanation

확인된 것은 같은 동결 모형의 서로 다른 공개 집합에서 MSE가 다르다는 점이다. 센서 고장과 실제 시장 변화는 이 자료만으로 확정할 수 없다. 초기 적·백포도주 구성, 도착 규칙, 전체 행별 손실을 먼저 대조한다.

Verified: the same frozen model has different MSEs on different revealed sets. Sensor failure and real market change are not established. First compare red/white composition, constructed arrival rules and row-level losses.

50. 가상 일정의 일반화 범위Scope of a constructed schedule

결과가 큰 행에 8칸 지연을 붙인 실험이 실제 기업의 라벨 지연 분포를 추정한 것인가?

Does assigning an eight-index delay to high-outcome records estimate a company’s actual label-delay distribution?

풀이와 확인할 이유Solution and explanation

아니다. 역사 결과를 이용해 교육용 선택 현상을 만든 것이다. 어떤 가정에서 조기 위험이 달라지는지 보일 수 있지만, 실제 지연 추정에는 날짜와 수집 과정 자료가 필요하다.

No. Historical outcomes are used to construct a selection example. It illustrates how early-label risk can change under a rule, while actual delay estimation requires dates and collection-process evidence.

51. 변화가 없어 보이는 입력Apparently unchanged inputs

X가 0·1을 반반 취하고 f(X)=X이다. Y=X에서 Y=1−X로 바뀔 때 입력 TV와 제곱 위험은?

Let X be equally likely zero or one and f(X)=X. When Y changes from X to 1−X, what are input TV and squared risk?

풀이와 확인할 이유Solution and explanation

X 분포는 같아 TV0이다. 처음 손실0, 나중 손실1이 모든 행에서 성립하므로 위험은0→1이다. 입력만 보는 진단으로 결과 관계 변화를 전부 탐지할 수 없다.

Input TV is zero because the law of X is unchanged. Loss changes from zero to one on every record, so risk rises from zero to one. Input-only diagnostics cannot detect every changed outcome relationship.

52. 아직 안 온 시험지Unreturned exam papers

네 행 중 두 라벨이 오고 한 개가 오답이다. 0·1 손실일 때 도착 위험과 전체 위험의 가능한 범위를 구하라.

Two labels arrive out of four records and one is incorrect. With zero–one loss, find arrived risk and feasible full risk.

풀이와 확인할 이유Solution and explanation

도착 위험1/2, 전체 위험 하한1/4·상한(1+2)/4=3/4이다. 미도착 두 개가 모두 정답 또는 오답이면 양끝을 만든다. 확률 신뢰구간은 아니다.

Arrived risk is one half. Full risk is between one quarter and (1+2)/4 = three quarters. Making both unseen labels correct or incorrect achieves the endpoints; this is not a confidence interval.

53. 제곱손실 상한Bounding squared loss

관측 제곱오차의 최대가 9였다. 미도착 회귀 라벨에도 L=9를 보장할 수 있는가?

The largest observed squared error was nine. Does that certify L=9 for unrevealed regression labels?

풀이와 확인할 이유Solution and explanation

아니다. 보지 못한 결과가 예측에서10만큼 떨어지면 손실100도 가능하다. 결과와 예측 범위를 사전 제한하는 별도 근거 없이는 관측 최대가 전체 상한이 되지 않는다.

No. An unseen outcome ten units from its prediction has squared loss one hundred. An observed maximum does not bound all losses without a justified restriction on outcomes and predictions.

54. 다섯 경보의 합집합A union of five alarms

별도로 유효한 다섯 검정 각각의 거짓 경보 확률이 0.01 이하이다. 독립을 몰라도 전체 확률 상한은?

Five separately valid tests each have false-alarm probability at most 0.01. What bound holds without independence?

풀이와 확인할 이유Solution and explanation

합집합 부등식으로 5×0.01=0.05 이하이다. 현재 TV문턱0.2는 이런 확률 보장이 아니므로 그대로 대입하지 않는다.

The union bound gives at most 5 × 0.01 = 0.05. The current TV threshold 0.2 is not a per-look probability guarantee and cannot be substituted.

55. 독립일 때만의 곱A product requiring independence

각 확률0.01인 경보 다섯 개가 독립이라고 추가로 안다면 적어도 한 경보의 정확한 확률은?

If five alarms each with probability 0.01 are additionally independent, find the exact probability of at least one alarm.

풀이와 확인할 이유Solution and explanation

아무 경보도 없을 확률0.99^5를 빼서1−0.99^5≈0.04900995다. 독립이 없으면 이 곱은 정당화되지 않으며 합집합 상한과 구분한다.

Subtract the no-alarm probability: 1 − 0.99^5, about 0.04900995. Without independence that product is not justified; distinguish it from the union upper bound.

56. 경영 해석의 오류A management interpretation error

어떤 책임자가 Deming의 이름을 들어 모든 고객의 특성을 똑같게 만들어 변동을 없애자고 한다. 무엇을 질문할까?

A manager invokes Deming to argue that all customer characteristics should be made identical. What would you ask?

풀이와 확인할 이유Solution and explanation

어떤 과정 변동이 어떤 손해를 만드는지, 유용한 고객 다양성과 입력 오류를 구별했는지 묻는다. 인물 소개는 이 구분을 돕는 읽기 자료이며 다양성 제거를 모형 성능의 정리로 만들지 않는다.

Ask which process variation causes which harm and whether useful customer variety has been confused with input error. The reading supports that distinction; it is not a theorem that eliminating diversity improves model performance.

57. 영상 뒤의 추가 측정A measurement after the video

와인 입력 경보를 실제 운영 문제로 판단하려면 현재 자료에 없는 무엇이 필요한가?

What absent evidence would help decide whether the wine input alert reflects an actual operating problem?

풀이와 확인할 이유Solution and explanation

개별 측정·서비스·평가 도착 날짜, 동일 운영 대상의 수집 과정과 버전 기록 등이 필요하다. 공식 강의와 입력 TV만으로 그런 시각을 소급해 만들어서는 안 된다.

Individual measurement, serving and label-arrival dates, plus collection and version records for the same operational population, would help. A lecture and input TV cannot reconstruct those missing timestamps.

58. 보류의 논리The logic of hold

위반0, 검증 위험은 상한 이하, TV=28397/130200, 최대TV1/5, 도착률99/100·최소4/5이면 판정은?

Violations are zero, validation risk meets its cap, TV is 28397/130200 with maximum 1/5, and coverage is 99/100 with minimum 4/5. What is the gate result?

풀이와 확인할 이유Solution and explanation

TV와1/5를 같은 분모로 비교하면1/5=26040/130200이므로 TV가2357/130200만큼 크다. 알려진 실패가 하나 있어 hold다. 유의확률이나 실제 성능 저하의 원인 판정은 아니다.

One fifth is 26040/130200, so TV exceeds its cap by 2357/130200. A known failure makes the result hold. This is neither a p-value nor a causal diagnosis of deteriorated performance.

59. 허용 뒤의 한계Limits after allow

NLS의 가상 게이트가 allow-simulated-release를 반환하면 임금 결측159명의 예측 위험도 검증되었는가?

If the NLS gate returns allow-simulated-release, is risk for the 159 native missing-wage targets validated?

풀이와 확인할 이유Solution and explanation

아니다. 규칙은 선언한 조건의 통과를 말한다. 관측되지 않은 임금 손실을 계산하지 않았고 실제 날짜·배포도 확인하지 않았다. 전체 대상 위험과 운영 적합성은 추가 정보가 필요한 주장이다.

No. The rule reports its declared checks. Missing wage losses were not evaluated, and actual dates or deployment were not established. Full-target risk and operational suitability require additional evidence.

60. 최종 보고서 문장A final reporting statement

기업 사례를 ‘실제 서비스에서 성능이83%라 배포했다’라고 결론냈다. 근거에 맞게 다시 써라.

A report concludes, “We deployed because accuracy in the actual service was 83%.” Rewrite it to match the evidence.

풀이와 확인할 이유Solution and explanation

예: “실제 통신 원기록의 고정 시험771행에 구성한 지연 일정을 적용했다. 전체 라벨 공개 후0.5경계의 정확도는639/771이나 양성 재현율0·정밀도미정의다. 이는 회고적 예측 평가이며 실제 서비스 배포나 할인 개입 효과를 입증하지 않는다.” 원파일·모형·기준·표를 연결하면 재검토할 수 있다.

For example: “We applied constructed delays to 771 fixed test records from a factual telecom dataset. After full release, threshold-0.5 accuracy is 639/771, with zero positive recall and undefined precision. This retrospective prediction evaluation does not establish actual deployment or a coupon intervention effect.” Link the source, model, cutoff and tables for review.

자료와 출처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