시계열·정상성·자기상관Time series, stationarity and autocorrelation
시간의 간격을 읽고, 같은 법칙과 다른 경로를 구별하고, 실제 자료의 의존을 계산하기Read time intervals, distinguish a stable law from one realization, and calculate dependence in actual records
실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions
기초Foundations
1. 오늘의 전력 사용은 어제와 무관할까?1. Does today’s electricity use ignore yesterday?
저녁에 전등을 켜고 난방을 쓰는 집이라면, 오후 7시의 전력 사용량은 오후 6시와 전혀 무관한 새 숫자일까요? 같은 생활 일정과 날씨가 이어지면 가까운 시각의 값이 함께 높거나 낮을 수 있습니다. 시간의 순서를 가진 자료를 시계열이라고 합니다. 학생 100명의 키처럼 서로 다른 대상을 한 번씩 모은 자료와, 한 집의 전력을 100시간 연속 측정한 자료는 같은 표 모양이어도 다른 질문을 담습니다.
순서가 중요한 자료를 임의로 섞으면 평균은 그대로일 수 있지만, 어제와 오늘의 연결은 사라집니다. 가정한 네 값 1,2,3,4를 1,4,2,3으로 바꾸어도 합 10과 평균 5/2는 같지만 인접한 두 값들의 모양은 다릅니다. 이 장은 그 연결을 시차·공분산·자기상관으로 표현하고, 시간이 흘러도 같은 확률 법칙이라고 가정하는 의미를 차근차근 살핍니다.
실제 사례에는 한국 GDP 45년, 프랑스 한 가구의 실제 분 단위 전력 기록, 한 소매기업의 같은 상품에 대한 날짜별 주문을 씁니다. 연도·시간·하루는 서로 다른 간격입니다. 공개 기록을 다시 읽고 만든 집계와, 원리를 설명하려고 가정한 숫자는 구별합니다. 한 그림이 매끄럽거나 길다고 정상성·독립성·인과관계가 증명되는 것은 아닙니다.
If a household switches on lighting and heating in the evening, is its 7 p.m. electricity use unrelated to 6 p.m.? Shared routines and weather can make nearby readings high or low together. A time series records an ordered sequence. One hundred people’s heights measured once and one home’s power measured over one hundred hours can have similar tables while posing different questions.
Shuffling the order can preserve the mean while changing temporal connections. The assumed values 1,2,3,4 and 1,4,2,3 both sum to ten and average 5/2, but their adjacent pairs differ. We will express those connections through lags, covariance and autocorrelation, then examine what it means to assume that a stochastic law remains the same over time.
The actual cases use forty-five Korean GDP years, minute power measurements from one French household, and dated transactions for one retailer’s product. Years, hours and calendar days are different intervals. Retained observations and explicitly derived aggregates remain distinct from assumed explanatory numbers. A smooth or long graph does not establish stationarity, independence or causality.
기초Foundations
2. 한 칸은 하루인가, 관측 한 번인가?2. Does one step mean one day or one recorded row?
월요일·화요일·목요일에만 자료가 있다면 표의 두 번째와 세 번째 행은 이틀 떨어져 있습니다. 행 하나를 건너간 것과 하루의 시차는 같지 않습니다. 월·화·수·목의 달력 칸을 만들고 수요일을 결측으로 남겨야 하루 전 비교가 무엇인지 유지됩니다. 측정하지 않은 수요일을 0으로 채우면 전혀 다른 관측을 만든 것입니다.
이 장의 실습은 연속된 정수 index를 정한 시간 격자로 사용합니다. 한 가구 시간표의 index 0은 2006-12-17 00시, 1은 01시입니다. 아래 실제 네 시간 평균은 각각 원래의 60개 분 측정값을 요약합니다. 전력은 kW이며 소수로 반올림한 원래 측정 토큰에서 정확한 분수 평균을 계산했습니다. 새로운 측정 장비가 분수까지 정확했다는 뜻은 아닙니다.
같은 index 차이 1이라도 GDP에서는 1년, 가구에서는 1시간, 기업에서는 달력 1일입니다. 시차 7의 뜻도 각각 다릅니다. 데이터의 시각이 어느 시간대인지, 영업일만 있는지, 기록 시작과 끝이 부분 기간인지 확인하세요. 이 가구 원본의 시각은 시간대 정보를 새로 보충하지 않은 원래의 지역 시각 문자열로 보존합니다.
실제 첫 네 완전 시간 · 원래 분 기록은 전체 CSV에 보존
시간 index
원시각
원행 범위
60분 평균 kW
0
2006-12-17 00:00
397–456
28237/15000
1
2006-12-17 01:00
457–516
16747/5000
2
2006-12-17 02:00
517–576
23809/15000
3
2006-12-17 03:00
577–636
8311/5000
If records exist only for Monday, Tuesday and Thursday, the second and third rows are two days apart. One row step is not necessarily a one-day lag. Retain a Monday-through-Thursday calendar with Wednesday explicitly missing. Replacing that unmeasured day by zero invents a different observation.
The labs use consecutive integer indices for a declared time grid. Household index zero is 00:00 on 17 December 2006, and one is 01:00. The four actual hour means below each summarize sixty original minute readings. Their unit is kW. Exact fractions preserve arithmetic on recorded decimal tokens; they do not assert that the measuring device had unlimited precision.
One index step means a year for GDP, an hour for the household and a calendar day for the retailer. A lag of seven therefore means different durations. Check time zones, trading-day calendars and partial source-window endpoints. Household clock strings are retained without inventing missing time-zone information.
First four actual complete hours; all minute rows remain in the CSV
Hour index
Original local hour
Original source rows
Mean kW over 60 minutes
0
2006-12-17 00:00
397–456
28237/15000
1
2006-12-17 01:00
457–516
16747/5000
2
2006-12-17 02:00
517–576
23809/15000
3
2006-12-17 03:00
577–636
8311/5000
기초Foundations
3. 한 번 그린 선과 가능한 여러 선의 법칙3. One realized line and a law over possible lines
동전을 네 번 던지면 앞·뒤·앞·앞 같은 한 결과를 봅니다. 다른 날 같은 규칙으로 다시 던지면 다른 순서가 나올 수 있습니다. 시계열의 관측 경로도 가능한 여러 경로 중 하나입니다. 확률과정은 모든 시점의 확률변수들을 함께 설명하는 법칙이고, 실제 CSV의 한 열은 그중 한 번의 관측입니다. 기호 Y_t는 시점 t의 확률변수, y_t는 관측된 값으로 구별할 수 있습니다.
예를 들어 매 시각 독립적으로 +1 또는 −1을 반씩 고른다고 가정하면 모든 시각의 이론적 평균은 0입니다. 하지만 길이 4인 관측이 1,1,1,−1이면 표본평균은 1/2입니다. 평균 0인 법칙에서 평균 1/2인 짧은 경로가 나오는 것은 모순이 아닙니다. 한 경로가 잠깐 위로 움직였다는 사실만으로 모집단 평균이 시간에 따라 올랐다고 알 수 없습니다.
반대로 관측 평균이 구간마다 비슷하다고 확률 법칙 전체가 같다고 결론내릴 수도 없습니다. 평균 외에 분산이나 멀리 떨어진 시점들의 관계가 바뀔 수 있습니다. 앞으로 정상성은 법칙에 관한 가정으로, 평균·ACF 표는 그 가정을 살피는 유한 자료 요약으로 구별합니다. 실습에 넣는 가상 충격 목록도 실제 경제의 숨은 충격을 찾아낸 결과로 부르지 않습니다.
{Yt:t∈Z}is a process,(y0,…,yn−1)is one observed path
Four coin tosses give one sequence, while another use of the same rule may give another. An observed time-series path is likewise one realization among possible paths. A stochastic process describes their joint law; a CSV column records one realization. We can distinguish the random variable Y_t from its observed value y_t.
Assume each hour independently chooses +1 or −1 with equal probability. Every theoretical time-specific mean is zero, yet the four observations 1,1,1,−1 have sample mean 1/2. This is no contradiction. A brief upward run does not by itself show that the population mean changed over time.
Conversely, similar means in two windows do not establish an unchanged joint law. Variance or relationships between separated observations can change. We distinguish stationarity as an assumption about the law from finite means and ACFs used to investigate it. An explanatory innovation list is not a recovery of actual hidden economic shocks.
{Yt:t∈Z}is a process,(y0,…,yn−1)is one observed path
기초Foundations
4. 표본평균을 먼저 손으로 계산하기4. Begin with a mean you can calculate by hand
가정한 네 시간의 값이 1,2,3,4라면 합은 10, 평균은 10/4=5/2입니다. 각 값에서 5/2를 빼면 −3/2,−1/2,1/2,3/2이고 그 합은 0입니다. 평균을 뺀 값은 원래보다 얼마나 높고 낮은지를 같은 기준으로 표현합니다. 이후 자기상관의 곱도 이 편차로 계산합니다.
결측이 하나인 1,null,3,4에서는 관측 합 8을 실제로 본 세 값으로 나누어 평균 8/3을 얻습니다. 이때 전체 달력 칸 4개와 관측 값 3개를 모두 기록합니다. 8/4=2는 결측을 0으로 바꾼 다른 평균입니다. 관측 평균 자체도 결측이 발생한 이유에 따라 전체 시간의 평균과 달라질 수 있으므로, 분모를 맞추었다고 결측 문제가 모두 해결되는 것은 아닙니다.
기간의 일부를 고르면 평균의 대상도 바뀝니다. 실제 가구 자료의 일주일 평균과 특정 저녁 세 시간 평균은 서로 다른 구간을 설명합니다. 어느 값이 더 좋아 보이는지를 고르기보다 시작·끝·결측과 단위를 함께 적습니다. 전체 평균을 빼는 처리에는 나중 시점 값도 사용될 수 있으므로 실제 예측에 쓰려면 예측 당시의 정보 범위를 따로 정해야 합니다.
For four assumed readings 1,2,3,4, the sum is ten and the mean is 5/2. Subtracting it gives −3/2,−1/2,1/2,3/2, whose sum is zero. These deviations express how high or low every observation lies relative to one reference. Autocorrelation calculations will multiply such deviations.
For 1,null,3,4, the observed sum eight divided by three observed readings gives 8/3. Record both four calendar slots and three measured values. Dividing by four instead gives two by implicitly replacing missingness with zero. Even the observed-value mean can differ from a whole-period mean when the missingness mechanism matters.
Selecting a window changes the target. A household’s one-week average and its mean over three evening hours describe different intervals. State endpoints, missingness and units. Demeaning with a whole-sample mean can also use later observations; a genuine forecasting procedure must separately respect the information available at its forecast origin.
5. 분산의 단위와 n−1의 의미5. Variance units and the meaning of n−1
평균만 같아도 흔들림은 다를 수 있습니다. 2,2,2,2와 1,2,2,3은 모두 평균 2지만 두 번째만 위아래로 움직입니다. 편차의 제곱을 더하면 음수와 양수가 상쇄되지 않습니다. 예시 1,2,3,4의 편차 제곱합은 9/4+1/4+1/4+9/4=5입니다. 이를 관측 수 4로 나눈 기술적 분산은 5/4입니다.
같은 제곱합을 n−1=3으로 나누면 5/3입니다. 독립이며 공통 평균과 유한한 공통 분산을 갖는 표본이라는 조건에서는 n−1 분모가 모집단 분산의 불편향 추정에 연결됩니다. 시계열의 의존이 있으면 그 결론이 자동으로 따라오지 않습니다. 계산기가 두 비율을 모두 보여 주어도 “n−1이 있으니 언제나 불편향”이라고 읽지 않습니다. 관측 하나일 때 이 비율은 정의되지 않습니다.
원값이 kW이면 편차는 kW, 제곱합과 분산은 kW²입니다. GDP 수준이면 (2015년 기준 USD/인)²입니다. 분산을 원값과 같은 단위로 읽으면 규모를 잘못 해석합니다. 또 모든 관측이 같으면 기술적 분산 0은 계산할 수 있지만, 이를 분모로 한 자기상관은 0/0이므로 별도로 미정의입니다.
Equal means can hide different spread. Both 2,2,2,2 and 1,2,2,3 average two, but only the latter varies. Squaring deviations prevents positive and negative deviations from canceling. For 1,2,3,4, the squared-deviation sum is five, and the descriptive variance using denominator four is 5/4.
Dividing the same sum by n−1 gives 5/3. For independent observations with a common mean and a common finite variance, that denominator supports an unbiased population-variance estimate. Serial dependence does not automatically preserve the conclusion. Displaying both ratios does not make the second universally unbiased. It is undefined with only one observed reading.
If readings are in kW, variance is in kW squared. GDP-level variance has squared constant-dollar-per-person units. Do not interpret variance as if it retained the outcome’s unit. A constant observed series has descriptive variance zero, but autocorrelation using that zero denominator is undefined rather than zero.
6. 같은 방향으로 움직인 두 시점을 곱하기6. Multiply deviations at two separated times
오늘과 어제가 함께 평균보다 높으면 두 편차의 곱은 양수입니다. 함께 낮아도 음수 두 개의 곱은 양수입니다. 한쪽은 높고 다른 쪽은 낮으면 곱이 음수입니다. 이런 곱들의 평균이 공분산의 직관입니다. 시계열에서는 같은 변수의 서로 다른 시점들을 짝지으므로 자기공분산이라고 부릅니다.
한 시간 시차 k=1이면 (00시,01시),(01시,02시)처럼 비교하고, k=2이면 (00시,02시)를 비교합니다. 실제 모집단의 평균을 사용해 두 확률변수의 곱을 기대하는 것과, 한 표의 전체 평균을 빼고 유한한 쌍을 더하는 것은 다른 수준의 계산입니다. 먼저 이론적 γ(k)=Cov(Y_t,Y_{t-k})를 정의한 뒤 표본의 계산식을 따로 정합니다.
공분산에도 원단위의 제곱이 남습니다. 따라서 kW와 USD 자료의 공분산 숫자를 그대로 비교하면 단위 차이가 섞입니다. 양의 분산 γ(0)으로 나눈 자기상관 ρ(k)는 무차원입니다. 이론적 공분산이 t에도 의존하면 먼저 γ_t(k)처럼 시점을 표시해야 하며, 정상성을 가정하기 전부터 시점 기호를 지우지 않습니다.
γt(k)=Cov(Yt,Yt−k),ρ(k)=γ(0)γ(k)when a common γ(0)>0 exists
When today and yesterday are both above their means, their deviation product is positive. Two negative deviations also give a positive product; opposite signs give a negative one. Averaging such products motivates covariance. Autocovariance pairs one variable with itself at separated times.
An hourly lag of one compares neighboring hours; lag two compares readings two hours apart. A population expectation centered at population means differs from adding finite pair products around one sample mean. Define theoretical γ(k)=Cov(Y_t,Y_{t-k}), then separately declare its sample calculation.
Covariance retains squared outcome units. Comparing a kW covariance directly with a USD covariance mixes units. Dividing by positive variance γ(0) gives dimensionless autocorrelation ρ(k). If covariance also changes with t, retain a time subscript instead of silently assuming stationarity.
γt(k)=Cov(Yt,Yt−k),ρ(k)=γ(0)γ(k)when a common γ(0)>0 exists
기초Foundations
7. 원관측·파생값·가정한 법칙을 나누어 읽기7. Separate observations, transformations and assumed laws
GDP 원자료의 연도와 수준은 보존한 관측 토큰입니다. 전년 대비 성장률은 그 두 수준의 비에서 계산한 파생값입니다. “성장률이 일정한 AR(1) 법칙을 따른다”는 문장은 원자료 열이 아니라 별도로 검토할 모형입니다. 한 집의 전력 기록에서도 분 측정값, 60분 평균, 정상 과정 가정은 서로 다른 단계입니다.
기업 자료는 한 상품의 모든 원행을 남기고 전체 워크북의 날짜별 기록 유무까지 다시 확인합니다. 날짜에 아무 기록이 없는 경우와 값 0을 실제로 계산한 경우는 구별합니다. 파일 활동이 없는 날과 시작·끝의 부분 날짜를 분석값 0으로 채우지 않습니다. 주문량을 잠재 수요나 인과적 판매 효과로 바꾸어 부르지도 않습니다.
반면 path 실습의 충격 1,−1 같은 목록과 law 실습의 혁신 분산은 설명을 위해 직접 정한 조건입니다. 원본과 같은 그림에 그리더라도 실제로 측정된 숨은 충격이 아닙니다. 이 구분은 정확한 계산과 경험적 타당성을 연결하는 출발점입니다. 수학적으로 맞는 식을 계산하는 일과 그 식이 이 집·기업·경제에 적절한지 판단하는 일을 함께 배웁니다.
GDP years and levels are retained observation tokens; a growth rate is derived from adjacent levels. Saying that growth follows a stable AR(1) law adds a model, not an original source column. Minute household measurements, sixty-minute means and a stationary-process assumption likewise occupy different stages.
The business case preserves all selected product lines and rereads date-level activity across the whole workbook. No recorded activity and a genuinely calculated zero are distinct. Days without file activity and partial window endpoints are not assigned invented zero analysis values. Recorded orders are not relabeled latent demand or causal sales effects.
The path lab instead uses a supplied innovation list, and the law lab uses declared innovation moments. These explanatory inputs do not become measured hidden shocks by appearing beside a source graph. Learn both accurate arithmetic and the separate judgment of whether a model suits this household, retailer or economy.
기초Foundations
8. 실습 A · 구간과 결측이 바뀌면 평균도 달라진다8. Lab A · Change windows and missingness before interpreting a mean
먼저 가정한 네 값 1,2,3,4를 입력합니다. 합 10, 평균 5/2, 제곱편차합 5, 기술적 분산 5/4를 손으로 예측하고 확인하세요. 분할 위치를 2로 두면 앞 구간 평균 3/2와 뒤 구간 7/2를 얻습니다. 두 구간 평균이 다르다는 계산만으로 어떤 모집단의 정상성을 기각한 것은 아닙니다. 어떤 경로·어떤 표본 모형인지가 필요합니다.
둘째 값을 null로 바꾸고 원래의 네 달력 칸은 그대로 두세요. 관측 수 3, 결측 수 1, 평균 8/3이 되는지 확인합니다. 분할 위치를 0 또는 1로 바꾼 뒤 값 하나만 남겼을 때 평균·분산의 두 분모·ACF의 정의 여부를 말로 정리해 봅니다. 빈 값을 0으로 읽는 오류와, 분모가 사라진 결과를 0으로 표시하는 오류는 다릅니다.
마지막에는 분할 위치를 바꾸거나 모든 값을 같은 수로 만들고 어떤 수량이 변하는지 기록합니다. 웹 표의 짧은 근삿값과 전체 정확값 펼치기를 함께 사용할 수 있습니다. 실제 자료의 여러 구간 비교도 같은 절차로 하되, 결과가 가장 좋아 보이는 구간만 골라 전체 법칙이라고 일반화하지 않습니다.
Begin with assumed values 1,2,3,4. Predict sum ten, mean 5/2, squared-deviation sum five and descriptive variance 5/4. Splitting after two positions gives means 3/2 and 7/2. This arithmetic alone does not reject a population stationarity hypothesis; the path and sampling model still need to be specified.
Replace the second value with null while retaining all four calendar positions. Check three observed values, one missing value and mean 8/3. Change the split position to zero or one before retaining a single value, then explain the mean, both variance denominators and the status of autocorrelation. Treating a missing value as zero differs from filling an undefined ratio with zero.
Change the split or make every reading constant and record which quantities change. Compact display values remain separate from expandable exact values. Use the same steps for actual windows, while avoiding generalization from only a preferred-looking interval.
학부Undergraduate
9. 약정상성은 평균·분산·공분산의 약속이다9. Weak stationarity is a promise about moments
정상이라는 말은 값이 멈춘다는 뜻이 아닙니다. 매일 흔들리더라도 확률 법칙의 특정 성질이 시간에 따라 달라지지 않는다는 뜻입니다. 약정상성은 모든 시점에서 유한한 2차 적률이 있고, 평균이 같은 상수이며, 두 값의 공분산이 달력 위치가 아니라 두 시점의 간격에만 의존한다는 세 조건을 함께 요구합니다.
평균만 같으면 충분하지 않습니다. 매번 공정한 동전을 던져 ±1을 만들되 t번째 값에 √t를 곱하면 평균은 항상 0이지만 분산은 t입니다. 반대로 평균이 증가하는 직선에 같은 크기의 잡음이 붙으면 분산은 일정해도 평균 조건이 실패합니다. 세 조건을 하나씩 묻는 습관이 그림의 인상보다 정확합니다.
GDP 그래프가 상승한다고 해서 경제가 나쁘거나 자료가 잘못되었다는 뜻은 아닙니다. 일정 평균을 가진 수준 모형을 그대로 쓰기 어렵다는 신호일 수 있습니다. 추세·성장률·구조 변화라는 다른 질문으로 모형을 고쳐야 합니다. 유한한 표본의 앞뒤 평균은 모집단 평균의 정의와 구별합니다.
E[Yt]=μ,E[Yt2]<∞,Cov(Yt,Yt−k)=γ(k)
Stationary does not mean motionless. Values may fluctuate while selected properties of their probability law remain unchanged. Weak stationarity requires finite second moments at every date, the same constant mean, and covariance that depends on the separation between dates rather than on their calendar locations.
A constant mean alone is insufficient. Multiply independent fair ±1 signs by the square root of t: the mean remains zero but the variance is t. A deterministic increasing line with constant-variance noise has constant variance but fails the mean condition. Check the conditions individually instead of relying on a visual impression.
An upward GDP graph does not imply a bad economy or faulty data. It may warn against a constant-mean model for levels. Trends, growth rates and structural change pose different modeling questions. Finite before-and-after sample means are not the population expectations in the definition.
E[Yt]=μ,E[Yt2]<∞,Cov(Yt,Yt−k)=γ(k)
학부 심화 · 선택Advanced undergraduate · optional
10. 강정상성은 함께 보는 모든 분포를 보존한다10. Strict stationarity preserves every joint distribution
평균과 분산은 분포를 요약한 두 숫자입니다. 강정상성은 훨씬 넓은 약속입니다. 임의의 여러 시점의 값들을 한꺼번에 보았을 때, 모든 시점을 같은 만큼 옮겨도 그 결합분포가 같아야 합니다. 한 시점의 히스토그램만 같은 것으로는 충분하지 않습니다.
독립이며 같은 분포에서 뽑힌 동전 부호들은 이 조건을 만족합니다. 하지만 약정상성이 곧 강정상성은 아닙니다. 서로 독립인 값들의 분포를 홀수 시점에는 ±1을 반씩, 짝수 시점에는 0을 2/3, ±√3을 각각 1/6로 정하면 모든 평균 0, 분산 1, 시차 공분산 0이지만 한 시점 분포가 바뀝니다. 여기 숫자는 정의를 비교하기 위한 가정입니다.
공동 정규 과정이라면 평균 벡터와 공분산 행렬이 모든 유한 결합분포를 정하므로 약정상성에서 강정상성이 따라옵니다. 이는 공동 정규라는 추가 조건을 쓰는 결론입니다. 각 시점의 주변분포만 정규라고 말하는 것과도 구분해야 합니다.
(Yt1,…,Ytm)=d(Yt1+h,…,Ytm+h)
Mean and variance summarize a distribution with only two numbers. Strict stationarity makes a broader promise: the joint distribution at any finite collection of dates remains unchanged when all dates shift by the same amount. Matching one-date histograms alone is insufficient.
Independent identically distributed coin signs satisfy this condition. Weak stationarity need not imply strict stationarity. Consider independent observations with fair ±1 at odd dates and probabilities 2/3 at zero and 1/6 at each of ±√3 at even dates. Every mean is zero, every variance one, and every nonzero-lag covariance zero, but the one-date distribution changes. These are assumed explanatory laws.
For a jointly Gaussian process, its mean vectors and covariance matrices determine all finite joint distributions, so weak stationarity implies strict stationarity. Joint Gaussianity is an additional condition, stronger than merely saying that each one-date marginal is normal.
(Yt1,…,Ytm)=d(Yt1+h,…,Ytm+h)
학부 심화 · 선택Advanced undergraduate · optional
11. 강정상이어도 분산이 없을 수 있다11. Strict stationarity can exist without a variance
같은 Cauchy 분포에서 독립적으로 뽑은 값들은 강정상입니다. 그러나 Cauchy 분포에는 보통의 유한 평균과 분산이 없습니다. 따라서 유한한 2차 적률을 요구하는 약정상성의 조건을 충족하지 못합니다. 강이라는 이름만 보고 모든 의미에서 약보다 더 강하다고 외우면 이 예에서 혼동합니다.
유한한 자료표에는 평균 버튼을 눌러 숫자를 만들 수 있습니다. 그 계산 가능성과 모집단 기댓값의 존재는 다른 문제입니다. 극단값이 드물게 나타나는 자료에서 표본평균이 아직 안정돼 보인다는 이유로 분산의 존재를 증명할 수 없습니다.
이 장의 공분산·ACF·선형예측 공식은 필요한 적률 조건을 명시한 모형에서 사용합니다. 실제 GDP나 전력의 유한한 숫자들이 그 조건을 영구히 보장하지는 않습니다. 적률, 표본 기간, 측정 단위를 함께 보고 추론의 범위를 정합니다.
Independent observations from the same Cauchy distribution are strictly stationary, yet the distribution has no ordinary finite mean or variance. It therefore fails the finite-second-moment requirement of weak stationarity. The labels strong and weak can mislead unless their moment requirements are stated.
A finite spreadsheet still permits an arithmetic sample average. That computable number differs from existence of a population expectation. Rare extremes cannot be ruled out by an apparently stable short-run sample mean.
Covariance, ACF and linear prediction formulas in this chapter apply under their stated moment assumptions. A finite list of GDP or power readings does not establish those assumptions for every possible future observation. Interpret formulas together with their moments, period and units.
학부Undergraduate
12. 추세가 있는 평균과 일정한 잡음12. A moving mean and stable noise
학생이 한 달 동안 매일 10분씩 독서 시간을 늘린다고 가정해 봅니다. 오늘의 기본 시간이 어제보다 10분 길다면 평균 수준이 달라집니다. 그날의 우연한 일정 차이가 같은 분포를 따르더라도 전체 시계열은 일정 평균의 약정상이 아닙니다.
Y_t=a+bt+ε_t에서 잡음 ε_t가 평균 0, 일정 분산인 약정상이고 b≠0이면 E[Y_t]=a+bt입니다. 공분산 구조가 일정해도 평균 조건이 실패합니다. 만약 a와 b를 알고 뺀다면 잡음 자체를 얻지만, 자료에서 추정해 뺀 잔차는 유한 표본 제약을 가진 새 수량입니다.
기업의 성장 추세와 사업 위험을 같은 질문으로 취급하지 맙시다. 추세 제거는 추세를 분석 대상에서 분리하는 모형 선택입니다. 매출 추세가 실제로 선형인지, 제도나 제품 변화로 꺾였는지를 살펴야 합니다. 직선 잔차가 작아졌다는 사실이 정상성의 증명은 아닙니다.
Yt=a+bt+εt⟹E[Yt]=a+bt
Imagine a student increasing planned reading by ten minutes each day. The baseline changes even if daily scheduling noise has an unchanged law. The complete series does not have a constant mean.
If Y_t=a+bt+ε_t and ε_t is zero-mean weakly stationary, b≠0 gives E[Y_t]=a+bt. The mean condition fails even when covariance remains stable. Subtracting known a and b recovers the noise; subtracting fitted coefficients creates residuals with finite-sample estimation constraints.
A business growth trend and business risk pose different questions. Detrending separates a modeled trend from the quantity being studied. Examine whether a straight trend is plausible or whether policy and product changes create breaks. Smaller residuals do not prove stationarity.
Yt=a+bt+εt⟹E[Yt]=a+bt
학부Undergraduate
13. 평균이 같아도 위험이 쌓이는 무작위 보행13. A random walk can keep its mean while accumulating risk
한 걸음마다 공정한 동전으로 오른쪽이나 왼쪽으로 1칸 움직인다고 합시다. 시작은 0입니다. 한 걸음의 평균 이동은 0이지만, 열 걸음 뒤의 가능한 위치는 한 걸음 뒤보다 넓게 퍼집니다. 평균이 0이라는 사실만으로 같은 분포라고 말할 수 없습니다.
서로 독립인 평균 0, 분산 σ²의 충격을 누적한 Y_t는 E[Y_t]=0, Var(Y_t)=tσ²입니다. s≤t이면 두 위치가 공유한 충격은 s개이므로 Cov(Y_s,Y_t)=sσ²입니다. 달력 위치가 중요하며, 고정된 시차만으로 공분산을 정하지 못합니다.
수준이 길게 움직이는 실제 자료를 모두 무작위 보행이라고 확정하는 것도 오류입니다. 결정적 추세, 구조 변화, 강한 정상적 의존이 짧은 표본에서는 비슷하게 보일 수 있습니다. 이번 장은 정의와 계산의 차이를 익히며, 단위근 검정의 유한표본 성질이나 ARIMA 선택은 다음 장들에서 다룹니다.
Imagine fair left-or-right unit steps starting at zero. Each step has mean zero, yet positions after ten steps are more dispersed than positions after one. A shared mean does not imply a shared distribution.
With independent mean-zero innovations of variance σ², their accumulated sum has mean zero and variance tσ². For s≤t, the positions share s innovations, giving covariance sσ². Calendar location matters, so lag alone cannot specify covariance.
A wandering actual level is not automatically a random walk. Deterministic trends, breaks and strong stationary dependence can look similar in short samples. This chapter separates definitions and calculations; unit-root testing and ARIMA selection require the later chapters.
14. 한 번의 제도 변화도 같은 법칙을 깨뜨릴 수 있다14. A single regime change can alter the law
요금제가 바뀐 뒤 같은 사용량의 지출이 갑자기 커졌다면, 앞뒤 평균 차이는 일상의 불규칙한 흔들림과 다를 수 있습니다. 고정된 날짜에서 평균이 μ₁에서 μ₂로 바뀌는 모형은 전체 기간의 일정 평균 조건을 만족하지 않습니다.
큰 수준 변화가 있는 자료를 전체 평균 하나로 중심화하면, 앞쪽 편차가 여러 번 음수이고 뒤쪽 편차가 여러 번 양수일 수 있습니다. 인접한 편차들의 곱이 양수가 되어 높은 표본 자기상관이 나옵니다. 이것은 변화 전후의 잡음이 스스로 강한 기억을 가진다는 증거와 다릅니다.
실제 정책 변화일을 붙일 때는 날짜·시행 범위·동시에 일어난 사건을 확인해야 합니다. 분할 뒤 평균이 바뀌었다는 기술만으로 정책 효과를 추정했다고 쓰지 않습니다. 원인에 대한 설계와 비교집단은 이전 장의 식별 논의를 가져와야 합니다.
A tariff revision can change expenditure even at the same physical use. A fixed-date mean shift from μ₁ to μ₂ fails the constant-mean condition over the complete period.
Center a shifted series around one full-sample mean: many early deviations can be negative and later deviations positive. Adjacent products then become positive, creating high sample autocorrelation. This differs from demonstrating strong serial memory within the pre- and post-change noise.
Attaching a policy event requires verified dates, coverage and concurrent events. Describing a changed split mean does not identify the policy effect. A causal interpretation needs the comparison design and identification reasoning developed earlier.
학부 심화 · 선택Advanced undergraduate · optional
15. 매일 반복된다고 모두 정상적인 것은 아니다15. Repeating cycles and the role of phase
매일 저녁 전력이 높다면 시각별 평균이 다를 수 있습니다. 예를 들어 평균이 고정된 달력 시각에 따라 사인 곡선으로 움직이는 모형은 주기적이어도 일정 평균 조건을 만족하지 않습니다. 반복과 정상성은 같은 단어가 아닙니다.
반대로 시작 위상 Φ를 0부터 2π 사이에서 균등하게 한 번 뽑아 Y_t=A cos(ωt+Φ)로 만들면, 시간 이동이 위상 회전에 해당합니다. A가 고정된 유한 상수라면 모든 결합분포가 같고 평균 0, 시차 공분산 A²cos(ωk)/2입니다. 여기서는 확률적으로 무작위인 위상이 결론을 바꿉니다.
실제 가구의 24시간 시각은 이미 알려진 달력 기준입니다. 무작위 위상 모형을 자동으로 붙이지 않습니다. 일중 평균을 따로 모형화할지, 24시간 차분을 할지, 더 긴 반복 자료를 확보할지를 학습 목적에 맞추어 판단합니다. 일주일 자료만으로 모든 계절을 설명할 수 없습니다.
Yt=Acos(ωt+Φ),Φ∼U[0,2π),γ(k)=2A2cos(ωk)
If evening power is consistently higher, mean use can depend on clock hour. A mean following a sine wave at a fixed calendar phase is periodic but not constant. Repetition and stationarity are different concepts.
Now draw one phase Φ uniformly on [0,2π) and define Y_t=A cos(ωt+Φ), with fixed finite A. A time shift rotates a uniform phase, preserving all joint distributions. The mean is zero and lag covariance is A²cos(ωk)/2. Randomizing the phase changes the conclusion.
An actual household already has known civil-clock hours; a random-phase law cannot be attached automatically. Choose whether to model clock-hour means, take a 24-hour difference or collect longer repetitions. One week cannot establish every seasonal pattern.
Yt=Acos(ωt+Φ),Φ∼U[0,2π),γ(k)=2A2cos(ωk)
학부Undergraduate
16. 실습 B · 정상 공식과 유한 시작을 나란히16. Lab B · Compare stationary formulas with finite starts
AR1 법칙에서 φ=1/2, 충격 분산 1, 중심 0을 고릅니다. 정상 공분산의 분산은 4/3입니다. 초기 분산을 0으로 두면 유한 시작의 분산은 0,1,5/4,21/16으로 변합니다. 같은 계수라고 처음부터 정상 분포였던 것은 아닙니다.
φ를 1이나 −1로 바꾸세요. 유한한 단계의 평균·분산 계산은 가능하지만, 양의 충격 분산에서 이 인과적 모형의 정상 공분산 공식은 사용할 수 없습니다. 실습은 그 칸을 0으로 꾸미지 않고 정의되지 않음을 표시합니다. |φ|<1이 모든 상상 가능한 비인과적 AR 표현의 필요조건이라고 일반화하지도 않습니다.
MA1에서 θ=−1, 충격 분산 1을 선택하면 분산 2, 시차 1 공분산 −1, 자기상관 −1/2를 얻습니다. common-scale 모형도 비교해 보세요. 양의 시차 공분산이 모두 0인데도 같은 경로의 제곱값이 연결될 수 있습니다. 표본을 만드는 장치와 확률 법칙을 분리해 설명하는 것이 이번 실습의 목표입니다.
Select AR1 with φ=1/2, innovation variance one and center zero. The stationary covariance variance is 4/3. With initial variance zero, finite-start variances are 0,1,5/4,21/16. Identical coefficients do not establish stationary initialization.
Change φ to one or minus one. Finite-step means and variances remain calculable, but this causal stationary-covariance formula is unavailable with positive innovation variance. Undefined cells are not filled with zero. Nor is |φ|<1 being asserted as necessary for every conceivable noncausal AR representation.
For MA1, choose θ=−1 and innovation variance one: variance two, lag-one covariance minus one and correlation −1/2. Compare the common-scale law: all positive-lag covariances can vanish while squared values in a path remain dependent. Explain separately the data-generating law and one realized sequence.
학부Undergraduate
17. 모집단 ACF는 같은 간격의 공분산을 표준화한다17. Population ACF standardizes lag covariance
약정상 과정에서 γ(k)는 k칸 떨어진 두 값의 공분산입니다. γ(0)는 자기 자신과의 공분산, 즉 분산입니다. 분산이 양수이면 ρ(k)=γ(k)/γ(0)로 정의하고, k=0에서 1을 얻습니다. 음의 시차와 양의 시차 공분산은 실수 값의 단변량 과정에서는 같습니다.
분모와 분자가 같은 단위를 가지므로 자기상관은 단위가 없습니다. 전력을 kW 대신 W로 바꾸면 공분산은 100만 배이지만 상관은 같습니다. 분산이 0인 상수 과정은 비율이 0/0이므로 자기상관을 일반적인 공식으로 정의할 수 없습니다.
각 시차의 상관만 따로 [−1,1] 사이에 있다고 적는 것으로 충분한 공분산 모형이 되지는 않습니다. 여러 시점의 선형결합 분산이 음수가 되지 않아야 합니다. 마지막 부분에서 이 조건을 공분산 행렬의 양의 준정부호성과 연결합니다.
ρ(k)=γ(0)γ(k),γ(0)>0,γ(−k)=γ(k)
For a weakly stationary process, γ(k) is covariance at separation k and γ(0) is variance. With positive variance, define ρ(k)=γ(k)/γ(0); lag zero equals one. In a real-valued univariate process, covariance is symmetric between positive and negative lags.
Numerator and denominator have matching units, making correlation dimensionless. Converting kW to W multiplies covariance by a million but leaves correlation unchanged. A constant process has zero variance, so the usual ratio is undefined rather than zero.
Specifying separate lag correlations within [−1,1] is insufficient for a valid covariance model. Every finite linear combination must have nonnegative variance. The final graduate bridge connects this requirement to positive semidefinite covariance matrices.
ρ(k)=γ(0)γ(k),γ(0)>0,γ(−k)=γ(k)
학부Undergraduate
18. 표본 ACF는 어떤 평균과 분모를 쓰는가18. Declare the sample centering and denominator
한 경로에서는 모집단 기댓값을 직접 알지 못합니다. 이 장의 완전 자료 표본 ACF는 전체 관측 평균 하나를 먼저 구하고, 시차 k의 편차 곱을 더한 값을 전체 제곱편차합으로 나눕니다. 분자에 들어가는 쌍은 n−k개이고 분모는 모든 n개 편차를 씁니다.
문헌과 소프트웨어에는 다른 공분산 정규화가 있습니다. 분자를 n으로 나눈 공분산을 같은 n으로 나눈 분산과 비교하면 이 비율이 됩니다. 시차마다 n−k로 바꾸는 관례는 다른 수열을 만듭니다. 출력의 함수 이름만 보고 서로 같다고 판단하지 말고 수식을 확인하세요.
표본 ACF는 유한 자료의 기술 통계입니다. 모집단 자기상관의 불편 추정량이라고 자동으로 보장하지 않으며, 높은 값만으로 정상성·독립성·인과관계를 판정하지 않습니다. 작은 표본에서는 끝점과 평균 추정의 영향도 큽니다.
A realized sequence does not reveal population expectations directly. Our complete-data sample ACF first uses one full-sample mean, sums centered products at lag k, and divides by the full squared-deviation sum. Its numerator has n−k pairs; its denominator uses all n observations.
Books and software offer different covariance normalizations. Dividing both lag products and squared deviations by n cancels to this ratio. Dividing lag products by n−k instead produces another sequence. Compare formulas rather than function names.
The sample ACF is a finite-data descriptive statistic, not an automatically unbiased estimator. A large value alone establishes neither stationarity, independence nor causality. Endpoints and estimation of the common mean matter especially in short sequences.
19. 네 값으로 시차 1부터 끝까지 계산하기19. Work every lag of a four-point sequence
가정한 값 1,2,3,4의 평균은 5/2이고 편차는 −3/2,−1/2,1/2,3/2입니다. 제곱편차합은 5입니다. 시차 1의 세 곱은 3/4,−1/4,3/4이므로 합은 5/4, ACF는 1/4입니다.
시차 2에는 두 쌍만 남습니다. 두 곱이 각각 −3/4이므로 합은 −3/2, ACF는 −3/10입니다. 시차 3에는 끝점 한 쌍만 남아 곱 −9/4, ACF −9/20입니다. 증가하는 네 숫자라고 모든 시차의 ACF가 양수가 되는 것은 아닙니다.
표를 그대로 따라 계산한 뒤 각 쌍의 시간 간격을 말해 보세요. 큰 시차에서 쌍이 적다는 정보는 숫자와 함께 보존해야 합니다. 한 쌍으로 얻은 끝 시차와 수백 쌍으로 얻은 짧은 시차를 같은 확실성으로 읽지 않습니다.
가정한 네 값의 전체 시차
시차
쌍 수
편차곱 합
ACF
0
4
5
1
1
3
5/4
1/4
2
2
−3/2
−3/10
3
1
−9/4
−9/20
For assumed values 1,2,3,4, the mean is 5/2 and deviations are −3/2,−1/2,1/2,3/2. Their squared sum is five. Lag-one products are 3/4,−1/4,3/4: numerator 5/4 and ACF 1/4.
Lag two retains two pairs, each with product −3/4, giving numerator −3/2 and ACF −3/10. Lag three retains only endpoints, with product −9/4 and ACF −9/20. An increasing four-point sequence need not have positive sample ACF at every lag.
Reproduce the table and state the time separation of each pair. Pair counts belong beside the statistic. One endpoint pair and hundreds of short-lag pairs do not carry the same amount of information.
Every lag of the assumed four-point sequence
Lag
Pairs
Product sum
ACF
0
4
5
1
1
3
5/4
1/4
2
2
−3/2
−3/10
3
1
−9/4
−9/20
학부Undergraduate
20. 두 열의 Pearson 상관과 표본 ACF는 다르다20. Lagged Pearson correlation and sample ACF differ
1,2,3과 2,3,4를 서로 짝지어 Pearson 상관을 구하면 1입니다. 두 열이 정확히 1만큼 차이나는 직선 관계이기 때문입니다. 그러나 앞 절에서 같은 네 값의 시차 1 ACF는 1/4였습니다. 어느 쪽도 계산 오류가 아닙니다.
Pearson 상관은 짝지어진 두 열의 평균을 따로 빼고 두 열 각각의 제곱합을 표준화합니다. 이 장의 표본 ACF는 전체 네 값의 평균 하나와 전체 제곱편차합을 씁니다. 잘린 구간의 서로 다른 평균과 분모가 결과를 바꿉니다.
보고서에 자기상관이라고 쓴 숫자가 어느 관례인지 반드시 밝힙니다. 결측을 행 삭제한 뒤 한 칸 밀어 상관을 구하면 시간 간격까지 바뀔 수 있습니다. 같은 자료·같은 시차·같은 공식의 세 조건을 확인해야 재현 비교가 됩니다.
The Pearson correlation between columns 1,2,3 and 2,3,4 is one because the columns differ by a constant. The sample lag-one ACF of all four values is 1/4. Neither calculation is erroneous.
Pearson correlation subtracts the separate means of the paired columns and normalizes their separate squared sums. Our sample ACF instead uses one four-point mean and the full squared-deviation sum. Truncation changes centering and normalization.
Identify the convention behind any reported autocorrelation. Deleting missing rows before shifting can also change the time separation. Reproducibility requires matching data, lag and formula.
학부Undergraduate
21. 음의 자기상관은 높은 값과 낮은 값의 교대21. Negative autocorrelation describes alternating deviations
가정한 값 1,0,1,0,1은 큰 값 다음에 작은 값이 오는 교대입니다. 평균은 3/5, 제곱편차합은 6/5입니다. 시차 1 편차곱 합은 −24/25이므로 ACF는 −4/5입니다. 음수는 오류 표시가 아니라 의존의 방향을 담습니다.
시차 2에서는 같은 높낮이를 만나는 쌍이 늘어 ACF가 17/30입니다. 시차 3은 −2/5, 시차 4는 2/15입니다. 부호가 번갈아 나타나는 모습을 하나의 양의 지속성 지표로 뭉뚱그리지 않습니다.
실제 상품 주문의 교대가 보이면 재고 보충 주기·영업 달력·주문 집계 방식 같은 설명을 조사할 수 있습니다. 그 설명들은 추가 자료로 확인할 가설입니다. 음의 ACF 자체가 특정 기업 의사결정의 원인을 식별하지는 않습니다.
Assumed values 1,0,1,0,1 alternate high and low. Their mean is 3/5 and squared-deviation sum 6/5. Lag-one products sum to −24/25, giving ACF −4/5. A negative value encodes direction rather than an error.
At lag two, similar deviations meet and the ACF becomes 17/30. Lags three and four give −2/5 and 2/15. Alternation should not be collapsed into one positive persistence score.
For actual orders, investigate replenishment cycles, trading calendars and aggregation. These are hypotheses requiring additional evidence. Negative ACF does not identify a particular business decision as its cause.
학부 심화 · 선택Advanced undergraduate · optional
22. 끝 시차와 분모 보정의 함정22. Endpoint lags and normalization traps
가정한 1,0,0,0,1의 평균은 2/5, 제곱편차합은 6/5입니다. 시차 4에는 끝점 한 쌍만 있고 곱은 9/25라서 이 장의 ACF는 3/10입니다. 시차가 길수록 분자에 남는 쌍이 적어집니다.
여기서 시차 공분산만 n−k로 나누고 분산은 n으로 나누면 원래 ACF에 n/(n−k)를 곱하게 됩니다. 위 예의 끝 시차는 3/2가 됩니다. 그래서 이런 보정 수열을 통상적인 상관계수와 같은 범위라고 말할 수 없습니다. 개별 시차의 추정 목적과 유효한 전체 공분산 수열이라는 목적도 다릅니다.
본 실습은 공식을 고정하고 쌍의 수를 직접 보이며, 신뢰구간이나 유의성 별표를 임의로 붙이지 않습니다. 흔한 ±1.96/√n 선은 특정 근사와 귀무가설의 조건이 필요합니다. 결측과 큰 추세가 있는 자료에 그대로 붙이는 일은 별도의 정당화가 필요합니다.
For assumed 1,0,0,0,1, the mean is 2/5 and squared-deviation sum 6/5. At lag four, the single endpoint product is 9/25, giving our ACF 3/10. Long lags retain fewer pairs.
Dividing lag covariance by n−k but variance by n multiplies the ratio by n/(n−k). The endpoint example becomes 3/2. Such an adjusted sequence is not bounded like an ordinary correlation coefficient. Estimating individual covariances and obtaining a valid complete covariance sequence are different objectives.
The lab declares its formula and pair counts without invented confidence intervals or significance stars. Familiar ±1.96/√n bands require particular null and approximation conditions. Missing observations and strong trends need separate justification.
학부Undergraduate
23. 결측을 지워 달력 간격까지 줄이지 않는다23. Preserve calendar gaps when observations are missing
월요일 2, 화요일 결측, 수요일 6이라면 2와 6의 간격은 이틀입니다. 결측 행을 삭제하고 [2,6]의 시차 1을 구하면 이틀을 하루로 바꿔 부릅니다. 이 장의 입력은 빠진 시점을 null로 보존하고, 명시한 인덱스가 연속적인지 확인합니다.
완전 자료 모드는 결측이 있으면 계산을 거절합니다. available-pair-sums 모드는 전체 관측 평균과 관측 제곱편차합을 고정한 뒤, 해당 시차에서 양쪽이 관측된 쌍만 더합니다. 각 시차의 가능한 칸 수·사용 쌍·빠진 쌍을 함께 표시합니다. 사용 쌍이 하나도 없으면 분자를 빈 합 0이라고 해도 비율은 정의되지 않은 상태로 표시합니다.
이 마스킹된 달력의 기술 통계는 실제 관측만 요약합니다. 결측 과정이 무작위라는 보장은 없고, 모집단 공분산의 불편 추정량이나 정상성 검정이라고 부르지 않습니다. 전력 센서와 소매기업의 영업·기록 공백은 서로 다른 누락 이유일 수 있습니다.
Monday two, Tuesday missing and Wednesday six leave a two-day separation between observed values. Deleting Tuesday and calling the pair lag one changes the clock. Inputs retain missing dates as null and require consecutive declared indices.
Complete mode rejects any missing observation. Available-pair-sums mode fixes the observed global mean and squared-deviation sum, then includes only pairs observed at both positions. It reports potential slots, used pairs and excluded pairs for each lag. No usable pairs produce an undefined ratio, even though an empty algebraic numerator sums to zero.
This masked-calendar statistic summarizes observed records. It does not establish random missingness, unbiased population covariance estimation or a stationarity test. Sensor gaps and retail trading or recording gaps may arise for different reasons.
학부Undergraduate
24. 실습 C · 손계산, 다른 관례, 결측을 비교하기24. Lab C · Compare hand work, conventions and gaps
네 값 1,2,3,4와 시차 0,1,2,3을 입력합니다. 1,1/4,−3/10,−9/20인지 예측하세요. 표의 편차곱 합과 공통 분모를 먼저 확인한 뒤 막대의 높이를 읽습니다. 한 칸의 의미는 입력에서 선언한 시간 단위입니다.
둘째 값을 null로 바꾼 다음 complete 모드의 거절과 available-pair-sums 모드의 쌍별 누락을 비교합니다. 쌍이 전혀 없는 시차를 0으로 색칠하지 않았는지, 시차 0은 양의 분모가 있을 때 1인지 확인합니다. 모든 값을 같은 숫자로 바꾸면 분모가 0이 되어 모든 ACF가 정의되지 않습니다.
확대하지 않고 읽을 수 있는 짧은 수치와 원시 정확값 펼치기를 함께 씁니다. 큰 분수나 매우 작은 수가 표시상 반올림되어도 원시값은 남습니다. 이 실습의 선언된 수식과 웹·Python·R의 같은 계산을 비교할 수 있어야 합니다.
Enter 1,2,3,4 and lags 0,1,2,3. Predict 1,1/4,−3/10,−9/20. Read centered-product sums and the shared denominator before interpreting bar heights. One lag unit means the clock declared with the input.
Replace the second value with null. Compare complete-mode rejection with available-pair-sums exclusions. Check that a lag with no usable pairs is not colored as zero and that lag zero equals one only with a positive denominator. A constant sequence makes the denominator zero and every ACF undefined.
Compact readable values accompany expandable raw exact quantities. Rounding a large fraction or tiny number does not discard its stored value. The declared formula should agree across the web, Python and R implementations.
학부 심화 · 선택Advanced undergraduate · optional
25. AR(1) · 어제의 편차 일부가 오늘로 이어진다25. AR(1) carries part of yesterday’s deviation forward
중심 μ에서 어제 얼마나 벗어났는지가 오늘의 출발점을 정한다고 생각해 봅시다. Y_t−μ=φ(Y_{t−1}−μ)+ε_t입니다. φ=1/2이면 어제 편차의 절반이 남고 새 충격이 더해집니다. 충격은 과거와 직교하고 평균 0, 분산 σ²인 백색잡음이라는 조건을 따로 둡니다.
|φ|<1에서 먼 과거부터의 인과적 해는 충격들의 가중합입니다. 충격의 유한 분산과 직교성이 있으면 제곱평균 수렴하며 분산은 σ²(1+φ²+φ⁴+⋯)=σ²/(1−φ²)입니다. 공분산은 γ(k)=φ^kγ(0)이어서 양의 φ는 부드러운 감쇠, 음의 φ는 부호가 번갈아 감쇠하는 형태입니다.
이 공식은 선언된 인과적 정상해에 대한 결과입니다. 추정된 φ가 작다는 이유만으로 실제 경제에 구조 변화가 없거나 충격이 외생적이라고 증명하지 않습니다. 백색잡음은 무상관을 뜻하며 독립·동일분포는 더 강한 조건입니다.
Yt−μ=j=0∑∞ϕjεt−j,∣ϕ∣<1,γ(k)=1−ϕ2σ2ϕ∣k∣
Let yesterday’s deviation from a center μ help determine today: Y_t−μ=φ(Y_{t−1}−μ)+ε_t. With φ=1/2, half the deviation remains before a new shock arrives. Separately require mean-zero white-noise innovations of variance σ², orthogonal to the past.
For |φ|<1, a causal solution from the infinite past is a weighted sum of innovations. Finite innovation variance and orthogonality give mean-square convergence and variance σ²/(1−φ²). Covariance is γ(k)=φ^kγ(0): positive φ decays with one sign, negative φ alternates.
This formula describes the declared causal stationary solution. A small estimated coefficient does not prove absence of structural change or innovation exogeneity. White noise means uncorrelated innovations; independent identically distributed innovations impose stronger conditions.
Yt−μ=j=0∑∞ϕjεt−j,∣ϕ∣<1,γ(k)=1−ϕ2σ2ϕ∣k∣
학부 심화 · 선택Advanced undergraduate · optional
26. 정상 분산을 넣는 것과 정상 분포를 넣는 것26. Initializing moments differs from initializing a full law
컴퓨터 실습은 흔히 시점 0에서 시작하지만 정상해는 무한한 과거를 요약합니다. 초기 평균 μ와 초기 분산 σ²/(1−φ²)를 넣고, 초기값이 미래 충격과 직교하면 모든 시점의 평균·분산·공분산을 정상 공식과 맞출 수 있습니다.
그러나 평균과 분산을 맞춘 초기값의 분포가 정상 주변분포와 같다는 보장은 없습니다. 예를 들어 Gaussian 충격을 쓰더라도 초기값을 두 점 분포로 잡으면 처음의 분포는 정규가 아닐 수 있습니다. 강정상성을 주장하려면 전체 초기 법칙과 충격들과의 결합 조건까지 필요합니다.
법칙 실습은 평균·분산을 입력받으므로 공분산 수준에서 무엇이 맞는지 보여 줍니다. 특정한 전체 초기 분포를 몰래 가정하여 강정상을 인증하지 않습니다. 실제 자료에는 어느 시점이 생성 과정의 시작이었는지도 알기 어려울 수 있습니다.
Computer demonstrations often begin at time zero, while a stationary solution summarizes an infinite past. Initial mean μ and variance σ²/(1−φ²), with the initial value orthogonal to future innovations, can match the stationary mean and covariance formulas.
Matching moments does not ensure the correct full initial distribution. Even with Gaussian future innovations, a two-point initial distribution need not match the Gaussian stationary marginal. Strict stationarity requires the complete initialization law and its joint relation with innovations.
The law lab accepts moments, so it reports covariance-level agreement rather than certifying strict stationarity. For actual records, even the physical start of a generating process can be unknown.
학부Undergraduate
27. 고정된 시작의 분산은 점차 쌓인다27. Variance builds from a fixed start
φ=1/2, 충격 분산 1, 고정 초기값 0이면 v₀=0입니다. v_t=φ²v_{t−1}+1을 반복하면 v₁=1, v₂=5/4, v₃=21/16입니다. 정상 분산 4/3에 가까워지지만 유한한 처음부터 같지는 않습니다.
일반적으로 m_t=μ+φ^t(m₀−μ), v_t=φ^{2t}v₀+σ²∑_{j=0}^{t−1}φ^{2j}입니다. |φ|<1이면 초기 평균·분산의 영향이 줄어듭니다. φ가 1에 가까우면 줄어드는 속도가 느립니다. 초기 몇 점을 버리는 burn-in은 모형과 오차 목적에 따라 판단할 일입니다.
초기 점을 버렸다고 실제 자료의 구조 변화·누락·계절성이 자동으로 해결되지 않습니다. 여기서는 가정한 재귀식의 초기조건 영향만 다룹니다. 모의 경로의 수렴과 실제 표본에서 모형이 타당하다는 주장을 구별합니다.
vt=ϕ2tv0+σ2j=0∑t−1ϕ2j
With φ=1/2, innovation variance one and a fixed initial zero, v₀=0. Iterating v_t=φ²v_{t−1}+1 gives 1,5/4,21/16. Variance approaches 4/3 without equaling it at the finite start.
In general, m_t=μ+φ^t(m₀−μ) and v_t=φ^{2t}v₀+σ² times the first t powers of φ². When |φ|<1, initial moment effects fade. They fade slowly near one. Choosing burn-in depends on the model and error objective.
Discarding initial actual observations does not automatically remove breaks, missingness or seasonality. This calculation isolates initialization under an assumed recursion. Simulation convergence and adequacy of an actual-data model remain different claims.
vt=ϕ2tv0+σ2j=0∑t−1ϕ2j
학부 심화 · 선택Advanced undergraduate · optional
28. 1, −1과 폭발 경계에서는 무엇이 달라지는가28. What changes at one, minus one and explosive boundaries?
φ=1이면 충격이 줄어들지 않고 누적되는 무작위 보행입니다. φ=−1이면 이전 편차가 부호를 바꾸어 이어지지만 양의 충격 분산은 계속 쌓입니다. 고정 초기값에서 둘 다 v_t=tσ²입니다. 번갈아 움직이는 모습이 분산의 안정성을 뜻하지는 않습니다.
|φ|>1이면 유한 시작의 초기 차이와 충격 분산이 빠르게 커집니다. σ²/(1−φ²)가 음수가 되는 것을 보고 음의 분산을 출력하면 안 됩니다. 그 정상 인과 공식의 조건이 실패한 것입니다. 유한한 재귀 단계 자체는 여전히 정확히 계산할 수 있습니다.
대학원에서는 미래 충격을 이용하는 비인과적 정상 표현이나 단위근 추론도 연구합니다. 현재 장의 입력 법칙은 과거에서 앞으로 진행하는 인과적 재귀입니다. 이 범위를 적고 경계 밖 결과를 정의되지 않음으로 남기는 것이 숫자 하나를 억지로 만드는 것보다 정확합니다.
At φ=1, shocks accumulate as a random walk. At φ=−1, previous deviations alternate signs but positive innovation variance still accumulates. With a fixed start both have v_t=tσ². Alternation does not imply stable variance.
For |φ|>1, initial differences and shock variance can grow rapidly. A negative value of σ²/(1−φ²) must not be printed as a variance; the causal stationary formula has failed its conditions. Finite forward recursions remain calculable.
Graduate theory also studies noncausal stationary representations and unit-root inference. Our law is explicitly a forward causal recursion. State that scope and mark unavailable stationary quantities as undefined.
학부Undergraduate
29. MA(1) · 두 이웃이 한 충격을 공유한다29. MA(1) shares one innovation between neighbors
Y_t=μ+ε_t+θε_{t−1}에서는 오늘의 값에 오늘과 어제 충격이 들어갑니다. 두 이웃은 하나의 충격을 공유합니다. 평균 0, 분산 σ²인 백색잡음이면 γ(0)=σ²(1+θ²), γ(1)=θσ²이고, 두 칸 이상 떨어지면 공유하는 충격이 없어 공분산은 0입니다.
θ=1이면 인접 공분산이 양수이고 θ=−1이면 음수입니다. σ²=1, θ=−1일 때 분산 2와 ρ(1)=−1/2를 얻습니다. θ가 어떠한 유한 값이어도 이 유한합은 약정상입니다. 가역성 |θ|<1이라는 다른 목적의 조건을 정상성 조건과 혼동하지 않습니다.
백색잡음만 가정하면 이 설명은 2차 적률 수준입니다. 독립·동일분포 충격이면 유한 이동합의 전체 결합분포도 시간 이동에 불변이어서 강정상입니다. 실제 자료에서 ACF가 시차 2에서 작아 보인다는 것만으로 정확한 MA1 모형을 확정하지 않습니다.
ρ(1)=1+θ2θ,ρ(k)=0(∣k∣≥2)
In Y_t=μ+ε_t+θε_{t−1}, neighbors share one innovation. For mean-zero white noise with variance σ², γ(0)=σ²(1+θ²), γ(1)=θσ², and longer-lag covariance vanishes because no innovation is shared.
The sign of θ determines the adjacent covariance. With θ=−1 and σ²=1, variance is two and lag-one correlation −1/2. Every finite θ gives a weakly stationary finite sum. The invertibility condition |θ|<1 addresses a different question.
White-noise assumptions justify second-moment statements. IID innovations also make the complete finite-sum joint law strictly stationary. A small observed ACF beyond lag one does not establish an exact MA1 model.
ρ(1)=1+θ2θ,ρ(k)=0(∣k∣≥2)
학부 심화 · 선택Advanced undergraduate · optional
30. 무상관은 독립이라는 뜻이 아니다30. Zero autocorrelation does not imply independence
서로 독립이면 공분산이 존재하는 한 공분산은 0입니다. 역은 일반적으로 틀립니다. 평균과 편차곱은 비선형 연결을 놓칠 수 있습니다. 한 경로의 큰 값 다음에 큰 제곱값이 이어져도 부호가 무작위라 선형 공분산은 상쇄될 수 있습니다.
공통 크기 U를 한 번 뽑고 매 시점 독립인 공정한 부호 ε_t를 곱한 Y_t=Uε_t를 생각합니다. U는 1 또는 2를 반씩 가집니다. 서로 다른 시점의 곱에는 평균 0인 부호가 남으므로 공분산은 0이지만, 모든 제곱 Y_t²는 같은 U²입니다. 하나가 4임을 알면 다른 것도 4임을 압니다.
실제 금융·주문 자료에서 변동성 군집을 조사할 때 선형 ACF와 제곱 또는 절댓값의 의존을 함께 볼 이유가 여기에 있습니다. 다만 실제 기록에 이 예의 두 점 크기 법칙을 추정 없이 붙이지 않습니다. 반례는 추론의 한계를 보여 주는 설명용 장치입니다.
Independence implies zero covariance when moments exist; the converse generally fails. Centered products can miss nonlinear dependence. Random signs can cancel linear covariance even when large squared magnitudes move together.
Draw one common scale U equal to one or two with equal probability and multiply it by independent fair signs ε_t. Distinct-time products have expectation zero, but every Y_t² equals the same U². Learning that one square is four determines every other square.
This motivates examining squared or absolute-value dependence alongside linear ACF in actual volatility data. It does not license assigning this two-point law to actual orders without estimation. The counterexample explains a limit of inference.
대학원 연결Graduate bridge
31. 한 경로의 긴 평균이 모든 가능 세계의 평균은 아니다31. One long path need not average over every possible world
위 공통 크기 모형은 시간 이동에 대해 강정상이지만, 한 경로에서는 U가 바뀌지 않습니다. E[Y_t²]=(1+4)/2=5/2인데 한 경로의 제곱 평균은 처음부터 끝까지 1 또는 4입니다. 관측 기간을 아무리 늘려도 이 수량이 5/2로 모이지 않습니다.
제곱들의 공분산은 E[U⁴]−E[U²]²=17/2−25/4=9/4입니다. 양의 시차의 Y 자체는 무상관인데도 제곱에는 의존이 남습니다. 정상성은 달력 이동의 법칙이고, 에르고딕성은 긴 시간 평균을 모집단 평균과 연결하는 별도 성질입니다.
개인 한 명이나 기업 한 곳의 기록을 오래 모았다는 이유만으로 모든 개인·기업 평균을 대표하지 않습니다. 서로 다른 단위의 이질성과 한 단위의 시간 변화를 구별합니다. 이 장은 완전한 에르고딕 정리를 증명하지 않지만, 실제 자료의 일반화에서 필요한 질문을 반례로 드러냅니다.
The common-scale process is strictly stationary, yet its U never changes within a path. Population E[Y_t²]=5/2, while the path average of squares is always one or four. Extending the path cannot make this quantity converge to 5/2.
Squared-value covariance is E[U⁴]−E[U²]²=17/2−25/4=9/4. The original values are uncorrelated at positive lags while their squares remain dependent. Stationarity concerns time-shift laws; ergodicity separately connects long time averages with population quantities.
A long record of one household or business does not automatically represent all households or businesses. Distinguish heterogeneity across units from change within a unit. This counterexample introduces the generalization question without claiming a full ergodic theorem.
학부Undergraduate
32. 실습 D · 충격 목록을 직접 바꾸며 경로 만들기32. Lab D · Construct a path from an explicit innovation list
중심 0, 초기값 0, φ=1/2, 충격 목록 1,0,0,0을 넣습니다. 초기값 뒤의 경로는 1,1/2,1/4,1/8입니다. 한 번의 충격이 어떻게 사라지는지 손으로 계산한 뒤 그래프를 확인하세요. φ=−1/2이면 부호가 번갈아 바뀝니다.
φ=1이면 같은 충격의 영향이 1로 계속 남고 φ=2이면 1,2,4,8로 커집니다. 이 목록은 학생이 정한 결정적 입력입니다. 실제 GDP의 관측 불가능한 혁신을 발견했다거나 무작위 모의표본을 추출했다고 부르지 않습니다.
초기값만 바꾸어 두 경로 차이가 φ^t배 되는지 확인합니다. 법칙 실습의 기대 분산과 한 경로의 표본 분산이 왜 같은 종류의 수량이 아닌지 설명해 보세요. 작은 수의 표시가 0으로 반올림되어도 정확값이 0이 아닌 경우를 펼쳐 확인할 수 있습니다.
Use center zero, initial zero, φ=1/2 and innovations 1,0,0,0. The values after the initial state are 1,1/2,1/4,1/8. Calculate decay before viewing the plot. With φ=−1/2 the signs alternate.
At φ=1 the shock remains one; at φ=2 it grows as 1,2,4,8. This is an explicitly supplied deterministic innovation list. It neither discovers hidden actual GDP innovations nor draws a random sample.
Change only the initial value and check that the path difference is multiplied by φ^t. Explain why the law lab’s expected variance differs in kind from one path’s sample variance. Expand exact values when a nonzero tiny quantity rounds to zero in the compact display.
학부Undergraduate
33. 평균 빼기는 수준을 옮기고 시간을 보존한다33. Demeaning shifts a level while preserving the clock
각 값에서 전체 관측 평균을 빼면 관측 잔차의 합은 0입니다. 1,2,3,4는 −3/2,−1/2,1/2,3/2가 됩니다. 모든 값에 같은 상수를 더하거나 양의 상수를 곱해도 양의 분모가 있는 이 장의 표본 ACF는 변하지 않습니다.
자료의 평균을 빼는 연산과 모집단의 시간 가변 평균을 아는 것은 다릅니다. 상승 추세에서 상수 하나를 빼도 추세는 그대로입니다. 결측은 평균 계산에서 제외하되 달력의 원래 자리에 null로 남습니다.
전체 기간의 평균을 사용한 중심화는 설명용 분석입니다. 미래 예측 실험에서는 훈련 구간에서 중심을 추정한 뒤 그 값을 검증 구간에 적용해야 합니다. 전체 자료를 미리 보고 평균을 정하면 예측 원점 이후 정보가 섞일 수 있습니다.
Subtracting the observed mean makes observed residuals sum to zero. Values 1,2,3,4 become −3/2,−1/2,1/2,3/2. Adding a constant or multiplying by a positive common scale preserves this sample ACF when its denominator is positive.
Subtracting a sample mean does not reveal a time-varying population mean. Removing a constant leaves an upward trend intact. Missing values are excluded from the mean but retain their original null clock positions.
Full-period centering is descriptive here. Forecast experiments must estimate a center within the training window and then apply it to validation dates. Using a full-sample mean can introduce information beyond a forecast origin.
학부 심화 · 선택Advanced undergraduate · optional
34. 추세 제거의 직선과 순위 부족34. Fitted trends and rank-deficient inputs
시간 인덱스 x에 직선 a+bx를 적합해 잔차 y−a−bx를 만듭니다. 서로 다른 시점의 관측이 두 개 이상이면 절편과 기울기는 보통의 최소제곱식으로 유일합니다. 관측이 한 개면 직선은 하나로 정해지지 않습니다.
관측점 하나가 (x₀,y₀)이면 (a,b)=(y₀,0)+λ(−x₀,1)이 모두 그 점을 지납니다. 계수는 여러 개여도 관측점에서의 적합값과 잔차 0은 유일합니다. x₀=0일 때만 절편 y₀가 따로 식별됩니다. 실습은 임의의 유일한 기울기라고 꾸미지 않고 특정해와 영공간을 보여 줍니다.
잔차가 평균 0이고 표본 시간과 직교하는 것은 최소제곱의 표본 성질입니다. 그것이 잔차의 독립성·정상성·외생성을 보장하지 않습니다. 구조 변화와 곡선 추세가 있는 실제 자료에는 직선 제거가 질문에 맞는지 따로 점검합니다.
(a,b)=(y0,0)+λ(−x0,1)for one observed point
Fit a line a+bx to time index x and form residuals y−a−bx. Two or more distinct observed dates identify the ordinary least-squares intercept and slope. One observed point does not determine a unique line.
For a single point (x₀,y₀), every coefficient pair (y₀,0)+λ(−x₀,1) fits it. Coefficients are nonunique while the observed fitted value and zero residual are unique. Only at x₀=0 is the intercept separately identified. The lab reports a particular solution and null-space direction.
Zero residual mean and orthogonality to sample time are least-squares properties. They do not prove independence, stationarity or exogeneity. Check whether a straight trend suits actual breaks and curved growth.
(a,b)=(y0,0)+λ(−x0,1)for one observed point
학부Undergraduate
35. 차분은 한 칸 전과의 차이다35. A difference compares fixed clock positions
1차 차분 Δy_t=y_t−y_{t−1}은 원래 단위를 유지하지만 의미는 수준에서 변화량으로 바뀝니다. 10,13,12,18이면 첫 칸은 이전 값이 없어 비어 있고 뒤는 3,−1,6입니다. 첫 값을 10으로 넣거나 0을 이전 값이라고 가정하지 않습니다.
무작위 보행을 차분하면 ε_t를 얻지만, 선형 결정적 추세를 차분하면 상수 b와 차분 잡음이 남습니다. 서로 다른 수준 모형이 비슷한 차분 모양을 만들 수 있습니다. 차분 뒤 모양만 보고 원래 생성 과정을 단정하지 않습니다.
시차 24 차분은 24개 시간 칸 앞과 비교합니다. 전력의 시간별 자료에서는 하루 전 같은 시각, 연간 GDP에서는 24년 전입니다. 실습은 시차를 숫자만 바꾸지 말고 달력 단위와 함께 해석하도록 합니다. 관측 범위보다 긴 시차이면 모든 결과가 결측일 수 있습니다.
Δkyt=yt−yt−k
A first difference Δy_t=y_t−y_{t−1} keeps units but changes the target from level to change. For 10,13,12,18, the first position is undefined and the remainder is 3,−1,6. Do not invent an initial previous value of zero.
Differencing a random walk yields its innovations; differencing a deterministic linear trend leaves its slope plus differenced noise. Different level models can produce similar-looking differences. The transformed graph alone does not identify the original law.
Lag-24 differencing compares positions twenty-four clock units apart: a day for hourly power but twenty-four years for annual GDP. Read lags with their units. A lag longer than the observed grid can legitimately yield all missing results.
Δkyt=yt−yt−k
학부Undergraduate
36. 2차 차분은 변화량의 변화를 읽는다36. Second differences measure changes in changes
가정한 1,4,9,16,25는 제곱 수열입니다. 1차 차분은 결측,3,5,7,9이고 2차 차분은 결측,결측,2,2,2입니다. 두 번 차분할 때 앞부분에 필요한 과거 정보가 더 늘어납니다.
시차 k의 2차 차분은 y_t−2y_{t−k}+y_{t−2k}입니다. 같은 값이 중간 계산에 두 번 나타난다고 독립 관측 두 개가 되는 것은 아닙니다. 이 장은 정확한 차분과 누락 전파를 보여 주지만 필요한 차분 횟수를 자동 추천하지 않습니다.
직선 증가의 1차 차분은 상수이고 2차 차분은 0입니다. 이미 평탄한 잡음에 무조건 2차 차분을 적용하면 잡음의 의존과 변동이 바뀝니다. 정상성을 만들기 위한 만능 버튼으로 쓰지 말고, 변화량이라는 연구 질문과 모형 조건을 먼저 정합니다.
Δk2yt=yt−2yt−k+yt−2k
For assumed squares 1,4,9,16,25, first differences are missing,3,5,7,9 and second differences missing,missing,2,2,2. Each additional difference requires more historical information.
A second lag-k difference is y_t−2y_{t−k}+y_{t−2k}. Repeated use of an intermediate value does not create additional independent observations. The lab computes exact differences and missingness propagation without automatically selecting a differencing order.
Linear growth becomes a constant after one difference and zero after two. Repeatedly differencing already stable noise changes dependence and variability. Choose the change-based question and model before treating differencing as a cure.
Δk2yt=yt−2yt−k+yt−2k
학부Undergraduate
37. 이미 백색잡음인데 차분하면 생기는 의존37. Differencing white noise creates dependence
평균 0, 분산 σ²인 백색잡음 ε_t는 시차가 양수일 때 공분산이 0입니다. 이를 Z_t=ε_t−ε_{t−1}로 차분하면 이웃 두 값이 ε_{t−1}을 반대 부호로 공유합니다. 그래서 분산은 2σ², 이웃 공분산은 −σ²가 됩니다.
시차 1 상관 −1/2는 수치 오류가 아니라 새 변환이 만든 구조입니다. 이 결과는 θ=−1인 MA1과 같습니다. 따라서 차분 뒤 나타난 음의 ACF를 원래 관측자의 행동적 반동이라고 자동 해석하면 안 됩니다.
실제 국가·기업 자료를 변환할 때는 수준·차분·추세 제거를 나란히 비교합니다. 변환 목적, 단위, 사라진 관측 수를 기록합니다. 미래 예측을 위한 차분 선택과 정책 충격의 구조적 해석은 또 다른 검토가 필요합니다.
Mean-zero white noise has variance σ² and zero positive-lag covariance. Difference it as Z_t=ε_t−ε_{t−1}: neighbors now share ε_{t−1} with opposite signs. Variance becomes 2σ² and adjacent covariance −σ².
Lag-one correlation −1/2 is the transformation’s structure, equivalent to MA1 with θ=−1. Do not automatically interpret negative ACF after differencing as behavioral reversal in the original observations.
Compare actual levels, differences and detrended records alongside each other. Record the purpose, units and number of lost observations. Forecast-oriented differencing choice and structural policy interpretation require additional analysis.
학부Undergraduate
38. 하나의 누락은 차분에서 여러 칸에 영향을 준다38. One missing level can affect several differences
수준이 1,null,4,7이면 시차 1 차분은 null,null,null,3입니다. 첫 칸은 과거 부족이고 다음 두 칸은 각각 양 끝 중 하나가 관측되지 않았기 때문입니다. 결측 한 개를 지운 뒤 1,4,7에서 3,3을 만드는 것과 다릅니다.
2차 차분에는 t,t−k,t−2k 세 원래 칸의 값이 필요합니다. 실습은 단계별 결측 사유와 원래 인덱스를 남깁니다. 작은 표본에서 계절 차분까지 하면 이용할 수 있는 쌍 수가 크게 줄 수 있습니다.
집계도 누락 정책을 요구합니다. 전력 자료에서 60분 중 58분만 관측된 시간에는 관측 분 평균을 참고값으로 남기지만 완전한 한 시간 분석값은 null로 둡니다. 관측 평균을 완전 시간 평균으로 몰래 바꾸지 않습니다. 이는 공개된 보수적 분석 규칙이며 유일한 정답 정책이라고 주장하지 않습니다.
For levels 1,null,4,7, lag-one differences are null,null,null,3. The first lacks history; the next two each lack an endpoint. Deleting the missing level and differencing 1,4,7 into 3,3 changes the clock.
Second differences need original positions t,t−k,t−2k. The lab retains indices and missingness reasons. Seasonal differences can sharply reduce usable pairs in a short record.
Aggregation also needs a missingness policy. A household hour with only fifty-eight observed minutes retains an available-minute mean as a reference but has null complete-hour analysis power. The available mean is not silently relabeled complete coverage. This is an explicit conservative rule, not a claim that every application must adopt it.
학부 심화 · 선택Advanced undergraduate · optional
39. 두 추세가 함께 올라간다고 원인 관계는 아니다39. Shared trends do not establish causation
서로 관련 없는 두 활동이 시간에 따라 늘어나면 수준끼리 높은 상관이나 회귀 적합도가 나올 수 있습니다. 같은 시계를 공유하는 추세가 그 수치를 만들 수 있습니다. 잔차가 의존하는데 독립 표준오차를 쓰면 불확실성도 왜곡됩니다.
추세를 넣거나 차분하는 것은 유용한 검토이지만 모든 내생성·누락 변수를 없애지 않습니다. 무엇이 비교 가능한 변동인지, 관측 과정이 바뀌었는지, 이론적으로 어떤 장기 관계를 기대하는지 따져야 합니다. 장기 관계와 공적분은 다음 심화 장의 별도 개념입니다.
한국 GDP와 한 가구 전력 또는 특정 상품 주문은 기간·주체·단위가 다릅니다. 이 장의 세 사례를 같은 날짜에 대충 맞춰 하나의 인과 회귀로 합치지 않습니다. 각각에서 시계열 정의와 자료 정리를 익힌 뒤, 타당한 연구 설계를 갖춘 비교로 나아갑니다.
Unrelated activities can both rise over time and generate high level correlations or regression fit. Shared time trends can drive those statistics. Treating dependent residuals as independent can also distort uncertainty.
Trends and differences are useful checks, not automatic solutions to endogeneity or omitted variables. Ask which variation is comparable, whether measurement changed and what long-run relationship theory predicts. Cointegration is a separate later topic.
Korean GDP, one household’s power and one product’s orders have different periods, units and observational entities. Do not loosely align these cases into one causal regression. Learn the time-series definitions and data preparation within each case before building a defensible comparative design.
학부 심화 · 선택Advanced undergraduate · optional
40. 실습 E · 변환 뒤 남는 값과 잃는 정보를 확인하기40. Lab E · Inspect what a transformation retains and loses
1,4,9,16,25에서 평균 제거·직선 추세 제거·1차·2차 차분을 차례로 선택합니다. 각 출력의 원래 인덱스, null 사유, 합과 제곱편차합을 확인하세요. 계수의 정확값과 짧은 표시를 구분합니다.
관측 하나만 남겨 추세를 적합한 뒤 계수의 특정해와 영공간 방향을 읽습니다. 같은 관측점 적합값을 만드는 다른 직선을 직접 쓰세요. 관측이 전혀 없으면 평균은 정의되지 않고 추세 계수는 모든 계수 쌍이 허용되는 최소제곱 해집합 안에서 식별되지 않습니다. 계산용 특정해 (0,0)을 데이터가 추정한 유일한 계수로 해석하지 않습니다.
실제 사례에서는 변환 전후 그래프의 단위와 유효 관측 수를 비교합니다. 차분·평균 제거·추세 제거는 서로 다른 질문입니다. 무엇을 선택해도 정상성·독립성 인증이 자동으로 붙지 않습니다. 예측 원점 이후 자료를 사용한 설명용 변환임을 분명히 기록합니다.
For 1,4,9,16,25, compare demeaning, linear detrending and first and second differences. Inspect original indices, null reasons, sums and squared deviations. Separate exact coefficients from compact display values.
Retain a single observation and inspect the trend’s particular solution and null-space direction. Write another line with the same observed fitted value. With no observations, the mean is undefined, while every intercept-slope pair minimizes the empty least-squares objective. The displayed particular pair (0,0) is a convention within this unidentified solution family, not a uniquely estimated trend.
For actual cases, compare units and observed counts before and after transforming. Differences, demeaning and detrending answer different questions. None certifies stationarity or independence. Full-period transformations here are descriptive and may use information beyond a prospective forecast origin.
학부 심화 · 선택Advanced undergraduate · optional
41. 국가 사례 · 한국 GDP 45년의 수준과 변화41. Country case · Forty-five years of Korean GDP levels and changes
World Bank의 한국 1인당 실질 GDP(2015년 고정 미국 달러), 1980~2024년 45개 연간 값을 사용합니다. 국가 전체 GDP와 1인당 GDP, 명목 금액과 고정가격 금액을 혼동하지 않습니다. 첫해 값은 4139.9606854608이며 그 소수 토큰도 보존합니다.
달력은 연간 45칸이며 결측이 없습니다. 수준의 ACF, 연간 달러 변화량의 ACF, 직선 추세 제거 잔차를 나란히 비교합니다. 달러 차분은 성장률(%)이 아닙니다. 여기서는 비율이나 로그를 몰래 적용하지 않습니다. 긴 추세가 ACF를 크게 만드는지 질문하되 특정 단위근 모형을 판정하지 않습니다.
원본의 lastupdated는 2026-10-08입니다. 과거 모든 연도를 이 보존 빈티지로 읽은 회고적 분석이며, 각 예측 원점에서 실제 공개된 자료와 개정 전 빈티지를 재구성한 실시간 성과가 아닙니다. 출처 행 번호·연도·원래 숫자를 내려받아 동일한 계산을 재현할 수 있습니다.
Use forty-five annual Korean GDP-per-capita observations, 1980–2024, in constant 2015 US dollars from the World Bank. Distinguish per-capita from total GDP and constant-price from nominal amounts. The first value, 4139.9606854608, retains its original decimal token.
The annual grid has forty-five positions without missing values. Compare level ACF, annual dollar-change ACF and linearly detrended residuals. Dollar differences are not percentage growth. No hidden ratio or logarithm is applied. Investigate whether a long trend contributes to ACF without declaring a unit-root model.
The retained source lastupdated value is 2026-10-08. This is retrospective analysis using one retained revision vintage, not reconstructed real-time availability or unrevised forecast-origin vintages. Source rows, years and original tokens accompany reproducible downloads.
학부 심화 · 선택Advanced undergraduate · optional
42. 개인 단위 사례 · 10,080분에서 완전한 167시간으로42. Household case · From 10,080 minutes to 167 complete hours
공개 UCI 자료의 프랑스 Sceaux 한 가구에서 2006-12-17~23의 달력상 온전한 7일을 고릅니다. 원본 10,080개 분 칸 중 유효한 전력 측정은 10,078개입니다. 분 평균 유효전력은 kW이며, 다른 열의 부분 계량 에너지 Wh와 다릅니다. 원본 시계에 없는 시간대를 임의로 부여하지 않습니다.
각 시간에 원본 행 60개가 있는지, 실제 전력 값 60개가 모두 있는지를 따로 확인합니다. 168시간 중 167시간만 완전합니다. 빠진 두 분이 들어 있는 한 시간은 관측 분 평균을 참고값으로 남기고 분석값은 null로 보존합니다. 완전 시간별 kW 평균을 합하면 누락 시간의 전력량까지 얻었다고 할 수 없습니다.
시차 1은 한 시간, 시차 24는 하루입니다. 수준·24시간 차분·추세 제거는 일중 패턴을 다른 방식으로 보여 줍니다. 이 가구는 한 개인의 소득 기록도 모든 프랑스 가구의 대표 표본도 아닙니다. 기기·생활 일정·기온의 실제 원인 효과는 이 한 주의 전력 숫자만으로 식별하지 않습니다.
Select seven complete civil days, 17–23 December 2006, from one Sceaux household in the public UCI record. Of 10,080 minute positions, 10,078 contain measured active power. Minute-averaged active power is kW, unlike the sub-metering energy columns in Wh. Do not invent a timezone absent from source timestamps.
Check separately sixty source rows per hour and sixty measured power values. Only 167 of 168 hours are complete. The hour containing two missing minutes keeps its available-minute mean as reference while analysis power remains null. Summing complete-hour means does not recover energy for the missing hour.
Lag one means one hour and lag twenty-four one day. Levels, daily differences and detrending reveal different aspects of within-day patterns. This household is neither an individual income panel nor a representative sample of all French households. Its one-week power values do not identify appliance, routine or temperature effects.
학부 심화 · 선택Advanced undergraduate · optional
43. 기업 사례 · 2,313개 품목 행과 374일의 기록 범위43. Business case · 2,313 product lines and a 374-day calendar
UCI Online Retail의 한 기업에서 SKU 85123A의 원본 행 2,313개를 전부 보존합니다. Quantity의 양수 합은 기록된 양의 주문 단위, 음수 절댓값 합은 음의 단위, 차이는 순기록 단위입니다. 환불·취소 같은 음수 행을 삭제해 순매출이라고 부르지 않습니다. 이 장의 분석값은 양의 단위 합으로 명시합니다.
전체 기업의 원본 541,909행을 읽어 2010-12-01~2011-12-09의 374일 달력을 만듭니다. 어떤 거래든 기록된 날은 305일입니다. 양 끝의 불완전 자료창 2일과 기록이 없는 69일은 분석 null로 두어 내부 유효일은 303일입니다. 이는 실제 영업 여부나 잠재 수요의 0을 관측한 것이 아닙니다.
원래 Excel 날짜 숫자와 가격 토큰, 송장·고객·국가 등 여덟 필드를 보존합니다. 분석은 고객의 개인 신원 추론이 아니라 공개 품목 기록의 집계입니다. 기록된 주문량은 재고 부족을 보정한 수요·수익·기업 전체 실적과 다릅니다. 1일·7일 ACF와 변환 결과를 이 범위 안에서 읽습니다.
Preserve all 2,313 native rows for SKU 85123A from one UCI Online Retail business. Positive Quantity sums are recorded gross positive units; absolute negative sums are negative units; their difference is net recorded units. Do not discard negative lines and call the result net sales. Analysis explicitly uses gross positive units.
A fresh read of all 541,909 business rows defines the 374-day calendar from 1 December 2010 to 9 December 2011. There are 305 file-active days. Two partial window endpoints and sixty-nine no-activity days remain analysis null, leaving 303 eligible interior dates. These are not observations of zero latent demand or verified closure.
Retain native Excel date numbers, price tokens and all eight original fields. The task aggregates public product records rather than inferring customer identities. Recorded units differ from stockout-adjusted demand, revenue and total business performance. Interpret daily and weekly ACF within that scope.
학부 심화 · 선택Advanced undergraduate · optional
44. 실습 F · 같은 자료를 수준·차분·추세 제거로 보기44. Lab F · Compare actual levels, differences and detrending
국가·가구·기업을 선택하고 원본 행 수와 분석 달력 칸 수가 다른 이유를 먼저 설명합니다. 이어 수준의 평균·ACF를 확인하고 차분·평균 제거·추세 제거를 바꾸어 봅니다. 표는 시차별 실제 사용 쌍 수를 함께 제시합니다.
가구 자료의 null 한 시간과 기업 자료의 71개 null 날짜는 원래 위치를 유지합니다. 변환 뒤 추가로 사라지는 쌍을 찾아 원본 값 부족인지 과거 부족인지 구분하세요. 완전 자료 모드가 거절하는 것을 정상성 실패라고 해석하지 않습니다. 입력 자료의 완전성 조건이 실패한 것입니다.
이 실습은 보존된 실제 관측을 정확한 유리수로 다시 계산합니다. 독립적인 Python·R 코드는 공개 원본 선택과 집계 규칙에서 같은 표·그림을 만듭니다. 실제 영상·사례·원자료 설명을 함께 읽고 어떤 변환이 자신의 질문에 맞는지 한 문단으로 써 보세요.
Select country, household or business and first explain why raw row counts can differ from analysis calendar positions. Inspect level moments and ACF, then switch to differences, demeaning or detrending. Tables show actual usable pair counts at every lag.
The household’s missing hour and the business’s seventy-one null dates retain their original positions. Identify additional lost transformed pairs and distinguish missing observations from unavailable history. Complete-mode rejection means input completeness failed, not that stationarity failed.
The lab recalculates retained actual observations with exact rational arithmetic. Independent Python and R companions rebuild the same tables and plots from the published selection and aggregation rules. Read the source explanation and cases, then justify which transformation answers your question.
대학원 연결Graduate bridge
45. 대학원 연결 · 의존이 표본평균의 분산을 바꾼다45. Graduate bridge · Dependence changes variance of a sample mean
독립이면 평균을 내어 불확실성이 줄어드는 익숙한 σ²/n 식을 씁니다. 그러나 같은 방향으로 움직이는 관측들이라면 새 관측 하나가 완전히 새로운 정보를 주지 않을 수 있습니다. 약정상 유한 2차 적률에서 평균의 분산을 모든 공분산의 합으로 펼칠 수 있습니다.
시차 k인 쌍은 양쪽 순서까지 2(n−k)개입니다. 따라서 Var(Ȳ)= [nγ(0)+2∑(n−k)γ(k)]/n²입니다. 양의 공분산은 독립 공식보다 키울 수 있고 음의 공분산은 줄일 수 있습니다. 부호와 시차 전체가 중요합니다.
예를 들어 정상 AR1에서 φ=1/2, 충격 분산 1이면 γ(0)=4/3, γ(1)=2/3입니다. 두 값 평균의 분산은 (2×4/3+2×2/3)/4=1로, 독립을 가정한 2/3보다 큽니다. γ(k)=(4/3)(1/2)^k를 모두 합한 장기분산은 4입니다. 이 계산은 선언된 공분산 법칙의 결과입니다.
장기분산 γ(0)+2∑_{k≥1}γ(k)와 √n 근사는 추가적인 공분산 합산 가능성·의존과 극한 조건을 요구합니다. 정상성만으로 중심극한정리나 에르고딕성을 모두 얻는 것은 아닙니다. 앞의 공통 크기 반례를 떠올리고, 실제 표본에 적용할 표준오차의 조건을 별도로 확인합니다.
Var(Yˉn)=n2nγ(0)+2∑k=1n−1(n−k)γ(k)
Under independence, the familiar variance of a sample mean is σ²/n. Observations moving together may contribute less fresh information. With weak stationarity and finite second moments, expand mean variance as a sum of all covariances.
Lag-k pairs contribute in both orders, giving 2(n−k) terms. Thus Var(Ȳ)=[nγ(0)+2∑(n−k)γ(k)]/n². Positive covariances can increase it relative to independence, while negative ones can reduce it. The complete lag pattern matters.
For a stationary AR1 with φ=1/2 and innovation variance one, γ(0)=4/3 and γ(1)=2/3. Two observations have mean variance (2×4/3+2×2/3)/4=1, above the independence value 2/3. Summing the geometric covariance sequence gives long-run variance four. This is a calculation under the declared covariance law.
Long-run variance and square-root-n approximations require additional summability, dependence and limiting conditions. Stationarity alone supplies neither every central limit theorem nor ergodicity. Recall the common-scale counterexample and justify actual standard-error methods separately.
Var(Yˉn)=n2nγ(0)+2∑k=1n−1(n−k)γ(k)
대학원 연결Graduate bridge
46. 대학원 연결 · 공분산 행렬은 왜 음의 분산을 만들 수 없는가46. Graduate bridge · Covariance matrices cannot give negative variances
세 시점의 선형결합 a₁Y₁+a₂Y₂+a₃Y₃의 분산은 항상 0 이상입니다. 이를 행렬로 쓰면 a′Γa≥0입니다. 약정상일 때 Γ의 대각선은 γ(0), 한 칸 옆은 γ(1)처럼 같은 시차끼리 같아 Toeplitz 모양이 됩니다.
개별 상관이 모두 [−1,1] 안이어도 전체 행렬이 이 조건을 만족하지 않을 수 있습니다. 따라서 시차별 숫자를 제멋대로 정하는 일은 유효한 과정의 법칙을 정하는 것과 다릅니다. 완전 격자의 중심화 값을 범위 밖에서 0으로 연장해 계산한 고정 분모의 표본 ACF는 제곱합의 형태로 이 비음성 구조를 갖습니다.
구체적으로 분산 1, ρ(1)=0.9, ρ(2)=−0.9를 세 시점에 넣어 보세요. 각각 범위 안이지만 Y₁−Y₂+Y₃의 분산은 3+2(−0.9−0.9−0.9)=−2.4가 되어 불가능합니다. 시차별 허용 범위만 확인하는 방법이 부족한 이유입니다.
결측 마스크의 available-pair-sums는 관측 편차를 빈 칸에서 0으로 두는 곱 합으로 이해할 수 있지만, 사용 쌍이 전혀 없을 때는 실습이 해석상 undefined로 남깁니다. 그 표시를 임의의 모집단 모수로 채우거나 불편성·검정 성질을 덧붙이지 않습니다. 더 깊은 스펙트럼 해석은 후속 학습의 주제입니다.
a⊤Γa=Var(j=1∑najYj)≥0
Every finite linear combination has nonnegative variance. In matrix form a′Γa≥0. Under weak stationarity, equal lags share covariances, giving a Toeplitz matrix with γ(0) on the diagonal and γ(1) beside it.
Individual correlations within [−1,1] need not form a valid complete matrix. Choosing separate numbers is different from defining a possible process. For a complete grid, zero-extending centered observations and using the fixed squared-sum denominator gives a sample ACF with this nonnegative quadratic structure.
For a concrete counterexample, set variance one, ρ(1)=0.9 and ρ(2)=−0.9 at three dates. Each correlation is within its separate range, but Var(Y₁−Y₂+Y₃)=3+2(−0.9−0.9−0.9)=−2.4. This impossible variance shows why checking each lag separately is insufficient.
Available-pair products with gaps can be viewed as zero-filling centered deviations at masked positions, but the lab deliberately marks lags with no observed pair undefined. Do not fill those display entries with invented population parameters or append unbiasedness and testing claims. Spectral interpretation is a later topic.
a⊤Γa=Var(j=1∑najYj)≥0
학부 심화 · 선택Advanced undergraduate · optional
47. 세 실제 사례의 원본·집계·그림·재현47. Three actual cases: records, aggregation, figures and reproduction
아래 사례는 국가의 연간 수준, 한 가구의 시간 평균, 기업 한 품목의 날짜별 단위를 각각 다룹니다. 원본 행 → 달력 → 결측 정책 → 변환 → 통계의 순서를 따라 읽습니다. 설명용 숫자와 실제 기록을 섞지 않도록 각 표의 단위와 자료창을 확인하세요.
각 사례에서 원자료 선택 CSV, 집계 CSV, 계산된 지표와 시각화를 내려받을 수 있습니다. Python은 정확한 분수 계산을, R은 독립적인 기본 수치 계산을 수행합니다. 소수 근삿값 차이는 허용오차와 함께 비교하며, 원래 가격·날짜·측정 토큰은 바꾸지 않습니다.
읽기 과제는 세 사례를 인과관계 하나로 합치는 일이 아닙니다. 어떤 관측이 무엇을 대표하는지, 어떤 값이 집계·변환으로 만들어졌는지, 어떤 법칙은 아직 가정인지 설명하세요. 그 구분이 가능한 분석 보고서가 재현 가능한 숫자만큼 중요합니다.
국가 · 한국 1인당 실질 GDP
이 사례의 단위는 한국 한 국가의 연간 1인당 실질 GDP입니다. World Bank의 1980~2024년 원본 45개 값과 원출처 행 번호를 보존합니다. 국가별 45개 독립 표본도 명목 총 GDP도 아닙니다.
수준·달러 차분·평균 제거·직선 추세 제거의 네 전체 경로를 같은 연간 격자로 비교합니다. 차분에는 첫해 과거가 없어 null이 하나 생깁니다. 아래 표의 시차 1은 1년이며 전체 표본 평균·고정 제곱합 공식을 사용합니다.
2026-10-08 보존 빈티지는 개정된 과거를 포함할 수 있습니다. 여기 결과는 회고적 기술 계산이며 당시 공개 시차와 개정 전 자료를 재구성한 실시간 예측 성과가 아닙니다.
원본 집계·분수 계산·base-R 독립 계산을 같은 단위로 대조하세요. 아래 벡터 그래프는 모든 분석 달력 칸을 사용하며 null을 잇지 않습니다. 원래 CSV는 손대지 않고 보존합니다.
기업 · 한 상품의 기록된 주문 단위
한 소매기업의 SKU 85123A 원본 2,313행을 사용합니다. 원래 8개 필드와 정확한 Excel 날짜·가격 토큰을 보존합니다. 양의 수량 합·음의 수량 절댓값 합·순수량을 구분하며 분석 대상은 양의 수량 합입니다.
전체 541,909행을 새로 읽어 만든 날짜별 기업 활동 집계를 함께 씁니다. 374일 중 활동 기록일 305일에서 양 끝 2일을 제외한 303일만 분석합니다. 71개 null을 0 수요나 영업 중단으로 단정하지 않습니다.
동반 Python·R 코드는 상품 행에서 양수·음수·순수량을 다시 만듭니다. 기업 전체 활동일은 공개한 파생 범위 표를 명시적 입력으로 쓰며 상품 행만으로 전체 기업의 기록 유무를 복원했다고 주장하지 않습니다. 재고·가격·홍보의 인과 효과는 이 기술 통계에 포함되지 않습니다.
원본 집계·분수 계산·base-R 독립 계산을 같은 단위로 대조하세요. 아래 벡터 그래프는 모든 분석 달력 칸을 사용하며 null을 잇지 않습니다. 원래 CSV는 손대지 않고 보존합니다.
The cases separately study annual national levels, one household’s hourly means and one product’s daily recorded units. Follow raw rows, calendar, missingness policy, transformation and statistic in that order. Check every table’s unit and window to distinguish observations from explanatory assumptions.
Each case provides selected-source and aggregation CSVs, derived metrics and visualizations. Python uses exact fractions; R supplies independent base numerical calculations. Compare decimal discrepancies with stated tolerance while retaining native price, date and measurement tokens.
The reading task is not to merge these cases into one causal claim. Explain the observational entity, which values were aggregated or transformed, and which stochastic laws remain assumptions. That clarity matters alongside reproducible arithmetic.
Country · Korean real GDP per capita
This case is one country’s annual real GDP per capita, not forty-five independent countries or nominal total GDP. Preserve all forty-five World Bank values for 1980–2024 and their source-row positions.
Compare four complete paths on the same annual grid: levels, dollar differences, demeaning and linear detrending. A first difference loses its first historical endpoint. Lag one is one year, using the declared global mean and fixed squared-sum denominator.
The retained 2026-10-08 vintage can contain revised history. Results are retrospective descriptions, not reconstruction of historical release lags, unrevised vintages or real-time forecast performance.
Compare source aggregation, exact Fraction arithmetic and independent base-R calculations with matching units. Vector charts use every analysis calendar position and do not connect across nulls. Original CSVs are preserved.
Household · From actual minute power to hourly means
The observational entity is one Sceaux household in France. Select 10,080 original minutes from 17–23 December 2006 with all nine native fields. Power is measured for 10,078 minutes. An hourly analysis mean requires all sixty minute readings.
There are 167 complete hours on a 168-hour calendar. Keep the missing hour and show its available-minute mean separately. Active power in kW differs from sub-metering energy in Wh. These data do not recover missing-hour energy or represent every resident’s routines.
Lag one is one hour and lag twenty-four one day. Fixed comparison tables below show lags zero through twelve; the lab accepts longer permitted lags. Compare observed counts, clocks and dependence across four transformations.
Compare source aggregation, exact Fraction arithmetic and independent base-R calculations with matching units. Vector charts use every analysis calendar position and do not connect across nulls. Original CSVs are preserved.
Business · Recorded units of one product
Use all 2,313 native lines for SKU 85123A from one retailer, retaining eight original fields and exact Excel-date and price tokens. Gross positive, absolute negative and net quantities differ; analysis uses gross positive quantities.
Date-level business activity comes from a fresh scan of all 541,909 original lines. Among 374 dates, 305 have file activity; removing two partial endpoints leaves 303 eligible dates. Seventy-one null dates do not establish zero demand or closure.
Python and R rebuild product gross, negative and net quantities from source lines. Published retailer-wide coverage is an explicit derived input: product-only rows do not reconstruct all business activity. These descriptive summaries identify no inventory, pricing or advertising effect.
Units and denominators
Scroll horizontally to read every column.
Units and denominators
Item
Value
Time unit
calendar day
Outcome unit
Recorded gross positive units
Raw rows
2313
Calendar positions
374
Observed analysis values
303
Analysis nulls
71
Four representations of the complete path
Scroll horizontally to read every column.
Four representations of the complete path
Representation
Observed
Null
Mean
SS/n
SS/(n−1)
Level
303
71
≈135.993Exact value41206/303
≈108167Exact value9930692888/91809
≈108525Exact value4965346444/45753
First difference
247
127
≈0.740891Exact value183/247
≈270987Exact value16532642528/61009
≈272089Exact value8266321264/30381
Demean
303
71
0
≈108167Exact value9930692888/91809
≈108525Exact value4965346444/45753
Linear detrend
303
71
0
≈107900Exact value8499884087802140/78775748001
≈108257Exact value4249942043901070/39257881017
Explicit 16-position calendar preview · complete CSV available
Scroll horizontally to read every column.
Explicit 16-position calendar preview · complete CSV available
Compare source aggregation, exact Fraction arithmetic and independent base-R calculations with matching units. Vector charts use every analysis calendar position and do not connect across nulls. Original CSVs are preserved.
대학원 연결Graduate bridge
48. 읽기·본문 영상·학자 · 정의를 실제 분석과 연결하기48. Readings, an embedded lecture and scholars
Anna Mikusheva의 MIT 시계열 강의 노트 첫 강의는 약정상·강정상과 AR·MA 법칙을 함께 정리합니다. 여기 연결한 노트는 Paul Schrimpf가 필기했고 2007년 강의·2009년 수정 표기를 가진 문서로, MIT 2013년 과정 페이지에 보존되어 있습니다. 서로 다른 문서 연도를 새로운 강의 날짜처럼 합치지 않습니다.
Peter Kempthorne의 MIT 18.S096 공개 강의 「Time Series Analysis I」는 본문 안에서 재생할 수 있습니다. 영상에서 정의가 나올 때 멈추고, 자신의 말로 평균 일정·공분산 시차 의존을 구별해 적어 보세요. 특정 재생 시각은 검증 없이 붙이지 않습니다. 공개 영상의 광고·자막·재생 가능성은 제공 서비스의 상태에도 영향을 받습니다.
Hyndman과 Athanasopoulos의 공개 교재 Forecasting: Principles and Practice 한국어판에서 자기상관과 정상성·차분 부분을 읽고 네 값 손계산을 비교하세요. 공개 강의와 교재를 그대로 복제하는 대신 출처를 따라 읽고 이 장의 실제 원자료를 직접 계산합니다. 다음 장은 ARIMA와 예측 원점을 배웁니다.
Anna Mikusheva’s first MIT time-series notes connect weak and strict stationarity with AR and MA laws. Paul Schrimpf prepared the linked notes, marked Fall 2007 and revised in 2009, retained on the 2013 MIT course page. These document dates are not merged into a newly invented lecture date.
Peter Kempthorne’s MIT 18.S096 lecture Time Series Analysis I plays within this text. Pause when definitions appear and explain constant means and lag-dependent covariance in your own words. No unverified playback timestamps are supplied. Player availability and captions also depend on the hosting service.
Read the Korean edition of Hyndman and Athanasopoulos’s open Forecasting: Principles and Practice on autocorrelation, stationarity and differences, then compare the four-point hand calculation. Follow original references rather than treating this chapter as a copy. Next comes ARIMA and forecast origins.
Use the official references below to verify definitions, source documentation and licenses.
본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.
MIT · 시계열 분석 IMIT · Time Series Analysis I
MIT OpenCourseWare · Peter Kempthorne · 18.S096 Fall 2013
본문의 읽기 절에 있는 공식 강의 영상을 재생하고 평균의 일정함과 공분산이 시차에만 의존한다는 조건을 구별하세요. 영어 강의이며 자막 제공 여부는 원 플레이어에서 확인합니다.Play the official lecture in the reading section. Separate a constant mean from covariance depending only on the lag. The lecture is in English; check the original player for available captions.
보고 읽은 뒤 답하기Respond after watching/reading한 번 관측한 시계열이 평평해 보이면 약정상성이 입증되나요?Does a single series that looks flat establish weak stationarity?
생각을 점검하는 해설Check your reasoning
아닙니다. 약정상성은 확률과정의 평균·분산·공분산에 대한 조건입니다. 한 표본의 모양이나 표본 ACF만으로 그 법칙을 입증할 수 없습니다.No. Weak stationarity constrains the process mean, variance and covariance. A sample shape or sample ACF alone cannot establish those population conditions.
Anna Mikusheva · 법칙과 실제 경로를 구별하기Anna Mikusheva · Distinguish a law from one path
Official course or original data creator
MIT 첫 강의 노트의 약정상·강정상·AR·MA 정의를 함께 읽습니다. 문서의 강의·수정 연도를 구별합니다.Read weak/strict stationarity and AR/MA together in the first MIT notes. Distinguish lecture and revision dates.
보고 읽은 뒤 답하기Respond after watching/reading58분 평균은 완전한 1시간 관측인가요?Does a 58-minute mean imply complete hourly coverage?
생각을 점검하는 해설Check your reasoning
아닙니다. 관측 분 평균과 완전 시간 분석값을 구분합니다.No. Separate the available-minute mean from the complete-hour analysis value.
연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof
먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.
1. 같은 평균, 다른 순서Same mean, different order
1,2,3,4와 1,4,2,3의 평균을 구하고 시계열에서 무엇이 달라졌는지 설명하세요.
Find the means of 1,2,3,4 and 1,4,2,3. What changes as a time series?
풀이와 확인할 이유Solution and explanation
둘 다 합 10, 평균 5/2입니다. 시간 순서와 인접 쌍이 달라집니다. 평균 하나로 시간 의존을 요약할 수 없습니다.
Both sum to ten and average 5/2. The time order and adjacent pairs change; a mean alone does not summarize temporal dependence.
2. 빠진 수요일A missing Wednesday
월 2, 화 5, 목 8을 하루 격자로 적으세요. 월·목은 시차 몇인가요?
Represent Monday two, Tuesday five, Thursday eight on a daily grid. What lag separates Monday and Thursday?
풀이와 확인할 이유Solution and explanation
[2,5,null,8]입니다. 월·목은 3일 차이입니다. 결측 행 삭제 뒤 세 값으로 밀어 계산하면 실제 시간 간격이 바뀝니다.
Use [2,5,null,8]. Monday and Thursday are three days apart. Deleting the missing row compresses the clock.
3. 한 경로와 기댓값A path and its expectation
독립 공정 부호에서 1,1,1,−1을 관측했습니다. 표본평균과 각 시점의 법칙 평균은?
IID fair signs produce observed 1,1,1,−1. Find the sample mean and each date’s population mean.
풀이와 확인할 이유Solution and explanation
표본평균은 1/2, 각 시점 기댓값은 0입니다. 한 유한 경로의 평균이 모형의 기댓값과 정확히 일치해야 하는 것은 아닙니다.
The sample mean is 1/2; every date’s expectation is zero. A finite realization need not equal a population expectation.
4. 제곱편차합 계산Calculate squared deviations
1,2,3,4의 평균·제곱편차합·두 분모의 분산을 구하세요.
For 1,2,3,4, calculate the mean, squared-deviation sum and variances with divisors n and n−1.
풀이와 확인할 이유Solution and explanation
평균 5/2, 편차 −3/2,−1/2,1/2,3/2에서 제곱합 5입니다. 5/4와 5/3입니다. 후자의 불편성은 별도 표본 조건을 요구합니다.
The mean is 5/2; deviations −3/2,−1/2,1/2,3/2 give sum five. The two ratios are 5/4 and 5/3. Unbiasedness of the latter requires sampling assumptions.
5. null과 0Null and zero
[1,null,3,4]의 평균을 구하고 null을 0으로 바꾼 결과와 비교하세요.
Compare the observed mean of [1,null,3,4] with the mean after replacing null by zero.
풀이와 확인할 이유Solution and explanation
관측 평균은 8/3입니다. 0 대입은 8/4=2입니다. 분모와 측정 내용이 달라지므로 같은 통계가 아닙니다. 원래 격자는 두 경우 모두 4칸임을 보존합니다.
The observed mean is 8/3. Zero replacement gives two. It changes both the denominator and the claimed observation; the original calendar still has four positions.
6. 분할 평균Split means
1,2,3,4를 두 값씩 나누어 평균을 구하세요. 이것이 정상성 검정인가요?
Split 1,2,3,4 into two pairs and average each. Is this a stationarity test?
풀이와 확인할 이유Solution and explanation
3/2와 7/2입니다. 두 유한 구간의 기술 비교입니다. 확률 모형과 검정 기준 없이 모집단 정상성을 기각했다고 할 수 없습니다.
The means are 3/2 and 7/2. This is a descriptive comparison, not a population stationarity rejection without a stochastic model and test criterion.
7. 한 관측과 상수One observation and a constant
[7]에서 두 분산 비율과 ACF는? [7,7,7]과 비교하세요.
For [7], find both variance ratios and ACF. Compare [7,7,7].
풀이와 확인할 이유Solution and explanation
한 관측의 SS/n은 0, n−1 비율은 분모 0으로 정의되지 않습니다. 세 상수의 두 비율은 0이지만 ACF는 두 경우 모두 SS=0 때문에 정의되지 않습니다.
With one observation SS/n is zero and SS/(n−1) undefined. Three constants give both variance ratios zero, but ACF is undefined in both cases because SS=0.
8. 전력 단위 바꾸기Changing power units
kW에서 W로 1000배하면 평균·분산·양의 분모 ACF는 어떻게 변하나요?
Multiplying kW by 1000 gives W. What happens to mean, variance and defined ACF?
풀이와 확인할 이유Solution and explanation
평균은 1000배, 분산은 1,000,000배입니다. ACF는 분자·분모의 같은 제곱 배율이 약분되어 같습니다. 시간 단위는 바뀌지 않습니다.
The mean multiplies by 1000 and variance by one million. Matching squared factors cancel in ACF. The time unit is unchanged.
9. 평균만 일정한 반례Constant mean is insufficient
Y_t=√t ε_t에서 ε_t가 독립 공정 ±1이면 평균과 분산은?
For Y_t=√t ε_t with IID fair ±1 signs, find mean and variance.
풀이와 확인할 이유Solution and explanation
평균 0, 분산 t입니다. 유한한 각 시점의 분산은 존재하지만 시간에 따라 달라져 약정상이 아닙니다.
Mean is zero and variance t. Every finite-date variance exists but changes over time, so the process is not weakly stationary.
10. 직선 추세A deterministic linear trend
Y_t=3+2t+ε_t이고 잡음 평균 0, 분산 4이면 약정상인가요?
If Y_t=3+2t+ε_t and noise has mean zero and variance four, is the process weakly stationary?
풀이와 확인할 이유Solution and explanation
평균 3+2t가 변하므로 아닙니다. 잡음 분산과 공분산이 안정적이어도 평균 조건을 따로 충족해야 합니다.
No: the mean 3+2t changes. Stable noise variance and covariance do not repair the mean condition.
11. 홀짝 분포Alternating distributions
홀수 ±1 반씩, 짝수 0 확률 2/3·±√3 각각 1/6이고 시간별 독립이면 약정상·강정상은?
Independent odd dates have fair ±1 and even dates have zero with probability 2/3 and each ±√3 with probability 1/6. Assess weak and strict stationarity.
풀이와 확인할 이유Solution and explanation
모든 평균 0, 분산 1, 양의 시차 공분산 0이므로 약정상입니다. 0이 나올 확률이 홀짝에 따라 달라 한 시점 분포부터 불변이 아니므로 강정상이 아닙니다.
All means are zero, variances one and positive-lag covariances zero, giving weak stationarity. The probability of zero changes by parity, so even marginal distributions fail strict stationarity.
12. Cauchy 반례The Cauchy counterexample
IID Cauchy 과정이 약정상이 아닌 이유를 설명하세요.
Why does an IID Cauchy process fail weak stationarity?
풀이와 확인할 이유Solution and explanation
IID 법칙으로 강정상이지만 유한한 2차 적률이 없습니다. 표본에서 계산한 유한 평균·분산이 모집단 적률의 존재를 증명하지 않습니다.
Its IID law is strictly stationary but lacks finite second moments. Computable finite-sample means and variances do not establish population moments.
13. 공동 정규 조건The joint Gaussian qualification
약정상에서 강정상으로 넘어갈 수 있는 공동 정규 조건의 역할은?
What does joint Gaussianity add to the implication from weak to strict stationarity?
풀이와 확인할 이유Solution and explanation
모든 유한 결합분포가 평균 벡터·공분산 행렬로 결정됩니다. 시간 이동 뒤 이들이 같으면 결합분포도 같습니다. 각 주변분포만 정규라는 말로는 부족합니다.
Every finite joint distribution is determined by its mean vector and covariance matrix. Their shift invariance implies distributional invariance. Merely Gaussian one-date marginals are insufficient.
14. 무작위 보행 분산Random-walk variance
Y₀=0, 독립 평균 0·분산 2 충격의 누적에서 Var(Y₃), Cov(Y₂,Y₅)는?
A random walk starts at zero with independent zero-mean innovations of variance two. Find Var(Y₃) and Cov(Y₂,Y₅).
풀이와 확인할 이유Solution and explanation
Var(Y₃)=6입니다. 두 위치가 처음 두 충격을 공유하므로 Cov(Y₂,Y₅)=4입니다. 같은 시차여도 시작 시점에 따라 공분산이 달라집니다.
Variance is six. The positions share the first two shocks, giving covariance four. Covariance depends on date, not solely on lag.
15. 수준 변화의 ACFACF around a mean shift
[0,0,0,10,10,10]의 긴 동일 부호 편차는 어떤 해석 위험이 있나요?
What interpretation risk arises from long same-sign deviations in [0,0,0,10,10,10]?
풀이와 확인할 이유Solution and explanation
전체 평균 5를 빼면 앞은 −5, 뒤는 +5입니다. 인접 곱 상당수가 양수라 지속성이 나타납니다. 평균 변화와 구간 안 잡음의 기억을 구별해야 하며 정책 효과로 단정하지 않습니다.
Subtracting five gives three −5 and three +5 deviations. Many positive adjacent products can reflect a level shift, not within-regime noise memory. This does not identify a policy effect.
16. 고정 계절 평균A fixed seasonal mean
Y_t=cos(πt)+ε_t, 잡음 평균 0이면 일정 평균인가요?
For Y_t=cos(πt)+ε_t with zero-mean noise, is the mean constant?
풀이와 확인할 이유Solution and explanation
평균은 짝수 1, 홀수 −1로 바뀝니다. 반복적이어도 약정상의 일정 평균 조건은 실패합니다.
The mean alternates between one and minus one. Periodicity does not satisfy the constant-mean condition.
17. 무작위 위상Random phase
A=2인 균등 무작위 위상 cos 모형에서 분산과 γ(k)는?
For a uniform-random-phase cosine with A=2, find variance and γ(k).
풀이와 확인할 이유Solution and explanation
평균 0, 분산 A²/2=2, γ(k)=2cos(ωk)입니다. 균등 위상이 시간 이동에도 같아 전체 결합분포가 보존됩니다. 고정 위상의 달력 평균과 구별합니다.
Mean is zero, variance two and γ(k)=2cos(ωk). Uniform phase is preserved by time shifts, unlike a fixed calendar-phase mean.
18. 정상성 주장 범위The scope of a stationarity claim
앞뒤 표본평균이 비슷하고 그림이 평평하면 정상성이 증명되나요?
Do similar split sample means and a flat graph prove stationarity?
풀이와 확인할 이유Solution and explanation
아닙니다. 유한 경로는 법칙의 일부 결과입니다. 분산·공분산·변화 가능성·모형 가정까지 필요하며 시각 비교는 탐색 단계입니다.
No. A finite path is one outcome of a law. Variance, covariance, possible change and model assumptions still matter; visual inspection is exploratory.
19. 기댓값과 실현 경로Law versus realized path
AR 법칙의 분산 4/3과 한 경로 네 값의 기술 분산이 다르면 오류인가요?
Is it an error if AR population variance 4/3 differs from a four-value path’s descriptive variance?
풀이와 확인할 이유Solution and explanation
다른 수량이라 같을 필요가 없습니다. 초기조건·유한 표본·무작위 실현의 차이를 확인합니다. 같은 표본 공식의 웹·Python·R 결과가 다를 때 재현 오류를 조사합니다.
They are different quantities and need not agree. Check initialization, finite sampling and realization. A disagreement across implementations of the same sample formula is a reproducibility question.
20. 인과 조건과 φCausal scope of φ
|φ|≥1에서 σ²/(1−φ²)를 쓰지 않는 이유와 유한 재귀의 상태는?
Why avoid σ²/(1−φ²) for |φ|≥1, and what about finite forward recursion?
풀이와 확인할 이유Solution and explanation
양의 충격 분산의 인과 정상 공식 조건이 실패합니다. 음의 분산이나 0 대입은 오류입니다. 유한 재귀는 계산 가능하며 비인과 해의 별도 이론을 부정한 것은 아닙니다.
The causal stationary formula fails with positive innovation variance. Negative variance or zero filling is wrong. Finite forward recursion remains calculable, without denying separate noncausal theory.
21. 네 값의 시차 1Four values at lag one
1,2,3,4의 시차 1 편차곱·합·ACF를 구하세요.
Find lag-one centered products, their sum and ACF for 1,2,3,4.
풀이와 확인할 이유Solution and explanation
평균 5/2에서 곱은 3/4,−1/4,3/4, 합 5/4입니다. 전체 SS=5로 나누어 1/4입니다. 쌍 수는 3입니다.
Products are 3/4,−1/4,3/4 around mean 5/2. Their sum 5/4 divided by full SS five gives 1/4, with three pairs.
22. 네 값의 시차 2·3Four values at lags two and three
같은 네 값의 시차 2와 3을 계산하세요.
Calculate lags two and three for the same four values.
풀이와 확인할 이유Solution and explanation
시차 2는 −3/4 두 개, 분자 −3/2, ACF −3/10입니다. 시차 3은 −9/4 한 개, ACF −9/20입니다. 전체 분모 5는 바뀌지 않습니다.
Lag two has two −3/4 products, numerator −3/2 and ACF −3/10. Lag three has one −9/4 product and ACF −9/20. The full denominator stays five.
23. Pearson과의 차이The Pearson contrast
[1,2,3]와 [2,3,4]의 Pearson 상관이 1인데 앞 문제 ACF가 1/4인 이유는?
Why is Pearson correlation of [1,2,3] and [2,3,4] one while the preceding ACF is 1/4?
풀이와 확인할 이유Solution and explanation
Pearson은 두 잘린 열의 평균 2와 3 및 각 열의 제곱합을 씁니다. ACF는 전체 평균 5/2와 전체 SS=5입니다. 중심화·분모가 다릅니다.
Pearson uses truncated-column means two and three with separate column squared sums. ACF uses the full mean 5/2 and SS five. Centering and normalization differ.
24. 교대열의 ACFAn alternating sequence
1,0,1,0,1의 시차 1·2 ACF를 구하세요.
Find lag-one and lag-two ACF of 1,0,1,0,1.
풀이와 확인할 이유Solution and explanation
평균 3/5, SS=6/5입니다. 시차 1 분자 −24/25를 나누면 −4/5, 시차 2 분자 17/25를 나누면 17/30입니다.
Mean is 3/5 and SS 6/5. Lag-one numerator −24/25 gives −4/5; lag-two numerator 17/25 gives 17/30.
25. 끝점 보정Endpoint adjustment
1,0,0,0,1에서 시차 4 기본 ACF와 n/(n−k) 보정 결과는?
For 1,0,0,0,1, find lag-four ACF and its n/(n−k) adjusted value.
풀이와 확인할 이유Solution and explanation
평균 2/5, SS=6/5, 분자 9/25로 3/10입니다. 5배 보정하면 3/2입니다. 따라서 보정 수열을 항상 [−1,1]인 상관이라고 부르면 안 됩니다.
Mean 2/5, SS 6/5 and numerator 9/25 give 3/10. Multiplication by five gives 3/2. The adjusted sequence is not automatically bounded like a correlation.
26. 쌍 없는 시차A lag with no observed pairs
[1,null,3]의 available-pair-sums 시차 1·2 결과를 구하세요.
For [1,null,3], calculate available-pair-sums at lags one and two.
풀이와 확인할 이유Solution and explanation
관측 평균 2, SS=2입니다. 시차 1은 양쪽 관측 쌍이 없어 undefined입니다. 시차 2는 곱 −1 한 개로 −1/2입니다. 결측을 압축하지 않습니다.
Observed mean is two and SS two. Lag one has no observed pair and is undefined. Lag two has one product −1, giving −1/2. Keep the missing position.
27. 자료 완전성 거절Completeness rejection
위 결측 자료에서 complete 모드 거절은 어떤 가설의 기각인가요?
Does complete-mode rejection of the preceding input reject a stochastic hypothesis?
풀이와 확인할 이유Solution and explanation
가설 검정이 아닙니다. 이 모드가 요구하는 모든 칸 관측 조건이 충족되지 않은 입력 검증입니다. available-pair 모드도 모집단 가설을 자동 검사하지 않습니다.
No. It is input validation for complete observations, not hypothesis testing. Available-pair mode does not automatically test a population law either.
28. ACF 이동 불변성ACF under shifts and scales
상수가 아닌 완전 자료 y에 z=7−3y를 적용하면 ACF는?
For nonconstant complete y, what happens to ACF under z=7−3y?
풀이와 확인할 이유Solution and explanation
중심화 편차가 −3배, 분자·분모가 9배가 되어 같습니다. 음의 공통 배율도 두 값의 곱에서 상쇄됩니다. 이 사실은 시간 간격 변경을 허용한다는 뜻이 아닙니다.
Centered deviations multiply by −3 and both product sums by nine, so ACF is unchanged. A negative common scale also cancels. This does not permit changing the clock.
29. AR 정상 분산AR stationary variance
φ=1/2, σ²=1에서 정상 분산과 γ(1), ρ(2)는?
For φ=1/2 and σ²=1, find stationary variance, γ(1) and ρ(2).
풀이와 확인할 이유Solution and explanation
분산 4/3, γ(1)=2/3, ρ(2)=1/4입니다. 인과적 정상 초기조건과 충격 조건을 전제로 합니다.
Variance is 4/3, γ(1)=2/3 and ρ(2)=1/4, under the causal stationary law and innovation conditions.
They are four, minus two and one. Variance stays positive while lag covariances alternate.
31. 유한 시작의 세 단계Three finite-start steps
φ=1/2, σ²=1, v₀=0에서 v₁,v₂,v₃와 정상 한계는?
With φ=1/2, σ²=1 and v₀=0, find v₁,v₂,v₃ and the stationary limit.
풀이와 확인할 이유Solution and explanation
v_t=v_{t−1}/4+1을 반복해 1,5/4,21/16입니다. 한계 4/3과 유한 처음 값은 다릅니다.
Iterating v_t=v_{t−1}/4+1 gives 1,5/4,21/16. Their limit is 4/3, distinct from finite-start values.
32. 초기 평균의 영향Initial mean effects
μ=10, φ=1/2, m₀=14에서 m₁,m₂,m₃는?
For μ=10, φ=1/2 and m₀=14, find m₁,m₂,m₃.
풀이와 확인할 이유Solution and explanation
중심과 차이 4가 2,1,1/2로 줄어 평균은 12,11,21/2입니다. 이 수량은 경로의 실제 관측값이 아니라 법칙의 기대값입니다.
Initial deviation four becomes two, one and one-half, giving means 12,11,21/2. These are law expectations, not realized observations.
33. 계수와 초기 법칙Coefficients and the initial law
정상 평균·분산을 초기값에 맞추면 강정상까지 보장되나요?
Does matching initial stationary mean and variance guarantee strict stationarity?
풀이와 확인할 이유Solution and explanation
아닙니다. 전체 초기 분포와 미래 충격들과의 결합 조건이 필요합니다. 적률만 받는 실습은 공분산 수준 조건만 판단합니다.
No. The full initial distribution and joint relation with future innovations matter. A moment-input lab assesses covariance-level conditions only.
34. 단위 경계의 분산Variance at unit boundaries
φ=−1, v₀=0, σ²=2에서 v₄는? 정상 인과 분산은?
For φ=−1, v₀=0 and σ²=2, find v₄ and the causal stationary variance.
풀이와 확인할 이유Solution and explanation
v_t=v_{t−1}+2로 v₄=8입니다. 양의 충격 분산에서 정상 인과 분산은 정의되지 않습니다. 부호 교대가 안정적 분산을 뜻하지 않습니다.
The recursion adds two each step, giving eight. Causal stationary variance is unavailable with positive noise variance; alternating signs do not stabilize variance.
35. MA1의 두 가지 부호Two signs in MA1
θ=2와 θ=−2, σ²=1에서 분산과 시차 1 상관은?
For θ=2 and θ=−2 with σ²=1, find variance and lag-one correlation.
풀이와 확인할 이유Solution and explanation
둘 다 분산 5입니다. 시차 1 상관은 2/5와 −2/5입니다. |θ|>1이라도 정상성은 가능하며 가역성 질문과 다릅니다.
Both have variance five. Correlations are 2/5 and −2/5. Values |θ|>1 permit stationarity; invertibility is a different issue.
36. 백색잡음의 차분Differencing white noise
분산 3인 백색잡음을 차분한 분산·시차 1 공분산·상관은?
Difference white noise with variance three. Find variance, lag-one covariance and correlation.
풀이와 확인할 이유Solution and explanation
분산 6, 공분산 −3, 상관 −1/2입니다. 이웃이 같은 충격을 반대 부호로 공유하기 때문입니다.
They are six, minus three and minus one-half because neighbors share one innovation with opposite signs.
37. 공통 크기 모형의 2차 적률Common-scale second moments
U가 1 또는 2 반씩, 부호가 IID ±1이면 E[Y], Var(Y), 양의 시차 공분산은?
For U equal to one or two equally and IID ±1 signs, find E[Y], Var(Y) and positive-lag covariance.
풀이와 확인할 이유Solution and explanation
평균 0, 분산 E[U²]=5/2, 양의 시차 공분산 0입니다. 부호의 곱 기댓값이 0이지만 크기 U는 공유합니다.
Mean is zero, variance E[U²]=5/2 and positive-lag covariance zero. Sign products cancel while the scale remains shared.
38. 공통 크기 모형의 제곱Squares reveal the common scale
앞 모형의 서로 다른 시점 제곱 공분산과 한 경로 제곱 평균은?
For the preceding law, find covariance of distinct-time squares and a path’s average of squares.
풀이와 확인할 이유Solution and explanation
17/2−(5/2)²=9/4입니다. 한 경로는 U를 바꾸지 않아 제곱 평균이 1 또는 4이며 5/2로 수렴하지 않습니다. 정상성만으로 에르고딕성을 얻지 못합니다.
It is 17/2−(5/2)²=9/4. A path keeps its scale, so its square average stays one or four rather than converging to 5/2. Stationarity alone is insufficient for ergodicity.
39. 한 충격 경로A one-shock path
초기 0, 중심 0, 충격 [1,0,0,0]에서 φ=1/2와 −1/2의 경로는?
With initial and center zero and innovations [1,0,0,0], give paths for φ=1/2 and −1/2.
풀이와 확인할 이유Solution and explanation
초기값 뒤에 각각 [1,1/2,1/4,1/8]과 [1,−1/2,1/4,−1/8]입니다. 입력 목록은 가정한 결정적 충격이며 실제 미관측 혁신의 추정치가 아닙니다.
After the initial value, paths are [1,1/2,1/4,1/8] and [1,−1/2,1/4,−1/8]. These are explicit assumed innovations, not estimated hidden actual shocks.
40. 두 시작 경로의 차이Differences between two initialized paths
충격·중심·φ가 같고 초기값만 3만큼 다르면 t단계 차이는?
With identical innovations, center and φ but initial values differing by three, what is the difference after t steps?
풀이와 확인할 이유Solution and explanation
3φ^t입니다. 두 재귀식을 빼면 충격과 중심 항이 사라집니다. |φ|<1이면 줄고, φ=−1이면 부호만 바뀌고, |φ|>1이면 크기가 커집니다.
It is 3φ^t. Subtracting recursions cancels common shocks and center terms. It decays for |φ|<1, alternates at −1 and grows in magnitude for |φ|>1.
41. 평균 제거의 잔차Demeaning residuals
1,2,3,4를 평균 제거하고 합·ACF 변화를 설명하세요.
Demean 1,2,3,4. What happens to sum and ACF?
풀이와 확인할 이유Solution and explanation
잔차 −3/2,−1/2,1/2,3/2의 합은 0입니다. ACF는 중심화 편차가 원래와 같아 그대로입니다. 시간 추세가 사라졌다는 뜻은 아닙니다.
Residuals −3/2,−1/2,1/2,3/2 sum to zero. ACF is unchanged because centered deviations match. A time trend need not disappear.
42. 완전한 직선 추세An exact linear trend
인덱스 0,1,2,3에서 y=1,3,5,7을 추세 제거하면 계수·잔차·잔차 ACF는?
Detrend y=1,3,5,7 at indices 0,1,2,3. Find coefficients, residuals and residual ACF.
Intercept one, slope two and all residuals zero. Residual ACF is undefined with zero denominator, not an estimated zero correlation.
43. 한 점의 계수 가족A coefficient family through one point
유일한 관측점 (x,y)=(3,7)을 지나는 모든 직선을 쓰세요.
Write every fitted line through the sole observed point (3,7).
풀이와 확인할 이유Solution and explanation
(a,b)=(7,0)+λ(−3,1)입니다. a+3b=7을 만족합니다. 관측 적합값 7과 잔차 0은 유일하지만 두 계수는 각각 식별되지 않습니다.
Use (a,b)=(7,0)+λ(−3,1), satisfying a+3b=7. The observed fitted value seven and residual zero are unique, while neither coefficient is individually identified.
44. 원점의 한 점One point at the origin
관측점 (0,7) 하나일 때 어떤 계수가 식별되나요?
With one observed point (0,7), which coefficient is identified?
풀이와 확인할 이유Solution and explanation
a=7은 식별되고 b는 자유입니다. 영공간 방향은 (0,1)입니다. 이것은 한 점이면 무조건 모든 계수가 미식별이라는 단순화의 반례입니다.
The intercept a=7 is identified while b is free, with null direction (0,1). One point does not mean every coordinate must be unidentified.
45. 1차 차분First differences
10,13,12,18을 같은 격자에서 1차 차분하세요.
First-difference 10,13,12,18 on the original grid.
풀이와 확인할 이유Solution and explanation
[null,3,−1,6]입니다. 첫 이전 값은 없으므로 0이나 10으로 채우지 않습니다. 단위는 원래 단위의 한 칸 변화량입니다.
The result is [null,3,−1,6]. No previous value exists for the first position. Units are original-unit changes over one clock step.
46. 제곱 수열의 차분Differences of squares
1,4,9,16,25의 1차·2차 차분을 구하세요.
Find first and second differences of 1,4,9,16,25.
풀이와 확인할 이유Solution and explanation
1차 [null,3,5,7,9], 2차 [null,null,2,2,2]입니다. 원래 시계와 앞부분 과거 부족을 그대로 보존합니다.
First: [null,3,5,7,9]. Second: [null,null,2,2,2]. Preserve the original grid and unavailable history.
47. 결측의 전파Missingness propagation
[1,null,4,7]의 1차 차분과 마지막 2차 차분은?
For [1,null,4,7], give first differences and the final second difference.
풀이와 확인할 이유Solution and explanation
1차는 [null,null,null,3]입니다. 마지막 2차 값도 y₃−2y₂+y₁에서 y₁이 없어 null입니다. 결측 행을 압축하면 다른 계산이 됩니다.
First differences are [null,null,null,3]. The final second difference needs missing y₁ in y₃−2y₂+y₁, so it is also null. Compression changes the calculation.
48. 표본보다 긴 시차A lag longer than the record
네 칸의 자료를 시차 24로 차분하면 어떻게 되나요?
What results from lag-24 differencing a four-position series?
풀이와 확인할 이유Solution and explanation
모든 칸에서 필요한 과거가 없어 전부 null입니다. 실습은 허용 범위 내의 긴 시차 자체를 거절하지 않고 부족한 이력을 표시합니다. 계산 성공과 유효 관측 존재는 다릅니다.
All positions are null because history is unavailable. A permitted long lag need not be rejected; it yields an explicit no-observation result. Successful calculation does not imply usable observations.
49. 성장률과 달러 차분Growth rates versus dollar differences
1인당 실질 GDP가 100에서 110으로 변하면 달러 차분과 성장률은? 이 장은 무엇을 계산하나요?
GDP per capita changes from 100 to 110. What are dollar change and growth rate, and which does this chapter calculate?
풀이와 확인할 이유Solution and explanation
차분은 10달러, 성장률은 10%입니다. 이 장의 difference는 원래 단위 차분이며 로그나 성장률을 자동 적용하지 않습니다.
The change is ten dollars; growth is ten percent. The chapter’s difference operation uses original units without an automatic logarithm or percentage transformation.
50. 연간 달력The annual calendar
1980~2024년을 포함한 관측 수와 시차 1의 단위는?
How many annual observations span 1980–2024 inclusive, and what does lag one mean?
풀이와 확인할 이유Solution and explanation
2024−1980+1=45개입니다. 시차 1은 1년입니다. 45개 자료에서 끝 시차는 쌍 하나만 남으므로 짧은 시차와 같은 정보량으로 읽지 않습니다.
There are 45 observations. Lag one is one year. The endpoint lag retains one pair and carries less information than short lags.
51. 보존 빈티지의 범위Retained-vintage scope
2026-10-08 빈티지의 1980년 값을 사용해 회고 분석했습니다. 실시간 예측 검증이라고 부를 수 있나요?
A retrospective calculation uses the 1980 observation from the 2026-10-08 vintage. Is this real-time forecast validation?
풀이와 확인할 이유Solution and explanation
아닙니다. 당시 공개 시차·개정 전 값·예측 원점의 정보 집합을 재구성하지 않았습니다. 보존 빈티지의 기술 계산이라고 적습니다.
No. Historical release lags, unrevised values and forecast-origin information sets have not been reconstructed. Label it retained-vintage descriptive analysis.
52. 분에서 시간으로From minutes to hours
60분 중 58분만 전력이 관측된 시간에서 이 장의 참고 평균과 분석값은?
An hour has only 58 measured minute powers. What are the reference mean and analysis value here?
풀이와 확인할 이유Solution and explanation
58개 관측 분의 평균은 참고로 계산합니다. 완전 시간 분석값은 null입니다. 58분 평균을 60분의 완전 관측이라고 바꾸거나 kW를 Wh로 바꾸지 않습니다.
Calculate the available 58-minute mean as a reference, but complete-hour analysis power is null. Do not relabel partial coverage as complete or confuse kW with Wh.
53. 실제 가구의 분모Actual household denominators
10,080분, 유효 10,078분, 168시간, 완전 167시간을 서로 다른 분모로 설명하세요.
Explain 10,080 minutes, 10,078 valid minutes, 168 hours and 167 complete hours as different denominators.
풀이와 확인할 이유Solution and explanation
앞 두 수는 원본 분 격자와 실제 전력 측정 수입니다. 뒤는 집계 시간 격자와 완전성 규칙을 통과한 분석 시간 수입니다. 하나의 10,080개 독립 표본이라고 부르지 않습니다.
The first pair are source minute positions and measured powers; the second pair are hourly grid positions and eligible complete hours. None establishes 10,080 independent observations.
54. 소매 날짜의 누락Missing retail dates
374일 중 기록일 305일, 양 끝 제외 2일이면 분석일·null 수는?
A 374-day window has 305 file-active dates and excludes two endpoints. Find eligible dates and null positions.
풀이와 확인할 이유Solution and explanation
303일이 유효하고 71일이 null입니다. 69일은 파일 활동 없음, 2일은 불완전 창 끝입니다. null을 수요 0이라고 읽지 않습니다.
There are 303 eligible dates and 71 nulls: 69 without file activity plus two partial endpoints. Null does not mean zero demand.
55. 양수·음수·순단위Gross, negative and net units
한 날 Quantity가 6,4,−3이면 세 합과 이 장의 분석 양은?
A date has Quantity values 6,4,−3. Find gross positive, absolute negative and net units, and identify the analysis target.
풀이와 확인할 이유Solution and explanation
양수 10, 음수 절댓값 3, 순단위 7입니다. 이 장은 기록된 양의 단위 10을 씁니다. 가격을 곱한 매출이나 재고 보정 수요라고 부르지 않습니다.
They are ten, three and seven. The analysis uses ten recorded gross positive units, not price-weighted revenue or stockout-adjusted demand.
56. 출처 선택의 재현Reproducing source selection
품목 CSV만으로 기업 전체의 무기록 날짜를 독립 판정할 수 있나요?
Can a product-only CSV independently determine all no-activity dates for the entire retailer?
풀이와 확인할 이유Solution and explanation
아닙니다. 다른 품목 기록이 있을 수 있습니다. 전체 541,909행에서 확인한 날짜별 활동 집계를 공개 보조 입력으로 쓰며, 동반 코드는 이 집계의 출처 범위를 명시합니다.
No. Other products can have transactions. Use the published date-level coverage derived from all 541,909 rows, and explicitly identify that coverage input in the companion’s scope.
57. 평균 분산의 유한 공식Finite mean-variance formula
n=2, γ(0)=4, γ(1)=1에서 평균의 분산은? 독립 공식과 비교하세요.
For n=2, γ(0)=4 and γ(1)=1, find mean variance and compare independence.
풀이와 확인할 이유Solution and explanation
[2×4+2×1×1]/4=5/2입니다. 독립이면 4/2=2입니다. 양의 공분산 때문에 더 큽니다.
It is [2×4+2×1]/4=5/2 versus two under independence. Positive covariance increases uncertainty.
58. 음의 공분산과 평균Negative covariance and an average
앞 문제에서 γ(1)=−1이면?
Change γ(1) in the preceding problem to −1. What happens?
풀이와 확인할 이유Solution and explanation
평균 분산은 [8−2]/4=3/2로 독립일 때보다 작습니다. 실제로 가능한 전체 공분산 행렬인지도 확인해야 합니다. 여기 [[4,−1],[−1,4]]의 고윳값은 3과 5여서 양의 정부호입니다.
Mean variance becomes [8−2]/4=3/2, below independence. The full covariance matrix must also be valid; here eigenvalues three and five are positive.
59. 두 시점 PSDTwo-date positive semidefiniteness
분산 1인 두 시점의 공분산이 2일 수 있나요?
Can two variance-one observations have covariance two?
풀이와 확인할 이유Solution and explanation
아닙니다. 차이의 분산은 1+1−2×2=−2가 되어 불가능합니다. 모든 선형결합의 분산 비음성이 행렬 조건입니다.
No. Their difference would have variance 1+1−4=−2. Nonnegative variance of every linear combination is the covariance-matrix condition.
60. 완성 분석 메모A complete analysis memo
세 실제 사례 중 하나를 골라 자료 단위·창·변환·결측·ACF 관례·인과 한계를 포함한 메모를 쓰세요.
Choose an actual case and write a memo covering entity, window, transformation, missingness, ACF convention and causal limits.
풀이와 확인할 이유Solution and explanation
가구 예: Sceaux 한 가구의 2006-12-17~23 원본 10,080분을 168시간으로 집계하고 완전 167시간만 분석한다. 수준과 24시간 차분을 원래 달력에 비교하며 관측 전체 평균·고정 SS·사용 쌍 합 ACF를 쓴다. 결과는 일주일의 기술 통계이며 모든 가구 대표성·정상성·기기 사용의 인과 효과를 보장하지 않는다. 자신의 메모는 선택한 CSV와 웹·Python·R 재현 결과로 뒷받침한다.
Household example: aggregate 10,080 minute positions from one Sceaux household during 17–23 December 2006 into 168 hours, with 167 complete-hour values. Compare levels and lag-24 differences on the original clock using observed-global-mean, fixed-SS available-pair ACF. Results describe one week and establish neither population representativeness, stationarity nor appliance effects. Support the memo with selected CSVs and matching web, Python and R results.
자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.