How Can We Combine Neighbouring Observations Without Losing the Time and Boundary Information? Declare the input sequence, the weights, the index convention and the treatment of values beyond the recorded range. A moving-window calculation can summarise neighbouring observations, but its output is not automatically a new observation. Learners must be able to reconstruct each output from the input and explain what the transformation changes.
This international lab extends Temporal Sampling and Aliasing, Finite Difference and Rates, Matrix Transformations and Aggregation and Weighting through invented numerical sequences. Vocabulary Coding and Engineering (VCE) and EnDist are proposed frameworks, not validated interventions. No actual instrument data or AI performance measurement is represented; future superintelligence remains hypothetical.
- Specify a finite sequence and an indexed weight sequence.
- Compute full discrete convolution from contributions.
- Distinguish a causal output from a centred weighted average.
- Check output length, total and treatment of boundaries.
- Explain why asymmetric kernels reveal indexing mistakes.
- Complete a fresh transfer and check the result independently.
Choose your reading route
Coursework series: Temporal Sampling and Aliasing Lab · Finite Difference and Rates Lab · Matrix Transformations Lab · Aggregation and Weighting Lab · Vocabulary Coding and Engineering
Continue this coursework series: Convolution and Moving Window Lab (this article) · Optimistic Concurrency and Lost Updates Lab · Total Expectation and Variance Lab · Parallel Structure and Coordination Studio
Full chapter index
Chapters 1–5
Chapters 6–10
Chapters 11–15
Chapters 16–20
Chapters 21–25
Chapter 26
CHAPTER 1 OF 26 · Understand the capability
1. The capability: account for neighbouring contributions
A fictional display counter records a short sequence of values at equally spaced steps. A coordinator wants to transform each value into contributions spread across several output steps. The same transformation may also be viewed as a window sliding across the input. A learner needs to explain both views and identify precisely where the contributions land.
The deliverables are an indexed source register, a declared weight rule, a contribution table, an independent total check and a fresh transfer. The goal is to recognise what a transformed signal retains and loses, not to mistake a smoothed line for an original record or assert that a particular filter works in every domain.
CHAPTER 2 OF 26 · Understand the capability
2. Define finite discrete convolution
Let x have values at indices 0 through N−1, and let h have weights at indices 0 through M−1. Define both sequences as zero outside their recorded index ranges for this mathematical exercise. The full discrete convolution y has values y[n]=Σ(k) x[k]h[n−k], where the sum runs over the finite contributing indices.
Only terms with valid indices in both sequences can be nonzero under the stipulated zero-extension rule. The full output includes indices zero through N+M−2, giving N+M−1 positions even if some output values happen to be zero. The NumPy reference explains this full-convolution mode and how other output modes retain different portions.
Background reading: NumPy documentation: discrete linear convolution and output modes.
CHAPTER 3 OF 26 · Understand the capability
3. Vocabulary Coding and Engineering for window operations
Distinguish sample, index, weight, kernel, window, convolution, padding, alignment and output. A zero inserted by a mathematical boundary rule is not a recorded zero. A calculated output value is not a newly observed sample. A window weight tells how the declared inputs contribute, not necessarily how reliable they are.
Under proposed VCE, the calculation record should retain the formula, support of each sequence, unit and boundary convention. Another person must be able to reconstruct the same index without guessing what earlier or later means. This keeps a compact expression from losing the information needed to interpret it.
Related framework: Vocabulary Coding and Engineering.
CHAPTER 4 OF 26 · Work through the example
4. Read the fictional counter register
The invented counter sequence has values x[0]=2, x[1]=0, x[2]=3 and x[3]=1. The weight sequence is h[0]=1, h[1]=2 and h[2]=1. All values are exact abstract counts or dimensionless weights. The sequences are zero outside their stated ranges by convention.
The intended full output has six positions numbered 0 through 5. Think of each input as generating three delayed contributions: one times the value now, two times the value one step later, and one times the value two steps later. This is a stipulated linear transformation, not a measured physical response.
CHAPTER 5 OF 26 · Work through the example
5. Compute using shifted contributions
The input at index zero contributes 2,4,2 to positions 0,1,2. The zero input at index one contributes nothing. The value three at index two contributes 3,6,3 to positions 2,3,4. The value one at index three contributes 1,2,1 to positions 3,4,5.
In the table, use one row per output position and add the contributions across that row. This construction makes it easy to see that two or more inputs may contribute to a given output. It is also an independent way to check a sliding-window calculation.
| Output n | From x[0] | From x[1] | From x[2] | From x[3] | Total |
|---|---|---|---|---|---|
| 0 | 2 | 0 | 0 | 0 | 2 |
| 1 | 4 | 0 | 0 | 0 | 4 |
| 2 | 2 | 0 | 3 | 0 | 5 |
| 3 | 0 | 0 | 6 | 1 | 7 |
| 4 | 0 | 0 | 3 | 2 | 5 |
| 5 | 0 | 0 | 0 | 1 | 1 |
CHAPTER 6 OF 26 · Work through the example
6. Compute the full output
The row totals give y=[2,4,5,7,5,1]. For example, at output index two, the contribution from x[0] is 2×1 and that from x[2] is 3×1; x[1] contributes zero. Thus y[2]=5.
At index three, x[1] contributes zero, x[2] contributes 3×2=6, and x[3] contributes 1×1=1, giving seven. Verify the first and last positions using only the terms that actually overlap. The last output is one, not an additional observed input.
CHAPTER 7 OF 26 · Work through the example
7. Express the same rule as a moving window
For these three weights, y[n]=x[n]+2x[n−1]+x[n−2], taking out-of-range inputs as zero. At n=4, x[4]=0 by convention, x[3]=1 and x[2]=3, so y[4]=0+2+3=5.
This is a causal indexing convention in the sense that y[n] uses the current or earlier input indices only. It is not a claim that the transformation is physically realised. Retain the index labels because shifting the output can change a later interpretation.
CHAPTER 8 OF 26 · Work through the example
8. Check the sum of the full convolution
The source values sum to six and the weights sum to four. Every input contributes its value times each of the three weights somewhere in the full output. Therefore the sum of all full outputs is (Σx)(Σh)=6×4=24.
The output sums to 2+4+5+7+5+1=24, confirming this check. The general finite-sequence identity follows by rearranging the finite sum over all input-weight pairs. It applies to full convolution, not automatically to a trimmed portion of its output.
CHAPTER 9 OF 26 · Work through the example
9. Normalise the weights for an averaging rule
Divide each weight by four to obtain [1/4,1/2,1/4]. The corresponding full output is [1/2,1,5/4,7/4,5/4,1/4]. Its sum is six, equal to the sum of the source values under the full-output convention.
At a position with all three inputs in range, this is a weighted arithmetic mean of those observations. At an edge it includes mathematical zeros under our convention. Whether padding is appropriate depends on the meaning of the record. Normalising the weights does not create missing evidence.
CHAPTER 10 OF 26 · Identify failure modes
10. Detect a misleading boundary claim
A generated explanation states that the value y[0]/4=0.5 is the weighted average of three observed inputs. The first input is two, but the two earlier inputs are outside the register. They were replaced by zeros solely for the calculation.
Repair the report to identify the padded window. If the intended rule is to average only available values, it needs a different denominator at that boundary. For instance, renormalising the available weight one at n=0 yields two. This is a changed rule, not a correction to the declared zero-padded convolution.
CHAPTER 11 OF 26 · Identify failure modes
11. Choose a centred alignment explicitly
Because our weight sequence is symmetric, define a centred smoother z[t]=y[t+1]/4 for t=0,1,2,3. It uses (x[t−1]+2x[t]+x[t+1])/4 with zero padding. The four outputs are 1,5/4,7/4 and 5/4.
The result is centred on the input labels, but it uses a future sample relative to each interior t. It is unsuitable as an immediately available real-time output if that future value has not arrived. A numerical transformation may be legitimate retrospectively while unavailable at the time of a decision.
CHAPTER 12 OF 26 · Identify failure modes
12. Compare full, valid and trimmed results
Full convolution gives six output positions. If we retain only positions where all three weight indices overlap recorded inputs, n=2 and n=3, the valid outputs are five and seven. Their normalised values are 5/4 and 7/4.
The centred four-position result from chapter 11 uses a different trimming and alignment rule. Its sum is 21/4, not six. The full-sum identity did not fail; the trimming omitted edge contributions. State the selected indices rather than relying on a software mode name alone.
| Representation | Retained full indices | Values |
|---|---|---|
| Full | 0–5 | 2, 4, 5, 7, 5, 1 |
| Valid | 2–3 | 5, 7 |
| Centred, normalised | 1–4, relabelled 0–3 | 1, 5/4, 7/4, 5/4 |
CHAPTER 13 OF 26 · Identify failure modes
13. Use an asymmetric weight sequence to check order
The main kernel is symmetric, so accidentally reversing it may conceal an indexing mistake. In a separate example, use x=[2,3] and h=[1,4]. Full convolution gives [2,11,12] because the middle term is 2×4+3×1.
If the weights are reversed to [4,1], the output is [8,14,3]. Both outputs sum to 25, so the sum check alone cannot detect the changed weights. Use an asymmetric test and check actual indexed contributions rather than relying on total preservation.
CHAPTER 14 OF 26 · Identify failure modes
14. Distinguish a convolution from a forward comparison
A learner may define a forward window dot product as q[t]=x[t]h[0]+x[t+1]h[1]+x[t+2]h[2] wherever all terms exist. This compares a block of inputs with weights in their listed order. The orientation differs from the delayed-index formula of chapter 7.
For a symmetric kernel, some aligned values coincide. For an asymmetric kernel they need not. When a software function is used, read its definition rather than inferring whether it flips a sequence from the word filter or correlation. The lab’s formulas, not terminology alone, determine the results.
CHAPTER 15 OF 26 · Identify failure modes
15. Check linearity with a concrete case
If every source value is doubled while the weights stay fixed, every contribution and full output doubles. The main output becomes [4,8,10,14,10,2]. This is linear scaling under the fixed rule.
Adding a second input of the same indexed support before convolution also adds the corresponding transformed outputs, because the finite sums distribute over addition. A changed boundary renormalisation or a nonlinear operation such as taking a median should not automatically be assigned the same properties.
CHAPTER 16 OF 26 · Identify failure modes
16. Recognise what smoothing cannot establish
The original four values include a zero at index one and a three at index two. The centred weighted result replaces their local pattern with a mixture of neighbouring contributions. It may be useful for a declared purpose, but it no longer reports the exact original values at those indices.
Do not infer that an apparent trend in the smoothed sequence establishes a causal change, a stable process or reduced measurement noise. Those claims require an appropriate model and evidence. Preserve the raw sequence and transformation settings so a reader can inspect what was changed.
CHAPTER 17 OF 26 · Identify failure modes
17. Audit an AI-generated transformation
Ask an assistant to generate full and centred outputs from the same inputs. Independently verify the first, middle and final full outputs, then check the full sum. Compare the shifted contribution table with the window formula.
Require an asymmetric test because the symmetric kernel could hide a reversal. If an output is numerically right but labelled with the wrong time, correct the alignment before accepting the report. Never replace the original source with the smoothed values and then present them as raw observations.
CHAPTER 18 OF 26 · Identify failure modes
18. A prompt for reproducible convolution
Try: With x=[2,0,3,1] and h=[1,2,1] indexed from zero and extended by zeros, compute full convolution by shifted contributions and by y[n]=Σ(k)x[k]h[n−k]. Show the output indices and verify the total product identity.
Continue: divide weights by four, construct the centred four-position output using z[t]=y[t+1]/4, and identify valid positions. Explain boundary padding and the use of future samples. Test x=[2,3], h=[1,4] to distinguish weight order. Do not claim that these calculations describe measured signals.
CHAPTER 19 OF 26 · Identify failure modes
19. A proposed assessment rubric
Score five dimensions from zero to three: explicit input and boundary definitions; correct contribution trace; justified sum and alignment checks; recognition of changed rules and lost information; independent transfer. Zero indicates absent evidence, one substantial errors, two mostly correct with a gap, three reproducible reasoning.
Record assisted output, independent learner calculation and another recipient’s reconstruction separately. Keep agreed accessibility supports such as labelled tables and verbal explanations. Maximum fifteen is an original classroom proposal, not a validated measure of intelligence, mathematical ability or educational effectiveness.
CHAPTER 20 OF 26 · Test independent transfer
20. Independent transfer: an asymmetric window
A fresh invented input is [1,2,0,4] and its kernel is [2,1]. Use full zero-padded convolution. Determine the output length, every output value and the total. Compare the result of reversing the kernel, then calculate the valid positions of the original operation.
Worked check: the full output is [2,5,2,8,4], length five. Its sum is 21=(1+2+0+4)(2+1). Reversing the kernel gives [1,4,4,4,8], also summing to 21. The original valid positions are n=1,2,3, with values 5,2,8. Reconstruct at least one contribution at each boundary and explain why the two totals alone cannot establish orientation.
| n | Original kernel [2,1] | Reversed kernel [1,2] |
|---|---|---|
| 0 | 2 | 1 |
| 1 | 5 | 4 |
| 2 | 2 | 4 |
| 3 | 8 | 4 |
| 4 | 4 | 8 |
CHAPTER 21 OF 26 · Test independent transfer
21. Primary learning: distribute paper tokens across rows
Use adult-prepared cards labelled with small numbers, and a strip indicating that each card contributes tokens to its own position and its neighbour. Let children add the overlapping contributions and count the resulting total. Use tactile or spoken labels where appropriate.
Start with only two inputs and two weights. A child can explain why the output has an additional position and why an absent input is not a recorded value. Formal convolution notation can wait. Adults may prepare checked material with AI without requiring direct child access.
CHAPTER 22 OF 26 · Test independent transfer
22. Secondary learning: connect weighted sums and shifts
Students can compare the shifted contribution table and the equivalent window equation, prove the total identity for finite sequences and inspect the centred alignment. Give a deliberate asymmetric counterexample and ask which operation a proposed table actually performs.
Introduce valid and trimmed outputs through explicit indices, not ambiguous names. A spreadsheet may support calculations, but learners should independently verify a middle term and a boundary term. Use accessible tables or verbal derivations instead of relying on a visually dense signal chart.
CHAPTER 23 OF 26 · Test independent transfer
23. University, institutions and EnDist
Advanced students can study convolution as a linear operator, discrete signal processing, convolution of distributions and efficient computation under suitable assumptions. Real applications require an appropriate sampling model, units, boundary conditions and validation. This toy register does not establish a useful filter for an actual system.
Under proposed EnDist, useful distribution transfers not only a transformed output but also the raw input, weight sequence, index convention and evidence limits. A receiver can reproduce or revise the operation without asking the original assistant. Measure that demonstrated transfer separately from artifact correctness.
CHAPTER 24 OF 26 · Four-week coursework plan
24. A four-week coursework sequence
Week one: record the source and weight sequences, define zero padding and construct full contributions. Week two: derive the moving-window formula and full-sum identity, then normalise weights and check outputs. Keep the input and trace together.
Week three: inspect centred, valid and asymmetric cases and repair misleading generated reports. Week four: release the fresh transfer before its answer, and ask another learner to reconstruct the alignment and boundary checks. Adapt pacing and ordinary access supports; this is a proposed sequence, not validated instruction.
CHAPTER 25 OF 26 · Four-week coursework plan
25. Questions about convolution and boundaries
Does convolution always produce a sequence of the same length? No; full finite convolution here has N+M−1 output positions. Does a normalised kernel guarantee that any trimmed result preserves the full input sum? No. Does the same total establish the same output? No.
Can a centred average be calculated before future values arrive? Only if those values are already available or replaced by a separately declared assumption. Does smoothing produce new observations? No. Keep computed quantities, recorded observations and boundary assumptions distinct.
CHAPTER 26 OF 26 · Four-week coursework plan
26. Sources, boundaries and next steps
NumPy’s convolution documentation supplies the standard technical definition and output-mode background. The sequences, shifted contributions, smoothing comparisons, transfer and rubric are original fictional teaching constructions. They are not measurements or evidence of improved learning.
Construct another asymmetric kernel and two sequences that have the same total but different arrangements. Ask a receiver to calculate the full and valid outputs using declared indices. The enduring capability is carrying the transformation and its boundary conditions with the result, rather than treating the output as self-explanatory.
References: NumPy documentation: discrete linear convolution and output modes.
Related coursework: Temporal Sampling and Aliasing Lab · Finite Difference and Rates Lab · Matrix Transformations Lab · Aggregation and Weighting Lab.