Monash University · FACULTY OF INFORMATION TECHNOLOGY

FIT5202 · Data Processing for Big Data

- one subject, every graph, every model, every mark
Information Technology14 Chapters7-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 11 of 11 · FIT5202

Granularity Reduction in Data Streams

Week 11 closes the Velocity theme of Monash FIT5202: reducing the granularity (volume) of streams through windowed aggregation and sampling, mixed levels of granularity (temporal and spatial), and sensor arrays with their reduce/merge/normalize aggregation methods. It frames the accuracy-versus-throughput trade-off under velocity constraints, including load shedding. Classifying a window scheme and computing a sensor-array reduce-then-merge are common written-response items.

In this chapter

What this chapter covers

  • 01Granularity as level of detail: level-0 raw data (high granularity) vs aggregated higher levels
  • 02Overlapped windows, NO reduction (slide = 1 record → moving average, #outputs = #inputs)
  • 03Overlapped windows, WITH reduction (slide > 1 record)
  • 04Non-overlapped (tumbling) windows, WITH reduction (slide = window size)
  • 05Sampling to reduce volume (random with/without replacement, stratified, balanced)
  • 06Mixed levels of granularity: temporal-based and spatial-based
  • 07Sensor arrays: same-thing arrays (Reduce then Merge / Merge then Reduce)
  • 08Different-thing arrays (Reduce–Normalize–Merge / Normalize–Merge–Reduce); load shedding
Worked example · free

Classifying a window scheme and a sensor-array reduce-then-merge

Q [5 marks]. (a) Monthly sales are summarised with a 6-month window that slides by 1 record (a rolling 6-month average). Classify this window scheme. (b) Two co-located temperature sensors report over a 3-minute window: Sensor A = {20, 22, 24} °C and Sensor B = {21, 23, 25} °C. Using the Reduce-then-Merge method, find the single aggregated value. (5 marks)
  • +1(a) The slide is 1 record while the window is 6 months, so consecutive windows overlap and the number of output records equals the number of inputs. This is Overlapped windows with NO granularity reduction — a pure moving average.
  • +1(b) Reduce step for Sensor A (average over the time window): (20 + 22 + 24)/3 = 66/3 = 22 °C.
  • +1Reduce step for Sensor B: (21 + 23 + 25)/3 = 69/3 = 23 °C.
  • +1Merge step (aggregate across the two sensors): (22 + 23)/2 = 22.5 °C.
  • +1Reduce-then-Merge collapses time first, then space. Merge-then-Reduce would average across sensors at each timestamp first, then over time; for simple averaging the result matches (22.5 °C), but the order matters when sensors have different sampling rates or units.
(a) Overlapped windows with no granularity reduction (a rolling/moving average). (b) Reduce-then-Merge gives 22.5 °C (Sensor A reduces to 22 °C, Sensor B to 23 °C, then merge to 22.5 °C).
Sia tip — Classify a window by comparing slide to window size: slide = 1 record → overlapped, no reduction; slide > 1 record → overlapped with reduction; slide = window size → tumbling with reduction. For sensor arrays, Reduce = over time, Merge = over sensors — state which axis each step collapses.
Glossary

Key terms

Granularity
The level of detail at which data are stored. Level-0 is raw, high-granularity data; higher levels are more aggregated and lower granularity. Reducing granularity trades detail for efficient retrieval and throughput.
Overlapped window (no reduction)
A window that slides by one record, so consecutive windows overlap and the number of outputs equals the number of inputs — a pure moving average with no granularity reduction.
Tumbling window (with reduction)
A non-overlapping window whose slide equals its size, so consecutive windows do not overlap and the output rate falls below the input rate, reducing granularity.
Sensor array
A group of sensors deployed in a geometric pattern; adding sensors adds observation dimensions for a better picture. Arrays either measure the same quantity or grouped different quantities.
Reduce then Merge
A same-thing sensor-array aggregation: first Reduce each sensor over time windows, then Merge across sensors. The alternative order is Merge then Reduce.
Load shedding
Deliberately dropping some stream data when arrival rate exceeds processing capacity, trading accuracy for sustained throughput under velocity constraints.
FAQ

Granularity Reduction in Data Streams FAQ

How do I classify a windowed granularity-reduction scheme?

Compare the slide to the window size. If the slide is one record (or one time unit), consecutive windows overlap and outputs equal inputs — overlapped, no reduction (a moving average). If the slide is larger than one record but smaller than the window, it is overlapped with reduction. If the slide equals the window size, the windows are tumbling (non-overlapping) with reduction.

What is the difference between Reduce-then-Merge and Merge-then-Reduce?

In a same-thing sensor array, Reduce averages each sensor over time and Merge averages across sensors. Reduce-then-Merge collapses time first; Merge-then-Reduce collapses across sensors first. For plain averaging with aligned samples the answers coincide, but the order matters when sensors differ in sampling rate, reliability or units (where normalization is needed).

Why reduce the granularity of a stream at all?

Because streams are unbounded and you cannot store or process every raw reading indefinitely. Aggregating into coarser windows, sampling, or shedding load reduces volume and cost so the system keeps up under velocity constraints — at the price of some detail, which is the accuracy-versus-throughput trade-off.

Can AI help me with granularity reduction and sensor arrays?

Yes. Sia can classify window schemes with you, work a Reduce-then-Merge or Merge-then-Reduce sensor-array calculation, and explain sampling and load shedding — step by step, checking your reasoning. It does not complete graded assessment, and Monash academic-integrity rules apply.

Study strategy

Exam move

Nail the window classification rule (slide vs window size) so you can label any scheme instantly, and practise a sensor-array reduce-then-merge, stating which axis (time or sensors) each step collapses. Keep the accuracy-versus-throughput framing in mind for the conceptual parts (sampling, load shedding, mixed temporal/spatial granularity). This is the final examinable Velocity topic, so rehearse a full example on Moodle through SWOTVAC and ask Sia for fresh window-classification and sensor-array drills.

Working through Granularity Reduction in Data Streams in FIT5202? Sia is AskSia’s AI Information Technology tutor — ask any FIT5202 Granularity Reduction in Data Streams question and get a clear, step-by-step explanation grounded in how FIT5202 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 47 of your Monash University subjects - and 1,000+ Bibles across every Australian university.
Sia - your FIT5202 tutor, unlimited, worked the way the exam marks it
The full 7-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$25/ month
30-day money-back · cancel in one tap · how it works
Unlock the full FIT5202 Bible + 47 Monash University subjects解锁完整 FIT5202 Bible + Monash University 47 门科目
$25/mo