TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Calendar time and observation time are different clocks

Count source rows, valid observations and elapsed days separately before constructing a rolling window or duration statistic.

Applied research methods · Actual observations

Research objective

Count source rows, valid observations and elapsed days separately before constructing a rolling window or duration statistic.

This lab uses the published H.10 observations listed in the worked example. The task is to make a defensible calculation and identify what it can establish. All underlying rates are historical source observations; any transformation, estimated statistic or resampling exercise is explicitly named. The source slice is downloadable so the result can be checked independently.

Selected source window: INR 2020-01-01 to 2020-02-29. Published quote directions: INR: INR per USD.

Worked sample

Calculated from the preserved source observations
Source weekday rows43
Valid observations / ND rows40 / 3
First / last valid date2020-01-02 / 2020-02-28
Elapsed calendar days between valid endpoints57
Consecutive valid-observation changes39
Largest calendar gap4 days: 2020-01-17 to 2020-01-21

A requested calendar range can contain weekends, source rows with ND, and valid rates. These are three different sets. A window defined as twenty observations therefore need not span twenty calendar days, and twenty weekday rows may still include unavailable values.

This INR slice has 43 source weekday rows but only 40 valid observations. The valid endpoints are 57 calendar days apart. There are 39 adjacent valid-observation changes because a change requires two endpoints.

Method and interpretation

  1. Retain all original source rows, including ND, when counting the requested source slice.
  2. Count valid observations separately and compute changes only between valid endpoints.
  3. Calculate calendar gaps by date subtraction; do not infer duration from row position.

The longest gap in this slice is 4 calendar days, from 2020-01-17 to 2020-01-21. The single change across that gap summarizes the entire interval. It does not provide separate observed changes for the intervening dates.

Keep time duration and observation count in separate fields. A rolling statistical model may deliberately use observation time, while a financing or elapsed-risk question may require calendar time. Choosing one clock does not authorize silently relabeling it as the other.

Research habit: Use separate columns for date duration, source-row count and valid-observation count.

Three questions

Question 1

How many valid-observation changes can be formed?

  1. 39
  2. 40
  3. 43
Show answer and reasoning

39. Each adjacent pair forms one change, so n valid levels give n−1 changes.

Question 2

Does a twenty-observation window always span twenty calendar days?

  1. Yes
  2. Only for INR
  3. No
Show answer and reasoning

No. Weekends and missing observations separate the two clocks.

Question 3

What is an ND source row?

  1. An implied unchanged rate
  2. An unavailable observation
  3. A zero exchange rate
Show answer and reasoning

An unavailable observation. ND is preserved as missing and is neither zero nor a carried-forward price.

Source observations and reproducibility

Download this lab’s original observations (CSV) · Download calculated values and method (JSON)

Provider: Board of Governors of the Federal Reserve System, H.10. These are noon New York buying-rate reference observations. USD value per foreign currency unit is the published rate for EUR, GBP, AUD and NZD, and its reciprocal for the other included currencies. ND values are preserved as missing and never silently filled. Original observations contain no intraday OHLC or executable spread.

The source data are reused under the Board’s public-domain website policy, unless otherwise indicated; no separate third-party rights notice was identified for these tables. TradeViora Academy’s computations and explanations are original. Source attribution does not imply Board endorsement. Provider identifiers, retrieval timestamps, full snapshots and hashes accompany every source series.

Primary sources and data integrity

Lab source CSV SHA-256: 0f8d5032c478bbceaea3b3349a70834381f07292e6cf6af106900cac6adeae53