AI-13 · ARTIFICIAL INTELLIGENCE

생성 모형·변분 추론·확산Generative models, variational inference and diffusion

두 상자의 확률에서 ELBO·가우스·가역변환·확산과 실제 사례까지From two-box probabilities to ELBOs, Gaussians, invertible maps, diffusion and factual cases

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

기초Foundations

1. 관측을 맞히는 일에서 자료를 만드는 규칙으로1. From recognizing observations to generating data

사진을 보고 숫자 7인지 묻는 문제와, 새로운 숫자 모양을 어떤 규칙으로 만들어 낼지 묻는 문제는 다릅니다. 전자는 관측에서 답을 찾는 분류이고 후자는 가능한 관측에 확률을 나누어 주는 생성 모형입니다. 여기서 만든다는 말은 원본 파일을 복사한다는 뜻도, 모형의 출력이 실제 사실이 된다는 뜻도 아닙니다. 모형이 정한 분포에서 하나의 결과를 얻는다는 뜻입니다.

빨강·파랑 구슬이 담긴 두 상자를 상상해 보세요. 먼저 어느 상자를 고를지 정하고, 고른 상자에서 어떤 구슬이 나올지 정하면 구슬 색을 만드는 두 단계 규칙이 됩니다. 상자 번호를 숨은 변수 z, 눈에 보이는 색을 x라고 쓰겠습니다. 상자와 구슬은 가상 예시이며, 실제 사람이나 국가에 숨은 본질적인 유형이 있다는 증거가 아닙니다.

이 장은 네 가지 질문을 연결합니다. 관측 x에 모형이 얼마의 확률을 주는가, x를 본 뒤 z에 대해 무엇을 추론하는가, 계산하기 어려운 추론을 무엇으로 근사하는가, 잡음을 넣고 되돌리는 과정은 어떤 분포를 만드는가입니다. 각각 주변확률, 사후분포, 변분 추론, 확산으로 이어집니다. 이름을 먼저 외우기보다 작은 숫자로 같은 질문을 반복합니다.

실제 사례에는 경제 지표의 두 기준, 교육과 시급의 두 기준, 통신 고객의 두 속성을 이진값으로 바꾼 관측 617건이 있습니다. 원래 값·단위·출처·변환 규칙은 함께 남깁니다. 실제 손글씨 세 장에는 별도로 선언한 잡음을 더합니다. 작은 유한 확률 모형을 적합한 결과와 신경망 VAE·확산 모형을 훈련한 결과를 혼동하지 않습니다.

Recognizing whether an observed image shows a seven differs from specifying a rule that could generate possible images. A generative model assigns a distribution to observations. Generating does not mean copying a source file, and an output does not thereby become a factual observation. It means obtaining a result under a declared model.

Imagine two boxes containing red and blue marbles. First choose a box, then choose a color under that box’s proportions. Denote the hidden box by z and the visible color by x. This hypothetical story introduces a latent variable; it does not establish intrinsic hidden types of people or countries.

We connect four questions: what probability the model assigns to x; what x tells us about z; how difficult inference can be approximated; and what distribution a process of adding and reversing noise produces. These lead to marginal probability, posterior inference, variational inference and diffusion. Revisit the questions with small numbers before memorizing names.

Our factual cases transform 617 economic, education/wage and anonymous customer observations into two declared binary features. Original values, units, sources and rules remain available. Three genuine handwritten images receive a separately stipulated noise process. Fitting a small finite model here is not training a neural VAE or diffusion network.

기초Foundations

2. 확률질량과 확률밀도는 같은 숫자 규칙이 아니다2. Probability mass and density use different rules

구슬 색처럼 결과를 셀 수 있을 때 각 결과의 확률은 0 이상 1 이하이며 모두 더하면 1입니다. 빨강의 확률 3/4는 같은 조건을 많이 반복할 때 빨강에 배정한 비중입니다. 이산 모형에서 빨강이 실제 나왔는데 확률 0을 주었다면 그 모형은 관측을 불가능하게 취급한 것입니다.

키처럼 연속값을 쓰면 정확히 한 실수값만 가질 확률과 그 주변의 밀도를 구분해야 합니다. 밀도는 구간 넓이를 적분해 확률을 계산하는 높이입니다. 폭 1/10인 구간에 균일하게 몰린 분포의 높이는 10이지만 전체 면적은 1입니다. 밀도가 1보다 크다고 확률 법칙을 어긴 것이 아닙니다.

연속 정규분포에서 정확히 170.000…이라는 한 점의 확률은 0입니다. 그 점의 밀도가 양수라는 사실과 충돌하지 않습니다. 실제로 센티미터 단위로 반올림한 키 170은 대개 어떤 작은 구간을 대표합니다. 측정·반올림 과정을 모형화하지 않은 채 연속 밀도를 이산 관측의 확률처럼 읽지 마세요.

확률질량의 로그는 0 이하이지만 밀도의 로그는 양수일 수도 있습니다. 따라서 이산 음의 로그우도는 음수가 아니고, 연속 밀도에 대한 음의 로그우도는 음수일 수 있습니다. 또 단위를 m에서 cm로 바꾸면 밀도의 숫자와 로그 점수가 바뀝니다. 같은 측정 단위와 관측 모형을 고정해야 비교가 의미 있습니다.

∑xp(x)=1,∫f(x) dx=1,P(a<X<b)=∫abf(x) dx\sum_x p(x)=1,\qquad \int f(x)\,dx=1,\qquad P(a<X<b)=\int_a^b f(x)\,dx

For countable outcomes such as marble colors, each probability lies between zero and one, and the probabilities sum to one. Assigning red probability three quarters allocates that share to red under repeatable conditions. Assigning an observed outcome zero probability makes it impossible under the model.

With a continuous measurement such as height, distinguish the probability of one exact real value from density near that value. Density is a height whose integral over an interval gives probability. A uniform distribution over an interval of width one tenth has density ten and total area one. A density above one is valid.

A nondegenerate normal distribution assigns one exact height probability zero even though its density there is positive. A recorded rounded height usually represents a measurement interval. A continuous density should not silently be read as a probability mass for rounded observations.

Log probability mass is nonpositive, whereas log density can be positive. Discrete negative log likelihood is nonnegative; a continuous density NLL can be negative. Converting meters to centimeters changes density values and their log scores. Compare scores only with a common measurement convention and observation model.

∑xp(x)=1,∫f(x) dx=1,P(a<X<b)=∫abf(x) dx\sum_x p(x)=1,\quad \int f(x)\,dx=1,\quad P(a<X<b)=\int_a^b f(x)\,dx
기초Foundations

3. 숨은 상태를 먼저 고르는 결합분포3. A joint distribution from two stages

가상 상자 0과 1을 각각 1/2 확률로 고릅니다. 상자 0에서는 빨강이 3/4, 파랑이 1/4이고 상자 1에서는 반대입니다. “상자 0이면서 빨강”이라는 결합 사건의 확률은 첫 단계 1/2와 그 조건의 둘째 단계 3/4를 곱한 3/8입니다. 조건 없이 서로 독립이라고 가정해 곱한 것이 아니라 조건부 규칙을 따라 곱했습니다.

네 가지 결합 확률은 3/8,1/8,1/8,3/8입니다. 어느 상자를 고르든 그 안의 색 확률 합이 1이고 상자를 고르는 비중 합도 1이므로 전체 합도 1입니다. 행은 상자, 열은 색인 작은 표를 그려 보면 “먼저 z, 다음 x”라는 생성 순서와 결합분포를 동시에 볼 수 있습니다.

원하는 예시를 직접 만들어 볼 때는 먼저 0 이상 1 미만의 점 하나를 상자 선택의 누적확률 구간에 놓고, 둘째 점을 선택한 상자의 색 구간에 놓습니다. 실습의 점 두 개는 사용자가 지정합니다. 그 점을 반복했다고 독립 난수가 생기는 것은 아닙니다. 한 경로의 결합확률과 그 색이 나올 전체 확률도 구별해야 합니다.

모형의 z는 실제로 관측하지 못한 확률 좌표입니다. 상자의 이름 0과 1을 서로 바꾸고 매개변수도 함께 바꾸면 같은 관측분포가 나올 수 있습니다. 이 표만 보고 상태 1이 더 우수한 사람이나 더 발달한 국가라고 이름 붙일 근거는 없습니다.

가상 상자·색 결합확률
상태 z빨강 x=0파랑 x=1행 합
03/81/81/2
11/83/81/2
p(z,x)=p(z)p(x∣z)p(z,x)=p(z)p(x\mid z)

Choose hypothetical box zero or one with equal probability. Box zero gives red probability three quarters and blue one quarter; box one reverses them. The joint event “box zero and red” has probability one half times three quarters, or three eighths. This multiplication uses a conditional rule, not an assumption of unconditional independence.

The four joint probabilities are three eighths, one eighth, one eighth and three eighths. They sum to one because each conditional color row sums to one and so do the box weights. A table with boxes as rows and colors as columns displays both the generative stages and the joint distribution.

To illustrate sampling, place one supplied point in the cumulative box intervals and another in the chosen color intervals. The lab accepts these points explicitly. Repeating chosen points does not establish IID randomness. A particular latent-observed path probability also differs from the total probability of the observed color.

The latent state is a coordinate of the model. Swapping labels zero and one together with their parameters can preserve the entire observed distribution. The table does not justify naming one state a superior person or a more developed country.

Hypothetical joint probabilities
Latent zRed x=0Blue x=1Row total
03/81/81/2
11/83/81/2
p(z,x)=p(z)p(x∣z)p(z,x)=p(z)p(x\mid z)
기초Foundations

4. 상자를 못 보았다면 더해서 지운다4. Marginalize the unobserved box

빨강 구슬을 보았지만 상자 번호를 보지 못했습니다. 빨강이 나오는 길은 상자 0에서 빨강, 상자 1에서 빨강 두 가지입니다. 두 길은 동시에 일어날 수 없는 사건이므로 확률을 더합니다. 앞 표에서는 3/8+1/8=1/2입니다. 숨은 변수에 대해 더해 관측의 분포만 남기는 계산을 주변화라고 합니다.

가장 큰 경로 하나만 남기면 3/8이 되어 1/2와 다릅니다. 모형이 가능한 여러 설명을 허용하는데 그중 하나만 관측 가능성으로 쓰면 다른 설명의 몫을 잃습니다. 반대로 두 경로를 독립 사건처럼 곱하면 “둘 다 일어나야 한다”는 다른 질문이 됩니다. 어느 사건들의 합집합을 계산하는지 먼저 말하세요.

연속 숨은 변수라면 합 대신 적분합니다. 이론적으로 간단한 적분 표시도 신경망과 높은 차원의 z가 들어가면 계산하기 어려울 수 있습니다. 변분 추론은 이 주변 가능성과 사후분포를 다루는 계산 문제에서 출발합니다. 단지 그림을 흐리게 복원하기 위한 기술로 정의하지 않습니다.

자료 여러 건의 우도를 곱할 때에는 관측들이 주어진 모형 아래 어떤 독립성·의존 구조를 갖는지도 정해야 합니다. 이 장의 작은 적합 실험은 관측별 질량을 곱하는 기준을 선언합니다. 실제 국가·연도의 경제 지표가 경험적으로 독립이라는 검증을 그 계산 자체가 제공하지는 않습니다.

p(x)=∑zp(z,x)orp(x)=∫p(z,x) dzp(x)=\sum_z p(z,x)\quad\text{or}\quad p(x)=\int p(z,x)\,dz

After observing a red marble without its box, there are two mutually exclusive paths: red through box zero or red through box one. Add their joint probabilities, three eighths plus one eighth, giving one half. Summing out a hidden variable is marginalization.

Keeping only the largest path would give three eighths, losing probability assigned to another explanation. Multiplying the two paths would ask whether both happened, which is a different event. State which mutually exclusive alternatives form the observation before calculating.

A continuous latent variable replaces a sum by an integral. Although the notation is compact, neural mappings and high-dimensional latent spaces can make the integral difficult. Variational inference addresses this computational problem of marginal likelihood and posterior inference; it is not defined merely as a blurry reconstruction procedure.

Multiplying likelihood contributions across observations also requires a declared dependence model. Our small fitting study explicitly uses a product criterion. That calculation does not itself demonstrate empirical independence of country-year economic observations.

p(x)=∑zp(z,x)orp(x)=∫p(z,x) dzp(x)=\sum_z p(z,x)\quad\text{or}\quad p(x)=\int p(z,x)\,dz
기초Foundations

5. 관측 뒤에는 베이즈로 방향을 바꾼다5. Reverse the conditioning with Bayes

생성 순서는 상자에서 색으로 갔지만 추론은 색에서 상자로 돌아갑니다. 빨강을 본 경우 상자 0의 사후확률은 “상자 0이면서 빨강” 3/8을 “빨강” 1/2로 나눈 3/4입니다. 상자 1의 사후확률은 1/4입니다. 처음의 상자 비중 1/2,1/2가 관측을 보고 3/4,1/4로 바뀌었습니다.

색이 빨강이라는 조건 아래 가능한 결합 사건의 몫을 다시 전체 1로 맞춘 것입니다. 분모는 두 상태 모두에서 동일한 관측 확률입니다. 조건부 확률을 뒤집는다고 단순히 기존 숫자에 역수를 취하지 않습니다. 사전확률과 관측의 가능성을 모두 사용해야 합니다.

모형이 빨강에 정확히 확률 0을 주었다면 분모가 0입니다. 이때 해당 관측 아래 사후분포는 모형으로 정해지지 않습니다. 계산기가 두 상태에 1/2씩 채워 주는 것은 베이즈 결과가 아니라 별도의 추가 규칙입니다. 실습은 “관측 증거 0, 사후 미정의”를 표시합니다. 극도로 작지만 양수인 증거는 정확한 0과 다릅니다.

아래 실습에서 사전·방출 표·관측을 바꾸며 결합표와 주변분포를 먼저 읽고 사후를 확인하세요. 그다음 누적확률 점 두 개를 지정해 만든 경로를 확인합니다. 경로 확률이 관측의 주변확률과 다른 이유를 앞 절의 두 길에 연결해 설명해 보세요.

p(z∣x)=p(z)p(x∣z)∑z′p(z′)p(x∣z′)[p(x)>0]p(z\mid x)=\frac{p(z)p(x\mid z)}{\sum_{z'}p(z')p(x\mid z')}\quad[p(x)>0]

Generation proceeds from box to color; inference conditions in the opposite direction. After red, box zero has posterior probability (3/8)/(1/2)=3/4, and box one has probability 1/4. The prior proportions of one half each have changed in light of the observation.

Bayes normalizes the joint contributions compatible with the observed color. Its denominator is the same evidence for every latent state. Reversing a conditional is not taking the reciprocal of an old probability: both the prior and conditional likelihood matter.

If the model assigns red evidence exactly zero, the denominator vanishes. That conditional posterior is not determined. Filling equal probabilities would add a convention rather than compute Bayes. The lab reports zero evidence and an undefined posterior. A very small positive rational evidence remains different from zero.

Change the prior, emission table and observation below. Read the joint and marginal tables before interpreting the posterior, then supply two CDF points for an ancestral example. Explain why that path probability can differ from the total probability of its visible outcome.

p(z∣x)=p(z)p(x∣z)∑z′p(z′)p(x∣z′)[p(x)>0]p(z\mid x)=\frac{p(z)p(x\mid z)}{\sum_{z'}p(z')p(x\mid z')}\quad[p(x)>0]
기초Foundations

6. 맞춤·선택·평가에 같은 관측을 쓰지 않기6. Separate fitting, selection and evaluation

관측 x가 이미 주어졌을 때 모형 매개변수를 바꾸며 p(x)를 읽으면 우도라고 부릅니다. 확률이라는 수학식이 뒤집힌 것은 아닙니다. 무엇을 고정하고 무엇을 비교하는지가 달라졌습니다. 로그우도는 관측별 가능성의 곱을 로그의 합으로 바꾸어 비교하기 편하게 합니다.

우도가 가장 큰 매개변수를 훈련 자료에서 고르는 것이 최대우도 적합의 기본 생각입니다. 그러나 후보가 많아질수록 훈련의 우연한 모습까지 따라갈 수 있습니다. 그래서 후보 간 선택에는 따로 둔 검증 자료를 쓰고, 선택 뒤 평가는 시험 자료에 남깁니다. 시험 성적을 보고 다시 고른다면 그 시험 자료도 이미 선택에 쓰인 것입니다.

이 장의 실제 실험에는 잡음 비율 ε가 세 개, 숨은 상태 1의 사전 비중 π가 세 개여서 아홉 조합이 있습니다. 각 ε 안에서 훈련 우도가 가장 큰 π를 고릅니다. 그 세 승자 가운데 검증 우도가 가장 큰 ε를 고릅니다. 같은 역할의 관측 수는 후보마다 같으므로 정확한 우도 곱으로 비교할 수 있습니다. 동률이면 미리 정한 앞 후보를 택합니다.

이 기준이 현실의 참 모형을 보증하지는 않습니다. ε는 두 비트가 숨은 원형에서 뒤집힐 확률이라는 선언 매개변수이고, 원형 00과 11도 모형 선택입니다. 모형이 관측 네 범주를 어떻게 근사하는지와, 실제 경제나 고객 행동의 원인을 알아냈는지는 다른 주장입니다.

ℓ(θ)=∑i∈Tlog⁡pθ(xi),π^ϵ∈arg⁡max⁡πℓT(ϵ,π)\ell(\theta)=\sum_{i\in\mathcal T}\log p_\theta(x_i),\qquad \widehat\pi_\epsilon\in\arg\max_\pi\ell_{\mathcal T}(\epsilon,\pi)

With an observation fixed, viewing its probability as a function of parameters gives a likelihood. The underlying formula has not been inverted; the quantities held fixed have changed. Log likelihood turns a product of contributions into a sum.

Maximum likelihood chooses parameters that best score the training observations. A rich candidate family can also follow accidental training patterns. Use validation observations to choose among candidates and retain test observations for evaluation after selection. Choosing again after inspecting test performance uses the test for selection.

Our factual study uses three flip rates epsilon and three latent prior weights pi, giving nine combinations. Training likelihood chooses a pi within each epsilon; validation likelihood chooses among those three winners. Every candidate evaluates the same observations within a role, so exact likelihood products are comparable. An exact tie follows a predefined earlier-candidate rule.

This procedure does not certify a true model. Epsilon is a stipulated bit-flip probability around latent prototypes 00 and 11, and those prototypes are modeling choices. Approximating four observed categories differs from discovering causes of economic or customer behavior.

ℓ(θ)=∑i∈Tlog⁡pθ(xi),π^ϵ∈arg⁡max⁡πℓT(ϵ,π)\ell(\theta)=\sum_{i\in\mathcal T}\log p_\theta(x_i),\quad \widehat\pi_\epsilon\in\arg\max_\pi\ell_{\mathcal T}(\epsilon,\pi)
기초Foundations

7. 복원이 그럴듯해도 생성 확률을 안 것은 아니다7. Reconstruction alone is not a likelihood

그림 한 장을 입력해서 닮은 그림을 출력하는 함수를 생각해 보세요. 두 그림의 제곱오차가 작다는 것은 정한 좌표·척도에서 가깝다는 뜻입니다. 그 숫자만으로 가능한 모든 그림에 확률을 나누어 준 분포가 생기지는 않습니다. 상수 그림만 내는 함수, 입력을 그대로 복사하는 함수도 특정 자료에서 작은 오차를 낼 수 있습니다.

복원 오차를 확률 모형과 연결하려면 관측의 조건부 분포를 정해야 합니다. 예를 들어 숨은 z가 주어졌을 때 평균을 복원 함수로, 분산을 고정한 정규밀도로 둘 수 있습니다. 그러면 음의 로그밀도에는 제곱오차를 분산으로 나눈 항뿐 아니라 분산·차원에 따른 정규화 항도 들어갑니다. 분산을 바꾸면서 그 항을 빼고 서로 다른 모형의 우도라고 비교하면 기준이 달라집니다.

숨은 z를 입력에서 뽑는 추론 규칙과 z에서 관측을 만드는 생성 규칙도 구분하세요. 전자를 q(z|x), 후자를 p(x|z)로 쓰겠습니다. 두 화살표가 연결된 그림만으로 q가 베이즈 사후와 같아지는 것은 아닙니다. 베이즈 사후는 사전 p(z)와 생성 규칙이 함께 정합니다.

변분 추론은 계산하기 쉬운 q를 두고, 이 q가 정확한 사후와 얼마나 다른지 생성 모형의 로그 증거와 연결합니다. 이산 예에서 모든 상태의 가능성을 직접 더해 기준을 먼저 구한 뒤, 뒤 절에서 하한과 간격을 계산합니다. 큰 신경망을 돌리기 전에 작은 표로 이 관계를 이해하는 것이 중요합니다.

A function that maps an image to a similar image can achieve small squared reconstruction error. That indicates closeness under a chosen scale; it does not by itself assign normalized probabilities to all possible images. Copying inputs or outputting a constant can also yield small errors on particular data.

To connect an error to probability, specify an observation distribution. One choice is a Gaussian conditional whose mean is the reconstruction and whose variance is fixed. Its negative log density includes a variance-scaled squared error and a normalizing term depending on variance and dimension. Dropping the latter while changing variance does not preserve a comparable likelihood.

Distinguish an inference rule mapping x to z from a generative rule mapping z to x. We write them as q(z|x) and p(x|z). Connecting these arrows does not make q equal the Bayes posterior, which is determined jointly by the prior and the generative distribution.

Variational inference chooses a tractable q and relates its discrepancy from the posterior to generative log evidence. First sum the finite example exactly, then calculate its bound and gap. A small table makes the relationship explicit before a large neural implementation obscures it.

기초Foundations

8. 로그의 굽은 모양에서 하한을 얻는다8. A lower bound from the shape of log

두 양수 1과 9의 평균은 5입니다. 평균을 낸 뒤 로그를 취하면 log5이고, 먼저 로그를 취해 평균하면 (log1+log9)/2=log3입니다. log5가 더 큽니다. 로그는 위로 곧게 뻗지 않고 점점 완만해지는 오목함수이기 때문에 양수의 평균에 대한 로그가 로그의 평균보다 작아지지 않습니다. 이것이 여기서 사용할 젠센 부등식입니다.

불확실한 숨은 상태들에 q의 비중을 주고 어떤 양수의 로그 평균을 계산하면, 직접 계산하기 어려운 “평균의 로그” 아래에 계산 가능한 값을 놓을 수 있습니다. 다만 합의 비중이 1인지, 로그 안의 값이 양수인지, 기대값이 유한한지 확인해야 합니다. 이름만 적고 0으로 나누거나 음수의 로그를 취하면 증명이 아닙니다.

평등은 q가 양의 비중을 주는 곳에서 로그 안의 값이 일정할 때 생깁니다. 뒤에서는 그 값이 p(z,x)/q(z|x)입니다. q가 정확한 사후이면 이 비율이 모든 가능한 상태에서 같은 p(x)가 되므로 하한이 증거의 로그에 닿습니다.

먼저 1과 9를 4와 4로 바꿔 보세요. 두 계산 모두 log4가 됩니다. 다음으로 두 값의 평균을 고정한 채 차이를 벌려 보세요. 로그의 평균이 내려가는 모습은 뒤의 KL 간격을 이해할 시각적 출발점입니다. 그러나 이 간단한 평균 예를 모든 최적화의 수렴 보장으로 확대하지 않습니다.

log⁡ ⁣(∑zqzaz)≥∑zqzlog⁡az,qz≥0,∑zqz=1,az>0\log\!\left(\sum_z q_z a_z\right)\geq \sum_z q_z\log a_z,\qquad q_z\geq0,\quad\sum_z q_z=1,\quad a_z>0

The average of one and nine is five. Taking log after averaging gives log 5, whereas averaging their logs gives(log 1+log 9)/2=log 3. The first is larger because log is concave. This is the form of Jensen’s inequality we need.

Weight latent states by q. An expected log can provide a computable value below a log of an average. Check normalization, positivity and integrability before applying the statement. Naming Jensen does not justify dividing by zero or taking a logarithm of a negative quantity.

Equality occurs when the argument of log is constant wherever q is positive. Our argument will be p(z,x)/q(z|x). At the exact posterior this ratio equals the same evidence p(x) throughout the supported states, making the bound tight.

Replace one and nine by four and four: both expressions equal log 4. Then hold the average fixed while spreading the values. The expected log decreases. This picture introduces the later KL gap, but it does not establish convergence of an arbitrary optimization algorithm.

log⁡ ⁣(∑zqzaz)≥∑zqzlog⁡az,∑zqz=1,az>0\log\!\left(\sum_z q_z a_z\right)\geq \sum_z q_z\log a_z,\quad\sum_z q_z=1,\quad a_z>0
기초Foundations

9. ELBO를 한 줄씩 유도하기9. Derive the ELBO one line at a time

ELBO는 evidence lower bound, 즉 로그 증거의 하한입니다. 이산 q가 정규화되어 있고 q가 양수인 상태에서 결합확률도 양수라고 합시다. 먼저 q가 양수인 상태들의 결합확률만 더합니다. 전체 p(x)는 그 합 이상입니다. 각 항에 q를 곱하고 q로 나누는 것은 q가 양수인 상태에서만 합니다.

그 합의 로그에 젠센을 적용하면 q로 평균한 log p(z,x)−log q(z|x)를 얻습니다. q가 어떤 결합 양수 상태를 아예 제외해도 하한은 성립하지만 첫 번째 합이 전체 증거와 같지는 않을 수 있습니다. q가 모든 결합 지지집합을 덮는다고 말하지 않았다면 “전체 합에 q/q를 곱했다”는 등식을 무조건 쓰지 마세요.

결합분포를 사전×관측 조건부로 분해하면 ELBO는 q 아래 평균 로그 관측가능성에서 KL(q||p(z))를 뺀 모양이 됩니다. 첫 항은 단순 픽셀 오차가 아니라 선언한 관측 분포의 로그입니다. 둘째 항은 사전과 추론 분포 사이의 정보 차이를 측정합니다. 두 항의 단위는 자연로그를 쓰면 nat입니다.

연속 z에서는 합을 적분으로 바꾸지만 지지집합·절대연속성·적분 가능성 조건을 확인해야 합니다. 한 점 추정만을 연속 q의 정상적인 밀도로 넣어 엔트로피 항을 생략하는 것은 같은 유도가 아닙니다. 이 절의 유한 예는 그런 어려움을 피하고 관계를 직접 계산하도록 택했습니다.

log⁡p(x)≥log⁡∑z:qz>0qzp(z,x)qz≥∑z:qz>0qzlog⁡p(z,x)qz=L(q;x)\log p(x)\geq\log\sum_{z:q_z>0}q_z\frac{p(z,x)}{q_z}\geq\sum_{z:q_z>0}q_z\log\frac{p(z,x)}{q_z}=\mathcal L(q;x)
L=Eq[log⁡p(x∣z)]−DKL(q(z∣x)∥p(z))\mathcal L=\mathbb E_q[\log p(x\mid z)]-D_{\mathrm{KL}}(q(z\mid x)\Vert p(z))

ELBO means evidence lower bound, specifically a bound on log evidence. Let q be normalized, with positive joint mass wherever q is positive. Begin with the joint mass summed over q-positive states, which cannot exceed the full evidence. Insert q/q only on those positive states.

Applying Jensen gives the q-average of log p(z,x) minus log q(z|x). If q excludes some positive joint states, the bound still holds, but the restricted sum need not equal the full evidence. Do not silently assert that q covers the entire joint support.

Factoring the joint into prior and conditional likelihood yields expected log observation likelihood minus KL to the prior. The first term is the log of a declared observation distribution, rather than an arbitrary pixel error. Natural logarithms measure both terms in nats.

Continuous latent variables require corresponding support, absolute-continuity and integrability conditions. Substituting a point estimate for an ordinary continuous density and deleting entropy does not preserve this derivation. Our finite example makes the relationship directly calculable.

log⁡p(x)≥log⁡∑z:qz>0qzp(z,x)qz≥∑z:qz>0qzlog⁡p(z,x)qz=L(q;x)\log p(x)\geq\log\sum_{z:q_z>0}q_z\frac{p(z,x)}{q_z}\geq\sum_{z:q_z>0}q_z\log\frac{p(z,x)}{q_z}=\mathcal L(q;x)
L=Eq[log⁡p(x∣z)]−DKL(q(z∣x)∥p(z))\mathcal L=\mathbb E_q[\log p(x\mid z)]-D_{\mathrm{KL}}(q(z\mid x)\Vert p(z))
기초Foundations

10. 정확한 사후까지의 간격이 KL이다10. The gap is KL to the posterior

증거 p(x)가 양수이고 관련 항들이 유한하면 사후의 정의 p(z|x)=p(z,x)/p(x)를 로그에 넣어 정리할 수 있습니다. q로 평균한 log q−log p(z|x)가 KL입니다. 이를 풀면 log p(x)−ELBO가 됩니다. 따라서 하한과 정답 사이의 간격은 q가 사후에서 얼마나 다른지를 나타내는 KL입니다.

KL은 같은 분포이면 0이고 일반적으로 0 이상이지만 방향이 있는 양입니다. KL(q||p)와 KL(p||q)는 보통 같지 않습니다. 길이 단위의 거리나 대칭 삼각부등식을 만족하는 일반 거리라고 부르지 않습니다. q가 전혀 보지 않는 영역과 q가 양수인데 p가 0인 영역은 이 방향에서 다른 효과를 냅니다.

q가 양수인데 사후가 0이면 KL은 양의 무한대이고 ELBO는 음의 무한대가 될 수 있습니다. 이때 로그 증거를 “음의 무한대+양의 무한대”로 숫자 계산해 복구하지 않습니다. 증거가 0이면 사후 자체가 미정의이므로 사후 KL 간격도 미정의입니다. 실습은 이런 상태를 각각 표시합니다.

유한 상자 예에서 q를 1/2,1/2로 두면 ELBO는 약 −0.836988이고 로그 증거는 −0.693147입니다. 간격은 약 0.143841입니다. q를 정확한 사후 3/4,1/4로 바꾸면 간격이 0이 됩니다. 생성 모형의 표는 그대로 두고 추론 q만 바뀌었다는 점을 확인하세요.

DKL(q∥p(z∣x))=log⁡p(x)−L(q;x)(finite terms)D_{\mathrm{KL}}(q\Vert p(z\mid x))=\log p(x)-\mathcal L(q;x)\quad\text{(finite terms)}

With positive evidence and finite terms, substitute p(z|x)=p(z,x)/p(x) into the q-average of log q minus log posterior. Rearrangement gives log evidence minus ELBO. Thus the bound gap is KL from q to the exact posterior.

KL is nonnegative and zero for identical distributions, but it is directional. KL(q||p) generally differs from KL(p||q). It is not an ordinary symmetric metric satisfying the usual triangle inequality. Ignoring a region and assigning positive q where p is zero have different effects in this direction.

Positive q on zero posterior produces infinite KL and can give ELBO negative infinity. Do not recover log evidence by numerically adding opposing infinities. Zero evidence makes the posterior and its KL gap undefined. The lab reports these distinct states.

For the box example with q=(1/2,1/2), ELBO is about−0.836988, log evidence about−0.693147 and the gap about 0.143841. Replacing q by the posterior(3/4,1/4) makes the gap zero while leaving the generative table unchanged.

DKL(q∥p(z∣x))=log⁡p(x)−L(q;x)(finite terms)D_{\mathrm{KL}}(q\Vert p(z\mid x))=\log p(x)-\mathcal L(q;x)\quad\text{(finite terms)}
기초Foundations

11. 엔트로피·복원·사전 항을 함께 조절하기11. Read entropy, reconstruction and prior terms together

ELBO의 다른 표기는 평균 로그 결합확률에 q의 엔트로피를 더한 것입니다. 이산 엔트로피는 −Σq logq입니다. q=1/2,1/2이면 log2이고 q=1,0이면 0입니다. 0log0은 극한으로 0으로 정의합니다. “상태가 두 개이므로 q의 엔트로피는 언제나 log2”라고 쓰면 균등분포만의 값을 일반화한 것입니다.

q를 한 상태에 몰면 엔트로피는 작아지지만 좋은 관측 가능성을 주는 상태에 집중할 수도 있습니다. 반대로 q를 넓게 펼치면 엔트로피가 커져도 잘 맞지 않는 상태를 더 볼 수 있습니다. 따라서 엔트로피만 최대화하거나 복원 항만 최대화하는 것은 전체 ELBO 최적화와 다를 수 있습니다. 생성 표를 고정했을 때 두 효과의 균형은 정확한 사후에서 하한을 채웁니다.

아래 실습은 q, 사전, 방출을 직접 입력합니다. 먼저 균등 q의 하한을 계산하고 사후 q를 복사해 다시 계산하세요. q의 한 항을 0으로 놓아 그 기여가 0인 것을 확인한 뒤, 반대로 결합확률이 0인 상태에 q를 양수로 주어 무한대 경계를 확인하세요.

각 숫자를 읽을 때 “이것은 q의 엔트로피인가, 생성 사전까지의 KL인가, 정확한 사후까지의 KL인가”를 먼저 말합니다. 사전 KL과 사후 KL은 같은 항이 아닙니다. 사전은 관측 전 생성 규칙이고 사후는 그 규칙에 관측을 결합한 추론 결과입니다.

L=Eq[log⁡p(z,x)]+H(q),H(q)=−∑zqzlog⁡qz\mathcal L=\mathbb E_q[\log p(z,x)]+H(q),\qquad H(q)=-\sum_z q_z\log q_z

Another ELBO expression adds q’s entropy to expected log joint mass. Discrete entropy is−Σqlogq. It equals log 2 at q=(1/2,1/2) and zero at(1,0), using the limiting convention 0 log 0=0. Two states alone do not imply entropy log 2.

Concentrating q reduces entropy but may emphasize states that explain the observation well. Spreading q increases entropy but may emphasize poor explanations. Maximizing either entropy or reconstruction alone can differ from maximizing the whole ELBO. With the generative table fixed, the exact posterior balances these effects and makes the bound tight.

Enter q, the prior and emissions below. Compare uniform q with the exact posterior. Set one q entry to zero and inspect its zero contribution, then give positive q to a zero-joint state and inspect the infinite boundary.

Identify whether each displayed quantity is entropy, KL to the prior or KL to the posterior. The prior KL and posterior KL are different terms. A prior is part of the pre-observation generative rule; a posterior combines that rule with the observation.

L=Eq[log⁡p(z,x)]+H(q),H(q)=−∑zqzlog⁡qz\mathcal L=\mathbb E_q[\log p(z,x)]+H(q),\qquad H(q)=-\sum_z q_z\log q_z
기초Foundations

12. 거의 같은 분포와 화면의 0을 구분하기12. Near equality and a displayed zero

q와 사후가 거의 같으면 KL은 아주 작습니다. 큰 두 수를 거의 똑같이 계산해 빼면 컴퓨터의 유효 자릿수 밖에 있는 차이가 사라질 수 있습니다. 수학적으로 양수인 KL이 화면에서 0처럼 보이는 것과, 두 분포가 정확히 같아서 KL이 0인 것은 다릅니다.

실습 엔진은 입력 소수·분수를 정확한 유리수로 읽고 지지집합·정규화·베이즈를 계산합니다. 로그와 지수는 일반적으로 근사입니다. KL은 각 항을 q log(q/p)−q+p로 보정하여 더하고, q/p가 1에 가까우면 안정적인 급수를 사용합니다. 정규화된 두 분포에서는 −Σq+Σp=0이므로 전체 KL은 바뀌지 않습니다.

급수의 유한 다항식은 정확한 분수로 계산할 수 있고 남은 항의 범계도 남길 수 있습니다. 그렇다고 로그를 포함하는 원래 KL 전체가 정확한 유리수가 된 것은 아닙니다. 화면의 간단한 수치, 원 분수, 근사의 종류, 표시 하한을 구분해 읽으세요. 이 엔진은 모든 초월함수에 대해 보증된 오차 구간을 제공한다고 주장하지 않습니다.

예를 들어 사후 1/2,1/2에서 q를 각각 10의 −180제곱만큼 반대로 바꾸면 KL의 주된 크기는 약 2×10의 −360제곱입니다. 흔한 binary64 화면에는 0으로 줄어들 수 있지만, 입력 분포는 정확히 다르고 KL은 양수입니다. 일치 여부는 반올림된 막대 길이만 보고 판정하지 않습니다.

∑zqzlog⁡qzpz=∑z[qzlog⁡qzpz−qz+pz]\sum_z q_z\log\frac{q_z}{p_z}=\sum_z\left[q_z\log\frac{q_z}{p_z}-q_z+p_z\right]

When q nearly equals the posterior, KL is tiny. Subtracting nearly equal floating-point quantities can erase the difference. A mathematically positive KL displayed as zero differs from exact equality of the two distributions.

The engine reads decimal/fraction text as exact rationals for normalization, support and Bayes calculations. Logs and exponentials are generally approximate. It evaluates corrected terms qlog(q/p)−q+p and uses a stable series near equality. Their correction sums to zero for normalized distributions, preserving the mathematical KL.

A finite series polynomial and its remainder bound can be retained as exact rationals. The original logarithmic KL does not thereby become an exact rational. Distinguish a short displayed value, exact algebraic inputs, approximation type and display limits. No universal certified transcendental interval is claimed.

Perturb posterior(1/2,1/2) by opposite amounts 10^−180. KL has leading size about 2×10^−360, below ordinary binary64 display. The distributions remain exactly different and KL positive. A rounded bar length cannot certify equality.

∑zqzlog⁡qzpz=∑z[qzlog⁡qzpz−qz+pz]\sum_z q_z\log\frac{q_z}{p_z}=\sum_z\left[q_z\log\frac{q_z}{p_z}-q_z+p_z\right]
기초Foundations

13. 정규분포에서 분산과 표준편차를 먼저 구분하기13. Begin with Gaussian variance and standard deviation

종 모양 정규밀도에는 중심 μ와 퍼짐이 있습니다. 표준편차 σ는 관측과 같은 단위이고 분산 v=σ²은 그 단위의 제곱입니다. 키를 cm로 쓰면 표준편차는 cm, 분산은 cm²입니다. 실습의 varianceQ에는 σ가 아니라 v를 넣습니다. 표준편차 2를 뜻하며 2를 입력하면 실제로는 분산 2, 표준편차 √2인 다른 모형이 됩니다.

정규밀도는 중심에서의 거리를 제곱해 분산으로 나눈 항과 전체 면적을 1로 만드는 정규화 상수로 구성됩니다. 분산이 작아지면 가운데 높이는 높아지지만 분포의 전체 확률은 여전히 1입니다. 양의 분산이 필요하며 분산 0은 보통의 정규밀도가 아니라 한 점에 질량이 몰린 별도의 확률측도입니다.

여러 숨은 좌표를 쓸 때 대각 정규분포는 각 좌표가 선언한 평균·분산으로 독립이라는 모형입니다. 평균·분산 벡터만 적었다고 일반 공분산을 다룬 것이 아닙니다. 실제 잠재 구조에 상관이 있으면 대각 q 가족은 정확한 사후를 표현하지 못할 수 있습니다.

먼저 1차원에서 평균 0, 분산 1의 그래프를 보고 평균만 1로 옮겨 보세요. 다음에는 평균을 고정하고 분산을 4로 바꾸어 표준편차가 2로 넓어지는 것을 확인합니다. 중심의 위치 변화와 퍼짐 변화가 뒤의 KL에서 서로 다른 항으로 나타납니다.

f(z;μ,v)=12πvexp⁡ ⁣[−(z−μ)22v],v>0f(z;\mu,v)=\frac{1}{\sqrt{2\pi v}}\exp\!\left[-\frac{(z-\mu)^2}{2v}\right],\qquad v>0

A normal density has center mu and spread. Standard deviation sigma has the observation’s units; variance v=sigma² has squared units. The lab accepts variance, not standard deviation. Entering 2 when intending standard deviation 2 instead specifies variance 2 and standard deviation√2.

Its density combines squared distance scaled by variance with a constant making total area one. A smaller variance can raise the central density while total probability stays one. Variance must be positive; zero variance is a point mass rather than an ordinary normal density.

A diagonal multivariate Gaussian stipulates independent coordinates with specified means and variances. Mean and variance vectors do not represent general covariance. A diagonal variational family may therefore fail to express a correlated posterior.

Start with mean 0 and variance 1. Move the mean to 1, then hold it fixed and change variance to 4, giving standard deviation 2. Location and spread differences contribute different terms to the following KL formula.

f(z;μ,v)=12πvexp⁡ ⁣[−(z−μ)22v],v>0f(z;\mu,v)=\frac{1}{\sqrt{2\pi v}}\exp\!\left[-\frac{(z-\mu)^2}{2v}\right],\quad v>0
학부Undergraduate

14. 가우스 KL의 두 비용: 중심과 퍼짐14. Gaussian KL charges for location and spread

q=N(μq,vq)에서 p=N(μp,vp)까지의 KL은 q 아래 로그밀도 비율의 평균입니다. 정규 로그밀도를 대입하면 두 정규화 상수의 차이와 제곱거리의 평균이 남습니다. q 아래 (z−μq)²의 평균은 vq이고, (z−μp)²의 평균은 vq+(μq−μp)²입니다. 이 두 사실을 넣으면 아래 식을 얻습니다.

첫 번째 비용은 vq/vp−1−log(vq/vp)입니다. 비율이 1이면 0이고 다른 양수이면 양수입니다. 두 번째는 중심 차이의 제곱을 vp로 나눈 항입니다. 같은 평균이어도 분산이 다르면 KL이 양수이고, 같은 분산이어도 평균이 다르면 양수입니다.

대각 정규분포에서는 좌표별 KL을 더합니다. 단위가 서로 다른 좌표의 원 제곱차이를 그냥 더하는 것과 다릅니다. 평균 차이는 비교 대상 p의 분산으로 표준화됩니다. p와 q를 바꾸면 분모와 로그비가 달라지므로 같은 숫자가 아닐 수 있습니다.

같은 분산이면 로그비와 분산비 비용이 정확히 0이어서 남은 평균차 제곱은 분수로 정확히 계산할 수 있습니다. 그 밖의 로그 항은 일반적으로 근사입니다. 분산이 거의 같을 때 작은 양의 KL을 계산하는 안정적인 급수와, 정말로 두 분포가 같은 경우를 실습에서 따로 표시합니다.

DKL(q∥p)=12[vqvp−1−log⁡vqvp+(μq−μp)2vp]D_{\mathrm{KL}}(q\Vert p)=\frac12\left[\frac{v_q}{v_p}-1-\log\frac{v_q}{v_p}+\frac{(\mu_q-\mu_p)^2}{v_p}\right]

Gaussian KL is the q-expectation of a log-density ratio. Substitution leaves normalizer differences and expected squared deviations. Under q, E(z−muq)²=vq and E(z−mup)²=vq+(muq−mup)². These identities yield the formula below.

One cost is vq/vp−1−log(vq/vp), zero at ratio one and positive otherwise. The second is squared mean displacement divided by vp. Equal means do not remove a variance mismatch, and equal variances do not remove a mean mismatch.

For diagonal Gaussians, add coordinate contributions. This is not an unscaled sum of squared raw coordinates: the reference variance standardizes each displacement. Reversing q and p changes denominators and log ratios and can change the result.

Equal variances eliminate the logarithmic term exactly, leaving an exact rational quadratic when inputs are rational. General logarithms are approximate. The lab distinguishes a tiny positive variance-mismatch KL from exact equality and preserves its near-equality series information.

DKL(q∥p)=12[vqvp−1−log⁡vqvp+(μq−μp)2vp]D_{\mathrm{KL}}(q\Vert p)=\frac12\left[\frac{v_q}{v_p}-1-\log\frac{v_q}{v_p}+\frac{(\mu_q-\mu_p)^2}{v_p}\right]
학부Undergraduate

15. 작은 가우스 모형을 끝까지 풀기15. Solve a conjugate Gaussian model completely

숨은 z의 사전을 평균 m0, 분산 v0인 정규분포로 두고, 관측 x는 z에 평균 0·분산 vn의 독립 정규잡음을 더한 것이라고 합시다. 잡음과 숨은 값이 독립이라는 것은 선언한 모형 가정입니다. 이 경우 관측 주변분포는 평균 m0, 분산 v0+vn인 정규분포이고 사후도 정규분포가 됩니다.

역분산 1/v를 정밀도라고 부릅니다. 사후 정밀도는 사전 정밀도와 관측 정밀도의 합입니다. 사후 평균은 사전 평균과 관측값을 각 정밀도로 가중한 평균입니다. 관측 잡음이 작으면 x의 비중이 커지고, 사전 분산이 작으면 m0의 비중이 커집니다. 자료를 보기 전에 사전이 확실한지, 관측이 정확한지의 균형입니다.

m0=0,v0=1,vn=1,x=2이면 사후 분산은 1/2이고 평균은 1입니다. 관측 주변밀도는 N(0,2)에서 x=2의 밀도입니다. 그 로그는 −(1/2)log(4π)−1입니다. q를 이 사후로 두면 ELBO는 정확한 로그 증거까지 올라갑니다. 로그의 화면 수치 자체는 근사라는 점은 여전히 남습니다.

이 예는 사후를 알고 있어서 근사 추론을 검증하는 기준이 됩니다. q의 평균을 0, 분산을 2처럼 일부러 바꾸어 하한이 내려가는지 확인하세요. 신경망을 훈련한 사례가 아니라, 닫힌형 답이 있는 모형에서 추론의 원리를 확인하는 연습입니다.

vpost=(v0−1+vn−1)−1,mpost=vpost(m0v0+xvn)v_{\mathrm{post}}=\left(v_0^{-1}+v_n^{-1}\right)^{-1},\qquad m_{\mathrm{post}}=v_{\mathrm{post}}\left(\frac{m_0}{v_0}+\frac{x}{v_n}\right)

Let latent z have Gaussian prior mean m0 and variance v0. Observe x by adding independent zero-mean Gaussian noise of variance vn. Independence is stipulated. The marginal observation is Gaussian with mean m0 and variance v0+vn, and the posterior is also Gaussian.

Precision means inverse variance. Posterior precision adds prior and observation precisions; posterior mean averages their locations with those weights. Smaller observation noise emphasizes x, while a concentrated prior emphasizes m0.

For m0=0,v0=vn=1 and x=2, posterior variance is 1/2 and mean 1. The evidence density is N(0,2) evaluated at 2, with log−(1/2)log(4 pi)−1. Setting q to this posterior makes ELBO reach log evidence, although numerical logs remain approximate.

The known posterior supplies a benchmark. Move q’s mean or variance deliberately and inspect the reduced bound. This is a closed-form inference exercise, not a neural training result.

vpost=(v0−1+vn−1)−1,mpost=vpost(m0v0+xvn)v_{\mathrm{post}}=\left(v_0^{-1}+v_n^{-1}\right)^{-1},\quad m_{\mathrm{post}}=v_{\mathrm{post}}\left(\frac{m_0}{v_0}+\frac{x}{v_n}\right)
학부Undergraduate

16. 재매개화: 난수 대신 결정식을 미분한다16. Reparameterization separates noise from parameters

평균과 표준편차를 바꾸며 q에서 뽑은 값의 손실을 줄이고 싶습니다. 매개변수가 바뀔 때마다 “새 분포에서 무작위로 뽑는다”는 명령 자체를 곧바로 미분하기는 어렵습니다. 대신 표준정규 잡음 ε를 따로 두고 z=μ+σε로 쓰면 고정한 ε에 대해 z가 매개변수의 결정적 함수가 됩니다.

손실이 (z−a)²인 가상 예에서 고정한 ε의 μ 미분은 2(z−a), σ 미분은 2(z−a)ε입니다. ε의 평균이 0, 분산이 1이면 기대 손실은 (μ−a)²+σ²이고 기대 기울기는 2(μ−a),2σ입니다. 한 잡음 표본의 σ 기울기가 0이라고 전체 기대 기울기도 0인 것은 아닙니다.

이 방법은 잡음이 매개변수와 무관하도록 표현하고, 미분과 기대값을 교환할 정칙성·적분 가능성이 있을 때 경로별 기울기 추정으로 연결됩니다. 모든 확률분포에서 같은 형태가 즉시 가능한 것은 아닙니다. 범주를 딱 고르는 연산에 정규 재매개화를 그대로 붙이면 그 이산 선택의 정확한 기울기가 생기지 않습니다.

VAE에서는 q의 평균·분산을 입력 x의 신경망 출력으로 만들고, 생성 신경망과 함께 ELBO를 최적화할 수 있습니다. 분산을 로그분산으로 출력하는 경우 σ=exp(s/2)이므로 연쇄법칙의 1/2과 σ도 따라갑니다. 분산·표준편차·로그분산을 같은 변수처럼 미분하지 마세요. 이 장의 실제 작은 사례는 그런 신경망 훈련을 하지 않습니다.

ϵ∼N(0,1),z=μ+σϵ,E[(z−a)2]=(μ−a)2+σ2\epsilon\sim\mathcal N(0,1),\quad z=\mu+\sigma\epsilon,\quad \mathbb E[(z-a)^2]=(\mu-a)^2+\sigma^2

When optimizing expected loss under q, differentiating a command that samples from a changing distribution is inconvenient. Instead draw parameter-independent standard-normal noise epsilon and write z=mu+sigma epsilon. For fixed epsilon this is a deterministic differentiable map.

For hypothetical squared loss(z−a)², pathwise derivatives are 2(z−a) with respect to mu and 2(z−a)epsilon with respect to sigma. Standard-normal moments give expected loss(mu−a)²+sigma² and expected gradients 2(mu−a),2 sigma. One sampled sigma-gradient of zero does not make the expectation zero.

The argument needs a parameter-independent noise representation and conditions allowing differentiation under expectation. It is not automatically available in the same form for every distribution. Applying a Gaussian formula to a hard categorical selection does not produce its exact discrete-selection gradient.

A VAE can predict q’s mean and variance from x using an encoder and optimize the ELBO with a generative decoder. If s is log variance, sigma=exp(s/2), so chain-rule factors matter. Variance, standard deviation and log variance are different optimization coordinates. No such network is trained in our factual finite study.

ϵ∼N(0,1),z=μ+σϵ,E[(z−a)2]=(μ−a)2+σ2\epsilon\sim\mathcal N(0,1),\quad z=\mu+\sigma\epsilon,\quad \mathbb E[(z-a)^2]=(\mu-a)^2+\sigma^2
학부Undergraduate

17. VAE의 추론 가족과 상각의 의미17. Variational families and amortized inference

각 관측마다 q의 매개변수를 따로 최적화할 수도 있고, 하나의 인코더 함수가 여러 관측의 q를 빠르게 출력하게 할 수도 있습니다. 후자는 많은 관측에 대한 추론 계산을 공유한다는 뜻에서 상각 추론이라고 부릅니다. 회계의 원가 배분과 어감은 비슷하지만, 여기서는 공유한 함수로 관측별 최적화를 대신한다는 계산적 의미입니다.

표현 가능한 q의 범위가 좁아서 생기는 차이와, 그 범위 안에서 최적화를 덜 해서 생기는 차이와, 공유 인코더로 관측별 최적 q를 모두 표현하지 못해 생기는 차이를 구분해야 합니다. 인코더를 더 오래 학습했다고 대각 가우스 가족이 다봉 사후를 자동으로 표현하게 되는 것은 아닙니다.

아래 실습에서 먼저 대각 가우스 KL의 평균·분산 효과를 봅니다. 다음 모드를 사후 예제로 바꿔 관측 2, 사전 평균 0·분산 1, 잡음 분산 1을 입력합니다. 사후 1,1/2와 q를 비교하고, q가 사후와 같을 때 하한이 채워지는지 확인하세요. 고정한 작은 모형을 푸는 실습이며 신경망 인코더 학습 버튼은 아닙니다.

일반 VAE를 설계할 때에는 관측 분포가 이진 이미지인지 연속 측정인지, q의 공분산 구조, 사전, 학습용 표본화, 검증 목표를 함께 기록해야 합니다. 익숙한 “복원+KL” 모양만 복사하면 각 항의 분모·단위·정규화가 무엇인지 놓치기 쉽습니다.

You may optimize q separately for every observation, or train one encoder that quickly returns q parameters for many observations. The latter amortizes inference by sharing a function instead of solving each observation-specific problem anew.

Distinguish limitations of the variational family, incomplete optimization within that family and limitations imposed by a shared encoder. Longer training cannot automatically make a diagonal Gaussian represent a multimodal posterior.

First inspect mean and variance contributions in the Gaussian KL lab. Then choose the posterior example with observation 2, prior mean 0/variance 1 and noise variance 1. Compare q with posterior mean 1/variance 1/2 and verify bound tightness. The lab solves a small declared model; it does not train a neural encoder.

A general VAE design must specify the observation distribution, variational covariance, prior, sampling method and validation objective. Copying “reconstruction plus KL” without its normalizations and units can change the mathematical problem.

학부Undergraduate

18. 좌표를 늘리면 밀도의 높이가 낮아진다18. Stretching coordinates changes density height

가우스 z를 두 배 늘리고 3을 더해 x=2z+3을 만든다고 합시다. 같은 확률 덩어리가 가로로 두 배 퍼지므로 세로 밀도는 절반이 되어야 면적이 보존됩니다. 역변환은 z=(x−3)/2이고 x의 밀도는 그 지점의 z 밀도를 2로 나눈 값입니다. 단순히 z를 역변환해 대입만 하면 전체 면적이 두 배가 됩니다.

일반적인 1차원 아핀 변환 x=az+b에서 a가 음수면 좌우가 뒤집힙니다. 면적은 음수가 될 수 없으므로 밀도에는 |a|를 사용합니다. a=0이면 모든 z가 한 점으로 가므로 역함수가 없고 이 보통 밀도 공식으로 계산할 수 없습니다. 실습은 이 경계를 거절합니다.

평균은 aμ+b, 분산은 a²v로 변합니다. 분산에 a를 한 번만 곱하면 단위와 확률 모형이 맞지 않습니다. 로그밀도는 원 로그밀도에서 log|a|를 뺍니다. a가 작으면 밀도가 커질 수 있으나 한 점의 확률은 여전히 0입니다.

아래에서 a=−2,b=3,x=3을 넣으면 원 좌표는 0이고 표준정규의 밀도를 2로 나눕니다. 같은 결과를 평균 3·분산 4인 정규분포에서 x=3으로 직접 구한 값과 비교하세요. 이 작은 가역변환이 정규화 흐름의 출발점입니다.

z=x−ba,fX(x)=fZ((x−b)/a)∣a∣,a≠0z=\frac{x-b}{a},\qquad f_X(x)=\frac{f_Z((x-b)/a)}{|a|},\qquad a\ne0

Transform z to x=2 z+3. The same probability spreads over twice the horizontal width, requiring half the density height to preserve area. Invert z=(x−3)/2 and divide its density by 2. Substitution without this factor would double the integral.

For x=az+b, negative a reverses orientation, but density uses |a| because probability area cannot be negative. At a=0 the map collapses all z to one point and has no inverse; the ordinary density formula no longer applies.

The mean becomes a mu+b and variance a²v. Multiplying variance by a only once is incorrect. Log density subtracts log|a|. A small scale can raise density above one while each singleton still has zero probability.

Try a=−2,b=3,x=3. The inverse coordinate is 0, and the density is half the standard-normal density there. Compare the equivalent normal with mean 3 and variance 4. This elementary invertible map introduces normalizing flows.

z=x−ba,fX(x)=fZ((x−b)/a)∣a∣,a≠0z=\frac{x-b}{a},\quad f_X(x)=\frac{f_Z((x-b)/a)}{|a|},\quad a\ne0
심화Extension

19. 역함수가 하나가 아닐 때: 야코비안의 조건19. Jacobian formulas need the right inverse conditions

다변수에서 작은 부피가 변환으로 얼마나 늘어나는지는 야코비안 행렬식의 절댓값으로 나타냅니다. 한 점으로 돌아가는 역함수가 있고 필요한 미분 조건이 만족되면, 관측 밀도는 원 밀도에 역변환의 부피 배율을 곱합니다. 좌표 하나의 미분값만 모든 차원에 반복해서 곱하는 대신 실제 행렬식을 계산해야 합니다.

가역성이 빠지면 공식도 달라집니다. x=z²는 z와 −z를 같은 x로 보내므로 일대일이 아닙니다. x가 양수일 때 두 역가지 √x,−√x가 있고 각각 원 밀도를 미분의 절댓값 2√x로 나눈 뒤 더해야 합니다. 한 가지만 택하면 확률의 일부를 잃습니다.

표준정규 z의 제곱에서는 x=0 근처의 밀도가 매우 높아질 수 있지만 구간 확률은 적분으로 계산합니다. 행렬식이나 미분이 0인 점을 모든 곳에서 정상 역함수인 것처럼 나누지 않습니다. 특이점의 처리와 지지집합을 별도로 살펴야 합니다.

이 절의 다변수·제곱 변환은 이론 예시입니다. 앞 실습 API가 계산하는 것은 가역 1차원 아핀 변환입니다. 버튼에서 지원하는 범위와 이론적으로 설명한 일반식을 구분하는 것이 재현에 중요합니다. 다음 장의 표현 학습에서도 좌표를 축약하면 밀도를 그대로 옮길 수 없는 이유로 이어집니다.

fX(x)=fZ(f−1(x))∣det⁡Jf−1(x)∣f_X(x)=f_Z(f^{-1}(x))\left|\det J_{f^{-1}}(x)\right|
fZ2(x)=fZ(x)+fZ(−x)2x,x>0f_{Z^2}(x)=\frac{f_Z(\sqrt{x})+f_Z(-\sqrt{x})}{2\sqrt{x}},\qquad x>0

In multiple dimensions, the absolute Jacobian determinant describes local volume change. With a suitable inverse and differentiability conditions, multiply base density by the inverse volume factor. A single coordinate derivative cannot replace the actual determinant.

Without injectivity, the formula changes. The map x=z² sends both z and−z to the same value. At positive x, sum both inverse branches, each weighted by 1/(2√x). Keeping one branch loses probability.

For a squared standard normal, density can diverge near zero while interval probabilities remain integrable. Do not divide through a zero derivative as if a regular inverse existed everywhere. Support and singular points require separate treatment.

These multivariate and squared-map examples are theoretical extensions. The preceding API supports invertible one-dimensional affine maps. Distinguishing theoretical scope from executable scope is part of reproducibility, especially when later representation methods reduce dimension.

fX(x)=fZ(f−1(x))∣det⁡Jf−1(x)∣f_X(x)=f_Z(f^{-1}(x))\left|\det J_{f^{-1}}(x)\right|
fZ2(x)=fZ(x)+fZ(−x)2x,x>0f_{Z^2}(x)=\frac{f_Z(\sqrt{x})+f_Z(-\sqrt{x})}{2\sqrt{x}},\quad x>0
심화Extension

20. 정규화 흐름: 가역변환을 이어 붙인다20. Normalizing flows compose invertible maps

간단한 기준 분포에서 시작해 가역변환을 여러 번 적용하면 더 복잡한 모양의 분포를 만들 수 있습니다. 각 단계의 역함수와 로그 절대 야코비안 행렬식을 계산할 수 있도록 설계하는 것이 정규화 흐름의 핵심입니다. “신경망을 여러 겹 쌓았다”는 사실만으로 가역성이 보장되지는 않습니다.

중간 좌표 h0=z,h1=f1(h0),…를 두면 최종 로그밀도는 기준 로그밀도에서 각 단계 로그 부피 배율을 빼는 합입니다. 행렬식의 곱이 로그의 합이 되므로 계산을 정리할 수 있습니다. 배율을 계산하는 지점은 각 단계의 실제 중간 좌표여야 합니다.

1차원 예로 u=−2z+3, x=u/2−1을 합치면 x=−z+1/2입니다. 두 절대 배율은 2와 1/2이어서 전체는 1입니다. 그래서 최종 분산은 원 분산과 같고 위치와 방향만 바뀝니다. 중간 단계의 밀도 보정이 서로 상쇄되는 것을 직접 계산할 수 있습니다.

우도를 계산하기 쉬운 흐름도 참 자료 생성 과정을 발견했다는 보증은 아닙니다. 또 연속 밀도를 계산하는 흐름에 정수 픽셀을 넣었다고 자동으로 픽셀 확률질량이 생기지 않습니다. 구간 적분 또는 명시적인 dequantization·측정 모형이 필요합니다. 이 장은 작은 아핀 계산을 익히고 일반 흐름의 조건을 읽는 단계입니다.

log⁡pX(x)=log⁡pZ(z)−∑k=1Klog⁡∣det⁡Jfk(hk−1)∣\log p_X(x)=\log p_Z(z)-\sum_{k=1}^K\log\left|\det J_{f_k}(h_{k-1})\right|

A normalizing flow starts with a simple base distribution and composes invertible maps. Its design makes both inversion and log absolute Jacobian determinants tractable. Stacking generic neural layers does not by itself guarantee invertibility.

Let h0=z and hk=fk(hk−1). The final log density subtracts each stage’s log volume factor from base log density. Determinant products become log sums, evaluated at the appropriate intermediate coordinates.

Composing u=−2 z+3 and x=u/2−1 gives x=−z+1/2. Absolute scales 2 and 1/2 multiply to one, so final variance is unchanged. The intermediate density corrections cancel.

Tractable likelihood does not certify discovery of the true process. A continuous flow evaluated at integer pixels does not automatically give discrete pixel mass. It needs interval integration or an explicit dequantization/measurement model. Our affine exercise prepares you to inspect these general conditions.

log⁡pX(x)=log⁡pZ(z)−∑k=1Klog⁡∣det⁡Jfk(hk−1)∣\log p_X(x)=\log p_Z(z)-\sum_{k=1}^K\log\left|\det J_{f_k}(h_{k-1})\right|
기초Foundations

21. 확산의 첫 계단: 비트를 조금씩 뒤집는다21. Diffusion starts with a finite noising chain

복잡한 이미지 확산에 바로 들어가기 전에 0 또는 1 한 칸으로 시작합니다. 매 단계마다 이전 비트를 β의 확률로 뒤집고 1−β의 확률로 유지합니다. β=1/4이면 네 번 중 한 번의 비중을 뒤집기에 주는 전이 모형입니다. 실습에서는 β를 0 이상 1/2 이하로 제한해 신호가 단계마다 반전되지 않는 단순 경로를 택합니다.

여기서 x0는 원래 깨끗한 비트이고 xt는 t단계 뒤 상태입니다. 새 비트는 바로 이전 상태만 보고 만들어집니다. 이는 선언한 마르코프 전이 구조입니다. 실제 손글씨 픽셀의 독립성이나 실제 영상이 만들어지는 물리 법칙을 측정했다는 뜻이 아닙니다.

두 번 뒤집으면 원 상태로 돌아옵니다. 따라서 두 단계의 β를 단순히 더한 값이 최종 뒤집힘 확률은 아닙니다. β가 매번 1/4이면 딱 한 번 뒤집는 두 경우의 합이 2×(1/4)(3/4)=3/8입니다. 모두 유지한 9/16과 두 번 뒤집은 1/16은 원 상태에 남는 경우입니다.

여러 칸을 독립적으로 뒤집는 모형은 손글씨를 눈으로 이해하기 좋은 장난감 실험입니다. 원 픽셀값은 0부터 16까지의 관측이고, 여기서는 8 이상을 1로 정한 이진화도 별도 변환입니다. 관측·이진화·가정한 잡음의 세 층을 화면에서 구별합니다.

P(xt≠xt−1)=βt,P(xt=xt−1)=1−βtP(x_t\ne x_{t-1})=\beta_t,\qquad P(x_t=x_{t-1})=1-\beta_t

Before image diffusion, start with one binary position. At step t, flip the previous bit with probability beta and retain it otherwise. We restrict beta to[0,1/2], giving a simple non-sign-reversing signal schedule.

The clean state is x0 and the state after t steps is xt. Each new state depends only on its predecessor under the stipulated Markov model. This does not establish independent real pixels or a physical image-generation law.

Two flips restore the original bit. Two beta values therefore cannot simply be added. With beta 1=beta 2=1/4, exactly one flip has probability 2(1/4)(3/4)=3/8. No flips and two flips together retain the original state.

Independent bit noising provides a visible teaching experiment. Actual digit pixels are observed counts 0..16; thresholding at 8 is itself a declared transformation. Keep original counts, binary coding and stipulated noise separate.

P(xt≠xt−1)=βt,P(xt=xt−1)=1−βtP(x_t\ne x_{t-1})=\beta_t,\qquad P(x_t=x_{t-1})=1-\beta_t
기초Foundations

22. 신호가 얼마나 남았는지 분수로 계산하기22. Calculate how much signal remains

현재 1일 확률을 pt−1라고 합시다. 다음에 1이 되는 길은 이전 1을 유지하는 길과 이전 0을 뒤집는 길입니다. 더하면 pt=βt+(1−2βt)pt−1입니다. 1/2를 양변에서 빼면 1/2와의 차이가 매번 1−2βt만큼 줄어드는 것을 볼 수 있습니다.

남은 신호 rt를 이 배율들의 곱으로 정의합니다. 깨끗한 비트가 0이면 t단계의 1 확률은 (1−rt)/2이고, 깨끗한 비트가 1이면 (1+rt)/2입니다. β=1/4 두 번이면 rt=1/4여서 원 0의 1 확률은 3/8, 원 1에서는 5/8입니다.

모든 β가 1/2보다 작고 단계 수가 유한하면 rt는 양수입니다. 깨끗한 값에 대한 정보가 완전히 사라졌다고 자동으로 말할 수 없습니다. 한 단계 β=1/2를 넣으면 이 장난감 모형에서는 그 뒤 신호가 정확히 0이 됩니다. 일반 가우스 확산이 유한 단계에서 자동으로 정한 기준 분포와 같아진다는 뜻은 아닙니다.

처음 분포가 이미 공정한 비트라면 각 시점의 주변분포는 계속 1/2입니다. 그래도 β<1/2인 한 x0와 xt 사이에는 의존이 남을 수 있습니다. 주변분포가 공정하다는 말과 원본과 독립이라는 말은 다릅니다. 실습은 깨끗한 값 조건부 분포와 선언한 사전 주변분포를 나란히 표시합니다.

rt=∏s=1t(1−2βs),P(xt=1∣x0)=12+rt(x0−12)r_t=\prod_{s=1}^t(1-2\beta_s),\qquad P(x_t=1\mid x_0)=\frac12+r_t\left(x_0-\frac12\right)

Let the current one-probability be pt−1. A one results from retaining a previous one or flipping a previous zero, yielding pt=beta+(1−2 beta)pt−1. Subtracting 1/2 shows its deviation shrinking by 1−2 beta each step.

Define retained signal rt as the product of these factors. Conditional on clean zero, one-probability is(1−rt)/2; conditional on clean one it is(1+rt)/2. Two flips at rate 1/4 give rt=1/4 and probabilities 3/8 or 5/8.

At finite time with every beta below 1/2, rt stays positive. Complete loss of clean information is not automatic. A beta 1/2 step makes this particular toy signal exactly zero; that does not prove a general Gaussian diffusion reaches its reference prior at finite time.

If the initial marginal is already fair, every later marginal remains fair. Yet the original and noised bits can remain dependent. Fair marginals and independence from x0 are different claims. The lab displays both clean-conditioned and prior-marginal laws.

rt=∏s=1t(1−2βs),P(xt=1∣x0)=12+rt(x0−12)r_t=\prod_{s=1}^t(1-2\beta_s),\qquad P(x_t=1\mid x_0)=\frac12+r_t\left(x_0-\frac12\right)
기초Foundations

23. 원본을 아는 역방향: 깨끗한 값 조건부 다리23. The reverse bridge that knows the clean value

원 0에서 β=1/4로 두 번 잡음을 넣었고 마지막 값 1을 보았다고 합시다. 한 단계 전이 1일 확률은 원본을 아는 조건에서 1/4입니다. 그 1을 유지해 마지막 1이 되는 결합확률은 (1/4)(3/4)=3/16입니다. 한 단계 전이 0이었다가 뒤집혀 마지막 1이 되는 확률도 (3/4)(1/4)=3/16입니다.

마지막 1의 증거는 3/8이므로, 원본 0과 마지막 1을 둘 다 아는 조건에서 이전 값이 1일 확률은 (3/16)/(3/8)=1/2입니다. 이것이 깨끗한 값 조건부 다리입니다. 앞으로 가는 전이와 베이즈를 결합해 정확히 구했습니다.

이 다리는 깨끗한 원본을 알고 있습니다. 훈련 자료에서는 원본과 스스로 넣은 잡음을 모두 가질 수 있어 이런 조건부 분포를 목표로 쓸 수 있습니다. 그러나 새로운 이미지를 생성하는 도중에는 아직 만들고 싶은 최종 원본을 알고 있지 않습니다. 원본을 넣어 계산한 답을 배포 가능한 생성 역과정이라고 부르면 순환 설명이 됩니다.

증거가 0인 조건부 다리는 미정의입니다. β=0이고 원본 0인데 관측 1을 강제로 넣은 경우가 예입니다. 실습은 그 상태를 균등분포로 바꾸지 않습니다. 가능한 조건에서만 사후를 계산한다는 앞의 베이즈 원리가 그대로 적용됩니다.

q(xt−1∣xt,x0)=q(xt∣xt−1)q(xt−1∣x0)q(xt∣x0)q(x_{t-1}\mid x_t,x_0)=\frac{q(x_t\mid x_{t-1})q(x_{t-1}\mid x_0)}{q(x_t\mid x_0)}

Start from clean zero and apply two beta 1/4 steps, observing final one. The prior step is one with clean-conditioned probability 1/4. Retaining it contributes(1/4)(3/4)=3/16; reaching final one from previous zero contributes the same 3/16.

Final-one evidence is 3/8, so the probability of previous one given both clean zero and final one is(3/16)/(3/8)=1/2. This is the clean-conditioned bridge obtained by Bayes.

The bridge knows x0. During training, an original and its artificially added noise are available, making such conditionals useful targets. During new generation the desired clean original is not already known. Feeding it into the answer is not a deployable generative reverse process.

A zero-evidence bridge remains undefined. For example, beta 0 cannot turn clean zero into observed one. The lab preserves that boundary instead of inventing a uniform conditional.

q(xt−1∣xt,x0)=q(xt∣xt−1)q(xt−1∣x0)q(xt∣x0)q(x_{t-1}\mid x_t,x_0)=\frac{q(x_t\mid x_{t-1})q(x_{t-1}\mid x_0)}{q(x_t\mid x_0)}
기초Foundations

24. 원본 없이 되돌리는 분포는 사전이 필요하다24. Reversing without the original needs a prior

이번에는 원본을 모른 채 마지막 1만 보았다고 합시다. 처음 비트가 공정하고 전이가 대칭이면 이전 시점의 주변분포도 1/2입니다. 마지막 1의 원인이 이전 1을 유지한 사건일 결합확률은 (1/2)(3/4)=3/8이고, 마지막 1 자체의 확률은 1/2이므로 이전 1의 사후는 3/4입니다. 앞 절의 다리 1/2와 다른 답입니다.

차이는 계산 실수가 아니라 조건 정보의 차이입니다. 원본 0을 알고 있는 q(xprev|xt,x0)와, 원본을 모르는 p(xprev|xt)는 서로 다른 질문입니다. 후자는 이전 시점의 주변분포가 필요하며, 그 분포는 시작 자료의 분포와 앞으로 넣은 잡음에서 정해집니다.

실제 자료의 분포를 모를 때에는 신경망 역과정 pθ를 학습하여 근사할 수 있습니다. 이 장난감 실습은 선언한 독립 베르누이 사전을 정확히 사용하므로 학습된 역신경망이 아닙니다. 실제 이미지 픽셀의 상관을 이 사전이 모두 표현한다고 주장하지 않습니다.

역방향 경로를 계산할 때 마지막 상태를 직접 입력했다면 그 상태를 조건으로 한 경로입니다. 마지막 상태도 모형의 주변분포에서 추출했는지 여부를 구분하세요. 실습은 조건부 경로확률과 마지막 질량을 곱한 결합 경로확률을 따로 남기며, 임의로 지정한 점을 독립 난수라고 부르지 않습니다.

p(xt−1∣xt)=q(xt∣xt−1)pt−1(xt−1)pt(xt)p(x_{t-1}\mid x_t)=\frac{q(x_t\mid x_{t-1})p_{t-1}(x_{t-1})}{p_t(x_t)}

Now suppose only final one is known. A fair initial bit and symmetric transitions keep the prior-time marginal fair. Retaining previous one contributes(1/2)(3/4)=3/8; final-one evidence is 1/2. Thus previous one has posterior 3/4, unlike the clean-conditioned bridge 1/2.

The discrepancy reflects different conditioning information. The bridge knows x0; the marginal reverse does not. The latter needs the prior-time marginal, itself determined by the initial data law and forward noising.

When that law is unknown, a learned reverse network can approximate it. Our exact toy uses a stipulated independent Bernoulli prior rather than a trained reverse network. It does not capture all real pixel correlations.

A reverse path beginning from a supplied terminal state is conditioned on that state. Distinguish this from sampling the terminal state under the model. The lab retains conditional path probability and joint path probability separately; supplied points do not certify IID sampling.

p(xt−1∣xt)=q(xt∣xt−1)pt−1(xt−1)pt(xt)p(x_{t-1}\mid x_t)=\frac{q(x_t\mid x_{t-1})p_{t-1}(x_{t-1})}{p_t(x_t)}
기초Foundations

25. 실제 손글씨에서 원본·잡음·역확률을 나란히 보기25. Inspect genuine digits and declared noising separately

아래 실습의 실제 이미지 세 장은 보존된 UCI Optical Recognition of Handwritten Digits 자료에서 숫자 0,1,9의 첫 원행을 선택한 것입니다. 각 이미지는 8×8이며 각 칸에 0부터 16까지의 원 계수가 있습니다. 28×28 MNIST 이미지로 바꾸어 소개하지 않습니다. 숫자 라벨은 원 자료의 표지이고 노이즈를 넣어 새로 관측한 라벨이 아닙니다.

원 계수 8 이상을 1로 바꾸는 기준을 선언했습니다. 이 기준을 바꾼 이진 이미지는 원본과 다른 변환 자료입니다. 여기에 단계별 비트 뒤집기 확률을 넣어 깨끗한 값 조건부 1 확률, 사전 주변 1 확률, 두 종류의 역확률을 봅니다. 확률 1/2인 칸을 회색으로 그렸다고 실제 관측 픽셀이 회색으로 바뀐 것은 아닙니다. 기대확률 지도와 표본 상태를 구분하세요.

먼저 한 칸 또는 짧은 비트 벡터로 β=1/4 두 단계를 계산한 뒤 이미지로 넓혀 보세요. 원본을 아는 다리와 원본 대신 선언 사전을 사용하는 역확률을 나란히 읽습니다. 끝 시점이 기준의 공정한 비트와 얼마나 다른지도 확인합니다. 실습의 합산 TV 값은 독립 곱 모형의 상계이며 실제 전체 영상의 정확한 TV라고 부르지 않습니다.

직접 경로를 만들려면 각 단계·각 칸의 0 이상 1 미만 점을 입력합니다. 같은 점 표를 주면 같은 경로가 나옵니다. 원 이미지 확대와 전체 수치·코드도 유지합니다. 생성 결과가 원 숫자로 보인다는 인상만으로 노이즈 제거 성능이나 학습된 DDPM의 품질을 측정한 것은 아닙니다.

원 계수·선언 변환의 전체 값

아래 확률 지도는 β=1/4 네 단계와 초기 독립 P(1)=1/4를 선언한 계산입니다. 마지막 관측은 비교를 위해 원 이진값으로 지정했고 새로 표본화한 잡음 관측이 아닙니다. 원 계수와 변환된 확률을 구분하세요.

실제 숫자 0
실제 숫자 0 · 원 벡터 확대 · PNG
숫자 0 전체 64칸 — 전체 64행
숫자 0 전체 64칸
칸원 계수이진값4단계 P1|원본4단계 주변 P1이전 P1|끝·원본이전 P1|끝·사전
00015/3231/647/345/22
11015/3231/647/345/22
26015/3231/647/345/22
315117/3231/6427/3445/62
412117/3231/6427/3445/62
51015/3231/647/345/22
60015/3231/647/345/22
70015/3231/647/345/22
80015/3231/647/345/22
97015/3231/647/345/22
1016117/3231/6427/3445/62
116015/3231/647/345/22
126015/3231/647/345/22
1310117/3231/6427/3445/62
140015/3231/647/345/22
150015/3231/647/345/22
160015/3231/647/345/22
178117/3231/6427/3445/62
1816117/3231/6427/3445/62
192015/3231/647/345/22
200015/3231/647/345/22
2111117/3231/6427/3445/62
222015/3231/647/345/22
230015/3231/647/345/22
240015/3231/647/345/22
255015/3231/647/345/22
2616117/3231/6427/3445/62
273015/3231/647/345/22
280015/3231/647/345/22
295015/3231/647/345/22
307015/3231/647/345/22
310015/3231/647/345/22
320015/3231/647/345/22
337015/3231/647/345/22
3413117/3231/6427/3445/62
353015/3231/647/345/22
360015/3231/647/345/22
378117/3231/6427/3445/62
387015/3231/647/345/22
390015/3231/647/345/22
400015/3231/647/345/22
414015/3231/647/345/22
4212117/3231/6427/3445/62
430015/3231/647/345/22
441015/3231/647/345/22
4513117/3231/6427/3445/62
465015/3231/647/345/22
470015/3231/647/345/22
480015/3231/647/345/22
490015/3231/647/345/22
5014117/3231/6427/3445/62
519117/3231/6427/3445/62
5215117/3231/6427/3445/62
539117/3231/6427/3445/62
540015/3231/647/345/22
550015/3231/647/345/22
560015/3231/647/345/22
570015/3231/647/345/22
586015/3231/647/345/22
5914117/3231/6427/3445/62
607015/3231/647/345/22
611015/3231/647/345/22
620015/3231/647/345/22
630015/3231/647/345/22
실제 숫자 1
실제 숫자 1 · 원 벡터 확대 · PNG
숫자 1 전체 64칸 — 전체 64행
숫자 1 전체 64칸
칸원 계수이진값4단계 P1|원본4단계 주변 P1이전 P1|끝·원본이전 P1|끝·사전
00015/3231/647/345/22
10015/3231/647/345/22
20015/3231/647/345/22
33015/3231/647/345/22
416117/3231/6427/3445/62
511117/3231/6427/3445/62
61015/3231/647/345/22
70015/3231/647/345/22
80015/3231/647/345/22
90015/3231/647/345/22
100015/3231/647/345/22
118117/3231/6427/3445/62
1216117/3231/6427/3445/62
1316117/3231/6427/3445/62
141015/3231/647/345/22
150015/3231/647/345/22
160015/3231/647/345/22
170015/3231/647/345/22
180015/3231/647/345/22
199117/3231/6427/3445/62
2016117/3231/6427/3445/62
2114117/3231/6427/3445/62
220015/3231/647/345/22
230015/3231/647/345/22
240015/3231/647/345/22
251015/3231/647/345/22
267015/3231/647/345/22
2716117/3231/6427/3445/62
2816117/3231/6427/3445/62
2911117/3231/6427/3445/62
300015/3231/647/345/22
310015/3231/647/345/22
320015/3231/647/345/22
339117/3231/6427/3445/62
3416117/3231/6427/3445/62
3516117/3231/6427/3445/62
3616117/3231/6427/3445/62
378117/3231/6427/3445/62
380015/3231/647/345/22
390015/3231/647/345/22
400015/3231/647/345/22
411015/3231/647/345/22
428117/3231/6427/3445/62
436015/3231/647/345/22
4416117/3231/6427/3445/62
457015/3231/647/345/22
460015/3231/647/345/22
470015/3231/647/345/22
480015/3231/647/345/22
490015/3231/647/345/22
500015/3231/647/345/22
515015/3231/647/345/22
5216117/3231/6427/3445/62
539117/3231/6427/3445/62
540015/3231/647/345/22
550015/3231/647/345/22
560015/3231/647/345/22
570015/3231/647/345/22
580015/3231/647/345/22
592015/3231/647/345/22
6014117/3231/6427/3445/62
6114117/3231/6427/3445/62
621015/3231/647/345/22
630015/3231/647/345/22
실제 숫자 9
실제 숫자 9 · 원 벡터 확대 · PNG
숫자 9 전체 64칸 — 전체 64행
숫자 9 전체 64칸
칸원 계수이진값4단계 P1|원본4단계 주변 P1이전 P1|끝·원본이전 P1|끝·사전
00015/3231/647/345/22
10015/3231/647/345/22
20015/3231/647/345/22
34015/3231/647/345/22
413117/3231/6427/3445/62
516117/3231/6427/3445/62
616117/3231/6427/3445/62
73015/3231/647/345/22
80015/3231/647/345/22
90015/3231/647/345/22
108117/3231/6427/3445/62
1116117/3231/6427/3445/62
129117/3231/6427/3445/62
1312117/3231/6427/3445/62
1416117/3231/6427/3445/62
154015/3231/647/345/22
160015/3231/647/345/22
177015/3231/647/345/22
1816117/3231/6427/3445/62
193015/3231/647/345/22
203015/3231/647/345/22
2115117/3231/6427/3445/62
2213117/3231/6427/3445/62
230015/3231/647/345/22
240015/3231/647/345/22
259117/3231/6427/3445/62
2615117/3231/6427/3445/62
2714117/3231/6427/3445/62
2816117/3231/6427/3445/62
2916117/3231/6427/3445/62
306015/3231/647/345/22
310015/3231/647/345/22
320015/3231/647/345/22
331015/3231/647/345/22
348117/3231/6427/3445/62
357015/3231/647/345/22
3612117/3231/6427/3445/62
3715117/3231/6427/3445/62
380015/3231/647/345/22
390015/3231/647/345/22
400015/3231/647/345/22
410015/3231/647/345/22
420015/3231/647/345/22
430015/3231/647/345/22
4413117/3231/6427/3445/62
4510117/3231/6427/3445/62
460015/3231/647/345/22
470015/3231/647/345/22
480015/3231/647/345/22
490015/3231/647/345/22
500015/3231/647/345/22
513015/3231/647/345/22
5215117/3231/6427/3445/62
536015/3231/647/345/22
540015/3231/647/345/22
550015/3231/647/345/22
560015/3231/647/345/22
570015/3231/647/345/22
580015/3231/647/345/22
595015/3231/647/345/22
6015117/3231/6427/3445/62
614015/3231/647/345/22
620015/3231/647/345/22
630015/3231/647/345/22

The three genuine images below are the first retained source rows for digits 0,1,9 in UCI Optical Recognition of Handwritten Digits. Each has an 8×8 grid of native counts 0..16. They are not 28×28 MNIST images. Digit labels are original metadata, not newly observed outcomes after noising.

We explicitly threshold counts at 8 to obtain binary positions. These coded images differ from the originals. Inspect clean-conditioned one-probabilities, prior marginals and both reverse conditionals under declared flip rates. A gray probability cell is an expectation display, not a newly observed gray pixel.

Begin with a short bit vector and two beta 1/4 steps, then inspect an image. Compare the clean bridge with the reverse under a stipulated prior. Terminal reference distance also matters: the displayed product-law TV quantity is an upper bound, not exact joint image TV.

To construct a path, supply one half-open-unit-interval point per step and position. Reusing points reproduces the path. Original enlargement and complete values/code remain available. A visually plausible output is not measured denoising performance or evidence of trained DDPM quality.

Complete original counts and declared transforms

These maps stipulate four beta 1/4 steps and independent initial P(1)=1/4. Terminal observations are set to clean-coded values for conditional comparison, not newly sampled noisy measurements. Keep native counts separate from modeled probabilities.

Actual digit 0
Actual digit 0 · Original vector · PNG
Digit 0: all 64 positions — all 64 rows
Digit 0: all 64 positions
PositionNative countCoded bitStep 4 P(1 | clean)Step 4 marginal P(1)Previous P(1 | end, clean)Previous P(1 | end, prior)
00015/3231/647/345/22
11015/3231/647/345/22
26015/3231/647/345/22
315117/3231/6427/3445/62
412117/3231/6427/3445/62
51015/3231/647/345/22
60015/3231/647/345/22
70015/3231/647/345/22
80015/3231/647/345/22
97015/3231/647/345/22
1016117/3231/6427/3445/62
116015/3231/647/345/22
126015/3231/647/345/22
1310117/3231/6427/3445/62
140015/3231/647/345/22
150015/3231/647/345/22
160015/3231/647/345/22
178117/3231/6427/3445/62
1816117/3231/6427/3445/62
192015/3231/647/345/22
200015/3231/647/345/22
2111117/3231/6427/3445/62
222015/3231/647/345/22
230015/3231/647/345/22
240015/3231/647/345/22
255015/3231/647/345/22
2616117/3231/6427/3445/62
273015/3231/647/345/22
280015/3231/647/345/22
295015/3231/647/345/22
307015/3231/647/345/22
310015/3231/647/345/22
320015/3231/647/345/22
337015/3231/647/345/22
3413117/3231/6427/3445/62
353015/3231/647/345/22
360015/3231/647/345/22
378117/3231/6427/3445/62
387015/3231/647/345/22
390015/3231/647/345/22
400015/3231/647/345/22
414015/3231/647/345/22
4212117/3231/6427/3445/62
430015/3231/647/345/22
441015/3231/647/345/22
4513117/3231/6427/3445/62
465015/3231/647/345/22
470015/3231/647/345/22
480015/3231/647/345/22
490015/3231/647/345/22
5014117/3231/6427/3445/62
519117/3231/6427/3445/62
5215117/3231/6427/3445/62
539117/3231/6427/3445/62
540015/3231/647/345/22
550015/3231/647/345/22
560015/3231/647/345/22
570015/3231/647/345/22
586015/3231/647/345/22
5914117/3231/6427/3445/62
607015/3231/647/345/22
611015/3231/647/345/22
620015/3231/647/345/22
630015/3231/647/345/22
Actual digit 1
Actual digit 1 · Original vector · PNG
Digit 1: all 64 positions — all 64 rows
Digit 1: all 64 positions
PositionNative countCoded bitStep 4 P(1 | clean)Step 4 marginal P(1)Previous P(1 | end, clean)Previous P(1 | end, prior)
00015/3231/647/345/22
10015/3231/647/345/22
20015/3231/647/345/22
33015/3231/647/345/22
416117/3231/6427/3445/62
511117/3231/6427/3445/62
61015/3231/647/345/22
70015/3231/647/345/22
80015/3231/647/345/22
90015/3231/647/345/22
100015/3231/647/345/22
118117/3231/6427/3445/62
1216117/3231/6427/3445/62
1316117/3231/6427/3445/62
141015/3231/647/345/22
150015/3231/647/345/22
160015/3231/647/345/22
170015/3231/647/345/22
180015/3231/647/345/22
199117/3231/6427/3445/62
2016117/3231/6427/3445/62
2114117/3231/6427/3445/62
220015/3231/647/345/22
230015/3231/647/345/22
240015/3231/647/345/22
251015/3231/647/345/22
267015/3231/647/345/22
2716117/3231/6427/3445/62
2816117/3231/6427/3445/62
2911117/3231/6427/3445/62
300015/3231/647/345/22
310015/3231/647/345/22
320015/3231/647/345/22
339117/3231/6427/3445/62
3416117/3231/6427/3445/62
3516117/3231/6427/3445/62
3616117/3231/6427/3445/62
378117/3231/6427/3445/62
380015/3231/647/345/22
390015/3231/647/345/22
400015/3231/647/345/22
411015/3231/647/345/22
428117/3231/6427/3445/62
436015/3231/647/345/22
4416117/3231/6427/3445/62
457015/3231/647/345/22
460015/3231/647/345/22
470015/3231/647/345/22
480015/3231/647/345/22
490015/3231/647/345/22
500015/3231/647/345/22
515015/3231/647/345/22
5216117/3231/6427/3445/62
539117/3231/6427/3445/62
540015/3231/647/345/22
550015/3231/647/345/22
560015/3231/647/345/22
570015/3231/647/345/22
580015/3231/647/345/22
592015/3231/647/345/22
6014117/3231/6427/3445/62
6114117/3231/6427/3445/62
621015/3231/647/345/22
630015/3231/647/345/22
Actual digit 9
Actual digit 9 · Original vector · PNG
Digit 9: all 64 positions — all 64 rows
Digit 9: all 64 positions
PositionNative countCoded bitStep 4 P(1 | clean)Step 4 marginal P(1)Previous P(1 | end, clean)Previous P(1 | end, prior)
00015/3231/647/345/22
10015/3231/647/345/22
20015/3231/647/345/22
34015/3231/647/345/22
413117/3231/6427/3445/62
516117/3231/6427/3445/62
616117/3231/6427/3445/62
73015/3231/647/345/22
80015/3231/647/345/22
90015/3231/647/345/22
108117/3231/6427/3445/62
1116117/3231/6427/3445/62
129117/3231/6427/3445/62
1312117/3231/6427/3445/62
1416117/3231/6427/3445/62
154015/3231/647/345/22
160015/3231/647/345/22
177015/3231/647/345/22
1816117/3231/6427/3445/62
193015/3231/647/345/22
203015/3231/647/345/22
2115117/3231/6427/3445/62
2213117/3231/6427/3445/62
230015/3231/647/345/22
240015/3231/647/345/22
259117/3231/6427/3445/62
2615117/3231/6427/3445/62
2714117/3231/6427/3445/62
2816117/3231/6427/3445/62
2916117/3231/6427/3445/62
306015/3231/647/345/22
310015/3231/647/345/22
320015/3231/647/345/22
331015/3231/647/345/22
348117/3231/6427/3445/62
357015/3231/647/345/22
3612117/3231/6427/3445/62
3715117/3231/6427/3445/62
380015/3231/647/345/22
390015/3231/647/345/22
400015/3231/647/345/22
410015/3231/647/345/22
420015/3231/647/345/22
430015/3231/647/345/22
4413117/3231/6427/3445/62
4510117/3231/6427/3445/62
460015/3231/647/345/22
470015/3231/647/345/22
480015/3231/647/345/22
490015/3231/647/345/22
500015/3231/647/345/22
513015/3231/647/345/22
5215117/3231/6427/3445/62
536015/3231/647/345/22
540015/3231/647/345/22
550015/3231/647/345/22
560015/3231/647/345/22
570015/3231/647/345/22
580015/3231/647/345/22
595015/3231/647/345/22
6015117/3231/6427/3445/62
614015/3231/647/345/22
620015/3231/647/345/22
630015/3231/647/345/22
심화Extension

26. 가우스 확산으로 넘어가는 다리26. Bridge to Gaussian diffusion

이미지의 연속 좌표에서는 비트를 뒤집는 대신 가우스 잡음을 더할 수 있습니다. αt=1−βt로 두고 다음 상태를 √αt배 한 이전 값에 표준정규 잡음을 √βt배 더해 만듭니다. 여기의 β는 정규 전이의 분산 계수입니다. 앞 이진 실습의 뒤집힘 확률과 같은 기호를 쓸 뿐 동일한 전이식이 아닙니다.

매 단계 잡음이 독립이고 정한 0<βt<1 스케줄이면 x0 조건부 평균은 √ᾱt x0, 분산은 (1−ᾱt)I가 됩니다. ᾱt는 α의 곱입니다. 그래서 임의 시점 t의 잡음 관측을 한 번에 만드는 표현을 쓸 수 있습니다. 이 식은 실제 자료가 가우스라는 주장이 아니라 자료에 넣기로 정한 앞으로 가는 잡음 법칙입니다.

가우스 전이에서도 원본을 아는 다리 q(xt−1|xt,x0)를 계산할 수 있습니다. t≥2에서 아래 분산은 양수 스케줄 아래 정의됩니다. t=1에서는 ᾱ0=1이어서 다리 분산이 0이고 원본이 이미 알려진 점질량입니다. 그것을 보통 양의 분산 가우스밀도로 나누어 계산하지 않습니다.

이 절은 가우스 DDPM 이론을 읽기 위한 수식 다리입니다. 앞의 실행 버튼은 유한 이진 모형을 계산합니다. 가우스나 신경망 이미지를 실제로 훈련·표본화했다고 주장하지 않습니다. 먼저 평균·분산·독립 잡음 조건을 이해한 뒤 아래 원 논문의 전개와 연결하세요.

q(xt∣xt−1)=N(αtxt−1,βtI),αˉt=∏s=1tαsq(x_t\mid x_{t-1})=\mathcal N(\sqrt{\alpha_t}x_{t-1},\beta_t I),\quad \bar\alpha_t=\prod_{s=1}^t\alpha_s
xt=αˉtx0+1−αˉt ϵ,ϵ∼N(0,I)x_t=\sqrt{\bar\alpha_t}x_0+\sqrt{1-\bar\alpha_t}\,\epsilon,\quad\epsilon\sim\mathcal N(0,I)
β~t=βt1−αˉt−11−αˉt\widetilde\beta_t=\beta_t\frac{1-\bar\alpha_{t-1}}{1-\bar\alpha_t}

For continuous coordinates, add Gaussian noise instead of flipping bits. With alpha=1−beta, scale the previous state by√alpha and add standard-normal noise scaled by√beta. Beta here is a Gaussian transition variance coefficient, not the binary lab’s identical transition rule.

Under independent stage noises and 0<beta<1, the clean-conditioned mean becomes√alpha-bar times x0 and covariance(1−alpha-bar)I. This permits direct construction of any noised time. It specifies artificial forward noise; it does not assert that the original data distribution is Gaussian.

A Gaussian clean-conditioned bridge is also available. Its displayed variance applies regularly for t≥2. At t 1, alpha-bar-zero is 1 and bridge variance is zero because the clean endpoint is known: a point mass, not an ordinary positive-variance Gaussian density.

These formulas bridge to Gaussian DDPM theory. The executable lab remains a finite binary model; no Gaussian image network was trained or sampled. Understand means, variances and noise independence before connecting the derivation to the primary paper.

q(xt∣xt−1)=N(αtxt−1,βtI),αˉt=∏s=1tαsq(x_t\mid x_{t-1})=\mathcal N(\sqrt{\alpha_t}x_{t-1},\beta_t I),\quad \bar\alpha_t=\prod_{s=1}^t\alpha_s
xt=αˉtx0+1−αˉt ϵ,ϵ∼N(0,I)x_t=\sqrt{\bar\alpha_t}x_0+\sqrt{1-\bar\alpha_t}\,\epsilon,\quad\epsilon\sim\mathcal N(0,I)
β~t=βt1−αˉt−11−αˉt\widetilde\beta_t=\beta_t\frac{1-\bar\alpha_{t-1}}{1-\bar\alpha_t}
심화Extension

27. 잡음 맞히기 손실과 변분 목적은 언제 다른가27. Noise prediction and variational objectives differ

가우스 역모형의 평균을 직접 예측하는 대신 넣었던 잡음 ε를 예측하도록 매개화할 수 있습니다. xt와 t에서 εθ를 출력하면 알려진 스케줄과 함께 역평균을 계산합니다. 이것은 원본 x0를 생성 단계의 입력으로 알고 있어야 한다는 뜻이 아닙니다. 훈련에서는 원본으로 잡음 자료를 만들고, 생성에서는 현재 xt와 t만 주는 구분이 중요합니다.

전체 변분 경로 목적에는 끝 잡음 분포와 기준 사전의 KL, 중간 다리와 역모형의 KL들, 원본을 재구성하는 끝점 관측 우도가 들어갑니다. 끝 시점의 분포가 기준 사전과 정확히 같지 않다면 첫 KL이 저절로 없어지는 것은 아닙니다. t=1 끝점도 중간 단계의 양의 가우스 분산 식과 따로 처리합니다.

고정된 역분산 σt² 아래 평균 오차를 잡음 오차로 바꾸면 시점별 계수가 곱해진 제곱오차가 나옵니다. 각 시점을 똑같이 뽑고 가중치 없이 ε와 εθ의 차이를 제곱하는 단순 손실은 유용할 수 있지만 원래 변분 목적과 동일한 가중치는 아닐 수 있습니다. 분산까지 학습하면 관련 로그분산·분산비 항도 고려해야 합니다.

모형을 읽을 때 “무엇을 예측하는가”, “시점을 어떤 분포로 뽑는가”, “손실의 가중치는 무엇인가”, “샘플러는 어떤 역분산을 쓰는가”를 나누어 적어 보세요. 자료·목표·샘플링 알고리즘이 모두 명시되어야 재현 가능한 생성 실험이 됩니다.

μθ(xt,t)=1αt(xt−βt1−αˉtϵθ(xt,t))\mu_\theta(x_t,t)=\frac{1}{\sqrt{\alpha_t}}\left(x_t-\frac{\beta_t}{\sqrt{1-\bar\alpha_t}}\epsilon_\theta(x_t,t)\right)
wt=βt22σt2αt(1−αˉt),wt∥ϵ−ϵθ(xt,t)∥2w_t=\frac{\beta_t^2}{2\sigma_t^2\alpha_t(1-\bar\alpha_t)},\qquad w_t\|\epsilon-\epsilon_\theta(x_t,t)\|^2

A Gaussian reverse mean can be parameterized through a prediction of the added noise epsilon. Given xt and t, the network’s noise prediction combines with the schedule to produce that mean. Training constructs pairs using known originals; generation conditions on the current noised state and time, not the desired clean original.

The full variational path objective includes terminal-prior KL, intermediate bridge-to-reverse KL terms and an endpoint observation likelihood. A finite-time terminal mismatch does not vanish automatically. The first-step endpoint also differs from regular positive-variance intermediate bridges.

With fixed reverse variance, rewriting mean error as noise error yields a time-dependent weighted squared loss. Uniformly sampling times with unweighted noise MSE can be useful, but need not equal the original variational weighting. Learned variances add relevant variance and log-variance terms.

Record prediction target, time-sampling distribution, loss weights and sampler variance separately. A reproducible generative experiment specifies data, objective and sampling procedure together.

μθ(xt,t)=1αt(xt−βt1−αˉtϵθ(xt,t))\mu_\theta(x_t,t)=\frac{1}{\sqrt{\alpha_t}}\left(x_t-\frac{\beta_t}{\sqrt{1-\bar\alpha_t}}\epsilon_\theta(x_t,t)\right)
wt=βt22σt2αt(1−αˉt),wt∥ϵ−ϵθ(xt,t)∥2w_t=\frac{\beta_t^2}{2\sigma_t^2\alpha_t(1-\bar\alpha_t)},\qquad w_t\|\epsilon-\epsilon_\theta(x_t,t)\|^2
기초Foundations

28. 보기 좋은 표본·높은 우도·좋은 의사결정28. Sample appearance, likelihood and decisions

숫자처럼 보이는 표본 몇 장은 모형이 어떤 출력을 만들 수 있다는 예시입니다. 전체 분포를 얼마나 잘 표현하는지는 그 몇 장만으로 판단할 수 없습니다. 실패 표본을 숨기거나 가장 예쁜 것만 고르면 대표성도 사라집니다. 표본 선택·총 생성 수·실패율을 함께 남겨야 합니다.

보류 자료의 우도는 관측에 준 확률을 평가합니다. 하지만 사람이 중요하게 여기는 모든 시각적·의미적 특성을 한 숫자로 보장하지는 않습니다. 반대로 좋은 눈대중 품질만으로 정규화된 우도를 안다고 할 수도 없습니다. 지각 지표, 다양성·범위, 관측 단위, 중복·암기 검토는 서로 보완적인 질문입니다.

정책·개인·기업 의사결정에서는 생성 표본을 실제 예측이나 인과 효과로 오해하지 않아야 합니다. 교육·시급의 이진 조합을 생성한다고 교육을 높였을 때 같은 사람이 받을 시급을 시뮬레이션한 것이 아닙니다. 고객 속성을 만들었다고 불만을 줄일 정책 효과를 식별한 것도 아닙니다.

이 장의 실제 비교는 같은 이진 관측 단위에서 후보 우도, 선택 절차, 정확 사후와 고정 q의 간격을 읽는 것입니다. 원래 연속 지표·시급의 분포를 모두 학습했다는 주장도 아닙니다. 한계를 분명히 하면 작은 실험도 생성과 추론을 정확히 구별하는 가치 있는 사례가 됩니다.

A few recognizable digit samples demonstrate possible outputs, not distributional fidelity. Hiding failures or selecting only attractive examples further removes representativeness. Retain selection rules, total sample count and failures.

Held-out likelihood evaluates assigned probabilities, but does not guarantee every perceptual or semantic property. Attractive samples do not establish normalized likelihood either. Perception, diversity, coverage, measurement units and duplication/memorization checks address complementary questions.

Generated observations are not automatically predictions or causal effects. Sampling education/wage categories does not simulate what the same person would earn after more education. Generating customer attributes does not identify the effect of a retention intervention.

Our study compares candidate likelihoods on the same binary observations, transparent selection and the gap between exact posterior and fixed q. It does not learn the complete original continuous distributions. Explicit limits make the small experiment a useful demonstration of generation versus inference.

기초Foundations

29. 국가 사례: 성장과 물가상승을 두 비트로 바꾼다29. Country case: two coded economic indicators

실제 국가 사례는 한국·미국·일본·독일의 1980~2024년 성장률과 소비자물가 상승률을 짝지은 180개 국가·연도 관측입니다. 첫 비트는 GDP 성장률이 0보다 큰지, 둘째는 CPI 연간 상승률이 2%보다 큰지입니다. 둘째 원 변수는 CPI 지수 수준이 아니라 상승률입니다. 2%는 자료에서 발견된 최적 정책 목표가 아니라 이 학습 실험의 선언 기준입니다.

훈련은 1980~2014년 140건, 검증은 2015~2019년 20건, 시험은 2020~2024년 20건입니다. 보존된 2026년 10월 자료 빈티지를 사용하므로 과거 예측 당시에 실제 발표된 값·수정 이력을 복원한 실시간 검증은 아닙니다. 연도 순서를 지킨 분할과 실시간 자료 이용 가능성은 별개의 조건입니다.

선택된 모형은 ε=2/5, π=3/4이며 네 범주 00,01,10,11의 질량은 21/100,6/25,6/25,31/100입니다. 시험 평균 NLL은 약 1.300263 nat/관측입니다. 이 네 질량은 실제 국가 체제의 비율을 직접 센 값이 아니라 선언 혼합 모형이 적합한 확률입니다. 실제 관측 빈도와 나란히 비교해야 합니다.

예를 들어 관측 11에서 상태 1의 정확 사후는 27/31이지만 고정 q는 3/4입니다. 둘 사이 KL 간격은 약 0.053201 nat입니다. 이는 주어진 모형 아래 추론의 간격이지, 국가가 어떤 본질적 유형일 확률이나 성장·물가의 인과 구조를 발견한 결과가 아닙니다. 아래 전체 사례에서 모든 후보와 원 관측 행을 확인합니다.

국가 성장·물가: 실제 180개 국가·연도

원값은 실제 관측입니다. 이진 기준·역할·두 잠재 원형·후보 격자·고정 q는 선언한 모형 설계입니다. 로그값은 근사이고 질량·베이즈·우도 곱은 분수로 보존합니다.

원 관측과 선언 모형
항목내용
관측 수180
원형 z=0 / z=100 / 11
후보 ε1/10, 1/4, 2/5
후보 π1/4, 1/2, 3/4
선택 후보(0부터)8
인식 분포q(Z=1|x)=(bit0+bit1+1)/4; 학습하지 않은 고정식
관측 모형이산 질량; 원 연속값의 밀도 아님
선택 규칙ε별 훈련 π 승자만 검증 비교; 시험은 평가만
역할별 관측·범주 전체
역할N00011011
train1401074578
validation2010172
test2043112
아홉 후보·세 역할 전체
후보επ역할N평균 NLL훈련 π 승자검증 선택우도 곱
01/101/4train1401.79919004.04589e-110
정확값404588775706157942139083866661398402393351254585601746396034510163136827074678626292893314212305296979720651544661777606662083498893767380861978777124786240789685911820241/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4validation202.227533004.48633e-20
정확값448632864902730372669/10000000000000000000000000000000000000000
01/101/4test201.516837006.68222e-14
정확값668222222656464477634941441/10000000000000000000000000000000000000000
11/101/2train1401.454813003.51229e-89
정확값351228607749096353020843380276049534231239647233410047119190026389074034632075610633865036853894702595904544522205442514142573015461504479782007491055526589462732665899582663476631098746540001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2validation202.180493001.14941e-19
정확값1149408039922719602049/10000000000000000000000000000000000000000
11/101/2test201.194868004.18323e-11
정확값418323001831038689566944557601/10000000000000000000000000000000000000000
21/103/4train1401.281248101.25467e-78
정확값12546730483989332076494559099697765417604613170386942583857792714701614056487047573689257222500946462299256296118615590555651413370171400667431338338771331179851041752961995140543575303852708792636642161/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4validation202.174216101.30317e-19
정확값1303171655193645368229/10000000000000000000000000000000000000000
21/103/4test201.090296103.38692e-10
정확값3386922325672490048839813616961/10000000000000000000000000000000000000000
31/41/4train1401.613455007.94229e-99
정확값29973917919173995244543114432023593316241405160625242245789402012564601/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
31/41/4validation201.631612006.7298e-15
정확값8135830269/1208925819614629174706176
31/41/4test201.504517008.54934e-14
정확값103355177121/1208925819614629174706176
41/41/2train1401.352886005.53182e-83
정확값208768815425226285956547881586946715658749591272569379185597426840104162693023681640625/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
41/41/2validation201.597353001.33528e-14
정확값16142520375/1208925819614629174706176
41/41/2test201.265316001.02236e-11
정확값12359619140625/1208925819614629174706176
51/43/4train1401.20191108.3631e-74
정확값315620289414520790049960503503857344102446107121857154514356578851132905917053129828697359231241/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
51/43/4validation201.589247101.57029e-14
정확값18983603961/1208925819614629174706176
51/43/4test201.165598107.51185e-11
정확값90812685325761/1208925819614629174706176
62/51/4train1401.483231006.57214e-91
정확값71949399401777039874330671970120460019516843688837809071449087950071258283140194459152005510838990950613636615561014677837486567082352102946201/109476442525376333665916373694524697756270464209102794668520959678889928334832859491143608465790748596191406250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
62/51/4validation201.427673003.9755e-13
정확값3615693144827904/9094947017729282379150390625
62/51/4test201.456049002.25384e-13
정확값550254155510607468719841/2441406250000000000000000000000000000
72/51/2train1401.376804001.94374e-84
정확값687575270610058413844333764495321289297920335194862227456644165011380233698528335472938792669397132034851225685275459822961/353737464016668451855824972300304366432911374927310085530570894138105520257533012294512947342224925759920017160034290220932919252862236536572027034708298742771148681640625000000000000000000000000000000000000
72/51/2validation201.41511005.11106e-13
정확값4648483850010624/9094947017729282379150390625
72/51/2test201.363082001.44683e-12
정확값53898745343837567121/37252902984619140625000000000000
82/53/4train1401.294063112.08636e-79
정확값22840747449872038377121361751047844466021385424785634487614378212736103040042819823805697330819342775577981077707677513212966918863822757241468380252303081/109476442525376333665916373694524697756270464209102794668520959678889928334832859491143608465790748596191406250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
82/53/4validation201.4082115.86859e-13
정확값5337451785222144/9094947017729282379150390625
82/53/4test201.300263115.08233e-12
정확값12408021114172456631592321/2441406250000000000000000000000000000

낮은 NLL이 좋은 점수입니다. 균등 네 범주 기준은 log4≈1.386294입니다. 시험 점수로 후보를 고르지 않습니다. 1 표지는 해당 후보의 훈련 승자·최종 선택 여부입니다.

아홉 후보의 네 범주 추론 전체 — 전체 36행
아홉 후보의 네 범주 추론 전체
후보범주질량사후 Z1고정 q Z1로그 증거ELBOKL 간격
0061/1001/2441/4-0.4942963-1.3093330.815037
019/1001/41/2-2.407946-2.5517870.143841
029/1001/41/2-2.407946-2.5517870.143841
0321/10027/283/4-1.560648-1.8586390.2979917
1041/1001/821/4-0.8915981-1.4401450.5485472
119/1001/21/2-2.407946-2.4079460
129/1001/21/2-2.407946-2.4079460
1341/10081/823/4-0.8915981-1.4401450.5485472
2021/1001/281/4-1.560648-1.8586390.2979917
219/1003/41/2-2.407946-2.5517870.143841
229/1003/41/2-2.407946-2.5517870.143841
2361/100243/2443/4-0.4942963-1.3093330.815037
307/161/281/4-0.8266786-1.124670.2979917
313/161/41/2-1.673976-1.8178170.143841
323/161/41/2-1.673976-1.8178170.143841
333/163/43/4-1.673976-1.6739760
405/161/101/4-1.163151-1.2554820.09233152
413/161/21/2-1.673976-1.6739760
423/161/21/2-1.673976-1.6739760
435/169/103/4-1.163151-1.2554820.09233152
503/161/41/4-1.673976-1.6739760
513/163/41/2-1.673976-1.8178170.143841
523/163/41/2-1.673976-1.8178170.143841
537/1627/283/4-0.8266786-1.124670.2979917
6031/1004/311/4-1.171183-1.2243840.05320082
616/251/41/2-1.427116-1.5709570.143841
626/251/41/2-1.427116-1.5709570.143841
6321/1003/73/4-1.560648-1.773690.2130422
7013/504/131/4-1.347074-1.3551960.00812219
716/251/21/2-1.427116-1.4271160
726/251/21/2-1.427116-1.4271160
7313/509/133/4-1.347074-1.3551960.00812219
8021/1004/71/4-1.560648-1.773690.2130422
816/253/41/2-1.427116-1.5709570.143841
826/253/41/2-1.427116-1.5709570.143841
8331/10027/313/4-1.171183-1.2243840.05320082
선택한 원값·변환·역할 전체 — 전체 180행
선택한 원값·변환·역할 전체
관측 ID원 위치 0/1시점원값 0규칙 0비트 0원값 1규칙 1비트 1역할
KOR:1980495/12151980-1.52426391001066strictly greater than0028.6976086362016strictly greater than2 percent1train
KOR:1981494/121419817.40382133739918strictly greater than0121.351640254strictly greater than2 percent1train
KOR:1982493/121319828.46826958565821strictly greater than017.19084664006869strictly greater than2 percent1train
KOR:1983492/1212198313.4668057465528strictly greater than013.42061419498921strictly greater than2 percent1train
KOR:1984491/1211198410.6366054976723strictly greater than012.27395640001863strictly greater than2 percent1train
KOR:1985490/121019857.93879547760545strictly greater than012.45910879215274strictly greater than2 percent1train
KOR:1986489/1209198611.50298504807strictly greater than012.74998096063357strictly greater than2 percent1train
KOR:1987488/1208198712.8922089918574strictly greater than013.04966077087423strictly greater than2 percent1train
KOR:1988487/1207198812.1331951107172strictly greater than017.14609773721605strictly greater than2 percent1train
KOR:1989486/120619897.16501737923842strictly greater than015.700165445614strictly greater than2 percent1train
KOR:1990485/1205199010.0248996213899strictly greater than018.57327225728676strictly greater than2 percent1train
KOR:1991484/1204199110.8749739277708strictly greater than019.33279048161495strictly greater than2 percent1train
KOR:1992483/120319926.35159199606441strictly greater than016.21328146355184strictly greater than2 percent1train
KOR:1993482/120219936.99471791742556strictly greater than014.80099660215353strictly greater than2 percent1train
KOR:1994481/120119949.3718357757101strictly greater than016.26585950039679strictly greater than2 percent1train
KOR:1995480/120019959.7358937505409strictly greater than014.48074108557248strictly greater than2 percent1train
KOR:1996479/119919967.99042982526839strictly greater than014.92454354292753strictly greater than2 percent1train
KOR:1997478/119819976.2821926537929strictly greater than014.4389318457463strictly greater than2 percent1train
KOR:1998477/11971998-4.9389297463141strictly greater than007.51358008079306strictly greater than2 percent1train
KOR:1999476/1196199911.6172629559591strictly greater than010.812957254446369strictly greater than2 percent0train
KOR:2000475/119520009.2018583880479strictly greater than012.25916580080157strictly greater than2 percent1train
KOR:2001474/119420014.72593560322356strictly greater than014.06657587897792strictly greater than2 percent1train
KOR:2002473/119320027.74399895319569strictly greater than012.76226210296599strictly greater than2 percent1train
KOR:2003472/119220033.07472661826947strictly greater than013.51487451459939strictly greater than2 percent1train
KOR:2004471/119120045.1836368597334strictly greater than013.59066298882577strictly greater than2 percent1train
KOR:2005470/119020054.35823667337156strictly greater than012.75379162735039strictly greater than2 percent1train
KOR:2006469/118920065.24500550580342strictly greater than012.2423402851892strictly greater than2 percent1train
KOR:2007468/118820075.8419633918717strictly greater than012.53457382137932strictly greater than2 percent1train
KOR:2008467/118720083.00440451679569strictly greater than014.67389655533408strictly greater than2 percent1train
KOR:2009466/118620090.81986175641795strictly greater than012.75649654493929strictly greater than2 percent1train
KOR:2010465/118520106.98166138853071strictly greater than012.93928652655685strictly greater than2 percent1train
KOR:2011464/118420113.6880320602952strictly greater than014.0259650043609strictly greater than2 percent1train
KOR:2012463/118320122.54766550568242strictly greater than012.18707104433313strictly greater than2 percent1train
KOR:2013462/118220133.2913959543442strictly greater than011.30134754547412strictly greater than2 percent0train
KOR:2014461/118120143.21468019683108strictly greater than011.27477446401321strictly greater than2 percent0train
KOR:2015460/118020152.92029267301234strictly greater than010.706331772455749strictly greater than2 percent0validation
KOR:2016459/117920163.17152748983935strictly greater than010.971685739912167strictly greater than2 percent0validation
KOR:2017458/117820173.433191763972strictly greater than011.94433230786366strictly greater than2 percent0validation
KOR:2018457/117720183.17611568177327strictly greater than011.47583935002645strictly greater than2 percent0validation
KOR:2019456/117620192.31380210595475strictly greater than010.383000303608135strictly greater than2 percent0validation
KOR:2020455/11752020-0.700242317542106strictly greater than000.537288023411737strictly greater than2 percent0test
KOR:2021454/117420214.61296795454287strictly greater than012.49833333333339strictly greater than2 percent1test
KOR:2022453/117320222.72756456708991strictly greater than015.08951365062841strictly greater than2 percent1test
KOR:2023452/117220231.58301467403629strictly greater than013.5974562502901strictly greater than2 percent1test
KOR:2024451/117120242.00361101838986strictly greater than012.32174328643542strictly greater than2 percent1test
USA:1980630/13501980-0.256775739391401strictly greater than0013.5492019749684strictly greater than2 percent1train
USA:1981629/134919812.53770127042986strictly greater than0110.334715340277strictly greater than2 percent1train
USA:1982628/13481982-1.80301377321203strictly greater than006.13142700027492strictly greater than2 percent1train
USA:1983627/134719834.58379096944093strictly greater than013.21243523316064strictly greater than2 percent1train
USA:1984626/134619847.2364531665454strictly greater than014.30053547523429strictly greater than2 percent1train
USA:1985625/134519854.16957535422245strictly greater than013.54564415209365strictly greater than2 percent1train
USA:1986624/134419863.46265504522061strictly greater than011.89804772234275strictly greater than2 percent0train
USA:1987623/134319873.45462966441372strictly greater than013.66456321751689strictly greater than2 percent1train
USA:1988622/134219884.17698239478443strictly greater than014.07774110744413strictly greater than2 percent1train
USA:1989621/134119893.67223784138015strictly greater than014.82700303008944strictly greater than2 percent1train
USA:1990620/134019901.88596557755378strictly greater than015.39795643990324strictly greater than2 percent1train
USA:1991619/13391991-0.108312873733027strictly greater than004.23496396453848strictly greater than2 percent1train
USA:1992618/133819923.52249717254271strictly greater than013.02881967814968strictly greater than2 percent1train
USA:1993617/133719932.75179586314481strictly greater than012.95165696638558strictly greater than2 percent1train
USA:1994616/133619944.02902272637739strictly greater than012.60744159215452strictly greater than2 percent1train
USA:1995615/133519952.68443073970295strictly greater than012.80541968853661strictly greater than2 percent1train
USA:1996614/133419963.77277269047364strictly greater than012.93120419993441strictly greater than2 percent1train
USA:1997613/133319974.44712793442667strictly greater than012.33768993730735strictly greater than2 percent1train
USA:1998612/133219984.48313335499124strictly greater than011.55227909874363strictly greater than2 percent0train
USA:1999611/133119994.78842504836746strictly greater than012.18802719697357strictly greater than2 percent1train
USA:2000610/133020004.07758575997799strictly greater than013.37685727149929strictly greater than2 percent1train
USA:2001609/132920010.955538337599847strictly greater than012.82617111885407strictly greater than2 percent1train
USA:2002608/132820021.70044733078285strictly greater than011.58603162650601strictly greater than2 percent0train
USA:2003607/132720032.79560596378604strictly greater than012.27009497336114strictly greater than2 percent1train
USA:2004606/132620043.84777169267127strictly greater than012.67723669309171strictly greater than2 percent1train
USA:2005605/132520053.48354993710312strictly greater than013.3927468454955strictly greater than2 percent1train
USA:2006604/132420062.78453963674239strictly greater than013.22594410070404strictly greater than2 percent1train
USA:2007603/132320072.0038583039496strictly greater than012.85267248150138strictly greater than2 percent1train
USA:2008602/132220080.113587247501258strictly greater than013.83910029665099strictly greater than2 percent1train
USA:2009601/13212009-2.5765002366652strictly greater than00-0.355546266299747strictly greater than2 percent0train
USA:2010600/132020102.69519258673525strictly greater than011.6400434423899strictly greater than2 percent0train
USA:2011599/131920111.56440685205419strictly greater than013.156841568622strictly greater than2 percent1train
USA:2012598/131820122.28911339009767strictly greater than012.06933726526066strictly greater than2 percent1train
USA:2013597/131720132.11783009443471strictly greater than011.46483265562716strictly greater than2 percent0train
USA:2014596/131620142.52381981757846strictly greater than011.62222297740817strictly greater than2 percent0train
USA:2015595/131520152.94555045227337strictly greater than010.11862713555245strictly greater than2 percent0validation
USA:2016594/131420161.81945147909089strictly greater than011.26158320570535strictly greater than2 percent0validation
USA:2017593/131320172.45762230126449strictly greater than012.13011000365961strictly greater than2 percent1validation
USA:2018592/131220182.96650506701943strictly greater than012.44258329692816strictly greater than2 percent1validation
USA:2019591/131120192.58382533052225strictly greater than011.8122100752602strictly greater than2 percent0validation
USA:2020590/13102020-2.081375977796strictly greater than001.23358439630629strictly greater than2 percent0test
USA:2021589/130920216.15202247867526strictly greater than014.69785886363742strictly greater than2 percent1test
USA:2022588/130820222.52421385073222strictly greater than018.00279982052121strictly greater than2 percent1test
USA:2023587/130720232.93436322440155strictly greater than014.11633838374487strictly greater than2 percent1test
USA:2024586/130620242.79318715363841strictly greater than012.94952520485207strictly greater than2 percent1test
DEU:1980225/94519801.40882864441943strictly greater than015.44105754460346strictly greater than2 percent1train
DEU:1981224/94419810.529240541969116strictly greater than016.34424277746325strictly greater than2 percent1train
DEU:1982223/9431982-0.394840735634787strictly greater than005.24104507228422strictly greater than2 percent1train
DEU:1983222/94219831.57241014192158strictly greater than013.29341474302853strictly greater than2 percent1train
DEU:1984221/94119842.82294783585535strictly greater than012.40579339931959strictly greater than2 percent1train
DEU:1985220/94019852.32793520067574strictly greater than012.0662330121658strictly greater than2 percent1train
DEU:1986219/93919862.28733925852798strictly greater than01-0.129413360854742strictly greater than2 percent0train
DEU:1987218/93819871.4021515883601strictly greater than010.249906108705029strictly greater than2 percent0train
DEU:1988217/93719883.70723567991882strictly greater than011.27411894006923strictly greater than2 percent0train
DEU:1989216/93619893.89655170553733strictly greater than012.78056955569751strictly greater than2 percent1train
DEU:1990215/93519905.25500610110028strictly greater than012.69646824292392strictly greater than2 percent1train
DEU:1991214/93419915.10826150190911strictly greater than014.04703259753466strictly greater than2 percent1train
DEU:1992213/93319922.01361340926105strictly greater than015.0569779673173strictly greater than2 percent1train
DEU:1993212/9321993-0.973033082340891strictly greater than004.47457650752808strictly greater than2 percent1train
DEU:1994211/93119942.59685569693275strictly greater than012.69305639854954strictly greater than2 percent1train
DEU:1995210/93019951.50499384201356strictly greater than011.70616041317076strictly greater than2 percent0train
DEU:1996209/92919961.0378755674358strictly greater than011.44972701963238strictly greater than2 percent0train
DEU:1997208/92819971.85432238398302strictly greater than011.93937198922729strictly greater than2 percent0train
DEU:1998207/92719982.09561231172233strictly greater than010.911183535014403strictly greater than2 percent0train
DEU:1999206/92619992.12957016297766strictly greater than010.585433064230783strictly greater than2 percent0train
DEU:2000205/92520002.8765231247659strictly greater than011.44026838719741strictly greater than2 percent0train
DEU:2001204/92420011.63614170690956strictly greater than011.98385731334471strictly greater than2 percent0train
DEU:2002203/9232002-0.228255715793637strictly greater than001.42080615551526strictly greater than2 percent0train
DEU:2003202/9222003-0.529801394291297strictly greater than001.03422218628562strictly greater than2 percent0train
DEU:2004201/92120041.16208684507278strictly greater than011.66573696655991strictly greater than2 percent0train
DEU:2005200/92020050.885485292551564strictly greater than011.54691114751328strictly greater than2 percent0train
DEU:2006199/91920063.86668241523209strictly greater than011.57742642840563strictly greater than2 percent0train
DEU:2007198/91820072.8891174138025strictly greater than012.2983440070095strictly greater than2 percent1train
DEU:2008197/91720080.887902330743628strictly greater than012.62837981637219strictly greater than2 percent1train
DEU:2009196/9162009-5.54455451920674strictly greater than000.312739007368446strictly greater than2 percent0train
DEU:2010195/91520104.13463778522758strictly greater than011.1038103778926strictly greater than2 percent0train
DEU:2011194/91420113.75796884489337strictly greater than012.07517283735874strictly greater than2 percent1train
DEU:2012193/91320120.463512036709204strictly greater than012.00848884782956strictly greater than2 percent1train
DEU:2013192/91220130.396995583779145strictly greater than011.50472330251876strictly greater than2 percent0train
DEU:2014191/91120142.18018602168017strictly greater than010.906794000434245strictly greater than2 percent0train
DEU:2015190/91020151.66300602334775strictly greater than010.514426137125456strictly greater than2 percent0validation
DEU:2016189/90920162.22222216259371strictly greater than010.491747008445174strictly greater than2 percent0validation
DEU:2017188/90820172.797906720551strictly greater than011.50949485109628strictly greater than2 percent0validation
DEU:2018187/90720181.13569604599849strictly greater than011.73216879766941strictly greater than2 percent0validation
DEU:2019186/90620190.977734697038784strictly greater than011.44565976888253strictly greater than2 percent0validation
DEU:2020185/9052020-4.13191443239947strictly greater than000.144877925813981strictly greater than2 percent0test
DEU:2021184/90420213.90999994204108strictly greater than013.06666666666673strictly greater than2 percent1test
DEU:2022183/90320221.8092581243061strictly greater than016.87257438551096strictly greater than2 percent1test
DEU:2023182/9022023-0.869647578573321strictly greater than005.94643667725823strictly greater than2 percent1test
DEU:2024181/9012024-0.495851897260366strictly greater than002.2564981433876strictly greater than2 percent1test
JPN:1980450/117019802.81759120738283strictly greater than017.77858176555718strictly greater than2 percent1train
JPN:1981449/116919814.20933646523171strictly greater than014.91216291820522strictly greater than2 percent1train
JPN:1982448/116819823.31245673740017strictly greater than012.7410409556314strictly greater than2 percent1train
JPN:1983447/116719833.52304498510377strictly greater than011.89971971348485strictly greater than2 percent0train
JPN:1984446/116619844.50199481622435strictly greater than012.26161369193155strictly greater than2 percent1train
JPN:1985445/116519855.23338094687848strictly greater than012.0322773460849strictly greater than2 percent1train
JPN:1986444/116419863.32652561623384strictly greater than010.595586799453248strictly greater than2 percent0train
JPN:1987443/116319874.73066586040017strictly greater than010.126176841696583strictly greater than2 percent0train
JPN:1988442/116219886.78502010955764strictly greater than010.678557580457557strictly greater than2 percent0train
JPN:1989441/116119894.85803768615389strictly greater than012.27228962064316strictly greater than2 percent1train
JPN:1990440/116019904.89271306574565strictly greater than013.0785162869516strictly greater than2 percent1train
JPN:1991439/115919913.41749676183089strictly greater than013.25143848753308strictly greater than2 percent1train
JPN:1992438/115819920.848069581218368strictly greater than011.7602830605927strictly greater than2 percent0train
JPN:1993437/11571993-0.517919847117952strictly greater than001.24304589707924strictly greater than2 percent0train
JPN:1994436/115619940.99306636322622strictly greater than010.695458057869003strictly greater than2 percent0train
JPN:1995435/115519952.34205546196849strictly greater than01-0.127899045020446strictly greater than2 percent0train
JPN:1996434/115419963.07546731409349strictly greater than010.136600358575909strictly greater than2 percent0train
JPN:1997433/115319971.36297109407448strictly greater than011.74780458692133strictly greater than2 percent0train
JPN:1998432/11521998-1.77264091037956strictly greater than000.66197419138591strictly greater than2 percent0train
JPN:1999431/11511999-0.347600398675738strictly greater than00-0.341296928327553strictly greater than2 percent0train
JPN:2000430/115020002.97832688768516strictly greater than01-0.676578683595175strictly greater than2 percent0train
JPN:2001429/114920010.284608556379041strictly greater than01-0.740055504162737strictly greater than2 percent0train
JPN:2002428/114820020.0849888050363319strictly greater than01-0.92349402694232strictly greater than2 percent0train
JPN:2003427/114720031.38010935830795strictly greater than01-0.256541816316024strictly greater than2 percent0train
JPN:2004426/114620042.11294823723127strictly greater than01-0.00857338820310271strictly greater than2 percent0train
JPN:2005425/114520051.8482813374834strictly greater than01-0.28294606876439strictly greater than2 percent0train
JPN:2006424/114420061.54630843078741strictly greater than010.249355116079084strictly greater than2 percent0train
JPN:2007423/114320071.72837912865577strictly greater than010.0600394544986689strictly greater than2 percent0train
JPN:2008422/11422008-1.16662209355141strictly greater than001.3800788616492strictly greater than2 percent0train
JPN:2009421/11412009-5.9359411383964strictly greater than00-1.35283672951718strictly greater than2 percent0train
JPN:2010420/114020104.13645589222239strictly greater than01-0.728243207517778strictly greater than2 percent0train
JPN:2011419/11392011-0.20035785332982strictly greater than00-0.27245561610124strictly greater than2 percent0train
JPN:2012418/113820121.64893452981225strictly greater than01-0.0440645104432601strictly greater than2 percent0train
JPN:2013417/113720131.99727653399265strictly greater than010.335037912184741strictly greater than2 percent0train
JPN:2014416/113620140.905915486065865strictly greater than012.75922671353253strictly greater than2 percent1train
JPN:2015415/113520151.79997735783475strictly greater than010.795279630579839strictly greater than2 percent0validation
JPN:2016414/113420160.704986495111257strictly greater than01-0.127258844489753strictly greater than2 percent0validation
JPN:2017413/113320171.62345062245441strictly greater than010.484199796126385strictly greater than2 percent0validation
JPN:2018412/113220180.834143845965585strictly greater than010.989094598021848strictly greater than2 percent0validation
JPN:2019411/11312019-0.308496921143259strictly greater than000.468776159383949strictly greater than2 percent0validation
JPN:2020410/11302020-4.28327942675573strictly greater than00-0.024995834027731strictly greater than2 percent0test
JPN:2021409/112920213.56419531474475strictly greater than01-0.233352779398263strictly greater than2 percent0test
JPN:2022408/112820221.33164750653741strictly greater than012.49770278172254strictly greater than2 percent1test
JPN:2023407/112720230.720785304749811strictly greater than013.26813365933163strictly greater than2 percent1test
JPN:2024406/11262024-0.240084236041696strictly greater than002.7385368163524strictly greater than2 percent1test
선택 모형의 모든 관측 추론 — 전체 180행
선택 모형의 모든 관측 추론
관측 ID역할질량사후 Z1고정 q Z1ELBOKL 간격
KOR:1980train6/253/41/2-1.5709570.143841
KOR:1981train31/10027/313/4-1.2243840.05320082
KOR:1982train31/10027/313/4-1.2243840.05320082
KOR:1983train31/10027/313/4-1.2243840.05320082
KOR:1984train31/10027/313/4-1.2243840.05320082
KOR:1985train31/10027/313/4-1.2243840.05320082
KOR:1986train31/10027/313/4-1.2243840.05320082
KOR:1987train31/10027/313/4-1.2243840.05320082
KOR:1988train31/10027/313/4-1.2243840.05320082
KOR:1989train31/10027/313/4-1.2243840.05320082
KOR:1990train31/10027/313/4-1.2243840.05320082
KOR:1991train31/10027/313/4-1.2243840.05320082
KOR:1992train31/10027/313/4-1.2243840.05320082
KOR:1993train31/10027/313/4-1.2243840.05320082
KOR:1994train31/10027/313/4-1.2243840.05320082
KOR:1995train31/10027/313/4-1.2243840.05320082
KOR:1996train31/10027/313/4-1.2243840.05320082
KOR:1997train31/10027/313/4-1.2243840.05320082
KOR:1998train6/253/41/2-1.5709570.143841
KOR:1999train6/253/41/2-1.5709570.143841
KOR:2000train31/10027/313/4-1.2243840.05320082
KOR:2001train31/10027/313/4-1.2243840.05320082
KOR:2002train31/10027/313/4-1.2243840.05320082
KOR:2003train31/10027/313/4-1.2243840.05320082
KOR:2004train31/10027/313/4-1.2243840.05320082
KOR:2005train31/10027/313/4-1.2243840.05320082
KOR:2006train31/10027/313/4-1.2243840.05320082
KOR:2007train31/10027/313/4-1.2243840.05320082
KOR:2008train31/10027/313/4-1.2243840.05320082
KOR:2009train31/10027/313/4-1.2243840.05320082
KOR:2010train31/10027/313/4-1.2243840.05320082
KOR:2011train31/10027/313/4-1.2243840.05320082
KOR:2012train31/10027/313/4-1.2243840.05320082
KOR:2013train6/253/41/2-1.5709570.143841
KOR:2014train6/253/41/2-1.5709570.143841
KOR:2015validation6/253/41/2-1.5709570.143841
KOR:2016validation6/253/41/2-1.5709570.143841
KOR:2017validation6/253/41/2-1.5709570.143841
KOR:2018validation6/253/41/2-1.5709570.143841
KOR:2019validation6/253/41/2-1.5709570.143841
KOR:2020test21/1004/71/4-1.773690.2130422
KOR:2021test31/10027/313/4-1.2243840.05320082
KOR:2022test31/10027/313/4-1.2243840.05320082
KOR:2023test31/10027/313/4-1.2243840.05320082
KOR:2024test31/10027/313/4-1.2243840.05320082
USA:1980train6/253/41/2-1.5709570.143841
USA:1981train31/10027/313/4-1.2243840.05320082
USA:1982train6/253/41/2-1.5709570.143841
USA:1983train31/10027/313/4-1.2243840.05320082
USA:1984train31/10027/313/4-1.2243840.05320082
USA:1985train31/10027/313/4-1.2243840.05320082
USA:1986train6/253/41/2-1.5709570.143841
USA:1987train31/10027/313/4-1.2243840.05320082
USA:1988train31/10027/313/4-1.2243840.05320082
USA:1989train31/10027/313/4-1.2243840.05320082
USA:1990train31/10027/313/4-1.2243840.05320082
USA:1991train6/253/41/2-1.5709570.143841
USA:1992train31/10027/313/4-1.2243840.05320082
USA:1993train31/10027/313/4-1.2243840.05320082
USA:1994train31/10027/313/4-1.2243840.05320082
USA:1995train31/10027/313/4-1.2243840.05320082
USA:1996train31/10027/313/4-1.2243840.05320082
USA:1997train31/10027/313/4-1.2243840.05320082
USA:1998train6/253/41/2-1.5709570.143841
USA:1999train31/10027/313/4-1.2243840.05320082
USA:2000train31/10027/313/4-1.2243840.05320082
USA:2001train31/10027/313/4-1.2243840.05320082
USA:2002train6/253/41/2-1.5709570.143841
USA:2003train31/10027/313/4-1.2243840.05320082
USA:2004train31/10027/313/4-1.2243840.05320082
USA:2005train31/10027/313/4-1.2243840.05320082
USA:2006train31/10027/313/4-1.2243840.05320082
USA:2007train31/10027/313/4-1.2243840.05320082
USA:2008train31/10027/313/4-1.2243840.05320082
USA:2009train21/1004/71/4-1.773690.2130422
USA:2010train6/253/41/2-1.5709570.143841
USA:2011train31/10027/313/4-1.2243840.05320082
USA:2012train31/10027/313/4-1.2243840.05320082
USA:2013train6/253/41/2-1.5709570.143841
USA:2014train6/253/41/2-1.5709570.143841
USA:2015validation6/253/41/2-1.5709570.143841
USA:2016validation6/253/41/2-1.5709570.143841
USA:2017validation31/10027/313/4-1.2243840.05320082
USA:2018validation31/10027/313/4-1.2243840.05320082
USA:2019validation6/253/41/2-1.5709570.143841
USA:2020test21/1004/71/4-1.773690.2130422
USA:2021test31/10027/313/4-1.2243840.05320082
USA:2022test31/10027/313/4-1.2243840.05320082
USA:2023test31/10027/313/4-1.2243840.05320082
USA:2024test31/10027/313/4-1.2243840.05320082
DEU:1980train31/10027/313/4-1.2243840.05320082
DEU:1981train31/10027/313/4-1.2243840.05320082
DEU:1982train6/253/41/2-1.5709570.143841
DEU:1983train31/10027/313/4-1.2243840.05320082
DEU:1984train31/10027/313/4-1.2243840.05320082
DEU:1985train31/10027/313/4-1.2243840.05320082
DEU:1986train6/253/41/2-1.5709570.143841
DEU:1987train6/253/41/2-1.5709570.143841
DEU:1988train6/253/41/2-1.5709570.143841
DEU:1989train31/10027/313/4-1.2243840.05320082
DEU:1990train31/10027/313/4-1.2243840.05320082
DEU:1991train31/10027/313/4-1.2243840.05320082
DEU:1992train31/10027/313/4-1.2243840.05320082
DEU:1993train6/253/41/2-1.5709570.143841
DEU:1994train31/10027/313/4-1.2243840.05320082
DEU:1995train6/253/41/2-1.5709570.143841
DEU:1996train6/253/41/2-1.5709570.143841
DEU:1997train6/253/41/2-1.5709570.143841
DEU:1998train6/253/41/2-1.5709570.143841
DEU:1999train6/253/41/2-1.5709570.143841
DEU:2000train6/253/41/2-1.5709570.143841
DEU:2001train6/253/41/2-1.5709570.143841
DEU:2002train21/1004/71/4-1.773690.2130422
DEU:2003train21/1004/71/4-1.773690.2130422
DEU:2004train6/253/41/2-1.5709570.143841
DEU:2005train6/253/41/2-1.5709570.143841
DEU:2006train6/253/41/2-1.5709570.143841
DEU:2007train31/10027/313/4-1.2243840.05320082
DEU:2008train31/10027/313/4-1.2243840.05320082
DEU:2009train21/1004/71/4-1.773690.2130422
DEU:2010train6/253/41/2-1.5709570.143841
DEU:2011train31/10027/313/4-1.2243840.05320082
DEU:2012train31/10027/313/4-1.2243840.05320082
DEU:2013train6/253/41/2-1.5709570.143841
DEU:2014train6/253/41/2-1.5709570.143841
DEU:2015validation6/253/41/2-1.5709570.143841
DEU:2016validation6/253/41/2-1.5709570.143841
DEU:2017validation6/253/41/2-1.5709570.143841
DEU:2018validation6/253/41/2-1.5709570.143841
DEU:2019validation6/253/41/2-1.5709570.143841
DEU:2020test21/1004/71/4-1.773690.2130422
DEU:2021test31/10027/313/4-1.2243840.05320082
DEU:2022test31/10027/313/4-1.2243840.05320082
DEU:2023test6/253/41/2-1.5709570.143841
DEU:2024test6/253/41/2-1.5709570.143841
JPN:1980train31/10027/313/4-1.2243840.05320082
JPN:1981train31/10027/313/4-1.2243840.05320082
JPN:1982train31/10027/313/4-1.2243840.05320082
JPN:1983train6/253/41/2-1.5709570.143841
JPN:1984train31/10027/313/4-1.2243840.05320082
JPN:1985train31/10027/313/4-1.2243840.05320082
JPN:1986train6/253/41/2-1.5709570.143841
JPN:1987train6/253/41/2-1.5709570.143841
JPN:1988train6/253/41/2-1.5709570.143841
JPN:1989train31/10027/313/4-1.2243840.05320082
JPN:1990train31/10027/313/4-1.2243840.05320082
JPN:1991train31/10027/313/4-1.2243840.05320082
JPN:1992train6/253/41/2-1.5709570.143841
JPN:1993train21/1004/71/4-1.773690.2130422
JPN:1994train6/253/41/2-1.5709570.143841
JPN:1995train6/253/41/2-1.5709570.143841
JPN:1996train6/253/41/2-1.5709570.143841
JPN:1997train6/253/41/2-1.5709570.143841
JPN:1998train21/1004/71/4-1.773690.2130422
JPN:1999train21/1004/71/4-1.773690.2130422
JPN:2000train6/253/41/2-1.5709570.143841
JPN:2001train6/253/41/2-1.5709570.143841
JPN:2002train6/253/41/2-1.5709570.143841
JPN:2003train6/253/41/2-1.5709570.143841
JPN:2004train6/253/41/2-1.5709570.143841
JPN:2005train6/253/41/2-1.5709570.143841
JPN:2006train6/253/41/2-1.5709570.143841
JPN:2007train6/253/41/2-1.5709570.143841
JPN:2008train21/1004/71/4-1.773690.2130422
JPN:2009train21/1004/71/4-1.773690.2130422
JPN:2010train6/253/41/2-1.5709570.143841
JPN:2011train21/1004/71/4-1.773690.2130422
JPN:2012train6/253/41/2-1.5709570.143841
JPN:2013train6/253/41/2-1.5709570.143841
JPN:2014train31/10027/313/4-1.2243840.05320082
JPN:2015validation6/253/41/2-1.5709570.143841
JPN:2016validation6/253/41/2-1.5709570.143841
JPN:2017validation6/253/41/2-1.5709570.143841
JPN:2018validation6/253/41/2-1.5709570.143841
JPN:2019validation21/1004/71/4-1.773690.2130422
JPN:2020test21/1004/71/4-1.773690.2130422
JPN:2021test6/253/41/2-1.5709570.143841
JPN:2022test31/10027/313/4-1.2243840.05320082
JPN:2023test31/10027/313/4-1.2243840.05320082
JPN:2024test6/253/41/2-1.5709570.143841

첫 시험 관측 KOR:2020의 두 경로를 펼칩니다. 관측 질량은 두 결합의 합 21/100.

한 실제 관측의 경로·베이즈 전부
z사전조건부 관측결합사후
01/49/259/1003/7
13/44/253/254/7
국가 성장·물가: 실제 180개 국가·연도 · state-fit
국가 성장·물가: 실제 180개 국가·연도 · state-fit · 원 벡터 확대 · PNG
국가 성장·물가: 실제 180개 국가·연도 · candidates
국가 성장·물가: 실제 180개 국가·연도 · candidates · 원 벡터 확대 · PNG
국가 성장·물가: 실제 180개 국가·연도 · inference-gap
국가 성장·물가: 실제 180개 국가·연도 · inference-gap · 원 벡터 확대 · PNG

원자료·전체 파생값: actual3-digit-original64counts.csv · actual3150-customer-original14-fields.csv · actual360-four-country-growth-CPI-1980-2024.csv · actual3613-NLS-original52-fields.csv · actual617-binary-feature-lineage.csv · computed-all-state-models.csv · computed-candidate-role-metrics.csv · computed-image-diffusion-stages.csv · computed-image-reverse-bridges.csv · computed-selected-row-inference.csv · Python · base R

The country case pairs GDP growth and annual CPI inflation for Korea, the United States, Japan and Germany during 1980–2024:180 country-years. Bit zero indicates growth above zero; bit one indicates inflation above 2 percent. Inflation is a rate, not the CPI index level. The 2 percent threshold is a teaching choice, not an estimated optimal policy target.

Training covers 1980–2014(140 rows), validation 2015–2019(20) and test 2020–2024(20). The retained October 2026 vintage contains later-known values; release lags and historical revisions are not reconstructed. Chronological splitting does not by itself establish real-time information availability.

The selected model has epsilon 2/5 and pi 3/4, assigning masses 21/100,6/25,6/25,31/100 to 00,01,10,11. Test mean NLL is about 1.300263 nats per observation. These are fitted model probabilities, not directly observed proportions of real economic regimes; compare them with empirical counts.

For state 11, the exact latent-one posterior is 27/31 while fixed q is 3/4, leaving a KL gap about 0.053201 nats. This measures inference discrepancy under a stipulated model, not intrinsic national types or causal economic structure. The full case retains every candidate and source observation.

Growth/inflation: 180 actual country-years

Original values are observed. Binary coding, roles, two latent prototypes, candidate grid and fixed q are declared modeling choices. Logs are approximate; masses, Bayes and likelihood products retain exact fractions.

Observed units and declared model
ItemMeaning
Observed records180
Latent prototypes00 / 11
Epsilon candidates1/10, 1/4, 2/5
Prior-one candidates1/4, 1/2, 3/4
Selected candidate (zero based)8
Recognitionq(Z=1|x)=(bit0+bit1+1)/4; fixed, not trained
Observation modelDiscrete masses, not densities of original continuous measurements
Selection ruleTrain-only pi winner per epsilon, then validation choice; test evaluation only
Complete role/state counts
RoleN00011011
train1401074578
validation2010172
test2043112
Every candidate and role
IndexεπRoleNMean NLLTrain pi winnerSelectedLikelihood product
01/101/4train1401.79919004.04589e-110
Exact value404588775706157942139083866661398402393351254585601746396034510163136827074678626292893314212305296979720651544661777606662083498893767380861978777124786240789685911820241/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4validation202.227533004.48633e-20
Exact value448632864902730372669/10000000000000000000000000000000000000000
01/101/4test201.516837006.68222e-14
Exact value668222222656464477634941441/10000000000000000000000000000000000000000
11/101/2train1401.454813003.51229e-89
Exact value351228607749096353020843380276049534231239647233410047119190026389074034632075610633865036853894702595904544522205442514142573015461504479782007491055526589462732665899582663476631098746540001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2validation202.180493001.14941e-19
Exact value1149408039922719602049/10000000000000000000000000000000000000000
11/101/2test201.194868004.18323e-11
Exact value418323001831038689566944557601/10000000000000000000000000000000000000000
21/103/4train1401.281248101.25467e-78
Exact value12546730483989332076494559099697765417604613170386942583857792714701614056487047573689257222500946462299256296118615590555651413370171400667431338338771331179851041752961995140543575303852708792636642161/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4validation202.174216101.30317e-19
Exact value1303171655193645368229/10000000000000000000000000000000000000000
21/103/4test201.090296103.38692e-10
Exact value3386922325672490048839813616961/10000000000000000000000000000000000000000
31/41/4train1401.613455007.94229e-99
Exact value29973917919173995244543114432023593316241405160625242245789402012564601/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
31/41/4validation201.631612006.7298e-15
Exact value8135830269/1208925819614629174706176
31/41/4test201.504517008.54934e-14
Exact value103355177121/1208925819614629174706176
41/41/2train1401.352886005.53182e-83
Exact value208768815425226285956547881586946715658749591272569379185597426840104162693023681640625/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
41/41/2validation201.597353001.33528e-14
Exact value16142520375/1208925819614629174706176
41/41/2test201.265316001.02236e-11
Exact value12359619140625/1208925819614629174706176
51/43/4train1401.20191108.3631e-74
Exact value315620289414520790049960503503857344102446107121857154514356578851132905917053129828697359231241/3773962424821541352241554580988268890916921220416440428376206300245624162392148852086126725177658767541468375030763844899770584629924792632561434251432696043649395326976
51/43/4validation201.589247101.57029e-14
Exact value18983603961/1208925819614629174706176
51/43/4test201.165598107.51185e-11
Exact value90812685325761/1208925819614629174706176
62/51/4train1401.483231006.57214e-91
Exact value71949399401777039874330671970120460019516843688837809071449087950071258283140194459152005510838990950613636615561014677837486567082352102946201/109476442525376333665916373694524697756270464209102794668520959678889928334832859491143608465790748596191406250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
62/51/4validation201.427673003.9755e-13
Exact value3615693144827904/9094947017729282379150390625
62/51/4test201.456049002.25384e-13
Exact value550254155510607468719841/2441406250000000000000000000000000000
72/51/2train1401.376804001.94374e-84
Exact value687575270610058413844333764495321289297920335194862227456644165011380233698528335472938792669397132034851225685275459822961/353737464016668451855824972300304366432911374927310085530570894138105520257533012294512947342224925759920017160034290220932919252862236536572027034708298742771148681640625000000000000000000000000000000000000
72/51/2validation201.41511005.11106e-13
Exact value4648483850010624/9094947017729282379150390625
72/51/2test201.363082001.44683e-12
Exact value53898745343837567121/37252902984619140625000000000000
82/53/4train1401.294063112.08636e-79
Exact value22840747449872038377121361751047844466021385424785634487614378212736103040042819823805697330819342775577981077707677513212966918863822757241468380252303081/109476442525376333665916373694524697756270464209102794668520959678889928334832859491143608465790748596191406250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
82/53/4validation201.4082115.86859e-13
Exact value5337451785222144/9094947017729282379150390625
82/53/4test201.300263115.08233e-12
Exact value12408021114172456631592321/2441406250000000000000000000000000000

Lower NLL is better. Uniform-four-state NLL is log4≈1.386294. Test scores do not select candidates. Indicator 1 marks a training-prior winner or final selection.

Every state under every candidate — all 36 rows
Every state under every candidate
IndexStateMassPosterior Z1Fixed q Z1Log evidenceELBOKL gap
0061/1001/2441/4-0.4942963-1.3093330.815037
019/1001/41/2-2.407946-2.5517870.143841
029/1001/41/2-2.407946-2.5517870.143841
0321/10027/283/4-1.560648-1.8586390.2979917
1041/1001/821/4-0.8915981-1.4401450.5485472
119/1001/21/2-2.407946-2.4079460
129/1001/21/2-2.407946-2.4079460
1341/10081/823/4-0.8915981-1.4401450.5485472
2021/1001/281/4-1.560648-1.8586390.2979917
219/1003/41/2-2.407946-2.5517870.143841
229/1003/41/2-2.407946-2.5517870.143841
2361/100243/2443/4-0.4942963-1.3093330.815037
307/161/281/4-0.8266786-1.124670.2979917
313/161/41/2-1.673976-1.8178170.143841
323/161/41/2-1.673976-1.8178170.143841
333/163/43/4-1.673976-1.6739760
405/161/101/4-1.163151-1.2554820.09233152
413/161/21/2-1.673976-1.6739760
423/161/21/2-1.673976-1.6739760
435/169/103/4-1.163151-1.2554820.09233152
503/161/41/4-1.673976-1.6739760
513/163/41/2-1.673976-1.8178170.143841
523/163/41/2-1.673976-1.8178170.143841
537/1627/283/4-0.8266786-1.124670.2979917
6031/1004/311/4-1.171183-1.2243840.05320082
616/251/41/2-1.427116-1.5709570.143841
626/251/41/2-1.427116-1.5709570.143841
6321/1003/73/4-1.560648-1.773690.2130422
7013/504/131/4-1.347074-1.3551960.00812219
716/251/21/2-1.427116-1.4271160
726/251/21/2-1.427116-1.4271160
7313/509/133/4-1.347074-1.3551960.00812219
8021/1004/71/4-1.560648-1.773690.2130422
816/253/41/2-1.427116-1.5709570.143841
826/253/41/2-1.427116-1.5709570.143841
8331/10027/313/4-1.171183-1.2243840.05320082
Every selected native value, rule and role — all 180 rows
Every selected native value, rule and role
Observation IDSource positions 0/1TimeNative 0Rule 0Bit 0Native 1Rule 1Bit 1Role
KOR:1980495/12151980-1.52426391001066strictly greater than0028.6976086362016strictly greater than2 percent1train
KOR:1981494/121419817.40382133739918strictly greater than0121.351640254strictly greater than2 percent1train
KOR:1982493/121319828.46826958565821strictly greater than017.19084664006869strictly greater than2 percent1train
KOR:1983492/1212198313.4668057465528strictly greater than013.42061419498921strictly greater than2 percent1train
KOR:1984491/1211198410.6366054976723strictly greater than012.27395640001863strictly greater than2 percent1train
KOR:1985490/121019857.93879547760545strictly greater than012.45910879215274strictly greater than2 percent1train
KOR:1986489/1209198611.50298504807strictly greater than012.74998096063357strictly greater than2 percent1train
KOR:1987488/1208198712.8922089918574strictly greater than013.04966077087423strictly greater than2 percent1train
KOR:1988487/1207198812.1331951107172strictly greater than017.14609773721605strictly greater than2 percent1train
KOR:1989486/120619897.16501737923842strictly greater than015.700165445614strictly greater than2 percent1train
KOR:1990485/1205199010.0248996213899strictly greater than018.57327225728676strictly greater than2 percent1train
KOR:1991484/1204199110.8749739277708strictly greater than019.33279048161495strictly greater than2 percent1train
KOR:1992483/120319926.35159199606441strictly greater than016.21328146355184strictly greater than2 percent1train
KOR:1993482/120219936.99471791742556strictly greater than014.80099660215353strictly greater than2 percent1train
KOR:1994481/120119949.3718357757101strictly greater than016.26585950039679strictly greater than2 percent1train
KOR:1995480/120019959.7358937505409strictly greater than014.48074108557248strictly greater than2 percent1train
KOR:1996479/119919967.99042982526839strictly greater than014.92454354292753strictly greater than2 percent1train
KOR:1997478/119819976.2821926537929strictly greater than014.4389318457463strictly greater than2 percent1train
KOR:1998477/11971998-4.9389297463141strictly greater than007.51358008079306strictly greater than2 percent1train
KOR:1999476/1196199911.6172629559591strictly greater than010.812957254446369strictly greater than2 percent0train
KOR:2000475/119520009.2018583880479strictly greater than012.25916580080157strictly greater than2 percent1train
KOR:2001474/119420014.72593560322356strictly greater than014.06657587897792strictly greater than2 percent1train
KOR:2002473/119320027.74399895319569strictly greater than012.76226210296599strictly greater than2 percent1train
KOR:2003472/119220033.07472661826947strictly greater than013.51487451459939strictly greater than2 percent1train
KOR:2004471/119120045.1836368597334strictly greater than013.59066298882577strictly greater than2 percent1train
KOR:2005470/119020054.35823667337156strictly greater than012.75379162735039strictly greater than2 percent1train
KOR:2006469/118920065.24500550580342strictly greater than012.2423402851892strictly greater than2 percent1train
KOR:2007468/118820075.8419633918717strictly greater than012.53457382137932strictly greater than2 percent1train
KOR:2008467/118720083.00440451679569strictly greater than014.67389655533408strictly greater than2 percent1train
KOR:2009466/118620090.81986175641795strictly greater than012.75649654493929strictly greater than2 percent1train
KOR:2010465/118520106.98166138853071strictly greater than012.93928652655685strictly greater than2 percent1train
KOR:2011464/118420113.6880320602952strictly greater than014.0259650043609strictly greater than2 percent1train
KOR:2012463/118320122.54766550568242strictly greater than012.18707104433313strictly greater than2 percent1train
KOR:2013462/118220133.2913959543442strictly greater than011.30134754547412strictly greater than2 percent0train
KOR:2014461/118120143.21468019683108strictly greater than011.27477446401321strictly greater than2 percent0train
KOR:2015460/118020152.92029267301234strictly greater than010.706331772455749strictly greater than2 percent0validation
KOR:2016459/117920163.17152748983935strictly greater than010.971685739912167strictly greater than2 percent0validation
KOR:2017458/117820173.433191763972strictly greater than011.94433230786366strictly greater than2 percent0validation
KOR:2018457/117720183.17611568177327strictly greater than011.47583935002645strictly greater than2 percent0validation
KOR:2019456/117620192.31380210595475strictly greater than010.383000303608135strictly greater than2 percent0validation
KOR:2020455/11752020-0.700242317542106strictly greater than000.537288023411737strictly greater than2 percent0test
KOR:2021454/117420214.61296795454287strictly greater than012.49833333333339strictly greater than2 percent1test
KOR:2022453/117320222.72756456708991strictly greater than015.08951365062841strictly greater than2 percent1test
KOR:2023452/117220231.58301467403629strictly greater than013.5974562502901strictly greater than2 percent1test
KOR:2024451/117120242.00361101838986strictly greater than012.32174328643542strictly greater than2 percent1test
USA:1980630/13501980-0.256775739391401strictly greater than0013.5492019749684strictly greater than2 percent1train
USA:1981629/134919812.53770127042986strictly greater than0110.334715340277strictly greater than2 percent1train
USA:1982628/13481982-1.80301377321203strictly greater than006.13142700027492strictly greater than2 percent1train
USA:1983627/134719834.58379096944093strictly greater than013.21243523316064strictly greater than2 percent1train
USA:1984626/134619847.2364531665454strictly greater than014.30053547523429strictly greater than2 percent1train
USA:1985625/134519854.16957535422245strictly greater than013.54564415209365strictly greater than2 percent1train
USA:1986624/134419863.46265504522061strictly greater than011.89804772234275strictly greater than2 percent0train
USA:1987623/134319873.45462966441372strictly greater than013.66456321751689strictly greater than2 percent1train
USA:1988622/134219884.17698239478443strictly greater than014.07774110744413strictly greater than2 percent1train
USA:1989621/134119893.67223784138015strictly greater than014.82700303008944strictly greater than2 percent1train
USA:1990620/134019901.88596557755378strictly greater than015.39795643990324strictly greater than2 percent1train
USA:1991619/13391991-0.108312873733027strictly greater than004.23496396453848strictly greater than2 percent1train
USA:1992618/133819923.52249717254271strictly greater than013.02881967814968strictly greater than2 percent1train
USA:1993617/133719932.75179586314481strictly greater than012.95165696638558strictly greater than2 percent1train
USA:1994616/133619944.02902272637739strictly greater than012.60744159215452strictly greater than2 percent1train
USA:1995615/133519952.68443073970295strictly greater than012.80541968853661strictly greater than2 percent1train
USA:1996614/133419963.77277269047364strictly greater than012.93120419993441strictly greater than2 percent1train
USA:1997613/133319974.44712793442667strictly greater than012.33768993730735strictly greater than2 percent1train
USA:1998612/133219984.48313335499124strictly greater than011.55227909874363strictly greater than2 percent0train
USA:1999611/133119994.78842504836746strictly greater than012.18802719697357strictly greater than2 percent1train
USA:2000610/133020004.07758575997799strictly greater than013.37685727149929strictly greater than2 percent1train
USA:2001609/132920010.955538337599847strictly greater than012.82617111885407strictly greater than2 percent1train
USA:2002608/132820021.70044733078285strictly greater than011.58603162650601strictly greater than2 percent0train
USA:2003607/132720032.79560596378604strictly greater than012.27009497336114strictly greater than2 percent1train
USA:2004606/132620043.84777169267127strictly greater than012.67723669309171strictly greater than2 percent1train
USA:2005605/132520053.48354993710312strictly greater than013.3927468454955strictly greater than2 percent1train
USA:2006604/132420062.78453963674239strictly greater than013.22594410070404strictly greater than2 percent1train
USA:2007603/132320072.0038583039496strictly greater than012.85267248150138strictly greater than2 percent1train
USA:2008602/132220080.113587247501258strictly greater than013.83910029665099strictly greater than2 percent1train
USA:2009601/13212009-2.5765002366652strictly greater than00-0.355546266299747strictly greater than2 percent0train
USA:2010600/132020102.69519258673525strictly greater than011.6400434423899strictly greater than2 percent0train
USA:2011599/131920111.56440685205419strictly greater than013.156841568622strictly greater than2 percent1train
USA:2012598/131820122.28911339009767strictly greater than012.06933726526066strictly greater than2 percent1train
USA:2013597/131720132.11783009443471strictly greater than011.46483265562716strictly greater than2 percent0train
USA:2014596/131620142.52381981757846strictly greater than011.62222297740817strictly greater than2 percent0train
USA:2015595/131520152.94555045227337strictly greater than010.11862713555245strictly greater than2 percent0validation
USA:2016594/131420161.81945147909089strictly greater than011.26158320570535strictly greater than2 percent0validation
USA:2017593/131320172.45762230126449strictly greater than012.13011000365961strictly greater than2 percent1validation
USA:2018592/131220182.96650506701943strictly greater than012.44258329692816strictly greater than2 percent1validation
USA:2019591/131120192.58382533052225strictly greater than011.8122100752602strictly greater than2 percent0validation
USA:2020590/13102020-2.081375977796strictly greater than001.23358439630629strictly greater than2 percent0test
USA:2021589/130920216.15202247867526strictly greater than014.69785886363742strictly greater than2 percent1test
USA:2022588/130820222.52421385073222strictly greater than018.00279982052121strictly greater than2 percent1test
USA:2023587/130720232.93436322440155strictly greater than014.11633838374487strictly greater than2 percent1test
USA:2024586/130620242.79318715363841strictly greater than012.94952520485207strictly greater than2 percent1test
DEU:1980225/94519801.40882864441943strictly greater than015.44105754460346strictly greater than2 percent1train
DEU:1981224/94419810.529240541969116strictly greater than016.34424277746325strictly greater than2 percent1train
DEU:1982223/9431982-0.394840735634787strictly greater than005.24104507228422strictly greater than2 percent1train
DEU:1983222/94219831.57241014192158strictly greater than013.29341474302853strictly greater than2 percent1train
DEU:1984221/94119842.82294783585535strictly greater than012.40579339931959strictly greater than2 percent1train
DEU:1985220/94019852.32793520067574strictly greater than012.0662330121658strictly greater than2 percent1train
DEU:1986219/93919862.28733925852798strictly greater than01-0.129413360854742strictly greater than2 percent0train
DEU:1987218/93819871.4021515883601strictly greater than010.249906108705029strictly greater than2 percent0train
DEU:1988217/93719883.70723567991882strictly greater than011.27411894006923strictly greater than2 percent0train
DEU:1989216/93619893.89655170553733strictly greater than012.78056955569751strictly greater than2 percent1train
DEU:1990215/93519905.25500610110028strictly greater than012.69646824292392strictly greater than2 percent1train
DEU:1991214/93419915.10826150190911strictly greater than014.04703259753466strictly greater than2 percent1train
DEU:1992213/93319922.01361340926105strictly greater than015.0569779673173strictly greater than2 percent1train
DEU:1993212/9321993-0.973033082340891strictly greater than004.47457650752808strictly greater than2 percent1train
DEU:1994211/93119942.59685569693275strictly greater than012.69305639854954strictly greater than2 percent1train
DEU:1995210/93019951.50499384201356strictly greater than011.70616041317076strictly greater than2 percent0train
DEU:1996209/92919961.0378755674358strictly greater than011.44972701963238strictly greater than2 percent0train
DEU:1997208/92819971.85432238398302strictly greater than011.93937198922729strictly greater than2 percent0train
DEU:1998207/92719982.09561231172233strictly greater than010.911183535014403strictly greater than2 percent0train
DEU:1999206/92619992.12957016297766strictly greater than010.585433064230783strictly greater than2 percent0train
DEU:2000205/92520002.8765231247659strictly greater than011.44026838719741strictly greater than2 percent0train
DEU:2001204/92420011.63614170690956strictly greater than011.98385731334471strictly greater than2 percent0train
DEU:2002203/9232002-0.228255715793637strictly greater than001.42080615551526strictly greater than2 percent0train
DEU:2003202/9222003-0.529801394291297strictly greater than001.03422218628562strictly greater than2 percent0train
DEU:2004201/92120041.16208684507278strictly greater than011.66573696655991strictly greater than2 percent0train
DEU:2005200/92020050.885485292551564strictly greater than011.54691114751328strictly greater than2 percent0train
DEU:2006199/91920063.86668241523209strictly greater than011.57742642840563strictly greater than2 percent0train
DEU:2007198/91820072.8891174138025strictly greater than012.2983440070095strictly greater than2 percent1train
DEU:2008197/91720080.887902330743628strictly greater than012.62837981637219strictly greater than2 percent1train
DEU:2009196/9162009-5.54455451920674strictly greater than000.312739007368446strictly greater than2 percent0train
DEU:2010195/91520104.13463778522758strictly greater than011.1038103778926strictly greater than2 percent0train
DEU:2011194/91420113.75796884489337strictly greater than012.07517283735874strictly greater than2 percent1train
DEU:2012193/91320120.463512036709204strictly greater than012.00848884782956strictly greater than2 percent1train
DEU:2013192/91220130.396995583779145strictly greater than011.50472330251876strictly greater than2 percent0train
DEU:2014191/91120142.18018602168017strictly greater than010.906794000434245strictly greater than2 percent0train
DEU:2015190/91020151.66300602334775strictly greater than010.514426137125456strictly greater than2 percent0validation
DEU:2016189/90920162.22222216259371strictly greater than010.491747008445174strictly greater than2 percent0validation
DEU:2017188/90820172.797906720551strictly greater than011.50949485109628strictly greater than2 percent0validation
DEU:2018187/90720181.13569604599849strictly greater than011.73216879766941strictly greater than2 percent0validation
DEU:2019186/90620190.977734697038784strictly greater than011.44565976888253strictly greater than2 percent0validation
DEU:2020185/9052020-4.13191443239947strictly greater than000.144877925813981strictly greater than2 percent0test
DEU:2021184/90420213.90999994204108strictly greater than013.06666666666673strictly greater than2 percent1test
DEU:2022183/90320221.8092581243061strictly greater than016.87257438551096strictly greater than2 percent1test
DEU:2023182/9022023-0.869647578573321strictly greater than005.94643667725823strictly greater than2 percent1test
DEU:2024181/9012024-0.495851897260366strictly greater than002.2564981433876strictly greater than2 percent1test
JPN:1980450/117019802.81759120738283strictly greater than017.77858176555718strictly greater than2 percent1train
JPN:1981449/116919814.20933646523171strictly greater than014.91216291820522strictly greater than2 percent1train
JPN:1982448/116819823.31245673740017strictly greater than012.7410409556314strictly greater than2 percent1train
JPN:1983447/116719833.52304498510377strictly greater than011.89971971348485strictly greater than2 percent0train
JPN:1984446/116619844.50199481622435strictly greater than012.26161369193155strictly greater than2 percent1train
JPN:1985445/116519855.23338094687848strictly greater than012.0322773460849strictly greater than2 percent1train
JPN:1986444/116419863.32652561623384strictly greater than010.595586799453248strictly greater than2 percent0train
JPN:1987443/116319874.73066586040017strictly greater than010.126176841696583strictly greater than2 percent0train
JPN:1988442/116219886.78502010955764strictly greater than010.678557580457557strictly greater than2 percent0train
JPN:1989441/116119894.85803768615389strictly greater than012.27228962064316strictly greater than2 percent1train
JPN:1990440/116019904.89271306574565strictly greater than013.0785162869516strictly greater than2 percent1train
JPN:1991439/115919913.41749676183089strictly greater than013.25143848753308strictly greater than2 percent1train
JPN:1992438/115819920.848069581218368strictly greater than011.7602830605927strictly greater than2 percent0train
JPN:1993437/11571993-0.517919847117952strictly greater than001.24304589707924strictly greater than2 percent0train
JPN:1994436/115619940.99306636322622strictly greater than010.695458057869003strictly greater than2 percent0train
JPN:1995435/115519952.34205546196849strictly greater than01-0.127899045020446strictly greater than2 percent0train
JPN:1996434/115419963.07546731409349strictly greater than010.136600358575909strictly greater than2 percent0train
JPN:1997433/115319971.36297109407448strictly greater than011.74780458692133strictly greater than2 percent0train
JPN:1998432/11521998-1.77264091037956strictly greater than000.66197419138591strictly greater than2 percent0train
JPN:1999431/11511999-0.347600398675738strictly greater than00-0.341296928327553strictly greater than2 percent0train
JPN:2000430/115020002.97832688768516strictly greater than01-0.676578683595175strictly greater than2 percent0train
JPN:2001429/114920010.284608556379041strictly greater than01-0.740055504162737strictly greater than2 percent0train
JPN:2002428/114820020.0849888050363319strictly greater than01-0.92349402694232strictly greater than2 percent0train
JPN:2003427/114720031.38010935830795strictly greater than01-0.256541816316024strictly greater than2 percent0train
JPN:2004426/114620042.11294823723127strictly greater than01-0.00857338820310271strictly greater than2 percent0train
JPN:2005425/114520051.8482813374834strictly greater than01-0.28294606876439strictly greater than2 percent0train
JPN:2006424/114420061.54630843078741strictly greater than010.249355116079084strictly greater than2 percent0train
JPN:2007423/114320071.72837912865577strictly greater than010.0600394544986689strictly greater than2 percent0train
JPN:2008422/11422008-1.16662209355141strictly greater than001.3800788616492strictly greater than2 percent0train
JPN:2009421/11412009-5.9359411383964strictly greater than00-1.35283672951718strictly greater than2 percent0train
JPN:2010420/114020104.13645589222239strictly greater than01-0.728243207517778strictly greater than2 percent0train
JPN:2011419/11392011-0.20035785332982strictly greater than00-0.27245561610124strictly greater than2 percent0train
JPN:2012418/113820121.64893452981225strictly greater than01-0.0440645104432601strictly greater than2 percent0train
JPN:2013417/113720131.99727653399265strictly greater than010.335037912184741strictly greater than2 percent0train
JPN:2014416/113620140.905915486065865strictly greater than012.75922671353253strictly greater than2 percent1train
JPN:2015415/113520151.79997735783475strictly greater than010.795279630579839strictly greater than2 percent0validation
JPN:2016414/113420160.704986495111257strictly greater than01-0.127258844489753strictly greater than2 percent0validation
JPN:2017413/113320171.62345062245441strictly greater than010.484199796126385strictly greater than2 percent0validation
JPN:2018412/113220180.834143845965585strictly greater than010.989094598021848strictly greater than2 percent0validation
JPN:2019411/11312019-0.308496921143259strictly greater than000.468776159383949strictly greater than2 percent0validation
JPN:2020410/11302020-4.28327942675573strictly greater than00-0.024995834027731strictly greater than2 percent0test
JPN:2021409/112920213.56419531474475strictly greater than01-0.233352779398263strictly greater than2 percent0test
JPN:2022408/112820221.33164750653741strictly greater than012.49770278172254strictly greater than2 percent1test
JPN:2023407/112720230.720785304749811strictly greater than013.26813365933163strictly greater than2 percent1test
JPN:2024406/11262024-0.240084236041696strictly greater than002.7385368163524strictly greater than2 percent1test
Every observation under selected model — all 180 rows
Every observation under selected model
Observation IDRoleMassPosterior Z1Fixed q Z1ELBOKL gap
KOR:1980train6/253/41/2-1.5709570.143841
KOR:1981train31/10027/313/4-1.2243840.05320082
KOR:1982train31/10027/313/4-1.2243840.05320082
KOR:1983train31/10027/313/4-1.2243840.05320082
KOR:1984train31/10027/313/4-1.2243840.05320082
KOR:1985train31/10027/313/4-1.2243840.05320082
KOR:1986train31/10027/313/4-1.2243840.05320082
KOR:1987train31/10027/313/4-1.2243840.05320082
KOR:1988train31/10027/313/4-1.2243840.05320082
KOR:1989train31/10027/313/4-1.2243840.05320082
KOR:1990train31/10027/313/4-1.2243840.05320082
KOR:1991train31/10027/313/4-1.2243840.05320082
KOR:1992train31/10027/313/4-1.2243840.05320082
KOR:1993train31/10027/313/4-1.2243840.05320082
KOR:1994train31/10027/313/4-1.2243840.05320082
KOR:1995train31/10027/313/4-1.2243840.05320082
KOR:1996train31/10027/313/4-1.2243840.05320082
KOR:1997train31/10027/313/4-1.2243840.05320082
KOR:1998train6/253/41/2-1.5709570.143841
KOR:1999train6/253/41/2-1.5709570.143841
KOR:2000train31/10027/313/4-1.2243840.05320082
KOR:2001train31/10027/313/4-1.2243840.05320082
KOR:2002train31/10027/313/4-1.2243840.05320082
KOR:2003train31/10027/313/4-1.2243840.05320082
KOR:2004train31/10027/313/4-1.2243840.05320082
KOR:2005train31/10027/313/4-1.2243840.05320082
KOR:2006train31/10027/313/4-1.2243840.05320082
KOR:2007train31/10027/313/4-1.2243840.05320082
KOR:2008train31/10027/313/4-1.2243840.05320082
KOR:2009train31/10027/313/4-1.2243840.05320082
KOR:2010train31/10027/313/4-1.2243840.05320082
KOR:2011train31/10027/313/4-1.2243840.05320082
KOR:2012train31/10027/313/4-1.2243840.05320082
KOR:2013train6/253/41/2-1.5709570.143841
KOR:2014train6/253/41/2-1.5709570.143841
KOR:2015validation6/253/41/2-1.5709570.143841
KOR:2016validation6/253/41/2-1.5709570.143841
KOR:2017validation6/253/41/2-1.5709570.143841
KOR:2018validation6/253/41/2-1.5709570.143841
KOR:2019validation6/253/41/2-1.5709570.143841
KOR:2020test21/1004/71/4-1.773690.2130422
KOR:2021test31/10027/313/4-1.2243840.05320082
KOR:2022test31/10027/313/4-1.2243840.05320082
KOR:2023test31/10027/313/4-1.2243840.05320082
KOR:2024test31/10027/313/4-1.2243840.05320082
USA:1980train6/253/41/2-1.5709570.143841
USA:1981train31/10027/313/4-1.2243840.05320082
USA:1982train6/253/41/2-1.5709570.143841
USA:1983train31/10027/313/4-1.2243840.05320082
USA:1984train31/10027/313/4-1.2243840.05320082
USA:1985train31/10027/313/4-1.2243840.05320082
USA:1986train6/253/41/2-1.5709570.143841
USA:1987train31/10027/313/4-1.2243840.05320082
USA:1988train31/10027/313/4-1.2243840.05320082
USA:1989train31/10027/313/4-1.2243840.05320082
USA:1990train31/10027/313/4-1.2243840.05320082
USA:1991train6/253/41/2-1.5709570.143841
USA:1992train31/10027/313/4-1.2243840.05320082
USA:1993train31/10027/313/4-1.2243840.05320082
USA:1994train31/10027/313/4-1.2243840.05320082
USA:1995train31/10027/313/4-1.2243840.05320082
USA:1996train31/10027/313/4-1.2243840.05320082
USA:1997train31/10027/313/4-1.2243840.05320082
USA:1998train6/253/41/2-1.5709570.143841
USA:1999train31/10027/313/4-1.2243840.05320082
USA:2000train31/10027/313/4-1.2243840.05320082
USA:2001train31/10027/313/4-1.2243840.05320082
USA:2002train6/253/41/2-1.5709570.143841
USA:2003train31/10027/313/4-1.2243840.05320082
USA:2004train31/10027/313/4-1.2243840.05320082
USA:2005train31/10027/313/4-1.2243840.05320082
USA:2006train31/10027/313/4-1.2243840.05320082
USA:2007train31/10027/313/4-1.2243840.05320082
USA:2008train31/10027/313/4-1.2243840.05320082
USA:2009train21/1004/71/4-1.773690.2130422
USA:2010train6/253/41/2-1.5709570.143841
USA:2011train31/10027/313/4-1.2243840.05320082
USA:2012train31/10027/313/4-1.2243840.05320082
USA:2013train6/253/41/2-1.5709570.143841
USA:2014train6/253/41/2-1.5709570.143841
USA:2015validation6/253/41/2-1.5709570.143841
USA:2016validation6/253/41/2-1.5709570.143841
USA:2017validation31/10027/313/4-1.2243840.05320082
USA:2018validation31/10027/313/4-1.2243840.05320082
USA:2019validation6/253/41/2-1.5709570.143841
USA:2020test21/1004/71/4-1.773690.2130422
USA:2021test31/10027/313/4-1.2243840.05320082
USA:2022test31/10027/313/4-1.2243840.05320082
USA:2023test31/10027/313/4-1.2243840.05320082
USA:2024test31/10027/313/4-1.2243840.05320082
DEU:1980train31/10027/313/4-1.2243840.05320082
DEU:1981train31/10027/313/4-1.2243840.05320082
DEU:1982train6/253/41/2-1.5709570.143841
DEU:1983train31/10027/313/4-1.2243840.05320082
DEU:1984train31/10027/313/4-1.2243840.05320082
DEU:1985train31/10027/313/4-1.2243840.05320082
DEU:1986train6/253/41/2-1.5709570.143841
DEU:1987train6/253/41/2-1.5709570.143841
DEU:1988train6/253/41/2-1.5709570.143841
DEU:1989train31/10027/313/4-1.2243840.05320082
DEU:1990train31/10027/313/4-1.2243840.05320082
DEU:1991train31/10027/313/4-1.2243840.05320082
DEU:1992train31/10027/313/4-1.2243840.05320082
DEU:1993train6/253/41/2-1.5709570.143841
DEU:1994train31/10027/313/4-1.2243840.05320082
DEU:1995train6/253/41/2-1.5709570.143841
DEU:1996train6/253/41/2-1.5709570.143841
DEU:1997train6/253/41/2-1.5709570.143841
DEU:1998train6/253/41/2-1.5709570.143841
DEU:1999train6/253/41/2-1.5709570.143841
DEU:2000train6/253/41/2-1.5709570.143841
DEU:2001train6/253/41/2-1.5709570.143841
DEU:2002train21/1004/71/4-1.773690.2130422
DEU:2003train21/1004/71/4-1.773690.2130422
DEU:2004train6/253/41/2-1.5709570.143841
DEU:2005train6/253/41/2-1.5709570.143841
DEU:2006train6/253/41/2-1.5709570.143841
DEU:2007train31/10027/313/4-1.2243840.05320082
DEU:2008train31/10027/313/4-1.2243840.05320082
DEU:2009train21/1004/71/4-1.773690.2130422
DEU:2010train6/253/41/2-1.5709570.143841
DEU:2011train31/10027/313/4-1.2243840.05320082
DEU:2012train31/10027/313/4-1.2243840.05320082
DEU:2013train6/253/41/2-1.5709570.143841
DEU:2014train6/253/41/2-1.5709570.143841
DEU:2015validation6/253/41/2-1.5709570.143841
DEU:2016validation6/253/41/2-1.5709570.143841
DEU:2017validation6/253/41/2-1.5709570.143841
DEU:2018validation6/253/41/2-1.5709570.143841
DEU:2019validation6/253/41/2-1.5709570.143841
DEU:2020test21/1004/71/4-1.773690.2130422
DEU:2021test31/10027/313/4-1.2243840.05320082
DEU:2022test31/10027/313/4-1.2243840.05320082
DEU:2023test6/253/41/2-1.5709570.143841
DEU:2024test6/253/41/2-1.5709570.143841
JPN:1980train31/10027/313/4-1.2243840.05320082
JPN:1981train31/10027/313/4-1.2243840.05320082
JPN:1982train31/10027/313/4-1.2243840.05320082
JPN:1983train6/253/41/2-1.5709570.143841
JPN:1984train31/10027/313/4-1.2243840.05320082
JPN:1985train31/10027/313/4-1.2243840.05320082
JPN:1986train6/253/41/2-1.5709570.143841
JPN:1987train6/253/41/2-1.5709570.143841
JPN:1988train6/253/41/2-1.5709570.143841
JPN:1989train31/10027/313/4-1.2243840.05320082
JPN:1990train31/10027/313/4-1.2243840.05320082
JPN:1991train31/10027/313/4-1.2243840.05320082
JPN:1992train6/253/41/2-1.5709570.143841
JPN:1993train21/1004/71/4-1.773690.2130422
JPN:1994train6/253/41/2-1.5709570.143841
JPN:1995train6/253/41/2-1.5709570.143841
JPN:1996train6/253/41/2-1.5709570.143841
JPN:1997train6/253/41/2-1.5709570.143841
JPN:1998train21/1004/71/4-1.773690.2130422
JPN:1999train21/1004/71/4-1.773690.2130422
JPN:2000train6/253/41/2-1.5709570.143841
JPN:2001train6/253/41/2-1.5709570.143841
JPN:2002train6/253/41/2-1.5709570.143841
JPN:2003train6/253/41/2-1.5709570.143841
JPN:2004train6/253/41/2-1.5709570.143841
JPN:2005train6/253/41/2-1.5709570.143841
JPN:2006train6/253/41/2-1.5709570.143841
JPN:2007train6/253/41/2-1.5709570.143841
JPN:2008train21/1004/71/4-1.773690.2130422
JPN:2009train21/1004/71/4-1.773690.2130422
JPN:2010train6/253/41/2-1.5709570.143841
JPN:2011train21/1004/71/4-1.773690.2130422
JPN:2012train6/253/41/2-1.5709570.143841
JPN:2013train6/253/41/2-1.5709570.143841
JPN:2014train31/10027/313/4-1.2243840.05320082
JPN:2015validation6/253/41/2-1.5709570.143841
JPN:2016validation6/253/41/2-1.5709570.143841
JPN:2017validation6/253/41/2-1.5709570.143841
JPN:2018validation6/253/41/2-1.5709570.143841
JPN:2019validation21/1004/71/4-1.773690.2130422
JPN:2020test21/1004/71/4-1.773690.2130422
JPN:2021test6/253/41/2-1.5709570.143841
JPN:2022test31/10027/313/4-1.2243840.05320082
JPN:2023test31/10027/313/4-1.2243840.05320082
JPN:2024test6/253/41/2-1.5709570.143841

First test observation KOR:2020: expand its two latent paths. Evidence is their joint sum 21/100.

Complete paths/Bayes for one actual observation
zPriorConditional observationJointPosterior
01/49/259/1003/7
13/44/253/254/7
Growth/inflation: 180 actual country-years · state-fit
Growth/inflation: 180 actual country-years · state-fit · Original vector · PNG
Growth/inflation: 180 actual country-years · candidates
Growth/inflation: 180 actual country-years · candidates · Original vector · PNG
Growth/inflation: 180 actual country-years · inference-gap
Growth/inflation: 180 actual country-years · inference-gap · Original vector · PNG

Original and complete derived data: actual3-digit-original64counts.csv · actual3150-customer-original14-fields.csv · actual360-four-country-growth-CPI-1980-2024.csv · actual3613-NLS-original52-fields.csv · actual617-binary-feature-lineage.csv · computed-all-state-models.csv · computed-candidate-role-metrics.csv · computed-image-diffusion-stages.csv · computed-image-reverse-bridges.csv · computed-selected-row-inference.csv · Python · base R

기초Foundations

30. 개인 사례: 임금 단위와 결측의 의미부터 확인한다30. Person case: wage units and missingness first

개인 사례의 원 자료는 NLS의 보존된 3,613행·52개 필드입니다. 1976년 교육연수 ed76와 시급 wage76이 모두 있는 3,017행을 먼저 정하고, 원행 순서의 양 끝을 포함하는 균등한 인덱스 간격으로 197명을 선택했습니다. 이는 확률표본 추출을 새로 한 것이 아닙니다. 앞 장의 훈련·시험 역할은 사용하지 않고 이 실험의 역할을 따로 부여했습니다.

첫 비트는 교육연수가 12년 이상인지, 둘째는 1976년 명목 시급이 시간당 500센트 이상인지입니다. 500달러가 아니라 5달러이며 물가를 조정한 현재 화폐도 아닙니다. 원 코드북의 단위를 확인한 뒤 변환합니다. 임금값의 결측을 비취업·검열·0원 임금으로 바꾸어 해석하지 않습니다.

선택 순서 j를 6으로 나눈 나머지가 0~3이면 훈련, 4면 검증, 5면 시험으로 두어 132/33/32건을 얻습니다. 출처 순서에 의한 결정 규칙이므로 무작위 독립 분할이라고 부르지 않습니다. 선택 모형은 ε=1/10,π=3/4이고 네 질량은 21/100,9/100,9/100,61/100입니다. 시험 평균 NLL은 약 1.364841입니다.

관측 11에서 정확 사후는 243/244로 매우 높지만 고정 q는 3/4여서 KL 간격은 약 0.815037입니다. 겉으로 보이는 비트가 같아도 모형의 ε에 따라 추론이 달라짐을 보여 줍니다. 이것은 교육 투자 수익률 추정이나 개별 임금 예측의 정확도를 평가한 결과가 아닙니다. 임계값 아래·위의 원 시급 차이도 이진화 과정에서 잃었습니다.

교육·1976년 시급: 실제 완전행 197명

원값은 실제 관측입니다. 이진 기준·역할·두 잠재 원형·후보 격자·고정 q는 선언한 모형 설계입니다. 로그값은 근사이고 질량·베이즈·우도 곱은 분수로 보존합니다.

원 관측과 선언 모형
항목내용
관측 수197
원형 z=0 / z=100 / 11
후보 ε1/10, 1/4, 2/5
후보 π1/4, 1/2, 3/4
선택 후보(0부터)2
인식 분포q(Z=1|x)=(bit0+bit1+1)/4; 학습하지 않은 고정식
관측 모형이산 질량; 원 연속값의 밀도 아님
선택 규칙ε별 훈련 π 승자만 검증 비교; 시험은 평가만
역할별 관측·범주 전체
역할N00011011
train1321575060
validation3351819
test32141017
아홉 후보·세 역할 전체
후보επ역할N평균 NLL훈련 π 승자검증 선택우도 곱
01/101/4train1321.80535003.19837e-104
정확값31983666420077681276468715023364140370275415736565237037915056707702092399502126867980903671517428065212138652260602784776512431992563736298749062714717627249869/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4validation331.630161004.33509e-24
정확값4335092413020058969174868745467325044358609/1000000000000000000000000000000000000000000000000000000000000000000
01/101/4test321.898017004.19231e-27
정확값41923060287635282367325179996710866161/10000000000000000000000000000000000000000000000000000000000000000
11/101/2train1321.546385002.24188e-89
정확값22418796355861926560115789367502530601358544262128968832637840859934651677019444789032003663418994399990004897921835058335672299682041810971336917144603316883042882898605267969/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2validation331.305147001.9724e-19
정확값197240069199966047802795439236163698895272376329/1000000000000000000000000000000000000000000000000000000000000000000
11/101/2test321.555002.45191e-22
정확값2451910159288816996028375767902696486543681/10000000000000000000000000000000000000000000000000000000000000000
21/103/4train1321.441821112.2126e-83
정확값22125982252158003070873930247450124514783297806955586804148132822198871988058650732725528288554818587890725175165063852866776610214075297585700003348461918071609719179184152949506069/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4validation331.177769111.31991e-17
정확값13199148767757214753886764683021054836857597653249/1000000000000000000000000000000000000000000000000000000000000000000
21/103/4test321.364841111.07701e-19
정확값1077014677962723983208135579753436177556716401/10000000000000000000000000000000000000000000000000000000000000000
31/41/4train1321.577693003.596e-91
정확값315978404920180752629822265788689326357375071760633476670023878238709/878694100496718043517683302282418331810487718418343092402491322775749527474899974671687634004666183037093927858109549828751614463963730408009475621262727315456
31/41/4validation331.545598007.06197e-23
정확값384490250790529527/5444517870735015415413993718908291383296
31/41/4test321.647498001.27063e-23
정확값4323713773987629/340282366920938463463374607431768211456
41/41/2train1321.383735004.7296e-80
정확값41558689503911925749711777976834500120638382636428787009208463132381439208984375/878694100496718043517683302282418331810487718418343092402491322775749527474899974671687634004666183037093927858109549828751614463963730408009475621262727315456
41/41/2validation331.302467002.15482e-19
정확값1173198223114013671875/5444517870735015415413993718908291383296
41/41/2test321.386637005.36189e-20
정확값18245578765869140625/340282366920938463463374607431768211456
51/43/4train1321.288841101.30249e-74
정확값11444919456305683658318203290197117191320446232873130550656494418761533022515686648641/878694100496718043517683302282418331810487718418343092402491322775749527474899974671687634004666183037093927858109549828751614463963730408009475621262727315456
51/43/4validation331.186138101.00138e-17
정확값54520562305888996401567/5444517870735015415413993718908291383296
51/43/4test321.223849109.80948e-18
정확값3337993610564632432749/340282366920938463463374607431768211456
62/51/4train1321.458729002.37478e-84
정확값793404410867862961864787661903845694762655396465302504240892249634511795599683856762563030184630356202149119810931231177471376013/334095588761524455767567058393935234851899610013131087245242186520049830123391294833812281694918056018650531768798828125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
62/51/4validation331.46522001.00202e-21
정확값7465628268944620343775802344941442873/7450580596923828125000000000000000000000000000000000000000
62/51/4test321.490057001.95906e-21
정확값4454380069266509928803021446899/2273736754432320594787597656250000000000000000000000
72/51/2train1321.381638006.23795e-80
정확값551649135639190957590470781598451942383692251088416076321891062410049802518940463296689957773581383486802486591/8843436600416711296395624307507609160822784373182752138264272353452638006438325307362823683555623143998000429000857255523322981321555913414300675867707468569278717041015625000000000000000000
72/51/2validation331.368903002.40581e-20
정확값10683947563278734802883311490563/444089209850062616169452667236328125000000000000000
72/51/2test321.382092006.20123e-20
정확값537870725333596700656820001/8673617379884035472059622406959533691406250000
82/53/4train1321.325957109.70581e-77
정확값32426686294419071594346713073193015049045273147789120118675563229705925582647867670929977703548872695663814792490089811815009206634531863/334095588761524455767567058393935234851899610013131087245242186520049830123391294833812281694918056018650531768798828125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
82/53/4validation331.299993102.33814e-19
정확값1742047324946758170507629984891023842993/7450580596923828125000000000000000000000000000000000000000
82/53/4test321.295325109.96152e-19
정확값2264986699021208433150638306997939/2273736754432320594787597656250000000000000000000000

낮은 NLL이 좋은 점수입니다. 균등 네 범주 기준은 log4≈1.386294입니다. 시험 점수로 후보를 고르지 않습니다. 1 표지는 해당 후보의 훈련 승자·최종 선택 여부입니다.

아홉 후보의 네 범주 추론 전체 — 전체 36행
아홉 후보의 네 범주 추론 전체
후보범주질량사후 Z1고정 q Z1로그 증거ELBOKL 간격
0061/1001/2441/4-0.4942963-1.3093330.815037
019/1001/41/2-2.407946-2.5517870.143841
029/1001/41/2-2.407946-2.5517870.143841
0321/10027/283/4-1.560648-1.8586390.2979917
1041/1001/821/4-0.8915981-1.4401450.5485472
119/1001/21/2-2.407946-2.4079460
129/1001/21/2-2.407946-2.4079460
1341/10081/823/4-0.8915981-1.4401450.5485472
2021/1001/281/4-1.560648-1.8586390.2979917
219/1003/41/2-2.407946-2.5517870.143841
229/1003/41/2-2.407946-2.5517870.143841
2361/100243/2443/4-0.4942963-1.3093330.815037
307/161/281/4-0.8266786-1.124670.2979917
313/161/41/2-1.673976-1.8178170.143841
323/161/41/2-1.673976-1.8178170.143841
333/163/43/4-1.673976-1.6739760
405/161/101/4-1.163151-1.2554820.09233152
413/161/21/2-1.673976-1.6739760
423/161/21/2-1.673976-1.6739760
435/169/103/4-1.163151-1.2554820.09233152
503/161/41/4-1.673976-1.6739760
513/163/41/2-1.673976-1.8178170.143841
523/163/41/2-1.673976-1.8178170.143841
537/1627/283/4-0.8266786-1.124670.2979917
6031/1004/311/4-1.171183-1.2243840.05320082
616/251/41/2-1.427116-1.5709570.143841
626/251/41/2-1.427116-1.5709570.143841
6321/1003/73/4-1.560648-1.773690.2130422
7013/504/131/4-1.347074-1.3551960.00812219
716/251/21/2-1.427116-1.4271160
726/251/21/2-1.427116-1.4271160
7313/509/133/4-1.347074-1.3551960.00812219
8021/1004/71/4-1.560648-1.773690.2130422
816/253/41/2-1.427116-1.5709570.143841
826/253/41/2-1.427116-1.5709570.143841
8331/10027/313/4-1.171183-1.2243840.05320082
선택한 원값·변환·역할 전체 — 전체 197행
선택한 원값·변환·역할 전체
관측 ID원 위치 0/1시점원값 0규칙 0비트 0원값 1규칙 1비트 1역할
NLS:row11/119767at least12years0548at least500cents/hour1train
NLS:row1616/16197614at least12years1300at least500cents/hour0train
NLS:row3535/35197612at least12years1208at least500cents/hour0train
NLS:row5353/53197612at least12years1353at least500cents/hour0train
NLS:row7171/7119769at least12years0213at least500cents/hour0validation
NLS:row8888/88197612at least12years1758at least500cents/hour1test
NLS:row107107/107197613at least12years1202at least500cents/hour0train
NLS:row123123/123197616at least12years1923at least500cents/hour1train
NLS:row145145/145197613at least12years1625at least500cents/hour1train
NLS:row161161/161197614at least12years1635at least500cents/hour1train
NLS:row177177/177197618at least12years1594at least500cents/hour1validation
NLS:row195195/195197612at least12years1795at least500cents/hour1test
NLS:row210210/210197612at least12years1514at least500cents/hour1train
NLS:row230230/230197616at least12years1995at least500cents/hour1train
NLS:row250250/250197614at least12years1505at least500cents/hour1train
NLS:row265265/265197616at least12years1588at least500cents/hour1train
NLS:row284284/284197614at least12years1375at least500cents/hour0validation
NLS:row300300/300197612at least12years1760at least500cents/hour1test
NLS:row318318/318197612at least12years1810at least500cents/hour1train
NLS:row335335/33519763at least12years0313at least500cents/hour0train
NLS:row353353/353197612at least12years1675at least500cents/hour1train
NLS:row370370/370197615at least12years1615at least500cents/hour1train
NLS:row387387/387197617at least12years1975at least500cents/hour1validation
NLS:row405405/405197612at least12years1579at least500cents/hour1test
NLS:row426426/426197612at least12years1300at least500cents/hour0train
NLS:row444444/444197618at least12years1913at least500cents/hour1train
NLS:row462462/462197618at least12years11202at least500cents/hour1train
NLS:row478478/478197616at least12years1813at least500cents/hour1train
NLS:row498498/498197616at least12years1700at least500cents/hour1validation
NLS:row514514/514197616at least12years1657at least500cents/hour1test
NLS:row530530/530197616at least12years1333at least500cents/hour0train
NLS:row546546/546197612at least12years1525at least500cents/hour1train
NLS:row570570/570197613at least12years1577at least500cents/hour1train
NLS:row588588/588197612at least12years1414at least500cents/hour0train
NLS:row605605/605197612at least12years1638at least500cents/hour1validation
NLS:row621621/621197611at least12years0667at least500cents/hour1test
NLS:row638638/638197616at least12years1509at least500cents/hour1train
NLS:row658658/658197614at least12years1746at least500cents/hour1train
NLS:row673673/673197616at least12years1154at least500cents/hour0train
NLS:row691691/691197612at least12years1262at least500cents/hour0train
NLS:row709709/709197613at least12years11010at least500cents/hour1validation
NLS:row727727/727197613at least12years11000at least500cents/hour1test
NLS:row746746/746197616at least12years1476at least500cents/hour0train
NLS:row765765/765197613at least12years1568at least500cents/hour1train
NLS:row785785/785197612at least12years1500at least500cents/hour1train
NLS:row803803/803197614at least12years1688at least500cents/hour1train
NLS:row820820/820197612at least12years1662at least500cents/hour1validation
NLS:row836836/836197612at least12years1667at least500cents/hour1test
NLS:row857857/857197617at least12years1400at least500cents/hour0train
NLS:row875875/875197616at least12years1481at least500cents/hour0train
NLS:row895895/895197614at least12years11055at least500cents/hour1train
NLS:row917917/917197612at least12years1575at least500cents/hour1train
NLS:row935935/935197615at least12years1577at least500cents/hour1validation
NLS:row953953/953197611at least12years0641at least500cents/hour1test
NLS:row971971/971197612at least12years1640at least500cents/hour1train
NLS:row988988/988197613at least12years1613at least500cents/hour1train
NLS:row10061006/1006197616at least12years1641at least500cents/hour1train
NLS:row10241024/1024197614at least12years1384at least500cents/hour0train
NLS:row10401040/1040197615at least12years1444at least500cents/hour0validation
NLS:row10561056/1056197612at least12years11925at least500cents/hour1test
NLS:row10771077/1077197612at least12years1800at least500cents/hour1train
NLS:row10941094/1094197612at least12years1585at least500cents/hour1train
NLS:row11131113/1113197612at least12years11125at least500cents/hour1train
NLS:row11321132/1132197616at least12years1817at least500cents/hour1train
NLS:row11511151/1151197613at least12years1445at least500cents/hour0validation
NLS:row11681168/1168197616at least12years1462at least500cents/hour0test
NLS:row11841184/1184197613at least12years1769at least500cents/hour1train
NLS:row12001200/1200197615at least12years1491at least500cents/hour0train
NLS:row12211221/1221197612at least12years1350at least500cents/hour0train
NLS:row12381238/1238197612at least12years11187at least500cents/hour1train
NLS:row12621262/1262197618at least12years1721at least500cents/hour1validation
NLS:row12801280/1280197618at least12years1622at least500cents/hour1test
NLS:row13021302/1302197612at least12years1520at least500cents/hour1train
NLS:row13201320/1320197612at least12years1714at least500cents/hour1train
NLS:row13371337/1337197616at least12years1769at least500cents/hour1train
NLS:row13601360/1360197615at least12years1225at least500cents/hour0train
NLS:row13781378/1378197616at least12years1520at least500cents/hour1validation
NLS:row13971397/1397197611at least12years0765at least500cents/hour1test
NLS:row14151415/1415197612at least12years1563at least500cents/hour1train
NLS:row14331433/1433197612at least12years1435at least500cents/hour0train
NLS:row14531453/1453197611at least12years0475at least500cents/hour0train
NLS:row14711471/1471197612at least12years11251at least500cents/hour1train
NLS:row14931493/1493197613at least12years1450at least500cents/hour0validation
NLS:row15121512/1512197613at least12years1471at least500cents/hour0test
NLS:row15281528/1528197616at least12years1618at least500cents/hour1train
NLS:row15471547/1547197614at least12years1275at least500cents/hour0train
NLS:row15651565/1565197618at least12years1721at least500cents/hour1train
NLS:row15801580/1580197612at least12years1620at least500cents/hour1train
NLS:row16001600/1600197615at least12years1400at least500cents/hour0validation
NLS:row16211621/1621197612at least12years1800at least500cents/hour1test
NLS:row16381638/1638197612at least12years1310at least500cents/hour0train
NLS:row16601660/1660197616at least12years1713at least500cents/hour1train
NLS:row16781678/167819767at least12years0300at least500cents/hour0train
NLS:row16991699/1699197612at least12years1400at least500cents/hour0train
NLS:row17181718/1718197613at least12years1933at least500cents/hour1validation
NLS:row17341734/1734197611at least12years0504at least500cents/hour1test
NLS:row17531753/1753197613at least12years1350at least500cents/hour0train
NLS:row17691769/176919768at least12years0300at least500cents/hour0train
NLS:row17851785/1785197614at least12years1365at least500cents/hour0train
NLS:row18071807/1807197616at least12years177at least500cents/hour0train
NLS:row18251825/1825197616at least12years1775at least500cents/hour1validation
NLS:row18421842/1842197615at least12years1230at least500cents/hour0test
NLS:row18611861/1861197616at least12years1533at least500cents/hour1train
NLS:row18761876/1876197616at least12years1913at least500cents/hour1train
NLS:row18941894/1894197613at least12years1263at least500cents/hour0train
NLS:row19111911/1911197616at least12years1325at least500cents/hour0train
NLS:row19291929/1929197611at least12years0700at least500cents/hour1validation
NLS:row19481948/1948197615at least12years1438at least500cents/hour0test
NLS:row19661966/1966197616at least12years1420at least500cents/hour0train
NLS:row19861986/198619766at least12years0365at least500cents/hour0train
NLS:row20042004/2004197616at least12years12083at least500cents/hour1train
NLS:row20202020/2020197618at least12years1443at least500cents/hour0train
NLS:row20372037/2037197614at least12years1577at least500cents/hour1validation
NLS:row20562056/2056197616at least12years1315at least500cents/hour0test
NLS:row20772077/2077197612at least12years1250at least500cents/hour0train
NLS:row20972097/209719768at least12years0500at least500cents/hour1train
NLS:row21182118/2118197613at least12years1364at least500cents/hour0train
NLS:row21352135/213519763at least12years0167at least500cents/hour0train
NLS:row21522152/2152197612at least12years1278at least500cents/hour0validation
NLS:row21742174/2174197612at least12years1440at least500cents/hour0test
NLS:row21902190/219019769at least12years0500at least500cents/hour1train
NLS:row22072207/2207197616at least12years1545at least500cents/hour1train
NLS:row22252225/2225197612at least12years1550at least500cents/hour1train
NLS:row22422242/2242197614at least12years1490at least500cents/hour0train
NLS:row22612261/226119768at least12years0450at least500cents/hour0validation
NLS:row22802280/2280197616at least12years1577at least500cents/hour1test
NLS:row22962296/2296197612at least12years1519at least500cents/hour1train
NLS:row23162316/2316197618at least12years11012at least500cents/hour1train
NLS:row23342334/2334197610at least12years0865at least500cents/hour1train
NLS:row23522352/2352197612at least12years1256at least500cents/hour0train
NLS:row23732373/2373197616at least12years1709at least500cents/hour1validation
NLS:row23902390/2390197612at least12years1400at least500cents/hour0test
NLS:row24072407/2407197613at least12years1617at least500cents/hour1train
NLS:row24222422/2422197613at least12years1577at least500cents/hour1train
NLS:row24392439/243919769at least12years0413at least500cents/hour0train
NLS:row24592459/2459197612at least12years1818at least500cents/hour1train
NLS:row24772477/2477197612at least12years11106at least500cents/hour1validation
NLS:row25012501/2501197614at least12years1625at least500cents/hour1test
NLS:row25162516/2516197612at least12years1606at least500cents/hour1train
NLS:row25352535/2535197610at least12years0350at least500cents/hour0train
NLS:row25562556/2556197614at least12years1693at least500cents/hour1train
NLS:row25722572/2572197617at least12years11385at least500cents/hour1train
NLS:row25892589/2589197615at least12years1400at least500cents/hour0validation
NLS:row26082608/2608197613at least12years1685at least500cents/hour1test
NLS:row26252625/2625197612at least12years1538at least500cents/hour1train
NLS:row26432643/2643197611at least12years0200at least500cents/hour0train
NLS:row26602660/2660197612at least12years11443at least500cents/hour1train
NLS:row26792679/2679197612at least12years1699at least500cents/hour1train
NLS:row26982698/2698197616at least12years1911at least500cents/hour1validation
NLS:row27242724/2724197613at least12years11154at least500cents/hour1test
NLS:row27432743/2743197614at least12years1600at least500cents/hour1train
NLS:row27592759/2759197612at least12years1433at least500cents/hour0train
NLS:row27792779/2779197616at least12years1479at least500cents/hour0train
NLS:row28012801/2801197615at least12years1577at least500cents/hour1train
NLS:row28232823/2823197611at least12years0220at least500cents/hour0validation
NLS:row28482848/2848197615at least12years1733at least500cents/hour1test
NLS:row28632863/2863197616at least12years1577at least500cents/hour1train
NLS:row28822882/2882197616at least12years1250at least500cents/hour0train
NLS:row29082908/2908197614at least12years1462at least500cents/hour0train
NLS:row29272927/2927197616at least12years1508at least500cents/hour1train
NLS:row29502950/2950197616at least12years1275at least500cents/hour0validation
NLS:row29662966/2966197616at least12years1438at least500cents/hour0test
NLS:row29812981/2981197613at least12years1408at least500cents/hour0train
NLS:row29982998/2998197616at least12years1491at least500cents/hour0train
NLS:row30153015/3015197616at least12years1400at least500cents/hour0train
NLS:row30323032/3032197612at least12years1308at least500cents/hour0train
NLS:row30503050/3050197612at least12years1538at least500cents/hour1validation
NLS:row30683068/3068197613at least12years1450at least500cents/hour0test
NLS:row30873087/3087197611at least12years0700at least500cents/hour1train
NLS:row31063106/310619768at least12years0250at least500cents/hour0train
NLS:row31243124/3124197614at least12years1200at least500cents/hour0train
NLS:row31413141/3141197612at least12years1220at least500cents/hour0train
NLS:row31583158/3158197616at least12years1548at least500cents/hour1validation
NLS:row31803180/3180197616at least12years1649at least500cents/hour1test
NLS:row31953195/3195197612at least12years1359at least500cents/hour0train
NLS:row32133213/3213197611at least12years0325at least500cents/hour0train
NLS:row32313231/323119769at least12years0515at least500cents/hour1train
NLS:row32463246/324619766at least12years0300at least500cents/hour0train
NLS:row32683268/3268197617at least12years1673at least500cents/hour1validation
NLS:row32873287/3287197612at least12years1626at least500cents/hour1test
NLS:row33023302/3302197614at least12years1426at least500cents/hour0train
NLS:row33243324/3324197612at least12years1155at least500cents/hour0train
NLS:row33413341/3341197616at least12years1404at least500cents/hour0train
NLS:row33593359/3359197613at least12years1460at least500cents/hour0train
NLS:row33773377/337719767at least12years0176at least500cents/hour0validation
NLS:row33933393/3393197610at least12years0200at least500cents/hour0test
NLS:row34173417/341719767at least12years0275at least500cents/hour0train
NLS:row34343434/343419768at least12years0274at least500cents/hour0train
NLS:row34513451/3451197612at least12years1230at least500cents/hour0train
NLS:row34693469/346919768at least12years0833at least500cents/hour1train
NLS:row34913491/349119768at least12years0300at least500cents/hour0validation
NLS:row35103510/3510197616at least12years1375at least500cents/hour0test
NLS:row35263526/3526197618at least12years1462at least500cents/hour0train
NLS:row35483548/354819767at least12years0409at least500cents/hour0train
NLS:row35733573/3573197612at least12years1200at least500cents/hour0train
NLS:row35903590/3590197612at least12years1263at least500cents/hour0train
NLS:row36133613/3613197613at least12years1525at least500cents/hour1validation
선택 모형의 모든 관측 추론 — 전체 197행
선택 모형의 모든 관측 추론
관측 ID역할질량사후 Z1고정 q Z1ELBOKL 간격
NLS:row1train9/1003/41/2-2.5517870.143841
NLS:row16train9/1003/41/2-2.5517870.143841
NLS:row35train9/1003/41/2-2.5517870.143841
NLS:row53train9/1003/41/2-2.5517870.143841
NLS:row71validation21/1001/281/4-1.8586390.2979917
NLS:row88test61/100243/2443/4-1.3093330.815037
NLS:row107train9/1003/41/2-2.5517870.143841
NLS:row123train61/100243/2443/4-1.3093330.815037
NLS:row145train61/100243/2443/4-1.3093330.815037
NLS:row161train61/100243/2443/4-1.3093330.815037
NLS:row177validation61/100243/2443/4-1.3093330.815037
NLS:row195test61/100243/2443/4-1.3093330.815037
NLS:row210train61/100243/2443/4-1.3093330.815037
NLS:row230train61/100243/2443/4-1.3093330.815037
NLS:row250train61/100243/2443/4-1.3093330.815037
NLS:row265train61/100243/2443/4-1.3093330.815037
NLS:row284validation9/1003/41/2-2.5517870.143841
NLS:row300test61/100243/2443/4-1.3093330.815037
NLS:row318train61/100243/2443/4-1.3093330.815037
NLS:row335train21/1001/281/4-1.8586390.2979917
NLS:row353train61/100243/2443/4-1.3093330.815037
NLS:row370train61/100243/2443/4-1.3093330.815037
NLS:row387validation61/100243/2443/4-1.3093330.815037
NLS:row405test61/100243/2443/4-1.3093330.815037
NLS:row426train9/1003/41/2-2.5517870.143841
NLS:row444train61/100243/2443/4-1.3093330.815037
NLS:row462train61/100243/2443/4-1.3093330.815037
NLS:row478train61/100243/2443/4-1.3093330.815037
NLS:row498validation61/100243/2443/4-1.3093330.815037
NLS:row514test61/100243/2443/4-1.3093330.815037
NLS:row530train9/1003/41/2-2.5517870.143841
NLS:row546train61/100243/2443/4-1.3093330.815037
NLS:row570train61/100243/2443/4-1.3093330.815037
NLS:row588train9/1003/41/2-2.5517870.143841
NLS:row605validation61/100243/2443/4-1.3093330.815037
NLS:row621test9/1003/41/2-2.5517870.143841
NLS:row638train61/100243/2443/4-1.3093330.815037
NLS:row658train61/100243/2443/4-1.3093330.815037
NLS:row673train9/1003/41/2-2.5517870.143841
NLS:row691train9/1003/41/2-2.5517870.143841
NLS:row709validation61/100243/2443/4-1.3093330.815037
NLS:row727test61/100243/2443/4-1.3093330.815037
NLS:row746train9/1003/41/2-2.5517870.143841
NLS:row765train61/100243/2443/4-1.3093330.815037
NLS:row785train61/100243/2443/4-1.3093330.815037
NLS:row803train61/100243/2443/4-1.3093330.815037
NLS:row820validation61/100243/2443/4-1.3093330.815037
NLS:row836test61/100243/2443/4-1.3093330.815037
NLS:row857train9/1003/41/2-2.5517870.143841
NLS:row875train9/1003/41/2-2.5517870.143841
NLS:row895train61/100243/2443/4-1.3093330.815037
NLS:row917train61/100243/2443/4-1.3093330.815037
NLS:row935validation61/100243/2443/4-1.3093330.815037
NLS:row953test9/1003/41/2-2.5517870.143841
NLS:row971train61/100243/2443/4-1.3093330.815037
NLS:row988train61/100243/2443/4-1.3093330.815037
NLS:row1006train61/100243/2443/4-1.3093330.815037
NLS:row1024train9/1003/41/2-2.5517870.143841
NLS:row1040validation9/1003/41/2-2.5517870.143841
NLS:row1056test61/100243/2443/4-1.3093330.815037
NLS:row1077train61/100243/2443/4-1.3093330.815037
NLS:row1094train61/100243/2443/4-1.3093330.815037
NLS:row1113train61/100243/2443/4-1.3093330.815037
NLS:row1132train61/100243/2443/4-1.3093330.815037
NLS:row1151validation9/1003/41/2-2.5517870.143841
NLS:row1168test9/1003/41/2-2.5517870.143841
NLS:row1184train61/100243/2443/4-1.3093330.815037
NLS:row1200train9/1003/41/2-2.5517870.143841
NLS:row1221train9/1003/41/2-2.5517870.143841
NLS:row1238train61/100243/2443/4-1.3093330.815037
NLS:row1262validation61/100243/2443/4-1.3093330.815037
NLS:row1280test61/100243/2443/4-1.3093330.815037
NLS:row1302train61/100243/2443/4-1.3093330.815037
NLS:row1320train61/100243/2443/4-1.3093330.815037
NLS:row1337train61/100243/2443/4-1.3093330.815037
NLS:row1360train9/1003/41/2-2.5517870.143841
NLS:row1378validation61/100243/2443/4-1.3093330.815037
NLS:row1397test9/1003/41/2-2.5517870.143841
NLS:row1415train61/100243/2443/4-1.3093330.815037
NLS:row1433train9/1003/41/2-2.5517870.143841
NLS:row1453train21/1001/281/4-1.8586390.2979917
NLS:row1471train61/100243/2443/4-1.3093330.815037
NLS:row1493validation9/1003/41/2-2.5517870.143841
NLS:row1512test9/1003/41/2-2.5517870.143841
NLS:row1528train61/100243/2443/4-1.3093330.815037
NLS:row1547train9/1003/41/2-2.5517870.143841
NLS:row1565train61/100243/2443/4-1.3093330.815037
NLS:row1580train61/100243/2443/4-1.3093330.815037
NLS:row1600validation9/1003/41/2-2.5517870.143841
NLS:row1621test61/100243/2443/4-1.3093330.815037
NLS:row1638train9/1003/41/2-2.5517870.143841
NLS:row1660train61/100243/2443/4-1.3093330.815037
NLS:row1678train21/1001/281/4-1.8586390.2979917
NLS:row1699train9/1003/41/2-2.5517870.143841
NLS:row1718validation61/100243/2443/4-1.3093330.815037
NLS:row1734test9/1003/41/2-2.5517870.143841
NLS:row1753train9/1003/41/2-2.5517870.143841
NLS:row1769train21/1001/281/4-1.8586390.2979917
NLS:row1785train9/1003/41/2-2.5517870.143841
NLS:row1807train9/1003/41/2-2.5517870.143841
NLS:row1825validation61/100243/2443/4-1.3093330.815037
NLS:row1842test9/1003/41/2-2.5517870.143841
NLS:row1861train61/100243/2443/4-1.3093330.815037
NLS:row1876train61/100243/2443/4-1.3093330.815037
NLS:row1894train9/1003/41/2-2.5517870.143841
NLS:row1911train9/1003/41/2-2.5517870.143841
NLS:row1929validation9/1003/41/2-2.5517870.143841
NLS:row1948test9/1003/41/2-2.5517870.143841
NLS:row1966train9/1003/41/2-2.5517870.143841
NLS:row1986train21/1001/281/4-1.8586390.2979917
NLS:row2004train61/100243/2443/4-1.3093330.815037
NLS:row2020train9/1003/41/2-2.5517870.143841
NLS:row2037validation61/100243/2443/4-1.3093330.815037
NLS:row2056test9/1003/41/2-2.5517870.143841
NLS:row2077train9/1003/41/2-2.5517870.143841
NLS:row2097train9/1003/41/2-2.5517870.143841
NLS:row2118train9/1003/41/2-2.5517870.143841
NLS:row2135train21/1001/281/4-1.8586390.2979917
NLS:row2152validation9/1003/41/2-2.5517870.143841
NLS:row2174test9/1003/41/2-2.5517870.143841
NLS:row2190train9/1003/41/2-2.5517870.143841
NLS:row2207train61/100243/2443/4-1.3093330.815037
NLS:row2225train61/100243/2443/4-1.3093330.815037
NLS:row2242train9/1003/41/2-2.5517870.143841
NLS:row2261validation21/1001/281/4-1.8586390.2979917
NLS:row2280test61/100243/2443/4-1.3093330.815037
NLS:row2296train61/100243/2443/4-1.3093330.815037
NLS:row2316train61/100243/2443/4-1.3093330.815037
NLS:row2334train9/1003/41/2-2.5517870.143841
NLS:row2352train9/1003/41/2-2.5517870.143841
NLS:row2373validation61/100243/2443/4-1.3093330.815037
NLS:row2390test9/1003/41/2-2.5517870.143841
NLS:row2407train61/100243/2443/4-1.3093330.815037
NLS:row2422train61/100243/2443/4-1.3093330.815037
NLS:row2439train21/1001/281/4-1.8586390.2979917
NLS:row2459train61/100243/2443/4-1.3093330.815037
NLS:row2477validation61/100243/2443/4-1.3093330.815037
NLS:row2501test61/100243/2443/4-1.3093330.815037
NLS:row2516train61/100243/2443/4-1.3093330.815037
NLS:row2535train21/1001/281/4-1.8586390.2979917
NLS:row2556train61/100243/2443/4-1.3093330.815037
NLS:row2572train61/100243/2443/4-1.3093330.815037
NLS:row2589validation9/1003/41/2-2.5517870.143841
NLS:row2608test61/100243/2443/4-1.3093330.815037
NLS:row2625train61/100243/2443/4-1.3093330.815037
NLS:row2643train21/1001/281/4-1.8586390.2979917
NLS:row2660train61/100243/2443/4-1.3093330.815037
NLS:row2679train61/100243/2443/4-1.3093330.815037
NLS:row2698validation61/100243/2443/4-1.3093330.815037
NLS:row2724test61/100243/2443/4-1.3093330.815037
NLS:row2743train61/100243/2443/4-1.3093330.815037
NLS:row2759train9/1003/41/2-2.5517870.143841
NLS:row2779train9/1003/41/2-2.5517870.143841
NLS:row2801train61/100243/2443/4-1.3093330.815037
NLS:row2823validation21/1001/281/4-1.8586390.2979917
NLS:row2848test61/100243/2443/4-1.3093330.815037
NLS:row2863train61/100243/2443/4-1.3093330.815037
NLS:row2882train9/1003/41/2-2.5517870.143841
NLS:row2908train9/1003/41/2-2.5517870.143841
NLS:row2927train61/100243/2443/4-1.3093330.815037
NLS:row2950validation9/1003/41/2-2.5517870.143841
NLS:row2966test9/1003/41/2-2.5517870.143841
NLS:row2981train9/1003/41/2-2.5517870.143841
NLS:row2998train9/1003/41/2-2.5517870.143841
NLS:row3015train9/1003/41/2-2.5517870.143841
NLS:row3032train9/1003/41/2-2.5517870.143841
NLS:row3050validation61/100243/2443/4-1.3093330.815037
NLS:row3068test9/1003/41/2-2.5517870.143841
NLS:row3087train9/1003/41/2-2.5517870.143841
NLS:row3106train21/1001/281/4-1.8586390.2979917
NLS:row3124train9/1003/41/2-2.5517870.143841
NLS:row3141train9/1003/41/2-2.5517870.143841
NLS:row3158validation61/100243/2443/4-1.3093330.815037
NLS:row3180test61/100243/2443/4-1.3093330.815037
NLS:row3195train9/1003/41/2-2.5517870.143841
NLS:row3213train21/1001/281/4-1.8586390.2979917
NLS:row3231train9/1003/41/2-2.5517870.143841
NLS:row3246train21/1001/281/4-1.8586390.2979917
NLS:row3268validation61/100243/2443/4-1.3093330.815037
NLS:row3287test61/100243/2443/4-1.3093330.815037
NLS:row3302train9/1003/41/2-2.5517870.143841
NLS:row3324train9/1003/41/2-2.5517870.143841
NLS:row3341train9/1003/41/2-2.5517870.143841
NLS:row3359train9/1003/41/2-2.5517870.143841
NLS:row3377validation21/1001/281/4-1.8586390.2979917
NLS:row3393test21/1001/281/4-1.8586390.2979917
NLS:row3417train21/1001/281/4-1.8586390.2979917
NLS:row3434train21/1001/281/4-1.8586390.2979917
NLS:row3451train9/1003/41/2-2.5517870.143841
NLS:row3469train9/1003/41/2-2.5517870.143841
NLS:row3491validation21/1001/281/4-1.8586390.2979917
NLS:row3510test9/1003/41/2-2.5517870.143841
NLS:row3526train9/1003/41/2-2.5517870.143841
NLS:row3548train21/1001/281/4-1.8586390.2979917
NLS:row3573train9/1003/41/2-2.5517870.143841
NLS:row3590train9/1003/41/2-2.5517870.143841
NLS:row3613validation61/100243/2443/4-1.3093330.815037

첫 시험 관측 NLS:row88의 두 경로를 펼칩니다. 관측 질량은 두 결합의 합 61/100.

한 실제 관측의 경로·베이즈 전부
z사전조건부 관측결합사후
01/41/1001/4001/244
13/481/100243/400243/244
교육·1976년 시급: 실제 완전행 197명 · state-fit
교육·1976년 시급: 실제 완전행 197명 · state-fit · 원 벡터 확대 · PNG
교육·1976년 시급: 실제 완전행 197명 · candidates
교육·1976년 시급: 실제 완전행 197명 · candidates · 원 벡터 확대 · PNG
교육·1976년 시급: 실제 완전행 197명 · inference-gap
교육·1976년 시급: 실제 완전행 197명 · inference-gap · 원 벡터 확대 · PNG

원자료·전체 파생값: actual3-digit-original64counts.csv · actual3150-customer-original14-fields.csv · actual360-four-country-growth-CPI-1980-2024.csv · actual3613-NLS-original52-fields.csv · actual617-binary-feature-lineage.csv · computed-all-state-models.csv · computed-candidate-role-metrics.csv · computed-image-diffusion-stages.csv · computed-image-reverse-bridges.csv · computed-selected-row-inference.csv · Python · base R

The preserved NLS source has 3613 rows and 52 native fields. First restrict to 3017 rows with both 1976 education ed76 and wage wage76, then select 197 by equally spaced source-order indices including endpoints. This is not a newly drawn probability sample. Roles from previous chapters are ignored.

Bit zero indicates at least 12 years of education; bit one indicates nominal 1976 hourly wage at least 500 cents, or five dollars—not 500 dollars and not current inflation-adjusted currency. Check the original codebook before transformation. A missing wage does not establish nonemployment, censoring or zero earnings.

Selection index modulo six assigns residues 0–3 to training,4 to validation and 5 to test, producing 132/33/32 rows. This deterministic source-order rule is not a randomized independence guarantee. Selected epsilon 1/10 and pi 3/4 give masses 21/100,9/100,9/100,61/100 and test mean NLL about 1.364841.

At state 11, exact posterior 243/244 is much more concentrated than fixed q 3/4, leaving gap about 0.815037 nats. The same observed bits can imply different inference under different noise parameters. This is neither an education-return estimate nor an accuracy study of individual wage prediction; thresholding has discarded within-category wage differences.

Education/1976 wages: 197 actual complete records

Original values are observed. Binary coding, roles, two latent prototypes, candidate grid and fixed q are declared modeling choices. Logs are approximate; masses, Bayes and likelihood products retain exact fractions.

Observed units and declared model
ItemMeaning
Observed records197
Latent prototypes00 / 11
Epsilon candidates1/10, 1/4, 2/5
Prior-one candidates1/4, 1/2, 3/4
Selected candidate (zero based)2
Recognitionq(Z=1|x)=(bit0+bit1+1)/4; fixed, not trained
Observation modelDiscrete masses, not densities of original continuous measurements
Selection ruleTrain-only pi winner per epsilon, then validation choice; test evaluation only
Complete role/state counts
RoleN00011011
train1321575060
validation3351819
test32141017
Every candidate and role
IndexεπRoleNMean NLLTrain pi winnerSelectedLikelihood product
01/101/4train1321.80535003.19837e-104
Exact value31983666420077681276468715023364140370275415736565237037915056707702092399502126867980903671517428065212138652260602784776512431992563736298749062714717627249869/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4validation331.630161004.33509e-24
Exact value4335092413020058969174868745467325044358609/1000000000000000000000000000000000000000000000000000000000000000000
01/101/4test321.898017004.19231e-27
Exact value41923060287635282367325179996710866161/10000000000000000000000000000000000000000000000000000000000000000
11/101/2train1321.546385002.24188e-89
Exact value22418796355861926560115789367502530601358544262128968832637840859934651677019444789032003663418994399990004897921835058335672299682041810971336917144603316883042882898605267969/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2validation331.305147001.9724e-19
Exact value197240069199966047802795439236163698895272376329/1000000000000000000000000000000000000000000000000000000000000000000
11/101/2test321.555002.45191e-22
Exact value2451910159288816996028375767902696486543681/10000000000000000000000000000000000000000000000000000000000000000
21/103/4train1321.441821112.2126e-83
Exact value22125982252158003070873930247450124514783297806955586804148132822198871988058650732725528288554818587890725175165063852866776610214075297585700003348461918071609719179184152949506069/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4validation331.177769111.31991e-17
Exact value13199148767757214753886764683021054836857597653249/1000000000000000000000000000000000000000000000000000000000000000000
21/103/4test321.364841111.07701e-19
Exact value1077014677962723983208135579753436177556716401/10000000000000000000000000000000000000000000000000000000000000000
31/41/4train1321.577693003.596e-91
Exact value315978404920180752629822265788689326357375071760633476670023878238709/878694100496718043517683302282418331810487718418343092402491322775749527474899974671687634004666183037093927858109549828751614463963730408009475621262727315456
31/41/4validation331.545598007.06197e-23
Exact value384490250790529527/5444517870735015415413993718908291383296
31/41/4test321.647498001.27063e-23
Exact value4323713773987629/340282366920938463463374607431768211456
41/41/2train1321.383735004.7296e-80
Exact value41558689503911925749711777976834500120638382636428787009208463132381439208984375/878694100496718043517683302282418331810487718418343092402491322775749527474899974671687634004666183037093927858109549828751614463963730408009475621262727315456
41/41/2validation331.302467002.15482e-19
Exact value1173198223114013671875/5444517870735015415413993718908291383296
41/41/2test321.386637005.36189e-20
Exact value18245578765869140625/340282366920938463463374607431768211456
51/43/4train1321.288841101.30249e-74
Exact value11444919456305683658318203290197117191320446232873130550656494418761533022515686648641/878694100496718043517683302282418331810487718418343092402491322775749527474899974671687634004666183037093927858109549828751614463963730408009475621262727315456
51/43/4validation331.186138101.00138e-17
Exact value54520562305888996401567/5444517870735015415413993718908291383296
51/43/4test321.223849109.80948e-18
Exact value3337993610564632432749/340282366920938463463374607431768211456
62/51/4train1321.458729002.37478e-84
Exact value793404410867862961864787661903845694762655396465302504240892249634511795599683856762563030184630356202149119810931231177471376013/334095588761524455767567058393935234851899610013131087245242186520049830123391294833812281694918056018650531768798828125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
62/51/4validation331.46522001.00202e-21
Exact value7465628268944620343775802344941442873/7450580596923828125000000000000000000000000000000000000000
62/51/4test321.490057001.95906e-21
Exact value4454380069266509928803021446899/2273736754432320594787597656250000000000000000000000
72/51/2train1321.381638006.23795e-80
Exact value551649135639190957590470781598451942383692251088416076321891062410049802518940463296689957773581383486802486591/8843436600416711296395624307507609160822784373182752138264272353452638006438325307362823683555623143998000429000857255523322981321555913414300675867707468569278717041015625000000000000000000
72/51/2validation331.368903002.40581e-20
Exact value10683947563278734802883311490563/444089209850062616169452667236328125000000000000000
72/51/2test321.382092006.20123e-20
Exact value537870725333596700656820001/8673617379884035472059622406959533691406250000
82/53/4train1321.325957109.70581e-77
Exact value32426686294419071594346713073193015049045273147789120118675563229705925582647867670929977703548872695663814792490089811815009206634531863/334095588761524455767567058393935234851899610013131087245242186520049830123391294833812281694918056018650531768798828125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
82/53/4validation331.299993102.33814e-19
Exact value1742047324946758170507629984891023842993/7450580596923828125000000000000000000000000000000000000000
82/53/4test321.295325109.96152e-19
Exact value2264986699021208433150638306997939/2273736754432320594787597656250000000000000000000000

Lower NLL is better. Uniform-four-state NLL is log4≈1.386294. Test scores do not select candidates. Indicator 1 marks a training-prior winner or final selection.

Every state under every candidate — all 36 rows
Every state under every candidate
IndexStateMassPosterior Z1Fixed q Z1Log evidenceELBOKL gap
0061/1001/2441/4-0.4942963-1.3093330.815037
019/1001/41/2-2.407946-2.5517870.143841
029/1001/41/2-2.407946-2.5517870.143841
0321/10027/283/4-1.560648-1.8586390.2979917
1041/1001/821/4-0.8915981-1.4401450.5485472
119/1001/21/2-2.407946-2.4079460
129/1001/21/2-2.407946-2.4079460
1341/10081/823/4-0.8915981-1.4401450.5485472
2021/1001/281/4-1.560648-1.8586390.2979917
219/1003/41/2-2.407946-2.5517870.143841
229/1003/41/2-2.407946-2.5517870.143841
2361/100243/2443/4-0.4942963-1.3093330.815037
307/161/281/4-0.8266786-1.124670.2979917
313/161/41/2-1.673976-1.8178170.143841
323/161/41/2-1.673976-1.8178170.143841
333/163/43/4-1.673976-1.6739760
405/161/101/4-1.163151-1.2554820.09233152
413/161/21/2-1.673976-1.6739760
423/161/21/2-1.673976-1.6739760
435/169/103/4-1.163151-1.2554820.09233152
503/161/41/4-1.673976-1.6739760
513/163/41/2-1.673976-1.8178170.143841
523/163/41/2-1.673976-1.8178170.143841
537/1627/283/4-0.8266786-1.124670.2979917
6031/1004/311/4-1.171183-1.2243840.05320082
616/251/41/2-1.427116-1.5709570.143841
626/251/41/2-1.427116-1.5709570.143841
6321/1003/73/4-1.560648-1.773690.2130422
7013/504/131/4-1.347074-1.3551960.00812219
716/251/21/2-1.427116-1.4271160
726/251/21/2-1.427116-1.4271160
7313/509/133/4-1.347074-1.3551960.00812219
8021/1004/71/4-1.560648-1.773690.2130422
816/253/41/2-1.427116-1.5709570.143841
826/253/41/2-1.427116-1.5709570.143841
8331/10027/313/4-1.171183-1.2243840.05320082
Every selected native value, rule and role — all 197 rows
Every selected native value, rule and role
Observation IDSource positions 0/1TimeNative 0Rule 0Bit 0Native 1Rule 1Bit 1Role
NLS:row11/119767at least12years0548at least500cents/hour1train
NLS:row1616/16197614at least12years1300at least500cents/hour0train
NLS:row3535/35197612at least12years1208at least500cents/hour0train
NLS:row5353/53197612at least12years1353at least500cents/hour0train
NLS:row7171/7119769at least12years0213at least500cents/hour0validation
NLS:row8888/88197612at least12years1758at least500cents/hour1test
NLS:row107107/107197613at least12years1202at least500cents/hour0train
NLS:row123123/123197616at least12years1923at least500cents/hour1train
NLS:row145145/145197613at least12years1625at least500cents/hour1train
NLS:row161161/161197614at least12years1635at least500cents/hour1train
NLS:row177177/177197618at least12years1594at least500cents/hour1validation
NLS:row195195/195197612at least12years1795at least500cents/hour1test
NLS:row210210/210197612at least12years1514at least500cents/hour1train
NLS:row230230/230197616at least12years1995at least500cents/hour1train
NLS:row250250/250197614at least12years1505at least500cents/hour1train
NLS:row265265/265197616at least12years1588at least500cents/hour1train
NLS:row284284/284197614at least12years1375at least500cents/hour0validation
NLS:row300300/300197612at least12years1760at least500cents/hour1test
NLS:row318318/318197612at least12years1810at least500cents/hour1train
NLS:row335335/33519763at least12years0313at least500cents/hour0train
NLS:row353353/353197612at least12years1675at least500cents/hour1train
NLS:row370370/370197615at least12years1615at least500cents/hour1train
NLS:row387387/387197617at least12years1975at least500cents/hour1validation
NLS:row405405/405197612at least12years1579at least500cents/hour1test
NLS:row426426/426197612at least12years1300at least500cents/hour0train
NLS:row444444/444197618at least12years1913at least500cents/hour1train
NLS:row462462/462197618at least12years11202at least500cents/hour1train
NLS:row478478/478197616at least12years1813at least500cents/hour1train
NLS:row498498/498197616at least12years1700at least500cents/hour1validation
NLS:row514514/514197616at least12years1657at least500cents/hour1test
NLS:row530530/530197616at least12years1333at least500cents/hour0train
NLS:row546546/546197612at least12years1525at least500cents/hour1train
NLS:row570570/570197613at least12years1577at least500cents/hour1train
NLS:row588588/588197612at least12years1414at least500cents/hour0train
NLS:row605605/605197612at least12years1638at least500cents/hour1validation
NLS:row621621/621197611at least12years0667at least500cents/hour1test
NLS:row638638/638197616at least12years1509at least500cents/hour1train
NLS:row658658/658197614at least12years1746at least500cents/hour1train
NLS:row673673/673197616at least12years1154at least500cents/hour0train
NLS:row691691/691197612at least12years1262at least500cents/hour0train
NLS:row709709/709197613at least12years11010at least500cents/hour1validation
NLS:row727727/727197613at least12years11000at least500cents/hour1test
NLS:row746746/746197616at least12years1476at least500cents/hour0train
NLS:row765765/765197613at least12years1568at least500cents/hour1train
NLS:row785785/785197612at least12years1500at least500cents/hour1train
NLS:row803803/803197614at least12years1688at least500cents/hour1train
NLS:row820820/820197612at least12years1662at least500cents/hour1validation
NLS:row836836/836197612at least12years1667at least500cents/hour1test
NLS:row857857/857197617at least12years1400at least500cents/hour0train
NLS:row875875/875197616at least12years1481at least500cents/hour0train
NLS:row895895/895197614at least12years11055at least500cents/hour1train
NLS:row917917/917197612at least12years1575at least500cents/hour1train
NLS:row935935/935197615at least12years1577at least500cents/hour1validation
NLS:row953953/953197611at least12years0641at least500cents/hour1test
NLS:row971971/971197612at least12years1640at least500cents/hour1train
NLS:row988988/988197613at least12years1613at least500cents/hour1train
NLS:row10061006/1006197616at least12years1641at least500cents/hour1train
NLS:row10241024/1024197614at least12years1384at least500cents/hour0train
NLS:row10401040/1040197615at least12years1444at least500cents/hour0validation
NLS:row10561056/1056197612at least12years11925at least500cents/hour1test
NLS:row10771077/1077197612at least12years1800at least500cents/hour1train
NLS:row10941094/1094197612at least12years1585at least500cents/hour1train
NLS:row11131113/1113197612at least12years11125at least500cents/hour1train
NLS:row11321132/1132197616at least12years1817at least500cents/hour1train
NLS:row11511151/1151197613at least12years1445at least500cents/hour0validation
NLS:row11681168/1168197616at least12years1462at least500cents/hour0test
NLS:row11841184/1184197613at least12years1769at least500cents/hour1train
NLS:row12001200/1200197615at least12years1491at least500cents/hour0train
NLS:row12211221/1221197612at least12years1350at least500cents/hour0train
NLS:row12381238/1238197612at least12years11187at least500cents/hour1train
NLS:row12621262/1262197618at least12years1721at least500cents/hour1validation
NLS:row12801280/1280197618at least12years1622at least500cents/hour1test
NLS:row13021302/1302197612at least12years1520at least500cents/hour1train
NLS:row13201320/1320197612at least12years1714at least500cents/hour1train
NLS:row13371337/1337197616at least12years1769at least500cents/hour1train
NLS:row13601360/1360197615at least12years1225at least500cents/hour0train
NLS:row13781378/1378197616at least12years1520at least500cents/hour1validation
NLS:row13971397/1397197611at least12years0765at least500cents/hour1test
NLS:row14151415/1415197612at least12years1563at least500cents/hour1train
NLS:row14331433/1433197612at least12years1435at least500cents/hour0train
NLS:row14531453/1453197611at least12years0475at least500cents/hour0train
NLS:row14711471/1471197612at least12years11251at least500cents/hour1train
NLS:row14931493/1493197613at least12years1450at least500cents/hour0validation
NLS:row15121512/1512197613at least12years1471at least500cents/hour0test
NLS:row15281528/1528197616at least12years1618at least500cents/hour1train
NLS:row15471547/1547197614at least12years1275at least500cents/hour0train
NLS:row15651565/1565197618at least12years1721at least500cents/hour1train
NLS:row15801580/1580197612at least12years1620at least500cents/hour1train
NLS:row16001600/1600197615at least12years1400at least500cents/hour0validation
NLS:row16211621/1621197612at least12years1800at least500cents/hour1test
NLS:row16381638/1638197612at least12years1310at least500cents/hour0train
NLS:row16601660/1660197616at least12years1713at least500cents/hour1train
NLS:row16781678/167819767at least12years0300at least500cents/hour0train
NLS:row16991699/1699197612at least12years1400at least500cents/hour0train
NLS:row17181718/1718197613at least12years1933at least500cents/hour1validation
NLS:row17341734/1734197611at least12years0504at least500cents/hour1test
NLS:row17531753/1753197613at least12years1350at least500cents/hour0train
NLS:row17691769/176919768at least12years0300at least500cents/hour0train
NLS:row17851785/1785197614at least12years1365at least500cents/hour0train
NLS:row18071807/1807197616at least12years177at least500cents/hour0train
NLS:row18251825/1825197616at least12years1775at least500cents/hour1validation
NLS:row18421842/1842197615at least12years1230at least500cents/hour0test
NLS:row18611861/1861197616at least12years1533at least500cents/hour1train
NLS:row18761876/1876197616at least12years1913at least500cents/hour1train
NLS:row18941894/1894197613at least12years1263at least500cents/hour0train
NLS:row19111911/1911197616at least12years1325at least500cents/hour0train
NLS:row19291929/1929197611at least12years0700at least500cents/hour1validation
NLS:row19481948/1948197615at least12years1438at least500cents/hour0test
NLS:row19661966/1966197616at least12years1420at least500cents/hour0train
NLS:row19861986/198619766at least12years0365at least500cents/hour0train
NLS:row20042004/2004197616at least12years12083at least500cents/hour1train
NLS:row20202020/2020197618at least12years1443at least500cents/hour0train
NLS:row20372037/2037197614at least12years1577at least500cents/hour1validation
NLS:row20562056/2056197616at least12years1315at least500cents/hour0test
NLS:row20772077/2077197612at least12years1250at least500cents/hour0train
NLS:row20972097/209719768at least12years0500at least500cents/hour1train
NLS:row21182118/2118197613at least12years1364at least500cents/hour0train
NLS:row21352135/213519763at least12years0167at least500cents/hour0train
NLS:row21522152/2152197612at least12years1278at least500cents/hour0validation
NLS:row21742174/2174197612at least12years1440at least500cents/hour0test
NLS:row21902190/219019769at least12years0500at least500cents/hour1train
NLS:row22072207/2207197616at least12years1545at least500cents/hour1train
NLS:row22252225/2225197612at least12years1550at least500cents/hour1train
NLS:row22422242/2242197614at least12years1490at least500cents/hour0train
NLS:row22612261/226119768at least12years0450at least500cents/hour0validation
NLS:row22802280/2280197616at least12years1577at least500cents/hour1test
NLS:row22962296/2296197612at least12years1519at least500cents/hour1train
NLS:row23162316/2316197618at least12years11012at least500cents/hour1train
NLS:row23342334/2334197610at least12years0865at least500cents/hour1train
NLS:row23522352/2352197612at least12years1256at least500cents/hour0train
NLS:row23732373/2373197616at least12years1709at least500cents/hour1validation
NLS:row23902390/2390197612at least12years1400at least500cents/hour0test
NLS:row24072407/2407197613at least12years1617at least500cents/hour1train
NLS:row24222422/2422197613at least12years1577at least500cents/hour1train
NLS:row24392439/243919769at least12years0413at least500cents/hour0train
NLS:row24592459/2459197612at least12years1818at least500cents/hour1train
NLS:row24772477/2477197612at least12years11106at least500cents/hour1validation
NLS:row25012501/2501197614at least12years1625at least500cents/hour1test
NLS:row25162516/2516197612at least12years1606at least500cents/hour1train
NLS:row25352535/2535197610at least12years0350at least500cents/hour0train
NLS:row25562556/2556197614at least12years1693at least500cents/hour1train
NLS:row25722572/2572197617at least12years11385at least500cents/hour1train
NLS:row25892589/2589197615at least12years1400at least500cents/hour0validation
NLS:row26082608/2608197613at least12years1685at least500cents/hour1test
NLS:row26252625/2625197612at least12years1538at least500cents/hour1train
NLS:row26432643/2643197611at least12years0200at least500cents/hour0train
NLS:row26602660/2660197612at least12years11443at least500cents/hour1train
NLS:row26792679/2679197612at least12years1699at least500cents/hour1train
NLS:row26982698/2698197616at least12years1911at least500cents/hour1validation
NLS:row27242724/2724197613at least12years11154at least500cents/hour1test
NLS:row27432743/2743197614at least12years1600at least500cents/hour1train
NLS:row27592759/2759197612at least12years1433at least500cents/hour0train
NLS:row27792779/2779197616at least12years1479at least500cents/hour0train
NLS:row28012801/2801197615at least12years1577at least500cents/hour1train
NLS:row28232823/2823197611at least12years0220at least500cents/hour0validation
NLS:row28482848/2848197615at least12years1733at least500cents/hour1test
NLS:row28632863/2863197616at least12years1577at least500cents/hour1train
NLS:row28822882/2882197616at least12years1250at least500cents/hour0train
NLS:row29082908/2908197614at least12years1462at least500cents/hour0train
NLS:row29272927/2927197616at least12years1508at least500cents/hour1train
NLS:row29502950/2950197616at least12years1275at least500cents/hour0validation
NLS:row29662966/2966197616at least12years1438at least500cents/hour0test
NLS:row29812981/2981197613at least12years1408at least500cents/hour0train
NLS:row29982998/2998197616at least12years1491at least500cents/hour0train
NLS:row30153015/3015197616at least12years1400at least500cents/hour0train
NLS:row30323032/3032197612at least12years1308at least500cents/hour0train
NLS:row30503050/3050197612at least12years1538at least500cents/hour1validation
NLS:row30683068/3068197613at least12years1450at least500cents/hour0test
NLS:row30873087/3087197611at least12years0700at least500cents/hour1train
NLS:row31063106/310619768at least12years0250at least500cents/hour0train
NLS:row31243124/3124197614at least12years1200at least500cents/hour0train
NLS:row31413141/3141197612at least12years1220at least500cents/hour0train
NLS:row31583158/3158197616at least12years1548at least500cents/hour1validation
NLS:row31803180/3180197616at least12years1649at least500cents/hour1test
NLS:row31953195/3195197612at least12years1359at least500cents/hour0train
NLS:row32133213/3213197611at least12years0325at least500cents/hour0train
NLS:row32313231/323119769at least12years0515at least500cents/hour1train
NLS:row32463246/324619766at least12years0300at least500cents/hour0train
NLS:row32683268/3268197617at least12years1673at least500cents/hour1validation
NLS:row32873287/3287197612at least12years1626at least500cents/hour1test
NLS:row33023302/3302197614at least12years1426at least500cents/hour0train
NLS:row33243324/3324197612at least12years1155at least500cents/hour0train
NLS:row33413341/3341197616at least12years1404at least500cents/hour0train
NLS:row33593359/3359197613at least12years1460at least500cents/hour0train
NLS:row33773377/337719767at least12years0176at least500cents/hour0validation
NLS:row33933393/3393197610at least12years0200at least500cents/hour0test
NLS:row34173417/341719767at least12years0275at least500cents/hour0train
NLS:row34343434/343419768at least12years0274at least500cents/hour0train
NLS:row34513451/3451197612at least12years1230at least500cents/hour0train
NLS:row34693469/346919768at least12years0833at least500cents/hour1train
NLS:row34913491/349119768at least12years0300at least500cents/hour0validation
NLS:row35103510/3510197616at least12years1375at least500cents/hour0test
NLS:row35263526/3526197618at least12years1462at least500cents/hour0train
NLS:row35483548/354819767at least12years0409at least500cents/hour0train
NLS:row35733573/3573197612at least12years1200at least500cents/hour0train
NLS:row35903590/3590197612at least12years1263at least500cents/hour0train
NLS:row36133613/3613197613at least12years1525at least500cents/hour1validation
Every observation under selected model — all 197 rows
Every observation under selected model
Observation IDRoleMassPosterior Z1Fixed q Z1ELBOKL gap
NLS:row1train9/1003/41/2-2.5517870.143841
NLS:row16train9/1003/41/2-2.5517870.143841
NLS:row35train9/1003/41/2-2.5517870.143841
NLS:row53train9/1003/41/2-2.5517870.143841
NLS:row71validation21/1001/281/4-1.8586390.2979917
NLS:row88test61/100243/2443/4-1.3093330.815037
NLS:row107train9/1003/41/2-2.5517870.143841
NLS:row123train61/100243/2443/4-1.3093330.815037
NLS:row145train61/100243/2443/4-1.3093330.815037
NLS:row161train61/100243/2443/4-1.3093330.815037
NLS:row177validation61/100243/2443/4-1.3093330.815037
NLS:row195test61/100243/2443/4-1.3093330.815037
NLS:row210train61/100243/2443/4-1.3093330.815037
NLS:row230train61/100243/2443/4-1.3093330.815037
NLS:row250train61/100243/2443/4-1.3093330.815037
NLS:row265train61/100243/2443/4-1.3093330.815037
NLS:row284validation9/1003/41/2-2.5517870.143841
NLS:row300test61/100243/2443/4-1.3093330.815037
NLS:row318train61/100243/2443/4-1.3093330.815037
NLS:row335train21/1001/281/4-1.8586390.2979917
NLS:row353train61/100243/2443/4-1.3093330.815037
NLS:row370train61/100243/2443/4-1.3093330.815037
NLS:row387validation61/100243/2443/4-1.3093330.815037
NLS:row405test61/100243/2443/4-1.3093330.815037
NLS:row426train9/1003/41/2-2.5517870.143841
NLS:row444train61/100243/2443/4-1.3093330.815037
NLS:row462train61/100243/2443/4-1.3093330.815037
NLS:row478train61/100243/2443/4-1.3093330.815037
NLS:row498validation61/100243/2443/4-1.3093330.815037
NLS:row514test61/100243/2443/4-1.3093330.815037
NLS:row530train9/1003/41/2-2.5517870.143841
NLS:row546train61/100243/2443/4-1.3093330.815037
NLS:row570train61/100243/2443/4-1.3093330.815037
NLS:row588train9/1003/41/2-2.5517870.143841
NLS:row605validation61/100243/2443/4-1.3093330.815037
NLS:row621test9/1003/41/2-2.5517870.143841
NLS:row638train61/100243/2443/4-1.3093330.815037
NLS:row658train61/100243/2443/4-1.3093330.815037
NLS:row673train9/1003/41/2-2.5517870.143841
NLS:row691train9/1003/41/2-2.5517870.143841
NLS:row709validation61/100243/2443/4-1.3093330.815037
NLS:row727test61/100243/2443/4-1.3093330.815037
NLS:row746train9/1003/41/2-2.5517870.143841
NLS:row765train61/100243/2443/4-1.3093330.815037
NLS:row785train61/100243/2443/4-1.3093330.815037
NLS:row803train61/100243/2443/4-1.3093330.815037
NLS:row820validation61/100243/2443/4-1.3093330.815037
NLS:row836test61/100243/2443/4-1.3093330.815037
NLS:row857train9/1003/41/2-2.5517870.143841
NLS:row875train9/1003/41/2-2.5517870.143841
NLS:row895train61/100243/2443/4-1.3093330.815037
NLS:row917train61/100243/2443/4-1.3093330.815037
NLS:row935validation61/100243/2443/4-1.3093330.815037
NLS:row953test9/1003/41/2-2.5517870.143841
NLS:row971train61/100243/2443/4-1.3093330.815037
NLS:row988train61/100243/2443/4-1.3093330.815037
NLS:row1006train61/100243/2443/4-1.3093330.815037
NLS:row1024train9/1003/41/2-2.5517870.143841
NLS:row1040validation9/1003/41/2-2.5517870.143841
NLS:row1056test61/100243/2443/4-1.3093330.815037
NLS:row1077train61/100243/2443/4-1.3093330.815037
NLS:row1094train61/100243/2443/4-1.3093330.815037
NLS:row1113train61/100243/2443/4-1.3093330.815037
NLS:row1132train61/100243/2443/4-1.3093330.815037
NLS:row1151validation9/1003/41/2-2.5517870.143841
NLS:row1168test9/1003/41/2-2.5517870.143841
NLS:row1184train61/100243/2443/4-1.3093330.815037
NLS:row1200train9/1003/41/2-2.5517870.143841
NLS:row1221train9/1003/41/2-2.5517870.143841
NLS:row1238train61/100243/2443/4-1.3093330.815037
NLS:row1262validation61/100243/2443/4-1.3093330.815037
NLS:row1280test61/100243/2443/4-1.3093330.815037
NLS:row1302train61/100243/2443/4-1.3093330.815037
NLS:row1320train61/100243/2443/4-1.3093330.815037
NLS:row1337train61/100243/2443/4-1.3093330.815037
NLS:row1360train9/1003/41/2-2.5517870.143841
NLS:row1378validation61/100243/2443/4-1.3093330.815037
NLS:row1397test9/1003/41/2-2.5517870.143841
NLS:row1415train61/100243/2443/4-1.3093330.815037
NLS:row1433train9/1003/41/2-2.5517870.143841
NLS:row1453train21/1001/281/4-1.8586390.2979917
NLS:row1471train61/100243/2443/4-1.3093330.815037
NLS:row1493validation9/1003/41/2-2.5517870.143841
NLS:row1512test9/1003/41/2-2.5517870.143841
NLS:row1528train61/100243/2443/4-1.3093330.815037
NLS:row1547train9/1003/41/2-2.5517870.143841
NLS:row1565train61/100243/2443/4-1.3093330.815037
NLS:row1580train61/100243/2443/4-1.3093330.815037
NLS:row1600validation9/1003/41/2-2.5517870.143841
NLS:row1621test61/100243/2443/4-1.3093330.815037
NLS:row1638train9/1003/41/2-2.5517870.143841
NLS:row1660train61/100243/2443/4-1.3093330.815037
NLS:row1678train21/1001/281/4-1.8586390.2979917
NLS:row1699train9/1003/41/2-2.5517870.143841
NLS:row1718validation61/100243/2443/4-1.3093330.815037
NLS:row1734test9/1003/41/2-2.5517870.143841
NLS:row1753train9/1003/41/2-2.5517870.143841
NLS:row1769train21/1001/281/4-1.8586390.2979917
NLS:row1785train9/1003/41/2-2.5517870.143841
NLS:row1807train9/1003/41/2-2.5517870.143841
NLS:row1825validation61/100243/2443/4-1.3093330.815037
NLS:row1842test9/1003/41/2-2.5517870.143841
NLS:row1861train61/100243/2443/4-1.3093330.815037
NLS:row1876train61/100243/2443/4-1.3093330.815037
NLS:row1894train9/1003/41/2-2.5517870.143841
NLS:row1911train9/1003/41/2-2.5517870.143841
NLS:row1929validation9/1003/41/2-2.5517870.143841
NLS:row1948test9/1003/41/2-2.5517870.143841
NLS:row1966train9/1003/41/2-2.5517870.143841
NLS:row1986train21/1001/281/4-1.8586390.2979917
NLS:row2004train61/100243/2443/4-1.3093330.815037
NLS:row2020train9/1003/41/2-2.5517870.143841
NLS:row2037validation61/100243/2443/4-1.3093330.815037
NLS:row2056test9/1003/41/2-2.5517870.143841
NLS:row2077train9/1003/41/2-2.5517870.143841
NLS:row2097train9/1003/41/2-2.5517870.143841
NLS:row2118train9/1003/41/2-2.5517870.143841
NLS:row2135train21/1001/281/4-1.8586390.2979917
NLS:row2152validation9/1003/41/2-2.5517870.143841
NLS:row2174test9/1003/41/2-2.5517870.143841
NLS:row2190train9/1003/41/2-2.5517870.143841
NLS:row2207train61/100243/2443/4-1.3093330.815037
NLS:row2225train61/100243/2443/4-1.3093330.815037
NLS:row2242train9/1003/41/2-2.5517870.143841
NLS:row2261validation21/1001/281/4-1.8586390.2979917
NLS:row2280test61/100243/2443/4-1.3093330.815037
NLS:row2296train61/100243/2443/4-1.3093330.815037
NLS:row2316train61/100243/2443/4-1.3093330.815037
NLS:row2334train9/1003/41/2-2.5517870.143841
NLS:row2352train9/1003/41/2-2.5517870.143841
NLS:row2373validation61/100243/2443/4-1.3093330.815037
NLS:row2390test9/1003/41/2-2.5517870.143841
NLS:row2407train61/100243/2443/4-1.3093330.815037
NLS:row2422train61/100243/2443/4-1.3093330.815037
NLS:row2439train21/1001/281/4-1.8586390.2979917
NLS:row2459train61/100243/2443/4-1.3093330.815037
NLS:row2477validation61/100243/2443/4-1.3093330.815037
NLS:row2501test61/100243/2443/4-1.3093330.815037
NLS:row2516train61/100243/2443/4-1.3093330.815037
NLS:row2535train21/1001/281/4-1.8586390.2979917
NLS:row2556train61/100243/2443/4-1.3093330.815037
NLS:row2572train61/100243/2443/4-1.3093330.815037
NLS:row2589validation9/1003/41/2-2.5517870.143841
NLS:row2608test61/100243/2443/4-1.3093330.815037
NLS:row2625train61/100243/2443/4-1.3093330.815037
NLS:row2643train21/1001/281/4-1.8586390.2979917
NLS:row2660train61/100243/2443/4-1.3093330.815037
NLS:row2679train61/100243/2443/4-1.3093330.815037
NLS:row2698validation61/100243/2443/4-1.3093330.815037
NLS:row2724test61/100243/2443/4-1.3093330.815037
NLS:row2743train61/100243/2443/4-1.3093330.815037
NLS:row2759train9/1003/41/2-2.5517870.143841
NLS:row2779train9/1003/41/2-2.5517870.143841
NLS:row2801train61/100243/2443/4-1.3093330.815037
NLS:row2823validation21/1001/281/4-1.8586390.2979917
NLS:row2848test61/100243/2443/4-1.3093330.815037
NLS:row2863train61/100243/2443/4-1.3093330.815037
NLS:row2882train9/1003/41/2-2.5517870.143841
NLS:row2908train9/1003/41/2-2.5517870.143841
NLS:row2927train61/100243/2443/4-1.3093330.815037
NLS:row2950validation9/1003/41/2-2.5517870.143841
NLS:row2966test9/1003/41/2-2.5517870.143841
NLS:row2981train9/1003/41/2-2.5517870.143841
NLS:row2998train9/1003/41/2-2.5517870.143841
NLS:row3015train9/1003/41/2-2.5517870.143841
NLS:row3032train9/1003/41/2-2.5517870.143841
NLS:row3050validation61/100243/2443/4-1.3093330.815037
NLS:row3068test9/1003/41/2-2.5517870.143841
NLS:row3087train9/1003/41/2-2.5517870.143841
NLS:row3106train21/1001/281/4-1.8586390.2979917
NLS:row3124train9/1003/41/2-2.5517870.143841
NLS:row3141train9/1003/41/2-2.5517870.143841
NLS:row3158validation61/100243/2443/4-1.3093330.815037
NLS:row3180test61/100243/2443/4-1.3093330.815037
NLS:row3195train9/1003/41/2-2.5517870.143841
NLS:row3213train21/1001/281/4-1.8586390.2979917
NLS:row3231train9/1003/41/2-2.5517870.143841
NLS:row3246train21/1001/281/4-1.8586390.2979917
NLS:row3268validation61/100243/2443/4-1.3093330.815037
NLS:row3287test61/100243/2443/4-1.3093330.815037
NLS:row3302train9/1003/41/2-2.5517870.143841
NLS:row3324train9/1003/41/2-2.5517870.143841
NLS:row3341train9/1003/41/2-2.5517870.143841
NLS:row3359train9/1003/41/2-2.5517870.143841
NLS:row3377validation21/1001/281/4-1.8586390.2979917
NLS:row3393test21/1001/281/4-1.8586390.2979917
NLS:row3417train21/1001/281/4-1.8586390.2979917
NLS:row3434train21/1001/281/4-1.8586390.2979917
NLS:row3451train9/1003/41/2-2.5517870.143841
NLS:row3469train9/1003/41/2-2.5517870.143841
NLS:row3491validation21/1001/281/4-1.8586390.2979917
NLS:row3510test9/1003/41/2-2.5517870.143841
NLS:row3526train9/1003/41/2-2.5517870.143841
NLS:row3548train21/1001/281/4-1.8586390.2979917
NLS:row3573train9/1003/41/2-2.5517870.143841
NLS:row3590train9/1003/41/2-2.5517870.143841
NLS:row3613validation61/100243/2443/4-1.3093330.815037

First test observation NLS:row88: expand its two latent paths. Evidence is their joint sum 61/100.

Complete paths/Bayes for one actual observation
zPriorConditional observationJointPosterior
01/41/1001/4001/244
13/481/100243/400243/244
Education/1976 wages: 197 actual complete records · state-fit
Education/1976 wages: 197 actual complete records · state-fit · Original vector · PNG
Education/1976 wages: 197 actual complete records · candidates
Education/1976 wages: 197 actual complete records · candidates · Original vector · PNG
Education/1976 wages: 197 actual complete records · inference-gap
Education/1976 wages: 197 actual complete records · inference-gap · Original vector · PNG

Original and complete derived data: actual3-digit-original64counts.csv · actual3150-customer-original14-fields.csv · actual360-four-country-growth-CPI-1980-2024.csv · actual3613-NLS-original52-fields.csv · actual617-binary-feature-lineage.csv · computed-all-state-models.csv · computed-candidate-role-metrics.csv · computed-image-diffusion-stages.csv · computed-image-reverse-bridges.csv · computed-selected-row-inference.csv · Python · base R

기초Foundations

31. 기업 사례: 잘 맞지 않는 모형도 배울 것이 있다31. Company case: learning from model misspecification

UCI Iranian Churn 자료의 원 3,150행에서 원 순서의 양 끝을 포함하는 간격으로 240개 익명 고객 행을 선택했습니다. 첫 비트는 원 변수 Call Failure가 0보다 큰지, 둘째는 Complains가 원 코드 1인지입니다. 공식 설명의 첫 9개월 속성 두 개만 쓰며, 원 이탈 라벨은 적합·선택에 사용하지 않습니다. 회사를 대표하는 전체 성과나 고객별 인과 효과를 관측한 자료가 아닙니다.

선택 순서의 나머지 규칙으로 훈련/검증/시험이 160/40/40건입니다. 전체 관측 빈도는 00이 49,01이 3,10이 173,11이 15입니다. 통화 실패가 있으면서 불만 코드가 없는 10이 매우 많고 반대 01은 적습니다. 그런데 이 모형은 두 잠재 원형을 00·11로 두고 두 비트에 같은 뒤집힘 ε를 주므로 01과 10의 확률은 항상 ε(1−ε)로 같습니다.

선택 ε=2/5,π=1/4에서 네 질량은 31/100,6/25,6/25,21/100입니다. 실제 10의 빈도 173/240≈0.720833과 모형 질량 0.24의 차이는 사후 q를 개선한다고 없어지지 않습니다. 모형 가족 자체가 이 비대칭을 표현할 수 없습니다. 충분히 잘 맞는 모형의 성공 사례라고 소개하면 자료가 보여 주는 핵심을 놓칩니다.

시험 평균 NLL은 약 1.392343이며 균등 네 범주 기준 log4≈1.386294보다 조금 큽니다. 낮을수록 좋은 점수이므로 이 시험에서는 단순 균등 기준보다도 좋지 않습니다. 이 작은 차이의 통계적 유의성을 주장하지 않습니다. 추가 원형·비트별 다른 ε·더 유연한 분포를 검토할 이유가 되지만, 새 후보를 택했다면 시험 자료를 다시 선택에 쓰지 않도록 평가 설계를 갱신해야 합니다.

통신 고객: 실제 익명 고객 240행

원값은 실제 관측입니다. 이진 기준·역할·두 잠재 원형·후보 격자·고정 q는 선언한 모형 설계입니다. 로그값은 근사이고 질량·베이즈·우도 곱은 분수로 보존합니다.

원 관측과 선언 모형
항목내용
관측 수240
원형 z=0 / z=100 / 11
후보 ε1/10, 1/4, 2/5
후보 π1/4, 1/2, 3/4
선택 후보(0부터)6
인식 분포q(Z=1|x)=(bit0+bit1+1)/4; 학습하지 않은 고정식
관측 모형이산 질량; 원 연속값의 밀도 아님
선택 규칙ε별 훈련 π 승자만 검증 비교; 시험은 평가만
역할별 관측·범주 전체
역할N00011011
train16032311510
validation40100282
test4070303
아홉 후보·세 역할 전체
후보επ역할N평균 NLL훈련 π 승자검증 선택우도 곱
01/101/4train1601.97226108.98181e-138
정확값898180829807201343502843771011717455906816452727741224816541579313859273332163361728442355424719801124586358488991895730175401352193995841081696618689131506106267348495065846313039241/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4validation401.887168101.64637e-33
정확값164636909040826280475614153751807101209320239361/100000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4test402.00951101.23379e-35
정확값1233792177664410250589343053082962358774759681/100000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2train1602.009904002.17539e-140
정확값2175394850070684688107341100386484868537753722906158594308730725260152791034249215686785979969722168088150469534597151464158720999920511196889944799986917142025369077273139652776001/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2validation401.953041001.18085e-34
정확값11808549241532451734758771553918016744123339201/100000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2test402.028859005.69002e-36
정확값569002075290974771276300116518357737224265601/100000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4train1602.118883005.82012e-148
정확값58201194150383339503875538553632019568753993766878078676525203288675056545620704936644426402613011534788369119308821114937556655047379267301152832406128524270735630739185561/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4validation402.100439003.2482e-37
정확값32482008948553988631581376462904679339195841/100000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4test402.116145001.73301e-37
정확값17330051421531719882155661494785878481261921/100000000000000000000000000000000000000000000000000000000000000000000000000000000
31/41/4train1601.504517102.85404e-105
정확값13021406132098365034439107014327764284393549326168156642255292773453753265967062024828161/4562440617622195218641171605700291324893228507248559930579192517899275167208677386505912811317371399778642309573594407310688704721375437998252661319722214188251994674360264950082874192246603776
31/41/4validation401.462152103.97941e-26
정확값58159148805327867842601/1461501637330902918203684832716283019655932542976
31/41/4test401.525699103.13248e-27
정확값4578125416162835077989/1461501637330902918203684832716283019655932542976
41/41/2train1601.539885009.95064e-108
정확값45399204077876553997995562832168036233964095914463013852810036041773855686187744140625/4562440617622195218641171605700291324893228507248559930579192517899275167208677386505912811317371399778642309573594407310688704721375437998252661319722214188251994674360264950082874192246603776
41/41/2validation401.520729003.82152e-27
정확값5585154407949462890625/1461501637330902918203684832716283019655932542976
41/41/2test401.54627001.37575e-27
정확값2010655586861806640625/1461501637330902918203684832716283019655932542976
51/43/4train1601.62102002.29072e-113
정확값104512589437430265423521111773537840039038391464388994069464694868528256771589001/4562440617622195218641171605700291324893228507248559930579192517899275167208677386505912811317371399778642309573594407310688704721375437998252661319722214188251994674360264950082874192246603776
51/43/4validation401.631612004.52902e-29
정확값66191734165976612361/1461501637330902918203684832716283019655932542976
51/43/4test401.610429001.05677e-28
정확값154447379720612095509/1461501637330902918203684832716283019655932542976
62/51/4train1601.384275116.46686e-97
정확값30275760394786328494314080839224014495780418365482096474040528997072089358345581079602231386065664488512459151405603147309121536/46816763546921983271558494138586765699150233387941833163371554538603832766739996494866350975392646334430537906314200196391753374199149312046122692338075289270907454151724452290906351194232914991744110011495649814605712890625
62/51/4validation401.36981111.59945e-24
정확값132303289588167582666683421737616/82718061255302767487140869206996285356581211090087890625
62/51/4test401.392343116.49422e-25
정확값53718928228608475040656663735296/82718061255302767487140869206996285356581211090087890625
72/51/2train1601.406105001.96701e-98
정확값920891627014867089222252060785061563292771465122218861387646032193420995760040975748442470525621484497664667473774157313867776/46816763546921983271558494138586765699150233387941833163371554538603832766739996494866350975392646334430537906314200196391753374199149312046122692338075289270907454151724452290906351194232914991744110011495649814605712890625
72/51/2validation401.403104004.22275e-25
정확값34929734971884336995439623602176/82718061255302767487140869206996285356581211090087890625
72/51/2test401.407106003.59808e-25
정확값29762614413913281226883466264576/82718061255302767487140869206996285356581211090087890625
82/53/4train1601.437827001.22903e-100
정확값5753899596332783025905563726666265583792313380929963092259827956852510579774525927296353402624679090520663660093297515298816/46816763546921983271558494138586765699150233387941833163371554538603832766739996494866350975392646334430537906314200196391753374199149312046122692338075289270907454151724452290906351194232914991744110011495649814605712890625
82/53/4validation401.447703007.09302e-26
정확값5867207527593562422713732155536/82718061255302767487140869206996285356581211090087890625
82/53/4test401.431289001.36759e-25
정확값11312477876331999850985466080256/82718061255302767487140869206996285356581211090087890625

낮은 NLL이 좋은 점수입니다. 균등 네 범주 기준은 log4≈1.386294입니다. 시험 점수로 후보를 고르지 않습니다. 1 표지는 해당 후보의 훈련 승자·최종 선택 여부입니다.

아홉 후보의 네 범주 추론 전체 — 전체 36행
아홉 후보의 네 범주 추론 전체
후보범주질량사후 Z1고정 q Z1로그 증거ELBOKL 간격
0061/1001/2441/4-0.4942963-1.3093330.815037
019/1001/41/2-2.407946-2.5517870.143841
029/1001/41/2-2.407946-2.5517870.143841
0321/10027/283/4-1.560648-1.8586390.2979917
1041/1001/821/4-0.8915981-1.4401450.5485472
119/1001/21/2-2.407946-2.4079460
129/1001/21/2-2.407946-2.4079460
1341/10081/823/4-0.8915981-1.4401450.5485472
2021/1001/281/4-1.560648-1.8586390.2979917
219/1003/41/2-2.407946-2.5517870.143841
229/1003/41/2-2.407946-2.5517870.143841
2361/100243/2443/4-0.4942963-1.3093330.815037
307/161/281/4-0.8266786-1.124670.2979917
313/161/41/2-1.673976-1.8178170.143841
323/161/41/2-1.673976-1.8178170.143841
333/163/43/4-1.673976-1.6739760
405/161/101/4-1.163151-1.2554820.09233152
413/161/21/2-1.673976-1.6739760
423/161/21/2-1.673976-1.6739760
435/169/103/4-1.163151-1.2554820.09233152
503/161/41/4-1.673976-1.6739760
513/163/41/2-1.673976-1.8178170.143841
523/163/41/2-1.673976-1.8178170.143841
537/1627/283/4-0.8266786-1.124670.2979917
6031/1004/311/4-1.171183-1.2243840.05320082
616/251/41/2-1.427116-1.5709570.143841
626/251/41/2-1.427116-1.5709570.143841
6321/1003/73/4-1.560648-1.773690.2130422
7013/504/131/4-1.347074-1.3551960.00812219
716/251/21/2-1.427116-1.4271160
726/251/21/2-1.427116-1.4271160
7313/509/133/4-1.347074-1.3551960.00812219
8021/1004/71/4-1.560648-1.773690.2130422
816/253/41/2-1.427116-1.5709570.143841
826/253/41/2-1.427116-1.5709570.143841
8331/10027/313/4-1.171183-1.2243840.05320082
선택한 원값·변환·역할 전체 — 전체 240행
선택한 원값·변환·역할 전체
관측 ID원 위치 0/1시점원값 0규칙 0비트 0원값 1규칙 1비트 1역할
Churn:row11/1first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row1414/14first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row2727/27first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row4040/40first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row5353/53first9months aggregate13strictly greater than010nativecode1 means complaint0validation
Churn:row6666/66first9months aggregate6strictly greater than010nativecode1 means complaint0test
Churn:row8080/80first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row9393/93first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row106106/106first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row119119/119first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row132132/132first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row145145/145first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row159159/159first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row172172/172first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row185185/185first9months aggregate7strictly greater than011nativecode1 means complaint1train
Churn:row198198/198first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row211211/211first9months aggregate5strictly greater than010nativecode1 means complaint0validation
Churn:row224224/224first9months aggregate20strictly greater than010nativecode1 means complaint0test
Churn:row238238/238first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row251251/251first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row264264/264first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row277277/277first9months aggregate14strictly greater than011nativecode1 means complaint1train
Churn:row290290/290first9months aggregate9strictly greater than010nativecode1 means complaint0validation
Churn:row304304/304first9months aggregate5strictly greater than010nativecode1 means complaint0test
Churn:row317317/317first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row330330/330first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row343343/343first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row356356/356first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row369369/369first9months aggregate2strictly greater than010nativecode1 means complaint0validation
Churn:row383383/383first9months aggregate2strictly greater than010nativecode1 means complaint0test
Churn:row396396/396first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row409409/409first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row422422/422first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row435435/435first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row448448/448first9months aggregate6strictly greater than010nativecode1 means complaint0validation
Churn:row462462/462first9months aggregate13strictly greater than010nativecode1 means complaint0test
Churn:row475475/475first9months aggregate17strictly greater than010nativecode1 means complaint0train
Churn:row488488/488first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row501501/501first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row514514/514first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row528528/528first9months aggregate5strictly greater than010nativecode1 means complaint0validation
Churn:row541541/541first9months aggregate7strictly greater than010nativecode1 means complaint0test
Churn:row554554/554first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row567567/567first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row580580/580first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row593593/593first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row607607/607first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row620620/620first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row633633/633first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row646646/646first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row659659/659first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row672672/672first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row686686/686first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row699699/699first9months aggregate4strictly greater than010nativecode1 means complaint0test
Churn:row712712/712first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row725725/725first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row738738/738first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row752752/752first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row765765/765first9months aggregate7strictly greater than010nativecode1 means complaint0validation
Churn:row778778/778first9months aggregate7strictly greater than011nativecode1 means complaint1test
Churn:row791791/791first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row804804/804first9months aggregate12strictly greater than010nativecode1 means complaint0train
Churn:row817817/817first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row831831/831first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row844844/844first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row857857/857first9months aggregate10strictly greater than010nativecode1 means complaint0test
Churn:row870870/870first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row883883/883first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row896896/896first9months aggregate22strictly greater than010nativecode1 means complaint0train
Churn:row910910/910first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row923923/923first9months aggregate17strictly greater than010nativecode1 means complaint0validation
Churn:row936936/936first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row949949/949first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row962962/962first9months aggregate9strictly greater than011nativecode1 means complaint1train
Churn:row976976/976first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row989989/989first9months aggregate4strictly greater than011nativecode1 means complaint1train
Churn:row10021002/1002first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row10151015/1015first9months aggregate9strictly greater than010nativecode1 means complaint0test
Churn:row10281028/1028first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row10411041/1041first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row10551055/1055first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row10681068/1068first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row10811081/1081first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row10941094/1094first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row11071107/1107first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row11201120/1120first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row11341134/1134first9months aggregate23strictly greater than010nativecode1 means complaint0train
Churn:row11471147/1147first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row11601160/1160first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row11731173/1173first9months aggregate15strictly greater than010nativecode1 means complaint0test
Churn:row11861186/1186first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row11991199/1199first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row12131213/1213first9months aggregate21strictly greater than010nativecode1 means complaint0train
Churn:row12261226/1226first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row12391239/1239first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row12521252/1252first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row12651265/1265first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row12791279/1279first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row12921292/1292first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row13051305/1305first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row13181318/1318first9months aggregate2strictly greater than010nativecode1 means complaint0validation
Churn:row13311331/1331first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row13441344/1344first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row13581358/1358first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row13711371/1371first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row13841384/1384first9months aggregate15strictly greater than010nativecode1 means complaint0train
Churn:row13971397/1397first9months aggregate2strictly greater than010nativecode1 means complaint0validation
Churn:row14101410/1410first9months aggregate4strictly greater than010nativecode1 means complaint0test
Churn:row14231423/1423first9months aggregate20strictly greater than011nativecode1 means complaint1train
Churn:row14371437/1437first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row14501450/1450first9months aggregate0strictly greater than001nativecode1 means complaint1train
Churn:row14631463/1463first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row14761476/1476first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row14891489/1489first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row15031503/1503first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row15161516/1516first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row15291529/1529first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row15421542/1542first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row15551555/1555first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row15681568/1568first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row15821582/1582first9months aggregate0strictly greater than001nativecode1 means complaint1train
Churn:row15951595/1595first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row16081608/1608first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row16211621/1621first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row16341634/1634first9months aggregate20strictly greater than010nativecode1 means complaint0validation
Churn:row16471647/1647first9months aggregate7strictly greater than010nativecode1 means complaint0test
Churn:row16611661/1661first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row16741674/1674first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row16871687/1687first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row17001700/1700first9months aggregate0strictly greater than001nativecode1 means complaint1train
Churn:row17131713/1713first9months aggregate22strictly greater than010nativecode1 means complaint0validation
Churn:row17271727/1727first9months aggregate6strictly greater than010nativecode1 means complaint0test
Churn:row17401740/1740first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row17531753/1753first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row17661766/1766first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row17791779/1779first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row17921792/1792first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row18061806/1806first9months aggregate4strictly greater than010nativecode1 means complaint0test
Churn:row18191819/1819first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row18321832/1832first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row18451845/1845first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row18581858/1858first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row18711871/1871first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row18851885/1885first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row18981898/1898first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row19111911/1911first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row19241924/1924first9months aggregate22strictly greater than010nativecode1 means complaint0train
Churn:row19371937/1937first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row19511951/1951first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row19641964/1964first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row19771977/1977first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row19901990/1990first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20032003/2003first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row20162016/2016first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20302030/2030first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row20432043/2043first9months aggregate5strictly greater than010nativecode1 means complaint0test
Churn:row20562056/2056first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row20692069/2069first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20822082/2082first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20952095/2095first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row21092109/2109first9months aggregate12strictly greater than010nativecode1 means complaint0validation
Churn:row21222122/2122first9months aggregate13strictly greater than010nativecode1 means complaint0test
Churn:row21352135/2135first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row21482148/2148first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row21612161/2161first9months aggregate14strictly greater than010nativecode1 means complaint0train
Churn:row21742174/2174first9months aggregate29strictly greater than011nativecode1 means complaint1train
Churn:row21882188/2188first9months aggregate14strictly greater than010nativecode1 means complaint0validation
Churn:row22012201/2201first9months aggregate10strictly greater than010nativecode1 means complaint0test
Churn:row22142214/2214first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row22272227/2227first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row22402240/2240first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row22542254/2254first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row22672267/2267first9months aggregate6strictly greater than010nativecode1 means complaint0validation
Churn:row22802280/2280first9months aggregate7strictly greater than010nativecode1 means complaint0test
Churn:row22932293/2293first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row23062306/2306first9months aggregate15strictly greater than010nativecode1 means complaint0train
Churn:row23192319/2319first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row23332333/2333first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row23462346/2346first9months aggregate20strictly greater than010nativecode1 means complaint0validation
Churn:row23592359/2359first9months aggregate17strictly greater than010nativecode1 means complaint0test
Churn:row23722372/2372first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row23852385/2385first9months aggregate16strictly greater than011nativecode1 means complaint1train
Churn:row23982398/2398first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row24122412/2412first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row24252425/2425first9months aggregate13strictly greater than010nativecode1 means complaint0validation
Churn:row24382438/2438first9months aggregate6strictly greater than010nativecode1 means complaint0test
Churn:row24512451/2451first9months aggregate15strictly greater than010nativecode1 means complaint0train
Churn:row24642464/2464first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row24782478/2478first9months aggregate16strictly greater than011nativecode1 means complaint1train
Churn:row24912491/2491first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row25042504/2504first9months aggregate13strictly greater than010nativecode1 means complaint0validation
Churn:row25172517/2517first9months aggregate5strictly greater than010nativecode1 means complaint0test
Churn:row25302530/2530first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row25432543/2543first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row25572557/2557first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row25702570/2570first9months aggregate12strictly greater than010nativecode1 means complaint0train
Churn:row25832583/2583first9months aggregate9strictly greater than010nativecode1 means complaint0validation
Churn:row25962596/2596first9months aggregate25strictly greater than010nativecode1 means complaint0test
Churn:row26092609/2609first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row26222622/2622first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row26362636/2636first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row26492649/2649first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row26622662/2662first9months aggregate14strictly greater than011nativecode1 means complaint1validation
Churn:row26752675/2675first9months aggregate18strictly greater than010nativecode1 means complaint0test
Churn:row26882688/2688first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row27022702/2702first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row27152715/2715first9months aggregate14strictly greater than010nativecode1 means complaint0train
Churn:row27282728/2728first9months aggregate14strictly greater than010nativecode1 means complaint0train
Churn:row27412741/2741first9months aggregate16strictly greater than010nativecode1 means complaint0validation
Churn:row27542754/2754first9months aggregate17strictly greater than010nativecode1 means complaint0test
Churn:row27672767/2767first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row27812781/2781first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row27942794/2794first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row28072807/2807first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row28202820/2820first9months aggregate6strictly greater than010nativecode1 means complaint0validation
Churn:row28332833/2833first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row28462846/2846first9months aggregate19strictly greater than010nativecode1 means complaint0train
Churn:row28602860/2860first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row28732873/2873first9months aggregate26strictly greater than011nativecode1 means complaint1train
Churn:row28862886/2886first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row28992899/2899first9months aggregate5strictly greater than010nativecode1 means complaint0validation
Churn:row29122912/2912first9months aggregate16strictly greater than010nativecode1 means complaint0test
Churn:row29262926/2926first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row29392939/2939first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row29522952/2952first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row29652965/2965first9months aggregate20strictly greater than010nativecode1 means complaint0train
Churn:row29782978/2978first9months aggregate20strictly greater than011nativecode1 means complaint1validation
Churn:row29912991/2991first9months aggregate22strictly greater than011nativecode1 means complaint1test
Churn:row30053005/3005first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row30183018/3018first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row30313031/3031first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row30443044/3044first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row30573057/3057first9months aggregate9strictly greater than010nativecode1 means complaint0validation
Churn:row30703070/3070first9months aggregate8strictly greater than010nativecode1 means complaint0test
Churn:row30843084/3084first9months aggregate30strictly greater than010nativecode1 means complaint0train
Churn:row30973097/3097first9months aggregate17strictly greater than010nativecode1 means complaint0train
Churn:row31103110/3110first9months aggregate12strictly greater than010nativecode1 means complaint0train
Churn:row31233123/3123first9months aggregate28strictly greater than011nativecode1 means complaint1train
Churn:row31363136/3136first9months aggregate7strictly greater than010nativecode1 means complaint0validation
Churn:row31503150/3150first9months aggregate8strictly greater than011nativecode1 means complaint1test
선택 모형의 모든 관측 추론 — 전체 240행
선택 모형의 모든 관측 추론
관측 ID역할질량사후 Z1고정 q Z1ELBOKL 간격
Churn:row1train6/251/41/2-1.5709570.143841
Churn:row14train6/251/41/2-1.5709570.143841
Churn:row27train6/251/41/2-1.5709570.143841
Churn:row40train6/251/41/2-1.5709570.143841
Churn:row53validation6/251/41/2-1.5709570.143841
Churn:row66test6/251/41/2-1.5709570.143841
Churn:row80train6/251/41/2-1.5709570.143841
Churn:row93train6/251/41/2-1.5709570.143841
Churn:row106train6/251/41/2-1.5709570.143841
Churn:row119train31/1004/311/4-1.2243840.05320082
Churn:row132validation31/1004/311/4-1.2243840.05320082
Churn:row145test31/1004/311/4-1.2243840.05320082
Churn:row159train6/251/41/2-1.5709570.143841
Churn:row172train6/251/41/2-1.5709570.143841
Churn:row185train21/1003/73/4-1.773690.2130422
Churn:row198train6/251/41/2-1.5709570.143841
Churn:row211validation6/251/41/2-1.5709570.143841
Churn:row224test6/251/41/2-1.5709570.143841
Churn:row238train6/251/41/2-1.5709570.143841
Churn:row251train6/251/41/2-1.5709570.143841
Churn:row264train6/251/41/2-1.5709570.143841
Churn:row277train21/1003/73/4-1.773690.2130422
Churn:row290validation6/251/41/2-1.5709570.143841
Churn:row304test6/251/41/2-1.5709570.143841
Churn:row317train31/1004/311/4-1.2243840.05320082
Churn:row330train31/1004/311/4-1.2243840.05320082
Churn:row343train6/251/41/2-1.5709570.143841
Churn:row356train6/251/41/2-1.5709570.143841
Churn:row369validation6/251/41/2-1.5709570.143841
Churn:row383test6/251/41/2-1.5709570.143841
Churn:row396train6/251/41/2-1.5709570.143841
Churn:row409train6/251/41/2-1.5709570.143841
Churn:row422train6/251/41/2-1.5709570.143841
Churn:row435train6/251/41/2-1.5709570.143841
Churn:row448validation6/251/41/2-1.5709570.143841
Churn:row462test6/251/41/2-1.5709570.143841
Churn:row475train6/251/41/2-1.5709570.143841
Churn:row488train6/251/41/2-1.5709570.143841
Churn:row501train6/251/41/2-1.5709570.143841
Churn:row514train31/1004/311/4-1.2243840.05320082
Churn:row528validation6/251/41/2-1.5709570.143841
Churn:row541test6/251/41/2-1.5709570.143841
Churn:row554train6/251/41/2-1.5709570.143841
Churn:row567train31/1004/311/4-1.2243840.05320082
Churn:row580train6/251/41/2-1.5709570.143841
Churn:row593train6/251/41/2-1.5709570.143841
Churn:row607validation6/251/41/2-1.5709570.143841
Churn:row620test6/251/41/2-1.5709570.143841
Churn:row633train31/1004/311/4-1.2243840.05320082
Churn:row646train6/251/41/2-1.5709570.143841
Churn:row659train6/251/41/2-1.5709570.143841
Churn:row672train6/251/41/2-1.5709570.143841
Churn:row686validation6/251/41/2-1.5709570.143841
Churn:row699test6/251/41/2-1.5709570.143841
Churn:row712train6/251/41/2-1.5709570.143841
Churn:row725train6/251/41/2-1.5709570.143841
Churn:row738train6/251/41/2-1.5709570.143841
Churn:row752train31/1004/311/4-1.2243840.05320082
Churn:row765validation6/251/41/2-1.5709570.143841
Churn:row778test21/1003/73/4-1.773690.2130422
Churn:row791train6/251/41/2-1.5709570.143841
Churn:row804train6/251/41/2-1.5709570.143841
Churn:row817train6/251/41/2-1.5709570.143841
Churn:row831train6/251/41/2-1.5709570.143841
Churn:row844validation6/251/41/2-1.5709570.143841
Churn:row857test6/251/41/2-1.5709570.143841
Churn:row870train6/251/41/2-1.5709570.143841
Churn:row883train6/251/41/2-1.5709570.143841
Churn:row896train6/251/41/2-1.5709570.143841
Churn:row910train6/251/41/2-1.5709570.143841
Churn:row923validation6/251/41/2-1.5709570.143841
Churn:row936test31/1004/311/4-1.2243840.05320082
Churn:row949train31/1004/311/4-1.2243840.05320082
Churn:row962train21/1003/73/4-1.773690.2130422
Churn:row976train6/251/41/2-1.5709570.143841
Churn:row989train21/1003/73/4-1.773690.2130422
Churn:row1002validation31/1004/311/4-1.2243840.05320082
Churn:row1015test6/251/41/2-1.5709570.143841
Churn:row1028train6/251/41/2-1.5709570.143841
Churn:row1041train6/251/41/2-1.5709570.143841
Churn:row1055train31/1004/311/4-1.2243840.05320082
Churn:row1068train31/1004/311/4-1.2243840.05320082
Churn:row1081validation31/1004/311/4-1.2243840.05320082
Churn:row1094test31/1004/311/4-1.2243840.05320082
Churn:row1107train6/251/41/2-1.5709570.143841
Churn:row1120train6/251/41/2-1.5709570.143841
Churn:row1134train6/251/41/2-1.5709570.143841
Churn:row1147train6/251/41/2-1.5709570.143841
Churn:row1160validation31/1004/311/4-1.2243840.05320082
Churn:row1173test6/251/41/2-1.5709570.143841
Churn:row1186train31/1004/311/4-1.2243840.05320082
Churn:row1199train31/1004/311/4-1.2243840.05320082
Churn:row1213train6/251/41/2-1.5709570.143841
Churn:row1226train31/1004/311/4-1.2243840.05320082
Churn:row1239validation31/1004/311/4-1.2243840.05320082
Churn:row1252test31/1004/311/4-1.2243840.05320082
Churn:row1265train6/251/41/2-1.5709570.143841
Churn:row1279train31/1004/311/4-1.2243840.05320082
Churn:row1292train31/1004/311/4-1.2243840.05320082
Churn:row1305train6/251/41/2-1.5709570.143841
Churn:row1318validation6/251/41/2-1.5709570.143841
Churn:row1331test6/251/41/2-1.5709570.143841
Churn:row1344train6/251/41/2-1.5709570.143841
Churn:row1358train6/251/41/2-1.5709570.143841
Churn:row1371train31/1004/311/4-1.2243840.05320082
Churn:row1384train6/251/41/2-1.5709570.143841
Churn:row1397validation6/251/41/2-1.5709570.143841
Churn:row1410test6/251/41/2-1.5709570.143841
Churn:row1423train21/1003/73/4-1.773690.2130422
Churn:row1437train31/1004/311/4-1.2243840.05320082
Churn:row1450train6/251/41/2-1.5709570.143841
Churn:row1463train6/251/41/2-1.5709570.143841
Churn:row1476validation31/1004/311/4-1.2243840.05320082
Churn:row1489test31/1004/311/4-1.2243840.05320082
Churn:row1503train6/251/41/2-1.5709570.143841
Churn:row1516train6/251/41/2-1.5709570.143841
Churn:row1529train31/1004/311/4-1.2243840.05320082
Churn:row1542train31/1004/311/4-1.2243840.05320082
Churn:row1555validation31/1004/311/4-1.2243840.05320082
Churn:row1568test31/1004/311/4-1.2243840.05320082
Churn:row1582train6/251/41/2-1.5709570.143841
Churn:row1595train31/1004/311/4-1.2243840.05320082
Churn:row1608train6/251/41/2-1.5709570.143841
Churn:row1621train6/251/41/2-1.5709570.143841
Churn:row1634validation6/251/41/2-1.5709570.143841
Churn:row1647test6/251/41/2-1.5709570.143841
Churn:row1661train6/251/41/2-1.5709570.143841
Churn:row1674train6/251/41/2-1.5709570.143841
Churn:row1687train31/1004/311/4-1.2243840.05320082
Churn:row1700train6/251/41/2-1.5709570.143841
Churn:row1713validation6/251/41/2-1.5709570.143841
Churn:row1727test6/251/41/2-1.5709570.143841
Churn:row1740train6/251/41/2-1.5709570.143841
Churn:row1753train6/251/41/2-1.5709570.143841
Churn:row1766train31/1004/311/4-1.2243840.05320082
Churn:row1779train31/1004/311/4-1.2243840.05320082
Churn:row1792validation31/1004/311/4-1.2243840.05320082
Churn:row1806test6/251/41/2-1.5709570.143841
Churn:row1819train31/1004/311/4-1.2243840.05320082
Churn:row1832train31/1004/311/4-1.2243840.05320082
Churn:row1845train31/1004/311/4-1.2243840.05320082
Churn:row1858train6/251/41/2-1.5709570.143841
Churn:row1871validation6/251/41/2-1.5709570.143841
Churn:row1885test6/251/41/2-1.5709570.143841
Churn:row1898train6/251/41/2-1.5709570.143841
Churn:row1911train6/251/41/2-1.5709570.143841
Churn:row1924train6/251/41/2-1.5709570.143841
Churn:row1937train6/251/41/2-1.5709570.143841
Churn:row1951validation31/1004/311/4-1.2243840.05320082
Churn:row1964test31/1004/311/4-1.2243840.05320082
Churn:row1977train31/1004/311/4-1.2243840.05320082
Churn:row1990train31/1004/311/4-1.2243840.05320082
Churn:row2003train6/251/41/2-1.5709570.143841
Churn:row2016train31/1004/311/4-1.2243840.05320082
Churn:row2030validation31/1004/311/4-1.2243840.05320082
Churn:row2043test6/251/41/2-1.5709570.143841
Churn:row2056train6/251/41/2-1.5709570.143841
Churn:row2069train31/1004/311/4-1.2243840.05320082
Churn:row2082train31/1004/311/4-1.2243840.05320082
Churn:row2095train31/1004/311/4-1.2243840.05320082
Churn:row2109validation6/251/41/2-1.5709570.143841
Churn:row2122test6/251/41/2-1.5709570.143841
Churn:row2135train6/251/41/2-1.5709570.143841
Churn:row2148train6/251/41/2-1.5709570.143841
Churn:row2161train6/251/41/2-1.5709570.143841
Churn:row2174train21/1003/73/4-1.773690.2130422
Churn:row2188validation6/251/41/2-1.5709570.143841
Churn:row2201test6/251/41/2-1.5709570.143841
Churn:row2214train6/251/41/2-1.5709570.143841
Churn:row2227train6/251/41/2-1.5709570.143841
Churn:row2240train6/251/41/2-1.5709570.143841
Churn:row2254train6/251/41/2-1.5709570.143841
Churn:row2267validation6/251/41/2-1.5709570.143841
Churn:row2280test6/251/41/2-1.5709570.143841
Churn:row2293train6/251/41/2-1.5709570.143841
Churn:row2306train6/251/41/2-1.5709570.143841
Churn:row2319train6/251/41/2-1.5709570.143841
Churn:row2333train6/251/41/2-1.5709570.143841
Churn:row2346validation6/251/41/2-1.5709570.143841
Churn:row2359test6/251/41/2-1.5709570.143841
Churn:row2372train6/251/41/2-1.5709570.143841
Churn:row2385train21/1003/73/4-1.773690.2130422
Churn:row2398train6/251/41/2-1.5709570.143841
Churn:row2412train6/251/41/2-1.5709570.143841
Churn:row2425validation6/251/41/2-1.5709570.143841
Churn:row2438test6/251/41/2-1.5709570.143841
Churn:row2451train6/251/41/2-1.5709570.143841
Churn:row2464train6/251/41/2-1.5709570.143841
Churn:row2478train21/1003/73/4-1.773690.2130422
Churn:row2491train6/251/41/2-1.5709570.143841
Churn:row2504validation6/251/41/2-1.5709570.143841
Churn:row2517test6/251/41/2-1.5709570.143841
Churn:row2530train6/251/41/2-1.5709570.143841
Churn:row2543train6/251/41/2-1.5709570.143841
Churn:row2557train6/251/41/2-1.5709570.143841
Churn:row2570train6/251/41/2-1.5709570.143841
Churn:row2583validation6/251/41/2-1.5709570.143841
Churn:row2596test6/251/41/2-1.5709570.143841
Churn:row2609train6/251/41/2-1.5709570.143841
Churn:row2622train6/251/41/2-1.5709570.143841
Churn:row2636train6/251/41/2-1.5709570.143841
Churn:row2649train6/251/41/2-1.5709570.143841
Churn:row2662validation21/1003/73/4-1.773690.2130422
Churn:row2675test6/251/41/2-1.5709570.143841
Churn:row2688train6/251/41/2-1.5709570.143841
Churn:row2702train6/251/41/2-1.5709570.143841
Churn:row2715train6/251/41/2-1.5709570.143841
Churn:row2728train6/251/41/2-1.5709570.143841
Churn:row2741validation6/251/41/2-1.5709570.143841
Churn:row2754test6/251/41/2-1.5709570.143841
Churn:row2767train6/251/41/2-1.5709570.143841
Churn:row2781train6/251/41/2-1.5709570.143841
Churn:row2794train6/251/41/2-1.5709570.143841
Churn:row2807train6/251/41/2-1.5709570.143841
Churn:row2820validation6/251/41/2-1.5709570.143841
Churn:row2833test6/251/41/2-1.5709570.143841
Churn:row2846train6/251/41/2-1.5709570.143841
Churn:row2860train6/251/41/2-1.5709570.143841
Churn:row2873train21/1003/73/4-1.773690.2130422
Churn:row2886train6/251/41/2-1.5709570.143841
Churn:row2899validation6/251/41/2-1.5709570.143841
Churn:row2912test6/251/41/2-1.5709570.143841
Churn:row2926train6/251/41/2-1.5709570.143841
Churn:row2939train6/251/41/2-1.5709570.143841
Churn:row2952train6/251/41/2-1.5709570.143841
Churn:row2965train6/251/41/2-1.5709570.143841
Churn:row2978validation21/1003/73/4-1.773690.2130422
Churn:row2991test21/1003/73/4-1.773690.2130422
Churn:row3005train6/251/41/2-1.5709570.143841
Churn:row3018train6/251/41/2-1.5709570.143841
Churn:row3031train6/251/41/2-1.5709570.143841
Churn:row3044train6/251/41/2-1.5709570.143841
Churn:row3057validation6/251/41/2-1.5709570.143841
Churn:row3070test6/251/41/2-1.5709570.143841
Churn:row3084train6/251/41/2-1.5709570.143841
Churn:row3097train6/251/41/2-1.5709570.143841
Churn:row3110train6/251/41/2-1.5709570.143841
Churn:row3123train21/1003/73/4-1.773690.2130422
Churn:row3136validation6/251/41/2-1.5709570.143841
Churn:row3150test21/1003/73/4-1.773690.2130422

첫 시험 관측 Churn:row66의 두 경로를 펼칩니다. 관측 질량은 두 결합의 합 6/25.

한 실제 관측의 경로·베이즈 전부
z사전조건부 관측결합사후
03/46/259/503/4
11/46/253/501/4

이 모형에서 01과 10의 질량은 항상 같습니다. 실제 빈도 3 대 173의 큰 비대칭을 표현하지 못하며, 시험 NLL은 균등 기준보다 조금 큽니다. 정확 사후를 써도 이 모형 가족의 한계는 남습니다.

통신 고객: 실제 익명 고객 240행 · state-fit
통신 고객: 실제 익명 고객 240행 · state-fit · 원 벡터 확대 · PNG
통신 고객: 실제 익명 고객 240행 · candidates
통신 고객: 실제 익명 고객 240행 · candidates · 원 벡터 확대 · PNG
통신 고객: 실제 익명 고객 240행 · inference-gap
통신 고객: 실제 익명 고객 240행 · inference-gap · 원 벡터 확대 · PNG

원자료·전체 파생값: actual3-digit-original64counts.csv · actual3150-customer-original14-fields.csv · actual360-four-country-growth-CPI-1980-2024.csv · actual3613-NLS-original52-fields.csv · actual617-binary-feature-lineage.csv · computed-all-state-models.csv · computed-candidate-role-metrics.csv · computed-image-diffusion-stages.csv · computed-image-reverse-bridges.csv · computed-selected-row-inference.csv · Python · base R

From 3150 original UCI Iranian Churn rows, select 240 anonymous customer rows by evenly spaced source-order indices including endpoints. Bit zero tests whether native Call Failure exceeds zero; bit one tests native Complains code 1. Only two first-nine-month attributes are used, not the churn label. This is neither firm-wide performance nor individual causal-effect data.

The deterministic role rule produces 160/40/40 training/validation/test rows. Overall counts are 49,3,173,15 for 00,01,10,11. State 10 is common and 01 rare. Yet prototypes 00/11 with the same flip rate on both positions necessarily assign both mixed states the same probability epsilon(1−epsilon).

Selected epsilon 2/5 and pi 1/4 give masses 31/100,6/25,6/25,21/100. Observed 10 frequency 173/240≈0.720833 contrasts with model mass 0.24. Improving posterior inference cannot remove this family limitation. Calling this a successful fit would miss the central lesson.

Test mean NLL about 1.392343 is slightly worse than the uniform-four-state baseline log 4≈1.386294. No statistical significance is claimed for the difference. More prototypes, feature-specific flip rates or another family may be worth studying, but selecting a new model must not quietly reuse the test as an untouched evaluation.

Telecom customers: 240 actual anonymous records

Original values are observed. Binary coding, roles, two latent prototypes, candidate grid and fixed q are declared modeling choices. Logs are approximate; masses, Bayes and likelihood products retain exact fractions.

Observed units and declared model
ItemMeaning
Observed records240
Latent prototypes00 / 11
Epsilon candidates1/10, 1/4, 2/5
Prior-one candidates1/4, 1/2, 3/4
Selected candidate (zero based)6
Recognitionq(Z=1|x)=(bit0+bit1+1)/4; fixed, not trained
Observation modelDiscrete masses, not densities of original continuous measurements
Selection ruleTrain-only pi winner per epsilon, then validation choice; test evaluation only
Complete role/state counts
RoleN00011011
train16032311510
validation40100282
test4070303
Every candidate and role
IndexεπRoleNMean NLLTrain pi winnerSelectedLikelihood product
01/101/4train1601.97226108.98181e-138
Exact value898180829807201343502843771011717455906816452727741224816541579313859273332163361728442355424719801124586358488991895730175401352193995841081696618689131506106267348495065846313039241/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4validation401.887168101.64637e-33
Exact value164636909040826280475614153751807101209320239361/100000000000000000000000000000000000000000000000000000000000000000000000000000000
01/101/4test402.00951101.23379e-35
Exact value1233792177664410250589343053082962358774759681/100000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2train1602.009904002.17539e-140
Exact value2175394850070684688107341100386484868537753722906158594308730725260152791034249215686785979969722168088150469534597151464158720999920511196889944799986917142025369077273139652776001/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2validation401.953041001.18085e-34
Exact value11808549241532451734758771553918016744123339201/100000000000000000000000000000000000000000000000000000000000000000000000000000000
11/101/2test402.028859005.69002e-36
Exact value569002075290974771276300116518357737224265601/100000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4train1602.118883005.82012e-148
Exact value58201194150383339503875538553632019568753993766878078676525203288675056545620704936644426402613011534788369119308821114937556655047379267301152832406128524270735630739185561/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4validation402.100439003.2482e-37
Exact value32482008948553988631581376462904679339195841/100000000000000000000000000000000000000000000000000000000000000000000000000000000
21/103/4test402.116145001.73301e-37
Exact value17330051421531719882155661494785878481261921/100000000000000000000000000000000000000000000000000000000000000000000000000000000
31/41/4train1601.504517102.85404e-105
Exact value13021406132098365034439107014327764284393549326168156642255292773453753265967062024828161/4562440617622195218641171605700291324893228507248559930579192517899275167208677386505912811317371399778642309573594407310688704721375437998252661319722214188251994674360264950082874192246603776
31/41/4validation401.462152103.97941e-26
Exact value58159148805327867842601/1461501637330902918203684832716283019655932542976
31/41/4test401.525699103.13248e-27
Exact value4578125416162835077989/1461501637330902918203684832716283019655932542976
41/41/2train1601.539885009.95064e-108
Exact value45399204077876553997995562832168036233964095914463013852810036041773855686187744140625/4562440617622195218641171605700291324893228507248559930579192517899275167208677386505912811317371399778642309573594407310688704721375437998252661319722214188251994674360264950082874192246603776
41/41/2validation401.520729003.82152e-27
Exact value5585154407949462890625/1461501637330902918203684832716283019655932542976
41/41/2test401.54627001.37575e-27
Exact value2010655586861806640625/1461501637330902918203684832716283019655932542976
51/43/4train1601.62102002.29072e-113
Exact value104512589437430265423521111773537840039038391464388994069464694868528256771589001/4562440617622195218641171605700291324893228507248559930579192517899275167208677386505912811317371399778642309573594407310688704721375437998252661319722214188251994674360264950082874192246603776
51/43/4validation401.631612004.52902e-29
Exact value66191734165976612361/1461501637330902918203684832716283019655932542976
51/43/4test401.610429001.05677e-28
Exact value154447379720612095509/1461501637330902918203684832716283019655932542976
62/51/4train1601.384275116.46686e-97
Exact value30275760394786328494314080839224014495780418365482096474040528997072089358345581079602231386065664488512459151405603147309121536/46816763546921983271558494138586765699150233387941833163371554538603832766739996494866350975392646334430537906314200196391753374199149312046122692338075289270907454151724452290906351194232914991744110011495649814605712890625
62/51/4validation401.36981111.59945e-24
Exact value132303289588167582666683421737616/82718061255302767487140869206996285356581211090087890625
62/51/4test401.392343116.49422e-25
Exact value53718928228608475040656663735296/82718061255302767487140869206996285356581211090087890625
72/51/2train1601.406105001.96701e-98
Exact value920891627014867089222252060785061563292771465122218861387646032193420995760040975748442470525621484497664667473774157313867776/46816763546921983271558494138586765699150233387941833163371554538603832766739996494866350975392646334430537906314200196391753374199149312046122692338075289270907454151724452290906351194232914991744110011495649814605712890625
72/51/2validation401.403104004.22275e-25
Exact value34929734971884336995439623602176/82718061255302767487140869206996285356581211090087890625
72/51/2test401.407106003.59808e-25
Exact value29762614413913281226883466264576/82718061255302767487140869206996285356581211090087890625
82/53/4train1601.437827001.22903e-100
Exact value5753899596332783025905563726666265583792313380929963092259827956852510579774525927296353402624679090520663660093297515298816/46816763546921983271558494138586765699150233387941833163371554538603832766739996494866350975392646334430537906314200196391753374199149312046122692338075289270907454151724452290906351194232914991744110011495649814605712890625
82/53/4validation401.447703007.09302e-26
Exact value5867207527593562422713732155536/82718061255302767487140869206996285356581211090087890625
82/53/4test401.431289001.36759e-25
Exact value11312477876331999850985466080256/82718061255302767487140869206996285356581211090087890625

Lower NLL is better. Uniform-four-state NLL is log4≈1.386294. Test scores do not select candidates. Indicator 1 marks a training-prior winner or final selection.

Every state under every candidate — all 36 rows
Every state under every candidate
IndexStateMassPosterior Z1Fixed q Z1Log evidenceELBOKL gap
0061/1001/2441/4-0.4942963-1.3093330.815037
019/1001/41/2-2.407946-2.5517870.143841
029/1001/41/2-2.407946-2.5517870.143841
0321/10027/283/4-1.560648-1.8586390.2979917
1041/1001/821/4-0.8915981-1.4401450.5485472
119/1001/21/2-2.407946-2.4079460
129/1001/21/2-2.407946-2.4079460
1341/10081/823/4-0.8915981-1.4401450.5485472
2021/1001/281/4-1.560648-1.8586390.2979917
219/1003/41/2-2.407946-2.5517870.143841
229/1003/41/2-2.407946-2.5517870.143841
2361/100243/2443/4-0.4942963-1.3093330.815037
307/161/281/4-0.8266786-1.124670.2979917
313/161/41/2-1.673976-1.8178170.143841
323/161/41/2-1.673976-1.8178170.143841
333/163/43/4-1.673976-1.6739760
405/161/101/4-1.163151-1.2554820.09233152
413/161/21/2-1.673976-1.6739760
423/161/21/2-1.673976-1.6739760
435/169/103/4-1.163151-1.2554820.09233152
503/161/41/4-1.673976-1.6739760
513/163/41/2-1.673976-1.8178170.143841
523/163/41/2-1.673976-1.8178170.143841
537/1627/283/4-0.8266786-1.124670.2979917
6031/1004/311/4-1.171183-1.2243840.05320082
616/251/41/2-1.427116-1.5709570.143841
626/251/41/2-1.427116-1.5709570.143841
6321/1003/73/4-1.560648-1.773690.2130422
7013/504/131/4-1.347074-1.3551960.00812219
716/251/21/2-1.427116-1.4271160
726/251/21/2-1.427116-1.4271160
7313/509/133/4-1.347074-1.3551960.00812219
8021/1004/71/4-1.560648-1.773690.2130422
816/253/41/2-1.427116-1.5709570.143841
826/253/41/2-1.427116-1.5709570.143841
8331/10027/313/4-1.171183-1.2243840.05320082
Every selected native value, rule and role — all 240 rows
Every selected native value, rule and role
Observation IDSource positions 0/1TimeNative 0Rule 0Bit 0Native 1Rule 1Bit 1Role
Churn:row11/1first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row1414/14first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row2727/27first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row4040/40first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row5353/53first9months aggregate13strictly greater than010nativecode1 means complaint0validation
Churn:row6666/66first9months aggregate6strictly greater than010nativecode1 means complaint0test
Churn:row8080/80first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row9393/93first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row106106/106first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row119119/119first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row132132/132first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row145145/145first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row159159/159first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row172172/172first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row185185/185first9months aggregate7strictly greater than011nativecode1 means complaint1train
Churn:row198198/198first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row211211/211first9months aggregate5strictly greater than010nativecode1 means complaint0validation
Churn:row224224/224first9months aggregate20strictly greater than010nativecode1 means complaint0test
Churn:row238238/238first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row251251/251first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row264264/264first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row277277/277first9months aggregate14strictly greater than011nativecode1 means complaint1train
Churn:row290290/290first9months aggregate9strictly greater than010nativecode1 means complaint0validation
Churn:row304304/304first9months aggregate5strictly greater than010nativecode1 means complaint0test
Churn:row317317/317first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row330330/330first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row343343/343first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row356356/356first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row369369/369first9months aggregate2strictly greater than010nativecode1 means complaint0validation
Churn:row383383/383first9months aggregate2strictly greater than010nativecode1 means complaint0test
Churn:row396396/396first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row409409/409first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row422422/422first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row435435/435first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row448448/448first9months aggregate6strictly greater than010nativecode1 means complaint0validation
Churn:row462462/462first9months aggregate13strictly greater than010nativecode1 means complaint0test
Churn:row475475/475first9months aggregate17strictly greater than010nativecode1 means complaint0train
Churn:row488488/488first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row501501/501first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row514514/514first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row528528/528first9months aggregate5strictly greater than010nativecode1 means complaint0validation
Churn:row541541/541first9months aggregate7strictly greater than010nativecode1 means complaint0test
Churn:row554554/554first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row567567/567first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row580580/580first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row593593/593first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row607607/607first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row620620/620first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row633633/633first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row646646/646first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row659659/659first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row672672/672first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row686686/686first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row699699/699first9months aggregate4strictly greater than010nativecode1 means complaint0test
Churn:row712712/712first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row725725/725first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row738738/738first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row752752/752first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row765765/765first9months aggregate7strictly greater than010nativecode1 means complaint0validation
Churn:row778778/778first9months aggregate7strictly greater than011nativecode1 means complaint1test
Churn:row791791/791first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row804804/804first9months aggregate12strictly greater than010nativecode1 means complaint0train
Churn:row817817/817first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row831831/831first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row844844/844first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row857857/857first9months aggregate10strictly greater than010nativecode1 means complaint0test
Churn:row870870/870first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row883883/883first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row896896/896first9months aggregate22strictly greater than010nativecode1 means complaint0train
Churn:row910910/910first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row923923/923first9months aggregate17strictly greater than010nativecode1 means complaint0validation
Churn:row936936/936first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row949949/949first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row962962/962first9months aggregate9strictly greater than011nativecode1 means complaint1train
Churn:row976976/976first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row989989/989first9months aggregate4strictly greater than011nativecode1 means complaint1train
Churn:row10021002/1002first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row10151015/1015first9months aggregate9strictly greater than010nativecode1 means complaint0test
Churn:row10281028/1028first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row10411041/1041first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row10551055/1055first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row10681068/1068first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row10811081/1081first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row10941094/1094first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row11071107/1107first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row11201120/1120first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row11341134/1134first9months aggregate23strictly greater than010nativecode1 means complaint0train
Churn:row11471147/1147first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row11601160/1160first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row11731173/1173first9months aggregate15strictly greater than010nativecode1 means complaint0test
Churn:row11861186/1186first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row11991199/1199first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row12131213/1213first9months aggregate21strictly greater than010nativecode1 means complaint0train
Churn:row12261226/1226first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row12391239/1239first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row12521252/1252first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row12651265/1265first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row12791279/1279first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row12921292/1292first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row13051305/1305first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row13181318/1318first9months aggregate2strictly greater than010nativecode1 means complaint0validation
Churn:row13311331/1331first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row13441344/1344first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row13581358/1358first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row13711371/1371first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row13841384/1384first9months aggregate15strictly greater than010nativecode1 means complaint0train
Churn:row13971397/1397first9months aggregate2strictly greater than010nativecode1 means complaint0validation
Churn:row14101410/1410first9months aggregate4strictly greater than010nativecode1 means complaint0test
Churn:row14231423/1423first9months aggregate20strictly greater than011nativecode1 means complaint1train
Churn:row14371437/1437first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row14501450/1450first9months aggregate0strictly greater than001nativecode1 means complaint1train
Churn:row14631463/1463first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row14761476/1476first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row14891489/1489first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row15031503/1503first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row15161516/1516first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row15291529/1529first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row15421542/1542first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row15551555/1555first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row15681568/1568first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row15821582/1582first9months aggregate0strictly greater than001nativecode1 means complaint1train
Churn:row15951595/1595first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row16081608/1608first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row16211621/1621first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row16341634/1634first9months aggregate20strictly greater than010nativecode1 means complaint0validation
Churn:row16471647/1647first9months aggregate7strictly greater than010nativecode1 means complaint0test
Churn:row16611661/1661first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row16741674/1674first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row16871687/1687first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row17001700/1700first9months aggregate0strictly greater than001nativecode1 means complaint1train
Churn:row17131713/1713first9months aggregate22strictly greater than010nativecode1 means complaint0validation
Churn:row17271727/1727first9months aggregate6strictly greater than010nativecode1 means complaint0test
Churn:row17401740/1740first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row17531753/1753first9months aggregate3strictly greater than010nativecode1 means complaint0train
Churn:row17661766/1766first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row17791779/1779first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row17921792/1792first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row18061806/1806first9months aggregate4strictly greater than010nativecode1 means complaint0test
Churn:row18191819/1819first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row18321832/1832first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row18451845/1845first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row18581858/1858first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row18711871/1871first9months aggregate4strictly greater than010nativecode1 means complaint0validation
Churn:row18851885/1885first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row18981898/1898first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row19111911/1911first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row19241924/1924first9months aggregate22strictly greater than010nativecode1 means complaint0train
Churn:row19371937/1937first9months aggregate4strictly greater than010nativecode1 means complaint0train
Churn:row19511951/1951first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row19641964/1964first9months aggregate0strictly greater than000nativecode1 means complaint0test
Churn:row19771977/1977first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row19901990/1990first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20032003/2003first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row20162016/2016first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20302030/2030first9months aggregate0strictly greater than000nativecode1 means complaint0validation
Churn:row20432043/2043first9months aggregate5strictly greater than010nativecode1 means complaint0test
Churn:row20562056/2056first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row20692069/2069first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20822082/2082first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row20952095/2095first9months aggregate0strictly greater than000nativecode1 means complaint0train
Churn:row21092109/2109first9months aggregate12strictly greater than010nativecode1 means complaint0validation
Churn:row21222122/2122first9months aggregate13strictly greater than010nativecode1 means complaint0test
Churn:row21352135/2135first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row21482148/2148first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row21612161/2161first9months aggregate14strictly greater than010nativecode1 means complaint0train
Churn:row21742174/2174first9months aggregate29strictly greater than011nativecode1 means complaint1train
Churn:row21882188/2188first9months aggregate14strictly greater than010nativecode1 means complaint0validation
Churn:row22012201/2201first9months aggregate10strictly greater than010nativecode1 means complaint0test
Churn:row22142214/2214first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row22272227/2227first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row22402240/2240first9months aggregate6strictly greater than010nativecode1 means complaint0train
Churn:row22542254/2254first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row22672267/2267first9months aggregate6strictly greater than010nativecode1 means complaint0validation
Churn:row22802280/2280first9months aggregate7strictly greater than010nativecode1 means complaint0test
Churn:row22932293/2293first9months aggregate16strictly greater than010nativecode1 means complaint0train
Churn:row23062306/2306first9months aggregate15strictly greater than010nativecode1 means complaint0train
Churn:row23192319/2319first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row23332333/2333first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row23462346/2346first9months aggregate20strictly greater than010nativecode1 means complaint0validation
Churn:row23592359/2359first9months aggregate17strictly greater than010nativecode1 means complaint0test
Churn:row23722372/2372first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row23852385/2385first9months aggregate16strictly greater than011nativecode1 means complaint1train
Churn:row23982398/2398first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row24122412/2412first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row24252425/2425first9months aggregate13strictly greater than010nativecode1 means complaint0validation
Churn:row24382438/2438first9months aggregate6strictly greater than010nativecode1 means complaint0test
Churn:row24512451/2451first9months aggregate15strictly greater than010nativecode1 means complaint0train
Churn:row24642464/2464first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row24782478/2478first9months aggregate16strictly greater than011nativecode1 means complaint1train
Churn:row24912491/2491first9months aggregate18strictly greater than010nativecode1 means complaint0train
Churn:row25042504/2504first9months aggregate13strictly greater than010nativecode1 means complaint0validation
Churn:row25172517/2517first9months aggregate5strictly greater than010nativecode1 means complaint0test
Churn:row25302530/2530first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row25432543/2543first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row25572557/2557first9months aggregate13strictly greater than010nativecode1 means complaint0train
Churn:row25702570/2570first9months aggregate12strictly greater than010nativecode1 means complaint0train
Churn:row25832583/2583first9months aggregate9strictly greater than010nativecode1 means complaint0validation
Churn:row25962596/2596first9months aggregate25strictly greater than010nativecode1 means complaint0test
Churn:row26092609/2609first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row26222622/2622first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row26362636/2636first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row26492649/2649first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row26622662/2662first9months aggregate14strictly greater than011nativecode1 means complaint1validation
Churn:row26752675/2675first9months aggregate18strictly greater than010nativecode1 means complaint0test
Churn:row26882688/2688first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row27022702/2702first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row27152715/2715first9months aggregate14strictly greater than010nativecode1 means complaint0train
Churn:row27282728/2728first9months aggregate14strictly greater than010nativecode1 means complaint0train
Churn:row27412741/2741first9months aggregate16strictly greater than010nativecode1 means complaint0validation
Churn:row27542754/2754first9months aggregate17strictly greater than010nativecode1 means complaint0test
Churn:row27672767/2767first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row27812781/2781first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row27942794/2794first9months aggregate9strictly greater than010nativecode1 means complaint0train
Churn:row28072807/2807first9months aggregate7strictly greater than010nativecode1 means complaint0train
Churn:row28202820/2820first9months aggregate6strictly greater than010nativecode1 means complaint0validation
Churn:row28332833/2833first9months aggregate3strictly greater than010nativecode1 means complaint0test
Churn:row28462846/2846first9months aggregate19strictly greater than010nativecode1 means complaint0train
Churn:row28602860/2860first9months aggregate10strictly greater than010nativecode1 means complaint0train
Churn:row28732873/2873first9months aggregate26strictly greater than011nativecode1 means complaint1train
Churn:row28862886/2886first9months aggregate5strictly greater than010nativecode1 means complaint0train
Churn:row28992899/2899first9months aggregate5strictly greater than010nativecode1 means complaint0validation
Churn:row29122912/2912first9months aggregate16strictly greater than010nativecode1 means complaint0test
Churn:row29262926/2926first9months aggregate8strictly greater than010nativecode1 means complaint0train
Churn:row29392939/2939first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row29522952/2952first9months aggregate11strictly greater than010nativecode1 means complaint0train
Churn:row29652965/2965first9months aggregate20strictly greater than010nativecode1 means complaint0train
Churn:row29782978/2978first9months aggregate20strictly greater than011nativecode1 means complaint1validation
Churn:row29912991/2991first9months aggregate22strictly greater than011nativecode1 means complaint1test
Churn:row30053005/3005first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row30183018/3018first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row30313031/3031first9months aggregate2strictly greater than010nativecode1 means complaint0train
Churn:row30443044/3044first9months aggregate1strictly greater than010nativecode1 means complaint0train
Churn:row30573057/3057first9months aggregate9strictly greater than010nativecode1 means complaint0validation
Churn:row30703070/3070first9months aggregate8strictly greater than010nativecode1 means complaint0test
Churn:row30843084/3084first9months aggregate30strictly greater than010nativecode1 means complaint0train
Churn:row30973097/3097first9months aggregate17strictly greater than010nativecode1 means complaint0train
Churn:row31103110/3110first9months aggregate12strictly greater than010nativecode1 means complaint0train
Churn:row31233123/3123first9months aggregate28strictly greater than011nativecode1 means complaint1train
Churn:row31363136/3136first9months aggregate7strictly greater than010nativecode1 means complaint0validation
Churn:row31503150/3150first9months aggregate8strictly greater than011nativecode1 means complaint1test
Every observation under selected model — all 240 rows
Every observation under selected model
Observation IDRoleMassPosterior Z1Fixed q Z1ELBOKL gap
Churn:row1train6/251/41/2-1.5709570.143841
Churn:row14train6/251/41/2-1.5709570.143841
Churn:row27train6/251/41/2-1.5709570.143841
Churn:row40train6/251/41/2-1.5709570.143841
Churn:row53validation6/251/41/2-1.5709570.143841
Churn:row66test6/251/41/2-1.5709570.143841
Churn:row80train6/251/41/2-1.5709570.143841
Churn:row93train6/251/41/2-1.5709570.143841
Churn:row106train6/251/41/2-1.5709570.143841
Churn:row119train31/1004/311/4-1.2243840.05320082
Churn:row132validation31/1004/311/4-1.2243840.05320082
Churn:row145test31/1004/311/4-1.2243840.05320082
Churn:row159train6/251/41/2-1.5709570.143841
Churn:row172train6/251/41/2-1.5709570.143841
Churn:row185train21/1003/73/4-1.773690.2130422
Churn:row198train6/251/41/2-1.5709570.143841
Churn:row211validation6/251/41/2-1.5709570.143841
Churn:row224test6/251/41/2-1.5709570.143841
Churn:row238train6/251/41/2-1.5709570.143841
Churn:row251train6/251/41/2-1.5709570.143841
Churn:row264train6/251/41/2-1.5709570.143841
Churn:row277train21/1003/73/4-1.773690.2130422
Churn:row290validation6/251/41/2-1.5709570.143841
Churn:row304test6/251/41/2-1.5709570.143841
Churn:row317train31/1004/311/4-1.2243840.05320082
Churn:row330train31/1004/311/4-1.2243840.05320082
Churn:row343train6/251/41/2-1.5709570.143841
Churn:row356train6/251/41/2-1.5709570.143841
Churn:row369validation6/251/41/2-1.5709570.143841
Churn:row383test6/251/41/2-1.5709570.143841
Churn:row396train6/251/41/2-1.5709570.143841
Churn:row409train6/251/41/2-1.5709570.143841
Churn:row422train6/251/41/2-1.5709570.143841
Churn:row435train6/251/41/2-1.5709570.143841
Churn:row448validation6/251/41/2-1.5709570.143841
Churn:row462test6/251/41/2-1.5709570.143841
Churn:row475train6/251/41/2-1.5709570.143841
Churn:row488train6/251/41/2-1.5709570.143841
Churn:row501train6/251/41/2-1.5709570.143841
Churn:row514train31/1004/311/4-1.2243840.05320082
Churn:row528validation6/251/41/2-1.5709570.143841
Churn:row541test6/251/41/2-1.5709570.143841
Churn:row554train6/251/41/2-1.5709570.143841
Churn:row567train31/1004/311/4-1.2243840.05320082
Churn:row580train6/251/41/2-1.5709570.143841
Churn:row593train6/251/41/2-1.5709570.143841
Churn:row607validation6/251/41/2-1.5709570.143841
Churn:row620test6/251/41/2-1.5709570.143841
Churn:row633train31/1004/311/4-1.2243840.05320082
Churn:row646train6/251/41/2-1.5709570.143841
Churn:row659train6/251/41/2-1.5709570.143841
Churn:row672train6/251/41/2-1.5709570.143841
Churn:row686validation6/251/41/2-1.5709570.143841
Churn:row699test6/251/41/2-1.5709570.143841
Churn:row712train6/251/41/2-1.5709570.143841
Churn:row725train6/251/41/2-1.5709570.143841
Churn:row738train6/251/41/2-1.5709570.143841
Churn:row752train31/1004/311/4-1.2243840.05320082
Churn:row765validation6/251/41/2-1.5709570.143841
Churn:row778test21/1003/73/4-1.773690.2130422
Churn:row791train6/251/41/2-1.5709570.143841
Churn:row804train6/251/41/2-1.5709570.143841
Churn:row817train6/251/41/2-1.5709570.143841
Churn:row831train6/251/41/2-1.5709570.143841
Churn:row844validation6/251/41/2-1.5709570.143841
Churn:row857test6/251/41/2-1.5709570.143841
Churn:row870train6/251/41/2-1.5709570.143841
Churn:row883train6/251/41/2-1.5709570.143841
Churn:row896train6/251/41/2-1.5709570.143841
Churn:row910train6/251/41/2-1.5709570.143841
Churn:row923validation6/251/41/2-1.5709570.143841
Churn:row936test31/1004/311/4-1.2243840.05320082
Churn:row949train31/1004/311/4-1.2243840.05320082
Churn:row962train21/1003/73/4-1.773690.2130422
Churn:row976train6/251/41/2-1.5709570.143841
Churn:row989train21/1003/73/4-1.773690.2130422
Churn:row1002validation31/1004/311/4-1.2243840.05320082
Churn:row1015test6/251/41/2-1.5709570.143841
Churn:row1028train6/251/41/2-1.5709570.143841
Churn:row1041train6/251/41/2-1.5709570.143841
Churn:row1055train31/1004/311/4-1.2243840.05320082
Churn:row1068train31/1004/311/4-1.2243840.05320082
Churn:row1081validation31/1004/311/4-1.2243840.05320082
Churn:row1094test31/1004/311/4-1.2243840.05320082
Churn:row1107train6/251/41/2-1.5709570.143841
Churn:row1120train6/251/41/2-1.5709570.143841
Churn:row1134train6/251/41/2-1.5709570.143841
Churn:row1147train6/251/41/2-1.5709570.143841
Churn:row1160validation31/1004/311/4-1.2243840.05320082
Churn:row1173test6/251/41/2-1.5709570.143841
Churn:row1186train31/1004/311/4-1.2243840.05320082
Churn:row1199train31/1004/311/4-1.2243840.05320082
Churn:row1213train6/251/41/2-1.5709570.143841
Churn:row1226train31/1004/311/4-1.2243840.05320082
Churn:row1239validation31/1004/311/4-1.2243840.05320082
Churn:row1252test31/1004/311/4-1.2243840.05320082
Churn:row1265train6/251/41/2-1.5709570.143841
Churn:row1279train31/1004/311/4-1.2243840.05320082
Churn:row1292train31/1004/311/4-1.2243840.05320082
Churn:row1305train6/251/41/2-1.5709570.143841
Churn:row1318validation6/251/41/2-1.5709570.143841
Churn:row1331test6/251/41/2-1.5709570.143841
Churn:row1344train6/251/41/2-1.5709570.143841
Churn:row1358train6/251/41/2-1.5709570.143841
Churn:row1371train31/1004/311/4-1.2243840.05320082
Churn:row1384train6/251/41/2-1.5709570.143841
Churn:row1397validation6/251/41/2-1.5709570.143841
Churn:row1410test6/251/41/2-1.5709570.143841
Churn:row1423train21/1003/73/4-1.773690.2130422
Churn:row1437train31/1004/311/4-1.2243840.05320082
Churn:row1450train6/251/41/2-1.5709570.143841
Churn:row1463train6/251/41/2-1.5709570.143841
Churn:row1476validation31/1004/311/4-1.2243840.05320082
Churn:row1489test31/1004/311/4-1.2243840.05320082
Churn:row1503train6/251/41/2-1.5709570.143841
Churn:row1516train6/251/41/2-1.5709570.143841
Churn:row1529train31/1004/311/4-1.2243840.05320082
Churn:row1542train31/1004/311/4-1.2243840.05320082
Churn:row1555validation31/1004/311/4-1.2243840.05320082
Churn:row1568test31/1004/311/4-1.2243840.05320082
Churn:row1582train6/251/41/2-1.5709570.143841
Churn:row1595train31/1004/311/4-1.2243840.05320082
Churn:row1608train6/251/41/2-1.5709570.143841
Churn:row1621train6/251/41/2-1.5709570.143841
Churn:row1634validation6/251/41/2-1.5709570.143841
Churn:row1647test6/251/41/2-1.5709570.143841
Churn:row1661train6/251/41/2-1.5709570.143841
Churn:row1674train6/251/41/2-1.5709570.143841
Churn:row1687train31/1004/311/4-1.2243840.05320082
Churn:row1700train6/251/41/2-1.5709570.143841
Churn:row1713validation6/251/41/2-1.5709570.143841
Churn:row1727test6/251/41/2-1.5709570.143841
Churn:row1740train6/251/41/2-1.5709570.143841
Churn:row1753train6/251/41/2-1.5709570.143841
Churn:row1766train31/1004/311/4-1.2243840.05320082
Churn:row1779train31/1004/311/4-1.2243840.05320082
Churn:row1792validation31/1004/311/4-1.2243840.05320082
Churn:row1806test6/251/41/2-1.5709570.143841
Churn:row1819train31/1004/311/4-1.2243840.05320082
Churn:row1832train31/1004/311/4-1.2243840.05320082
Churn:row1845train31/1004/311/4-1.2243840.05320082
Churn:row1858train6/251/41/2-1.5709570.143841
Churn:row1871validation6/251/41/2-1.5709570.143841
Churn:row1885test6/251/41/2-1.5709570.143841
Churn:row1898train6/251/41/2-1.5709570.143841
Churn:row1911train6/251/41/2-1.5709570.143841
Churn:row1924train6/251/41/2-1.5709570.143841
Churn:row1937train6/251/41/2-1.5709570.143841
Churn:row1951validation31/1004/311/4-1.2243840.05320082
Churn:row1964test31/1004/311/4-1.2243840.05320082
Churn:row1977train31/1004/311/4-1.2243840.05320082
Churn:row1990train31/1004/311/4-1.2243840.05320082
Churn:row2003train6/251/41/2-1.5709570.143841
Churn:row2016train31/1004/311/4-1.2243840.05320082
Churn:row2030validation31/1004/311/4-1.2243840.05320082
Churn:row2043test6/251/41/2-1.5709570.143841
Churn:row2056train6/251/41/2-1.5709570.143841
Churn:row2069train31/1004/311/4-1.2243840.05320082
Churn:row2082train31/1004/311/4-1.2243840.05320082
Churn:row2095train31/1004/311/4-1.2243840.05320082
Churn:row2109validation6/251/41/2-1.5709570.143841
Churn:row2122test6/251/41/2-1.5709570.143841
Churn:row2135train6/251/41/2-1.5709570.143841
Churn:row2148train6/251/41/2-1.5709570.143841
Churn:row2161train6/251/41/2-1.5709570.143841
Churn:row2174train21/1003/73/4-1.773690.2130422
Churn:row2188validation6/251/41/2-1.5709570.143841
Churn:row2201test6/251/41/2-1.5709570.143841
Churn:row2214train6/251/41/2-1.5709570.143841
Churn:row2227train6/251/41/2-1.5709570.143841
Churn:row2240train6/251/41/2-1.5709570.143841
Churn:row2254train6/251/41/2-1.5709570.143841
Churn:row2267validation6/251/41/2-1.5709570.143841
Churn:row2280test6/251/41/2-1.5709570.143841
Churn:row2293train6/251/41/2-1.5709570.143841
Churn:row2306train6/251/41/2-1.5709570.143841
Churn:row2319train6/251/41/2-1.5709570.143841
Churn:row2333train6/251/41/2-1.5709570.143841
Churn:row2346validation6/251/41/2-1.5709570.143841
Churn:row2359test6/251/41/2-1.5709570.143841
Churn:row2372train6/251/41/2-1.5709570.143841
Churn:row2385train21/1003/73/4-1.773690.2130422
Churn:row2398train6/251/41/2-1.5709570.143841
Churn:row2412train6/251/41/2-1.5709570.143841
Churn:row2425validation6/251/41/2-1.5709570.143841
Churn:row2438test6/251/41/2-1.5709570.143841
Churn:row2451train6/251/41/2-1.5709570.143841
Churn:row2464train6/251/41/2-1.5709570.143841
Churn:row2478train21/1003/73/4-1.773690.2130422
Churn:row2491train6/251/41/2-1.5709570.143841
Churn:row2504validation6/251/41/2-1.5709570.143841
Churn:row2517test6/251/41/2-1.5709570.143841
Churn:row2530train6/251/41/2-1.5709570.143841
Churn:row2543train6/251/41/2-1.5709570.143841
Churn:row2557train6/251/41/2-1.5709570.143841
Churn:row2570train6/251/41/2-1.5709570.143841
Churn:row2583validation6/251/41/2-1.5709570.143841
Churn:row2596test6/251/41/2-1.5709570.143841
Churn:row2609train6/251/41/2-1.5709570.143841
Churn:row2622train6/251/41/2-1.5709570.143841
Churn:row2636train6/251/41/2-1.5709570.143841
Churn:row2649train6/251/41/2-1.5709570.143841
Churn:row2662validation21/1003/73/4-1.773690.2130422
Churn:row2675test6/251/41/2-1.5709570.143841
Churn:row2688train6/251/41/2-1.5709570.143841
Churn:row2702train6/251/41/2-1.5709570.143841
Churn:row2715train6/251/41/2-1.5709570.143841
Churn:row2728train6/251/41/2-1.5709570.143841
Churn:row2741validation6/251/41/2-1.5709570.143841
Churn:row2754test6/251/41/2-1.5709570.143841
Churn:row2767train6/251/41/2-1.5709570.143841
Churn:row2781train6/251/41/2-1.5709570.143841
Churn:row2794train6/251/41/2-1.5709570.143841
Churn:row2807train6/251/41/2-1.5709570.143841
Churn:row2820validation6/251/41/2-1.5709570.143841
Churn:row2833test6/251/41/2-1.5709570.143841
Churn:row2846train6/251/41/2-1.5709570.143841
Churn:row2860train6/251/41/2-1.5709570.143841
Churn:row2873train21/1003/73/4-1.773690.2130422
Churn:row2886train6/251/41/2-1.5709570.143841
Churn:row2899validation6/251/41/2-1.5709570.143841
Churn:row2912test6/251/41/2-1.5709570.143841
Churn:row2926train6/251/41/2-1.5709570.143841
Churn:row2939train6/251/41/2-1.5709570.143841
Churn:row2952train6/251/41/2-1.5709570.143841
Churn:row2965train6/251/41/2-1.5709570.143841
Churn:row2978validation21/1003/73/4-1.773690.2130422
Churn:row2991test21/1003/73/4-1.773690.2130422
Churn:row3005train6/251/41/2-1.5709570.143841
Churn:row3018train6/251/41/2-1.5709570.143841
Churn:row3031train6/251/41/2-1.5709570.143841
Churn:row3044train6/251/41/2-1.5709570.143841
Churn:row3057validation6/251/41/2-1.5709570.143841
Churn:row3070test6/251/41/2-1.5709570.143841
Churn:row3084train6/251/41/2-1.5709570.143841
Churn:row3097train6/251/41/2-1.5709570.143841
Churn:row3110train6/251/41/2-1.5709570.143841
Churn:row3123train21/1003/73/4-1.773690.2130422
Churn:row3136validation6/251/41/2-1.5709570.143841
Churn:row3150test21/1003/73/4-1.773690.2130422

First test observation Churn:row66: expand its two latent paths. Evidence is their joint sum 6/25.

Complete paths/Bayes for one actual observation
zPriorConditional observationJointPosterior
03/46/259/503/4
11/46/253/501/4

This family always assigns equal mass to 01 and 10 despite observed counts 3 versus 173. Test NLL is slightly worse than the uniform baseline. Exact posterior inference cannot repair this family limitation.

Telecom customers: 240 actual anonymous records · state-fit
Telecom customers: 240 actual anonymous records · state-fit · Original vector · PNG
Telecom customers: 240 actual anonymous records · candidates
Telecom customers: 240 actual anonymous records · candidates · Original vector · PNG
Telecom customers: 240 actual anonymous records · inference-gap
Telecom customers: 240 actual anonymous records · inference-gap · Original vector · PNG

Original and complete derived data: actual3-digit-original64counts.csv · actual3150-customer-original14-fields.csv · actual360-four-country-growth-CPI-1980-2024.csv · actual3613-NLS-original52-fields.csv · actual617-binary-feature-lineage.csv · computed-all-state-models.csv · computed-candidate-role-metrics.csv · computed-image-diffusion-stages.csv · computed-image-reverse-bridges.csv · computed-selected-row-inference.csv · Python · base R

기초Foundations

32. 원행에서 후보·사후·하한까지 재현하기32. Reproduce the path from source rows to inference

실제자료 실습에서는 사례를 고르면 아홉 후보의 훈련·검증·시험 값을 모두 볼 수 있습니다. 훈련에서 선택된 π 세 개와 최종 선택을 따로 표시합니다. 후보 미리보기를 바꾸는 것은 표시할 모형을 바꾸는 기능이며, 이미 정한 선택 기준이나 시험 역할을 바꾸지 않습니다. 작은 시험 점수를 보고 승자를 바꾸는 버튼으로 해석하지 마세요.

관측별 표에는 원행 표지, 원값·단위·임계값, 비트·역할, 관측 질량, 정확한 잠재 사후, 고정 q와 ELBO·간격을 연결합니다. 긴 원 분수는 짧은 수치 요약과 전체값 보기를 함께 사용합니다. 전체 행과 모든 후보를 파일로도 보존하므로 첫 화면에 보이는 몇 행만이 계산에 쓰였다고 오해하지 않습니다.

Python 재현 코드와 R 재현 코드는 명시된 원 CSV를 읽어 프레임과 계산을 다시 만듭니다. 원 자료 묶음과 파생 CSV의 열 이름을 먼저 읽고, 관측 수·역할 수·네 범주 빈도부터 확인하세요. 완성 숫자 표를 다시 읽어 정답으로 출력하는 것과 원값에서 재계산하는 것은 다릅니다.

수치가 맞으면 다음에는 해석을 검토합니다. 이산화 임계값이 원 연구 질문에 타당한지, 보존 빈티지·원순서 분할의 한계가 무엇인지, 실패한 모형을 어떻게 확장할지 짧은 분석 메모를 쓰세요. 동일한 사후 공식이 세 사례에 쓰여도 국가·개인·기업에 대한 결론의 의미는 원 자료의 단위와 설계에 달려 있습니다.

Choose a case to inspect all nine candidates’ training, validation and test values. The three training-prior winners and final selection are separate. Candidate preview changes the displayed model, not the declared selection procedure or test role.

Observation-level views connect source IDs, native values, units, thresholds, bits, roles, model mass, exact latent posterior, fixed q and its ELBO gap. Short summaries retain access to full fractions. Complete rows and candidates remain in downloads rather than being reduced to the first displayed page.

The Python program and R program reconstruct frames and calculations from declared source CSVs. Read column definitions, then verify sample counts, roles and state frequencies before model scores. Recalculating from observations differs from reprinting expected-result tables.

After numerical reproduction, assess interpretation: threshold suitability, retained-vintage limitations, source-order splitting and possible extensions of a failed family. The same posterior formula does not erase differences in what country, person and company units can support.

기초Foundations

33. 연구자를 만나는 읽기와 본문 영상33. Meet the ideas through primary readings and videos

Diederik Kingma와 Max Welling의 Auto-Encoding Variational Bayes는 생성 모형과 근사 추론을 함께 최적화하고 재매개화 기울기를 사용하는 출발점입니다. 먼저 2절의 목적식을 읽고 이 장의 유한 상자 예에서 각 항을 찾아보세요. 부록의 가우스 KL을 평균·분산 표기로 다시 적으면 표준편차와 분산을 섞는 실수를 줄일 수 있습니다.

Danilo Rezende와 Shakir Mohamed의 Variational Inference with Normalizing Flows에서는 가역변환과 야코비안을 추론 분포의 유연성과 연결합니다. 이 장의 단순 아핀 흐름에서 어떤 조건이 쉬웠고, 일반 신경망에서는 무엇을 설계해야 하는지 메모하세요. Jonathan Ho, Ajay Jain, Pieter Abbeel의 Denoising Diffusion Probabilistic Models는 알려진 앞으로 과정과 학습된 역과정·변분 목적·단순 잡음 손실을 연결해 읽을 자료입니다.

아래 두 영상은 CMU의 공식 강의표에서 연결한 VAE·Diffusion 강의입니다. 본문 안에서 재생할 수 있도록 넣었습니다. 보면서 계속 넘기기보다 “q는 무엇을 조건으로 아는가”, “로그밀도인가 질량인가”, “원본을 아는 다리가 어느 줄에 쓰이는가”를 기록하세요. 재생 제공 여부는 동영상 제공자의 설정에 따릅니다.

첫 학습에서는 이 장의 작은 계산과 연결되는 부분을 찾아 1쪽 요약을 만드세요. 심화 학습에서는 논문의 지지집합·목적 가중치·분산 선택과 구현의 차이를 확인합니다. 논문 속 시각적 결과를 이 장의 실제 작은 자료에서 얻은 성능처럼 인용하지 않습니다.

Diederik Kingma and Max Welling’s Auto-Encoding Variational Bayes connects generative learning, approximate inference and reparameterized gradients. Read the objective in section 2 and identify its terms in our finite box example. Rewrite the appendix Gaussian KL using explicit variance notation.

Danilo Rezende and Shakir Mohamed’s Variational Inference with Normalizing Flows connects invertible transformations and Jacobians to flexible inference. Compare our easy affine conditions with what a general network must guarantee. Jonathan Ho, Ajay Jain and Pieter Abbeel’s Denoising Diffusion Probabilistic Models connects forward noising, learned reverse processes, variational terms and simplified noise loss.

The embedded VAE and Diffusion lectures are linked from the official CMU lecture table. Watch within this page, pausing to record what q conditions on, whether a value is mass or density and where the clean-conditioned bridge enters. Playback availability follows the provider’s settings.

For a first pass, connect selected explanations to this chapter’s small calculations in a one-page note. For advanced study, compare support, objective weights and variance choices with an implementation. Do not attribute the papers’ visual performance to our small factual experiment.

심화Extension

34. 모형 오차·근사 오차·최적화 오차를 분리한다34. Separate model, approximation and optimization errors

정확한 사후를 계산했다고 관측 모형이 정확해진 것은 아닙니다. 기업 사례처럼 관측 01과 10에 언제나 같은 질량을 주는 가족은 그 비대칭을 표현할 수 없습니다. 그 안에서 정확한 사후를 써 KL 간격을 0으로 만들어도 관측 질량의 한계는 남습니다. 이것이 모형 가족의 문제와 추론 문제를 분리해야 하는 이유입니다.

생성 모형을 고정해도 q 가족이 좁으면 정확 사후와 간격이 남습니다. 그 가족 안의 최적 q를 찾지 못하면 최적화 차이가 추가되고, 여러 관측이 하나의 인코더를 공유하면 각 관측별 자유 최적화를 모두 흉내 내지 못하는 차이도 생길 수 있습니다. 비교할 때 어떤 모형과 가족을 고정했는지 말해야 분해가 의미 있습니다.

잠재 표현의 식별성도 별도 문제입니다. 두 성분의 이름을 바꾸거나 어떤 가역 좌표변환을 함께 적용해 같은 관측분포를 만드는 경우가 있습니다. 잠재축 1이 자연의 특정 속성을 유일하게 나타낸다고 해석하려면 추가 구조·자료·검증이 필요합니다. 보기 좋은 잠재 공간 그림만으로 인과 해석을 보증하지 않습니다.

대학원 연결 과제로는 고정 모형 아래 관측별 최적 대각 q와 공유 인코더 q를 비교하고, 그 다음 모형 가족 자체를 바꿔 보세요. 평가 자료를 고정하고 새 선택에 사용한 자료를 기록합니다. 무엇을 개선했는지 이름 붙일 수 있어야 단순히 손실 숫자가 내려갔다는 보고를 넘어설 수 있습니다.

Exact posterior inference does not make the observation model correct. The company family necessarily gives 01 and 10 equal mass. Even zero inference gap cannot repair this restriction. Model misspecification and inference approximation are different problems.

With a generative model fixed, a restricted q family may miss its posterior. Incomplete optimization within the family adds another difference; a shared encoder may also fail to realize all freely optimized observation-specific distributions. State what is fixed before interpreting an error decomposition.

Latent identifiability is separate. Component relabelings or jointly transformed latent coordinates can preserve observed distributions. Interpreting a latent axis as a uniquely determined natural or causal attribute requires additional structure and evidence.

An advanced project can compare freely optimized diagonal q with an amortized encoder for a fixed model, then change the generative family. Preserve evaluation data and record every selection use. Naming the improved component is more informative than reporting only a lower loss.

심화Extension

35. 이산 시간에서 점수·SDE로 넘어갈 때 필요한 것35. Prerequisites for scores and continuous-time diffusion

지금까지는 t=0,1,2처럼 단계가 분명한 과정입니다. 시간 간격을 작게 하며 연속시간 극한을 다루면 확률미분방정식 SDE가 등장할 수 있습니다. 이 연결에는 잡음의 크기를 시간 간격에 맞춰 정하는 스케일링, 적절한 수렴 개념, 확률과정·이토 미적분 등의 도구가 필요합니다. 단계 수를 크게 늘렸다는 이유만으로 SDE를 유도했다고 말하지 않습니다.

연속 밀도의 점수 함수는 좌표 x에 대한 log p(x)의 기울기입니다. 정규분포 N(μ,v)에서는 −(x−μ)/v입니다. 이는 정답 라벨의 점수나 모형의 전체 성능 수치라는 일상어의 점수와 다릅니다. 어느 변수에 대해 미분하는지를 명시해야 합니다.

모르는 자료 분포의 점수를 잡음이 섞인 자료에서 학습하는 방법은 확산 역과정과 연결됩니다. 다만 밀도가 존재하고 미분 가능한지, 시간별 분포가 무엇인지, 경계·수치 적분·샘플러 오차가 어떻게 들어가는지 살펴야 합니다. 이산 손실 하나를 외웠다고 연속시간 역과정의 모든 조건을 확인한 것은 아닙니다.

진도 순서는 확률·조건부 분포, 가우스 전이와 유한 다리, 벡터 미분과 점수, 확률과정·SDE, 수치 샘플러 비교를 권합니다. 이 장에서는 첫 두 단계를 손으로 풀고 뒤의 요구 조건을 지도처럼 남깁니다. 심화 개념을 기초 설명 없이 이름만 늘어놓는 대신 필요한 선행 학습을 확인하고 올라갑니다.

∇xlog⁡N(x;μ,v)=−x−μv(one dimension)\nabla_x\log\mathcal N(x;\mu,v)=-\frac{x-\mu}{v}\qquad\text{(one dimension)}

Our chains have explicit finite steps. A continuous-time limit can lead to stochastic differential equations, but requires suitable time/noise scaling, convergence concepts, stochastic processes and Ito calculus. Merely increasing the number of steps is not a derivation of an SDE.

A density score is the coordinate gradient of log p(x). For N(mu,v), it is−(x−mu)/v. This is not a class label score or a global performance metric. Specify the differentiated variable.

Learning scores of noised distributions connects to diffusion reversal. Check density existence, differentiability, time-dependent laws, boundaries and numerical integration errors. Memorizing one discrete loss does not verify every continuous-time assumption.

Proceed through conditional probability, finite Gaussian bridges, vector derivatives and scores, stochastic processes/SDEs, then numerical samplers. This chapter works the initial steps explicitly and maps the prerequisites for advanced study.

∇xlog⁡N(x;μ,v)=−x−μv(one dimension)\nabla_x\log\mathcal N(x;\mu,v)=-\frac{x-\mu}{v}\qquad\text{(one dimension)}
기초Foundations

36. 종합 사례 연구: 생성·추론·평가를 따로 설명한다36. Capstone: explain generation, inference and evaluation

세 실제 사례 중 하나를 골라 2쪽 분석을 작성하세요. 첫쪽에는 원 관측의 단위·출처·보존 시점·선택 규칙·변환을 적고, 네 범주의 실제 빈도와 선택 모형의 질량을 비교합니다. 둘째 쪽에는 정확 사후와 고정 q의 간격, 보류 점수, 잘 맞지 않는 범주, 다음에 조사할 질문을 적습니다. 표본에서 보인 것과 모형이 가정한 것을 문장마다 구분하세요.

필수 손계산은 관측 한 건의 두 결합 경로, 주변 질량, 잠재 사후, q의 ELBO와 KL 간격입니다. 분수는 가능한 곳에서 정확히 남기고 로그는 적당한 자리로 표시합니다. 같은 관측 모형에서 사후 q로 바꾸었을 때 무엇이 변하고 무엇이 고정되는지도 설명합니다. 원 자료를 새로 다운로드했다고 쓰기 전에 실제 사용한 파일과 보존 이력을 확인하세요.

확산 부록에는 원 계수 손글씨 한 장, 이진화, 잡음 스케줄, 조건부 확률 지도, 원본을 아는 다리와 모르는 역과정을 비교합니다. 표본을 만들었다면 점 표·끝 조건·중지 규칙을 함께 남깁니다. 원본을 입력한 다리의 복원 결과를 새로운 표본 생성 성능이라고 보고하지 않습니다.

동료 검토에서는 식의 조건, 단위, 자료 누수, 기준 모형, 실패 사례, 도표의 범례와 읽기 쉬움을 함께 봅니다. 초보 학습자는 두 상자와 한 비트 설명을 먼저 다시 말하고, 심화 학습자는 ELBO의 지지집합 조건과 야코비안·연속시간 전제까지 점검합니다. 다음 장에서는 이런 생성 모형의 표현을 사전학습·전이·미세조정에 사용할 때 무엇이 달라지는지 연결합니다.

Choose one factual case for a two-page study. First document units, source, retained vintage, selection and transformation, comparing empirical state frequencies with fitted masses. Then report exact-versus-fixed inference, held-out scores, failures and a next question. Distinguish observation from model stipulation in every claim.

Work one observation by hand: two joint paths, marginal mass, latent posterior, q’s ELBO and KL gap. Preserve exact fractions where possible and display logs sensibly. Explain what changes when q becomes the posterior while the generative model stays fixed. Check source history before claiming a new download.

An optional diffusion appendix compares an original count image, binary coding, noising schedule and the two reverse conditionals. Retain points, endpoint conditions and stopping rules for any sampled path. A bridge supplied with the original is not evidence of new-sample generative quality.

Peer review should inspect assumptions, units, leakage, baselines, failures and readable figures. Beginners should first explain the boxes and one-bit chain; advanced learners should check support, Jacobians and continuous-time prerequisites. The next chapter connects representations with pretraining, transfer and fine-tuning.

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

변분 하한과 재매개화 원문 읽기Read the variational bound and reparameterization

Kingma and Welling · Auto-Encoding Variational Bayes · selected sections 2 and Appendix B

유한 상자 예의 사후 간격과 가우스 예의 분산 표기를 원 목적식에 연결합니다.Connect the finite-box posterior gap and Gaussian variance notation with the original objective.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading q를 정확 사후로 바꾸면 생성 증거 자체도 바뀌나요?Does replacing q by the posterior change generative evidence?

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

생성 모형을 고정하면 증거는 그대로이고 ELBO의 사후 KL 간격만 0이 됩니다.For a fixed generative model, evidence stays fixed and the posterior KL gap becomes zero.

가우스 확산의 다리와 목표Gaussian diffusion bridges and objectives

Ho, Jain and Abbeel · 2020 · selected background, bridge and noise-objective sections

원본을 아는 q다리와 생성시 쓰는 p역모형, 가중 변분 목적과 단순 잡음 MSE를 구분합니다.Separate the clean-conditioned bridge, deployed reverse model, weighted variational terms and simplified noise MSE.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 원본 x0를 넣어 계산한 다리를 새 표본 생성의 역과정이라고 바로 써도 되나요?Can a bridge supplied with x0 be treated directly as a new-sample reverse model?

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

그 다리는 원본을 조건으로 압니다. 새 생성에서는 원본이 없으므로 학습 또는 선언한 주변 역모형이 필요합니다.The bridge knows the original. New generation lacks it and needs a learned or declared marginal reverse model.

원 고객 자료의 관측 단위Observed units in the customer source

UCI Iranian Churn Dataset · official attributes and timing

원 통화 실패·불만 코드와 첫9개월 속성을 확인하고 이 장이 이탈 라벨을 쓰지 않는다는 점을 구분합니다.Inspect native failure/complaint coding and first-nine-month attributes; this chapter does not fit the churn label.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 고객 속성의 잠재 혼합을 적합하면 불만 감소 정책 효과를 안 것인가요?Does fitting a latent mixture identify the effect of a complaint-reduction policy?

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

관측 분포의 선언 근사일 뿐이며 개입의 인과 효과를 식별한 결과가 아닙니다.It is a stipulated observation-distribution approximation, not an identified causal intervention effect.

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

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

1. 질량과 밀도의 높이Mass versus density height

폭 1/10인 구간의 균일 밀도가 10입니다. 이것이 불가능한 확률인지 판단하고, 그 안의 폭 1/100 구간 확률을 계산하세요.

A uniform density over an interval of width 1/10 has height 10. Is it invalid? Find the probability of an interior interval of width 1/100.

풀이와 확인할 이유Solution and explanation

밀도의 전체 면적은 10×1/10=1이므로 유효합니다. 안쪽 작은 구간의 확률은 10×1/100=1/10입니다.

높이 10은 한 점의 확률 10이 아닙니다. 연속 밀도에서는 한 점의 확률은 0이고 구간에 적분한 면적을 확률로 읽습니다.

The total area is 10×1/10=1, so this is a valid density. The smaller interval has probability 10×1/100=1/10.

Height 10 is not point probability 10. A singleton has probability zero under this density; probabilities come from integrated areas.

2. 결합표를 직접 채우기Complete the joint table

사전은 1/2,1/2이고 빨강 조건부 확률은 3/4,1/4입니다. 두 상태·두 색의 결합표와 빨강 주변확률을 구하세요.

Priors are 1/2,1/2 and conditional red probabilities 3/4,1/4. Find all four joint probabilities and marginal red probability.

풀이와 확인할 이유Solution and explanation

상태 0 행은 (1/2)(3/4)=3/8, (1/2)(1/4)=1/8입니다. 상태 1 행은 1/8,3/8입니다. 네 칸의 합은 1입니다.

빨강 열을 더해 3/8+1/8=1/2를 얻습니다. 가장 큰 칸 3/8만 택하는 것은 주변화가 아닙니다.

The state-zero row is 3/8,1/8 and the state-one row 1/8,3/8. All four cells total one.

Adding the red column gives 3/8+1/8=1/2. Keeping its largest cell 3/8 would not marginalize the latent state.

3. 사후는 역수가 아니다A posterior is not a reciprocal

앞 표에서 빨강을 관측한 뒤 상태 0의 사후확률을 구하세요. 3/4의 역수를 취하지 않는 이유도 설명하세요.

Using the preceding table, find the posterior of state zero after red. Explain why taking the reciprocal of 3/4 is inappropriate.

풀이와 확인할 이유Solution and explanation

결합확률 3/8을 증거 1/2로 나누면 3/4입니다. 이 예에서 방출확률과 같은 숫자가 된 것은 대칭 사전·방출의 결과입니다.

조건부를 뒤집는 일반 규칙은 베이즈입니다. 3/4의 역수 4/3은 확률 범위도 벗어나며 사전과 증거를 전혀 사용하지 않았습니다.

Divide joint probability 3/8 by evidence 1/2 to obtain 3/4. Equality with one emission probability is a consequence of this symmetric example.

The general reversal uses Bayes. The reciprocal 4/3 is outside the probability range and ignores both prior and evidence.

4. 증거가 정확히 0일 때Exactly zero evidence

모든 상태가 빨강에 확률 0을 줍니다. 빨강이 관측됐을 때 사후를 1/2,1/2로 적어도 되나요?

Every state assigns red probability zero. After red is observed, may we report posterior 1/2,1/2 as Bayes’ result?

풀이와 확인할 이유Solution and explanation

증거 합도 0이므로 베이즈의 분모가 0입니다. 이 모형은 빨강을 불가능하게 두었고 그 조건의 사후는 정해지지 않습니다.

같은 비중으로 채우려면 별도의 완성 규칙임을 명시해야 합니다. 모형·관측 과정·자료 오류 가능성을 검토할 수 있지만, 미정의를 정상 추론 결과로 숨기지 않습니다.

The evidence is zero, making the Bayes denominator zero. The model treats red as impossible and does not determine its conditional posterior.

Equal weights would be an additional completion convention. Consider model or measurement problems, but do not hide undefined inference as an ordinary posterior.

5. 한 경로와 한 관측A path and an observation

위 상자 모형에서 누적확률 점이 각각 1/4,1/2입니다. 선택되는 경로와 그 결합확률·빨강 주변확률을 구하세요.

In the box model use CDF points 1/4 and 1/2. Find the selected path, its joint probability and the marginal probability of red.

풀이와 확인할 이유Solution and explanation

첫 점 1/4는 상태 0의 구간 [0,1/2)에 들어갑니다. 상태 0에서 둘째 점 1/2는 빨강 구간 [0,3/4)에 들어가므로 경로는 (0,빨강)입니다.

경로 확률은 3/8이고 빨강의 주변확률은 다른 상태에서 빨강인 1/8도 더한 1/2입니다. 지정 점으로 결과를 골랐다는 사실은 그 점들이 독립 난수라는 보증이 아닙니다.

The first point lies in state zero’s interval[0,1/2). The second lies in its red interval[0,3/4), selecting(state zero,red).

Its joint probability is 3/8; red’s marginal is 1/2 after adding the other red path. Supplied points do not establish IID randomness.

6. 검증 자료가 선택하는 대상What validation selects

ε마다 세 π 중 훈련 승자를 골랐더니 후보 2,5,8이 남았습니다. 시험 우도가 후보 5에서 최대지만 검증 우도는 후보 8에서 최대입니다. 어느 후보를 선택하나요?

Training selects prior winners 2,5,8, one per epsilon. Test likelihood favors 5, but validation favors 8. Which model is selected?

풀이와 확인할 이유Solution and explanation

사전에 선언한 절차는 검증으로 후보를 고르므로 8을 선택합니다. 시험 결과는 선택된 8의 성능을 보고하는 데 씁니다.

시험에서 5가 좋아 보인다는 이유로 바꾸면 시험을 선택에 쓴 것입니다. 그런 탐색을 했다면 새로 독립된 평가 자료가 필요하며 기존 시험 점수를 순수한 최종 평가라고 부르지 않습니다.

Select 8 under the declared validation rule and report its test performance.

Switching to 5 because of test results uses the test for selection. Such exploration requires fresh evaluation data before claiming an untouched final test.

7. 반복 관측의 우도와 독립성Product likelihood and independence

같은 역할 자료 두 건에 확률 1/2,1/4를 준 후보의 곱 우도를 구하세요. 이 곱을 계산했다는 사실이 관측의 현실적 독립성을 증명하나요?

A candidate gives two observations probabilities 1/2 and 1/4. Find their product likelihood. Does computing it prove empirical independence?

풀이와 확인할 이유Solution and explanation

선언한 곱 기준에서는 1/2×1/4=1/8입니다. 로그우도는 log(1/2)+log(1/4)=log(1/8)입니다.

곱은 주어진 모형의 분해 규칙이나 적합 기준입니다. 연도별 지표처럼 의존할 수 있는 관측의 독립성이 계산으로 증명되지는 않습니다. 의존 구조·검증 분할·불확실성 해석은 별도로 검토해야 합니다.

The stipulated product criterion gives 1/8, with log likelihood log(1/2)+log(1/4)=log(1/8).

This is a model factorization or scoring criterion, not proof of independence. Dependence, validation design and uncertainty interpretation require separate consideration.

8. 로그를 평균 내는 순서The order of log and averaging

a가 같은 비중으로 1,9일 때 log E[a]와 E[log a]를 구하고, 4,4일 때와 비교하세요.

For equal weights on 1,9, find log E[a] and E[log a]. Compare the pair 4,4.

풀이와 확인할 이유Solution and explanation

첫 경우 log E[a]=log5, E[log a]=(log1+log9)/2=log3입니다. log가 증가함수이므로 log5>log3입니다.

둘째 경우 둘 다 log4입니다. 양의 비중에서 로그의 입력이 일정하므로 젠센의 등호 조건을 만족합니다.

The first pair gives log 5 and(log 1+log 9)/2=log 3, with log 5>log 3.

The second gives log 4 in both expressions because the argument is constant on the positive-weight support.

9. 균등 q의 ELBOELBO under uniform q

상자 예의 빨강 결합확률은 3/8,1/8입니다. q=1/2,1/2의 엔트로피·ELBO·사후 KL 간격을 계산하세요.

Red joint masses are 3/8,1/8. Calculate entropy, ELBO and posterior KL gap for q=(1/2,1/2).

풀이와 확인할 이유Solution and explanation

엔트로피는 log2입니다. 평균 로그 결합은 (log(3/8)+log(1/8))/2=(log3)/2−log8입니다. 더하면 ELBO=(log3)/2−log4≈−0.836988입니다.

로그 증거는 −log2이므로 간격은 log2−(log3)/2=(1/2)log(4/3)≈0.143841입니다. 이것이 KL(q||사후)이며 양수입니다.

Entropy is log 2. Expected log joint is(log 3)/2−log 8, so ELBO=(log 3)/2−log 4≈−0.836988.

Subtracting from log evidence−log 2 gives(1/2)log(4/3)≈0.143841, the positive KL from q to the posterior.

10. 정확한 사후로 하한 채우기Make the bound tight

같은 모형에서 q=3/4,1/4로 바꾸면 ELBO와 사후 KL은 무엇인가요? 생성 우도 자체가 커진 것인가요?

In the same model choose q=(3/4,1/4). What are ELBO and posterior KL? Has the generative likelihood increased?

풀이와 확인할 이유Solution and explanation

q가 정확한 사후와 같으므로 사후 KL은 정확히 0입니다. ELBO는 log(1/2)=−log2까지 올라갑니다.

사전과 방출을 고정했으므로 p(x)=1/2는 전혀 바뀌지 않았습니다. 추론 분포를 개선하여 하한의 간격을 없앤 것이지 생성 우도를 바꾼 것이 아닙니다.

The posterior KL is exactly zero and ELBO reaches log(1/2)=−log 2.

The fixed prior and emissions still give evidence 1/2. Improving inference closes the bound gap without changing generative likelihood.

11. q의 일부 상태를 빼면Omitting a state under q

같은 예에서 q=1,0입니다. ELBO를 구하고, q가 모든 결합 지지집합을 덮지 않는데도 하한인지 설명하세요.

Choose q=(1,0) in the same example. Find ELBO and explain why it remains a lower bound despite missing a positive joint state.

풀이와 확인할 이유Solution and explanation

엔트로피는 0이고 평균 로그 결합은 log(3/8)이므로 ELBO=log(3/8)입니다. 증거 1/2보다 3/8이 작으므로 로그도 더 작습니다.

q가 양수인 상태만 더하면 3/8로 전체 증거 1/2 이하입니다. 이 제한 합에 젠센을 적용할 수 있습니다. 전체 증거가 제한 합과 같다고 잘못 쓰지만 않으면 하한은 유효합니다.

Entropy is zero and ELBO is log(3/8), below log(1/2).

The q-supported joint sum is 3/8, no greater than evidence 1/2. Applying Jensen to that restricted sum gives a valid bound; asserting equality with full evidence would be the error.

12. 반대 방향의 KLReverse KL direction

q=(1/2,1/2), p=(3/4,1/4)에서 KL(q||p)와 KL(p||q)를 식으로 비교하세요.

Compare KL(q||p) and KL(p||q) for q=(1/2,1/2), p=(3/4,1/4).

풀이와 확인할 이유Solution and explanation

KL(q||p)=(1/2)log(2/3)+(1/2)log2=(1/2)log(4/3)≈0.143841입니다.

반대 방향은 (3/4)log(3/2)+(1/4)log(1/2)≈0.130812입니다. 서로 다르므로 대칭 거리라고 해석할 수 없습니다. 어느 분포의 비중으로 평균하는지 식에 남겨야 합니다.

KL(q||p)=(1/2)log(4/3)≈0.143841.

KL(p||q)=(3/4)log(3/2)+(1/4)log(1/2)≈0.130812. Their inequality demonstrates directionality; retain the distribution supplying the averaging weights.

13. 무한대의 상쇄를 피하기Do not cancel infinities

증거는 양수지만 q가 양수인 한 상태의 결합확률이 0입니다. ELBO와 사후 KL을 어떻게 보고해야 하나요?

Evidence is positive, but a q-positive state has zero joint mass. How should ELBO and posterior KL be reported?

풀이와 확인할 이유Solution and explanation

그 상태의 로그 결합은 음의 무한대이므로 ELBO는 음의 무한대입니다. 그 상태의 사후도 0이고 q는 양수이므로 KL(q||사후)은 양의 무한대입니다.

각 상태를 명시하되 둘을 더해 로그 증거를 구하지 않습니다. 유한 항의 재배열식을 opposing infinities의 정상 숫자 연산으로 사용할 수 없습니다. 증거는 생성 표에서 별도로 계산합니다.

The positive-weight log-zero term makes ELBO negative infinity; positive q on zero posterior makes KL positive infinity.

Report both states without adding them numerically. A finite-term rearrangement does not license arithmetic on opposing infinities. Compute evidence separately from the generative model.

14. 화면 0과 정확한 일치Displayed zero versus exact equality

사후와 q가 정확한 분수로는 다르지만 KL 화면 값이 0입니다. 어떤 정보를 확인해야 하나요?

q differs from the posterior in exact arithmetic, but displayed KL is zero. What information should you inspect?

풀이와 확인할 이유Solution and explanation

원 q·사후 분수와 정확한 일치 표지를 먼저 확인합니다. 수학적으로 KL이 양수라는 표지, 표시 underflow 또는 반올림 여부, 사용한 근사법·급수 범계도 봅니다.

화면 0만으로 q가 최적 사후라고 결론내리지 않습니다. 반대로 유한 다항식의 정확한 분수가 남아 있다고 원 초월함수 KL까지 정확 계산됐다고 말하지 않습니다.

Inspect original rational probabilities, the exact-equality flag, mathematical positivity, display underflow/rounding and the approximation or series remainder information.

A displayed zero does not certify an exact posterior. An exact finite polynomial representation likewise does not make the original transcendental KL exact.

15. 분산 입력의 단위Variance inputs and units

q의 표준편차가 2이고 평균이 0입니다. varianceQ에 무엇을 넣어야 하나요? a=3인 아핀 변환 뒤 분산은 얼마인가요?

q has standard deviation 2 and mean 0. What belongs in varianceQ, and what is its variance after affine scale a=3?

풀이와 확인할 이유Solution and explanation

분산은 표준편차의 제곱이므로 4를 넣습니다. 변환 뒤 분산은 a²v=9×4=36이고 표준편차는 6입니다.

a가 −3이어도 분산은 36입니다. 방향 반전은 분산의 부호를 바꾸지 않습니다.

Enter variance 4. Scaling by 3 gives variance 9×4=36 and standard deviation 6.

Scale−3 gives the same variance 36; reversing orientation does not make variance negative.

16. 같은 분산의 정확한 KLExact equal-variance KL

q=N(1,1), p=N(0,1)의 KL(q||p)를 구하고 왜 로그 근사가 없어도 되는지 설명하세요.

Find KL(q||p) for q=N(1,1), p=N(0,1). Why can this case be exact without approximate logarithms?

풀이와 확인할 이유Solution and explanation

분산비는 1이어서 1−1−log1=0입니다. 중심 차 제곱은 1이고 p의 분산도 1이므로 KL=1/2입니다.

남은 연산이 유리수의 사칙연산뿐이어서 입력 1,0,1의 분수 표현에서 정확히 1/2입니다. 일반적으로 분산비가 다르면 로그 항이 남습니다.

The variance cost is 1−1−log 1=0. Squared mean difference divided by reference variance is 1, so KL=1/2.

Only rational arithmetic remains. Unequal variances generally retain a logarithmic term.

17. 정밀도를 더해 사후 구하기Add precisions for the posterior

사전 N(0,1), 관측 잡음 분산 1, 관측 x=2에서 사후 평균·분산을 구하세요.

With prior N(0,1), noise variance 1 and observation 2, find posterior mean and variance.

풀이와 확인할 이유Solution and explanation

사후 정밀도는 1+1=2이므로 분산은 1/2입니다. 평균은 (1/2)(0/1+2/1)=1입니다.

두 정보의 정밀도가 같아 평균이 0과 2의 중간이 됩니다. 사후 분산 1/2은 표준편차가 아니며 표준편차는 1/√2입니다.

Posterior precision is 2, so variance is 1/2. The mean is(1/2)(0+2)=1.

Equal precisions average the two locations. Posterior standard deviation is 1/√2, not 1/2.

18. 양의 ELBO가 오류가 아닐 때When a positive ELBO is valid

연속 모형의 관측 밀도가 4이고 q가 정확한 사후입니다. 로그 증거와 ELBO의 부호를 구하고 이산 확률 4와 다른 이유를 설명하세요.

A continuous model has evidence density 4 and q is its exact posterior. What signs do log evidence and ELBO have, and why is this unlike probability mass 4?

풀이와 확인할 이유Solution and explanation

로그 증거는 log4>0이고 사후 KL이 0이므로 ELBO도 log4>0입니다. 연속 밀도는 구간 확률을 적분할 때 쓰는 높이여서 1을 넘을 수 있습니다.

이산 확률질량 4는 불가능합니다. 두 관측 모형을 혼동해 연속 ELBO를 무조건 0 이하로 자르면 올바른 밀도 계산을 손상시킵니다.

Log evidence and ELBO both equal log 4>0 because the posterior gap is zero. Density is an integrable height and may exceed one.

A probability mass 4 is invalid. Clamping every continuous ELBO below zero would corrupt a valid density calculation.

19. 한 표본 기울기와 기대 기울기One sampled gradient and its expectation

z=μ+σε, 손실 (z−2)²에서 μ=0,σ=1입니다. ε=0인 한 표본의 μ·σ 기울기와 기대 기울기를 비교하세요.

For z=mu+sigma epsilon and loss(z−2)² at mu 0,sigma 1, compare pathwise gradients at epsilon 0 with their expectations.

풀이와 확인할 이유Solution and explanation

표본 z=0에서 μ 기울기는 2(0−2)=−4이고 σ 기울기는 2(0−2)×0=0입니다.

기대 손실은 (μ−2)²+σ²이므로 기대 기울기는 −4와 2입니다. 한 표본의 σ 기울기 0이 기대 기울기 0을 의미하지 않습니다. 평균을 미분하는 정당화에는 교환 조건도 필요합니다.

At epsilon 0, z=0 gives mu-gradient−4 and sigma-gradient 0.

Expected loss(mu−2)²+sigma² gives expected gradients−4 and 2. One zero sampled component is not a zero expected derivative; exchanging differentiation and expectation requires conditions.

20. 음의 야코비안과 밀도Negative scale and density

z가 표준정규이고 x=−2z+3입니다. x=3에서 역좌표·평균·분산·밀도를 구하세요.

For standard-normal z and x=−2 z+3, find the inverse coordinate, mean, variance and density at x=3.

풀이와 확인할 이유Solution and explanation

역좌표 z=(3−3)/(−2)=0입니다. 평균은 3, 분산은 (−2)²=4입니다. 밀도는 1/(2√(2π))입니다.

분모에 −2를 쓰면 음수 밀도가 되므로 절댓값 2를 써야 합니다. 한 점 x=3의 확률은 0이고 위의 양수는 그 점의 밀도입니다.

The inverse is 0, mean 3 and variance 4. Density is 1/(2√(2 pi)).

Use absolute scale 2; dividing by−2 would give an invalid negative density. Singleton probability remains zero.

21. 같은 관측의 단위를 바꾸면Changing measurement units

m 단위의 연속 x를 cm 단위 y=100x로 바꿉니다. 대응 지점의 밀도와 음의 로그밀도는 어떻게 바뀌나요?

Convert a continuous measurement x in meters to y=100 x in centimeters. How do corresponding density and NLL change?

풀이와 확인할 이유Solution and explanation

밀도는 fY(y)=fX(y/100)/100입니다. 로그밀도는 log fX−log100, 음의 로그밀도는 기존 값+log100입니다.

구간 확률은 좌표 폭이 함께 100배가 되어 보존됩니다. 물리적으로 같은 자료라도 밀도 점수의 숫자는 단위에 의존하므로 서로 다른 단위의 원 NLL을 그대로 우열 비교하지 않습니다.

Density divides by 100; log density subtracts log 100 and NLL adds log 100.

Interval probabilities remain unchanged because widths expand by 100. Raw density scores depend on units, so unlike measurement conventions cannot be ranked directly.

22. 제곱 변환의 두 역가지Two inverse branches of a square

z가 표준정규이고 x=z²입니다. x=1의 밀도를 구하고 양의 역가지 하나만 쓰면 무엇이 빠지는지 설명하세요.

Let z be standard normal and x=z². Find the density at x=1 and explain the loss from keeping only the positive inverse branch.

풀이와 확인할 이유Solution and explanation

역가지는 z=1,−1이며 각 미분 절댓값은 2입니다. 따라서 fX(1)=φ(1)/2+φ(−1)/2=φ(1)입니다.

표준정규의 대칭성으로 두 항이 같습니다. 양의 가지 하나만 쓰면 절반인 φ(1)/2가 됩니다. 전역 역함수 하나를 가정한 공식을 적용할 수 없는 변환입니다.

The inverse branches are±1, each with absolute derivative 2. Thus fX(1)=phi(1)/2+phi(−1)/2=phi(1).

Keeping the positive branch gives only half the density. This map lacks a single global inverse.

23. 두 흐름의 부피 배율Volume factors across two maps

u=−2z+3, x=u/2−1을 합치고 총 절대 배율과 정규분포 분산의 변화를 구하세요.

Compose u=−2 z+3 and x=u/2−1. Find total absolute scale and the change in Gaussian variance.

풀이와 확인할 이유Solution and explanation

대입하면 x=−z+1/2입니다. 총 절대 배율은 |−2|×|1/2|=1입니다.

분산은 최종 계수 −1의 제곱을 곱하므로 원 분산과 같습니다. 로그 부피 보정은 log2+log(1/2)=0이며 중간 위치 이동은 야코비안 크기를 바꾸지 않습니다.

Composition gives x=−z+1/2 and absolute scale 2×1/2=1.

Variance is unchanged because the final coefficient squares to one. Log-volume corrections cancel; shifts do not change the Jacobian scale.

24. 두 번의 잡음과 최종 뒤집힘Two noising steps

0에서 출발해 각각 확률 1/4로 두 번 뒤집습니다. 최종 1의 확률을 경로별로 계산하세요.

Start at 0 and flip twice, each at rate 1/4. Calculate final-one probability by paths.

풀이와 확인할 이유Solution and explanation

최종 1은 첫째만 뒤집거나 둘째만 뒤집는 경우입니다. 각각 (1/4)(3/4)=3/16이므로 합은 3/8입니다.

두 번 뒤집는 확률 1/16은 최종 0에 속합니다. β 두 값을 더한 1/2은 이를 바로잡지 않아 최종 뒤집힘 확률과 다릅니다.

Final one arises from exactly one flip: two paths of probability 3/16 each, totaling 3/8.

The two-flip path of probability 1/16 returns to zero. Adding the two beta values fails to account for this.

25. 공정한 주변분포와 남은 신호Fair marginals with retained signal

초기 비트가 공정하고 β=1/4를 두 번 적용합니다. 마지막 주변분포와 x0 조건부 분포를 비교하여 원본과 독립인지 판단하세요.

An initially fair bit undergoes two beta 1/4 steps. Compare the terminal marginal and clean-conditioned laws. Is it independent of x0?

풀이와 확인할 이유Solution and explanation

주변 1 확률은 계속 1/2입니다. 그러나 남은 신호는 (1−2β)²=1/4여서 원 0일 때 최종 1 확률은 3/8, 원 1일 때는 5/8입니다.

조건부가 원본에 따라 달라지므로 독립이 아닙니다. 주변분포가 기준 분포와 같아 보인다는 사실만으로 원본 정보가 사라졌다고 판단할 수 없습니다.

The terminal marginal remains fair. Retained signal is 1/4, giving terminal-one probability 3/8 from clean zero and 5/8 from clean one.

The conditional depends on x0, so independence fails. Matching a marginal reference law does not alone prove loss of original information.

26. 깨끗한 값 조건부 다리Calculate the clean-conditioned bridge

원본 0, β1=β2=1/4, 마지막 1에서 이전 1의 조건부 확률을 구하세요.

Given clean 0, two beta 1/4 steps and terminal 1, find the probability of previous 1.

풀이와 확인할 이유Solution and explanation

원본 조건에서 이전 1 확률은 1/4입니다. 이전 1과 마지막 1의 결합은 (1/4)(3/4)=3/16이고 마지막 1의 증거는 3/8입니다.

베이즈로 (3/16)/(3/8)=1/2입니다. 이 답은 원본 0까지 아는 조건의 답임을 표기에 남겨야 합니다.

Previous one has clean-conditioned probability 1/4. Its joint contribution to final one is 3/16; evidence is 3/8.

The bridge is 1/2. Its conditioning explicitly includes clean zero.

27. 원본을 모르는 역과정Calculate the marginal reverse

앞 문제에서 원본 대신 공정한 초기 사전만 알고 마지막 1을 봅니다. 이전 1의 확률을 다시 구하고 답이 달라지는 이유를 설명하세요.

Replace knowledge of the clean value by a fair initial prior and observe terminal 1. Recalculate previous-one probability and explain the difference.

풀이와 확인할 이유Solution and explanation

이전 주변분포도 공정하므로 이전 1과 마지막 1의 결합은 (1/2)(3/4)=3/8입니다. 마지막 1 확률은 1/2이므로 답은 3/4입니다.

다리의 1/2와 달라진 것은 조건에 원본 0이 없기 때문입니다. 두 공식을 같은 역확률이라고 혼용하면 원본 정보가 샌 생성 절차를 만들 수 있습니다.

The previous marginal is fair, giving joint probability 3/8 and evidence 1/2, hence posterior 3/4.

Unlike the bridge, this conditional does not know clean zero. Mixing the two can leak the desired original into a supposed generative procedure.

28. 불가능한 역경로An impossible reverse condition

초기 0의 확률이 1이고 β=0입니다. 마지막 1을 강제로 입력하면 역사후는 무엇인가요?

The initial bit is certainly 0 and beta 0. What happens if terminal 1 is supplied to reverse inference?

풀이와 확인할 이유Solution and explanation

전이가 비트를 바꾸지 않으므로 마지막 1의 질량은 정확히 0입니다. 베이즈 분모가 0이어서 역사후는 미정의입니다.

이전 0이라고 단정해 정상 경로를 만드는 것이 아니라 불가능한 조건임을 표시해야 합니다. 조건부 경로확률과 결합 경로확률도 정의 가능한 분기와 구별합니다.

No flip is possible, so terminal 1 has exact zero mass and the reverse posterior is undefined.

Do not fabricate a normal reverse path by declaring previous 0. Report the impossible condition separately from defined conditional and joint path probabilities.

29. 원 픽셀과 이진화Original counts and coding

원 손글씨 픽셀 계수가 7,8,16입니다. 이 장의 기준에서 비트를 구하고, 8과 16이 같은 비트가 된 의미를 설명하세요.

Native digit counts are 7,8,16. Apply the chapter’s binary rule and explain what making 8 and 16 identical discards.

풀이와 확인할 이유Solution and explanation

8 이상을 1로 두므로 비트는 0,1,1입니다. 원 계수 8과 16의 강도 차이는 이 이진 표현에서 사라집니다.

이진화는 측정값을 그대로 보여 주는 것이 아니라 선언 변환입니다. 원 계수와 이미지 확대를 보존하여 정보 손실을 확인할 수 있어야 합니다.

The bits are 0,1,1. The intensity difference between 8 and 16 is lost in this binary representation.

Coding is a declared transformation, not the original measurement. Retain raw counts and the original image to inspect information loss.

30. 가우스 잡음의 평균과 분산Gaussian forward mean and variance

α1=α2=3/4, 깨끗한 스칼라 x0=2입니다. 두 단계 뒤 조건부 평균과 분산을 구하세요.

With alpha 1=alpha 2=3/4 and clean scalar x0=2, find the conditional mean and variance after two Gaussian steps.

풀이와 확인할 이유Solution and explanation

ᾱ2=(3/4)²=9/16입니다. 평균은 √(9/16)×2=3/2이고 분산은 1−9/16=7/16입니다.

가우스 잡음 계수 β=1/4라는 수치가 이진 뒤집기 β와 같아도 관측 공간·전이 법칙은 다릅니다. 이 답은 연속 가우스 모형의 조건부 분포입니다.

Alpha-bar is 9/16, giving mean(3/4)×2=3/2 and variance 7/16.

The numerical beta 1/4 does not make this the binary flip model. It specifies a continuous Gaussian conditional.

31. 첫 가우스 다리의 경계The first Gaussian bridge boundary

ᾱ0=1일 때 t=1의 다리 분산 공식을 적용하면 무엇이 되나요? 이것을 양의 분산 정규밀도로 읽을 수 있나요?

At alpha-bar-zero 1, what does the bridge-variance formula give for t 1? Is it an ordinary positive-variance Gaussian density?

풀이와 확인할 이유Solution and explanation

분자 1−ᾱ0가 0이므로 다리 분산은 0입니다. x0를 이미 조건으로 아는 끝점은 x0의 점질량입니다.

정상 가우스밀도에서 분산으로 나누는 계산을 할 수 없습니다. DDPM의 끝점 관측 우도와 중간 단계 다리 항을 구분해야 합니다.

The numerator vanishes, giving variance zero. The known clean endpoint is a point mass.

Do not divide by this as a regular Gaussian variance. Distinguish the endpoint observation likelihood from intermediate bridge terms.

32. 같은 MSE 모양이 같은 목적은 아니다The same MSE shape need not mean the same objective

두 시점의 변분 계수가 1과 10입니다. 시점을 균등하게 뽑아 가중치 없이 잡음 MSE를 최소화하면 원래 가중 목적과 같나요?

Variational coefficients at two times are 1 and 10. Does uniformly sampled unweighted noise MSE equal the original weighted objective?

풀이와 확인할 이유Solution and explanation

원래 목적은 오차 제곱을 1:10 비중으로 보지만 단순 균등 무가중 평균은 1:1로 봅니다. 일반적으로 같은 목적이 아닙니다.

적절한 중요도 가중치나 시점 표본 분포로 원 목적을 추정할 수는 있지만 그 규칙을 명시해야 합니다. 단순 손실을 썼다면 변분 목적과의 차이를 남깁니다.

The original emphasizes squared errors 1:10; uniform unweighted averaging uses 1:1. They generally differ.

Appropriate importance weights or time-sampling probabilities can estimate the original objective, but must be specified. A simpler objective should be labeled accordingly.

33. 국가의 관측 11 사후Country state11 posterior

국가 선택 모형에서 π=3/4, ε=2/5입니다. 관측 11의 질량과 상태 1 사후를 계산하세요.

For the country model pi 3/4 and epsilon 2/5, calculate mass of 11 and its latent-one posterior.

풀이와 확인할 이유Solution and explanation

상태 1의 결합은 (3/4)(3/5)²=27/100이고 상태 0의 결합은 (1/4)(2/5)²=4/100입니다. 합은 31/100입니다.

사후는 (27/100)/(31/100)=27/31입니다. 이는 선언 모형의 숨은 좌표 추론이며, 특정 국가가 본질적으로 어느 유형이라는 분류가 아닙니다.

Latent-one contribution is(3/4)(3/5)²=27/100; latent-zero contributes 4/100. Evidence is 31/100.

Posterior is 27/31. This is inference about a model coordinate, not an intrinsic national classification.

34. 시급 기준과 결측Wage threshold and missingness

원 시급이 499,500센트인 두 행과 결측 기호인 한 행이 있습니다. 임금 비트와 완전행 선택을 설명하세요.

Two raw wages are 499 and 500 cents and another is missing. Explain their wage bits and complete-row eligibility.

풀이와 확인할 이유Solution and explanation

기준이 500센트 이상이므로 두 비트는 0과 1입니다. 이는 시간당 4.99달러와 5달러이며 499·500달러가 아닙니다.

결측행은 이 실험의 교육·시급 완전행 조건에서 빠집니다. 결측을 0비트·비취업·검열 임금으로 바꾸지 않습니다. 작은 기준 차이가 비트를 바꾸므로 원값과 기준도 남겨야 합니다.

The bits are 0 and 1, representing hourly 4.99 and 5 dollars rather than 499 and 500 dollars.

A missing wage fails this complete-row rule; it is not recoded as zero, nonemployment or censoring. Retain raw values and thresholds because a small change can switch the bit.

35. 기업 모형이 표현할 수 없는 비대칭An asymmetry the company model cannot express

두 잠재 원형이 00·11이고 두 비트에 같은 뒤집힘 ε를 씁니다. 왜 p(01)=p(10)인지 보이고, 관측 3건 대 173건의 차이를 정확 사후로 고칠 수 있는지 설명하세요.

With prototypes 00 and 11 and equal per-bit flip rate epsilon, show p(01)=p(10). Can exact posterior inference repair observed counts 3 versus 173?

풀이와 확인할 이유Solution and explanation

어느 원형에서든 한 비트는 유지하고 하나는 뒤집으므로 두 혼합 상태의 조건부 질량은 ε(1−ε)입니다. 사전 비중으로 더해도 같은 값입니다.

정확 사후는 주어진 모형 안에서 z를 추론할 뿐 주변 질량 가족을 바꾸지 않습니다. 관측 비대칭을 표현하려면 가족을 바꾸어야 하며, 추론 간격을 없애는 것과 다른 개선입니다.

Each mixed state needs one retained and one flipped bit under either prototype, giving epsilon(1−epsilon). Mixing the components preserves equality.

Exact inference changes neither family nor marginal masses. Representing the asymmetry requires changing the model, not merely closing its inference gap.

36. 단순 기준보다 나쁜 시험 점수A test score worse than a simple baseline

기업 선택 모형 시험 NLL은 1.392343, 균등 네 범주 기준은 log4≈1.386294입니다. 어느 쪽이 이 점수에서 좋으며 무엇을 결론낼 수 없나요?

Company test NLL is 1.392343 and uniform baseline log 4≈1.386294. Which scores better, and what remains unestablished?

풀이와 확인할 이유Solution and explanation

NLL은 낮을수록 좋으므로 이 시험에서는 균등 기준이 약 0.006049 nat/관측 낮습니다. 선택 모형이 항상 좋은 결과라는 결론은 틀립니다.

이 차이만으로 통계적 유의성·다른 모집단에서의 우열·정책 효과를 결론낼 수 없습니다. 자료·분할·가족 한계를 기록하고 새 설계를 검토하되 시험을 반복 선택에 몰래 재사용하지 않습니다.

Lower is better, so the uniform baseline improves by about 0.006049 nats per observation on this test.

The difference alone establishes neither significance, superiority in another population nor a policy effect. Record design limits and avoid covertly reusing the test for model selection.

37. 시험을 보고 미리보기를 바꿨다면Previewing after seeing test results

실제자료 화면에서 시험 점수가 가장 낮은 다른 후보를 찾아 미리보기로 바꿨습니다. 이것을 새 최종 선택이라고 보고할 수 있나요?

After viewing test scores you preview another candidate with the lowest test loss. May it be reported as a freshly untouched final selection?

풀이와 확인할 이유Solution and explanation

미리보기는 계산을 살피는 기능이므로 탐색 자체는 가능하지만, 시험을 보고 고른 선택은 이미 시험 자료를 사용한 선택입니다.

기존의 검증 기반 선택은 그대로 기록하고 새 탐색은 별도로 보고합니다. 새 후보의 최종 평가가 필요하면 적절한 새 평가 자료나 설계를 마련해야 합니다. 버튼을 바꾼 것으로 자료 역할의 이력이 지워지지 않습니다.

Previewing is legitimate exploration, but choosing from test scores uses the test for selection.

Preserve the original validation choice and report the exploration separately. A new final evaluation needs an appropriate fresh design; changing a UI selection does not erase data-use history.

38. 정규분포의 점수 함수The Gaussian score function

평균 μ, 분산 v의 1차원 정규밀도 log를 x로 미분하세요. μ=1,v=2,x=3에서 값을 구하세요.

Differentiate a univariate normal log density with respect to x. Evaluate at mu 1,v 2,x3.

풀이와 확인할 이유Solution and explanation

x에 무관한 정규화 상수의 미분은 0입니다. −(x−μ)²/(2v)를 미분하면 −(x−μ)/v입니다.

값은 −(3−1)/2=−1입니다. 이는 좌표에 대한 로그밀도 기울기이며 분류 정확도나 전체 성능 점수가 아닙니다.

The normalizer is constant in x; differentiating−(x−mu)²/(2 v) gives−(x−mu)/v.

The value is−1. It is a coordinate log-density gradient, not classification accuracy or a global model score.

39. 어떤 오차를 줄였는지 이름 붙이기Name the error being reduced

생성 모형은 고정한 채 q를 정확 사후로 바꾸었습니다. 어떤 차이는 사라지고 어떤 차이는 남을 수 있나요?

Hold the generative model fixed and replace q by the exact posterior. Which discrepancy vanishes and which may remain?

풀이와 확인할 이유Solution and explanation

사후 KL 간격이 0이 되어 ELBO가 로그 증거에 닿습니다. 그 관측에 대한 근사 추론 차이는 사라집니다.

원래 모형 가족의 관측분포 오차, 부적절한 단위·변환·자료 선택, 인과 해석의 문제는 그대로 남을 수 있습니다. 정확 추론과 정확 현실 모형은 같은 주장이 아닙니다.

The posterior KL gap vanishes and ELBO reaches log evidence, removing the inference approximation for that observation.

Observation-model misspecification, problematic measurement/selection and causal limitations may remain. Exact inference does not mean an exact model of reality.

40. 작은 종합 분석의 최소 기록Minimum record for a case study

이 장의 개인 사례를 다시 분석한다면 다른 사람이 재현할 수 있도록 어떤 정보와 해석을 반드시 남겨야 하나요?

What must a reproducible reanalysis of the person case retain?

풀이와 확인할 이유Solution and explanation

원 파일·행 순서·원행 표지, 교육과 임금 완전행 조건, 1976년 명목 시급의 센트/시간 단위, 12년·500센트 기준, 197행 선택 간격과 역할 규칙을 남깁니다. 이어 아홉 후보와 훈련 승자·검증 선택·시험 평가, 한 행의 질량·정확 사후·고정 q·ELBO 간격을 기록합니다.

결측 임금을 비취업으로 해석하지 않고, 이진화의 정보 손실과 결정적 분할을 명시합니다. 잠재 좌표를 개인의 본질이나 교육의 인과 효과로 부르지 않습니다. 분수·로그 근사·표시 한계도 구별합니다.

Retain source files/order/IDs, complete education-and-wage eligibility, nominal 1976 cents-per-hour units, thresholds 12 years/500 cents, the 197-row stride and role rule. Include all nine candidates, training winners, validation selection, test evaluation and one row’s mass/posterior/fixed-q/ELBO gap.

Do not equate missing wage with nonemployment or latent coordinates with intrinsic person types or causal education effects. State coding losses, deterministic splitting and exact-versus-approximate/display distinctions.

자료와 출처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