Zum Inhalt springen

English:Use ICT - Science Year 13

Aus MOOCsWiki Staging
aiMOOC-Siegel aiMOOC

Use ICT - Science Year 13

QR-Code


Introduction

A logger records light, air temperature and relative humidity around a small classroom shade model. Use the shared time base, keep a missing value visible and test a simple cooling prediction with a short Python program. The data are supplied fictional records.

Choose and document three sensor channels

Select a sensor for each quantity. A light sensor gives an illuminance reading in lux in this record. An air temperature channel gives degrees Celsius, and relative humidity is stated in per cent. Keep sensor locations and orientations stable when the question calls for them. A logger repeats measurements automatically, but repeated data still depend on the calibration, response time and fit between the sensor and the quantity you want.

Instrument used for recording a numerical temperature or environmental reading
Identify which unit would be assigned to a channel and which details the logger record also needs.

Label the instrument or teaching identifier, quantity, unit, interval, location and start reference in a record. If two devices have separate clocks, use a shared observable event or independently known time reference before comparing timings. Here one logger records the channels together. A sample at 0 seconds means the start of this classroom record.


Set a useful measurement interval

The model interval between rows is 60 seconds. A change that lasts 15 seconds might start and finish between two observations, so the record could miss it. Choosing a shorter interval can capture more detail, within the capabilities of the logger and the response of the sensor. A sensor taking time to settle can show an apparent delay even when the underlying condition changes abruptly. Use a short pilot to check the time scale of the process and your intended sampling. With samples at 0 and 3,600 seconds, inclusive endpoints in a one-hour plan give 61 records at 60-second spacing or 121 records at 30-second spacing. Count rows, then channels. Three readings per row would give 183 or 363 possible measurements, respectively. If a scheduled measurement is missing, keep the timestamp and mark that channel unavailable. Such a missing value is distinct from a measured zero.

Read the sample before deriving values

The table records a change in shading at 120 seconds. It gives sample times rather than continuous observations. The humidity at 180 seconds is not available in the exercise.

Elapsed time in s Air temperature in degrees Celsius Illuminance in lux Relative humidity in per cent
0 22.0 800 55
60 22.4 805 55
120 22.9 390 56
180 22.7 400 Unavailable
240 22.4 402 57

For the first two points the mean illuminance is 802.5 lux. For the last three it is about 397.3 lux. Relative to the first group this is a decrease of about 50.5 per cent. The cooling rate between 120 and 240 seconds is −0.25 degrees Celsius per minute. For temperature keep used time points and units explicit. For humidity a count of valid readings is four. Nothing in that missing entry sets a humidity value of zero at 180 seconds. r=22.4−22.9(240−120)/60=−0.25.


Process the sensor file with a transparent program

Save the original data separately from a derived summary. The example uses an in-memory CSV text representing the supplied table. Its times are integers in seconds, and a blank field means an unavailable humidity measurement. The code counts available humidity readings and finds the two illuminance averages. It performs no file writes. Check the result against the table used to write the record.

from csv import DictReader
from io import StringIO
from statistics import mean

log = """time_s,temp_c,light_lx,humidity_pc
0,22.0,800,55
60,22.4,805,55
120,22.9,390,56
180,22.7,400,
240,22.4,402,57
"""
rows = list(DictReader(StringIO(log)))
times = [int(row["time_s"]) for row in rows]
if any(current >= following for current, following in zip(times, times[1:])):
    raise ValueError("Timestamps must be in increasing order.")
before = [float(row["light_lx"]) for row in rows if 120 > int(row["time_s"])]
after = [float(row["light_lx"]) for row in rows if 120 <= int(row["time_s"])]
valid_humidity = [
    float(row["humidity_pc"]) for row in rows if row["humidity_pc"] != ""
]
drop = 100 * (mean(before) - mean(after)) / mean(before)
print(f"Before: {mean(before):.1f} lux")
print(f"After: {mean(after):.1f} lux")
print(f"Reduction: {drop:.1f} per cent")
print(f"Humidity readings: {len(valid_humidity)}")

Changing the humidity gap to a measured zero increases the humidity count by one without changing the light averages. Use this test to check that the program treats zero and missing differently. A version for real records should also test whether both light periods actually contain observations, flag units confidently and retain the original table for review.

Compare a logged trend with a model

Start a simple model at the shaded time of 120 seconds. The final reference temperature is 22.0 degrees Celsius, the initial excess is 0.9 degrees, and the proposed excess falls by a factor of one half every 120 seconds. The equation uses elapsed seconds and applies from 120 seconds in this model. It is a proposed curve and its time parameter is specified for the exercise. T(t)=22.0+0.92−(t−120)/120.

Scatter plot with a fitted line and points above and below it
Compare the plotted points with the line to interpret the direction of a residual.

At 180 seconds the model gives about 22.64 degrees Celsius. The observed value is 22.7, giving an observed-minus-predicted residual of about +0.06 degrees. At 240 seconds the prediction is 22.45 degrees and the residual is −0.05 degrees. If the temperature sensor's stated allowance were ±0.2 degrees for each observation, both residuals would be small in comparison. Neither two points nor the allowance establishes the model as uniquely correct. A repeat with a shared event marker and more samples around the change can test alternatives. Report assumptions, units and a note on whether the observed order supports a causal explanation.

Interactive Tasks


Quiz: Test Your Knowledge

What distinguishes the three model channels? (Each measures a specified quantity with its own unit) (!Every channel measures the same quantity without labels) (!Light is measured in degrees Celsius) (!Humidity and illuminance use the same calibration)




Why use a shared time base? (It lets the readings be compared at the same recorded times) (!It guarantees all readings at the same time have the same value) (!It replaces the calibration of each sensor) (!It makes the missing data equal to zero)




Why can a sixty-second recording interval miss a fifteen-second change? (The change can occur entirely between two observations) (!A shorter change must be visible at every scheduled time) (!A data logger only records mathematical averages of all possible times) (!Its recorded measurements are automatically continuous)




How many inclusive timestamps are there in one hour at sixty-second spacing? (61) (!60) (!120) (!3600)




How is the missing humidity observation represented in the course CSV? (By a blank field at its recorded time) (!By a numeric zero) (!By deleting all records after 120 seconds) (!By copying the previous temperature)




What is the mean illuminance after the change in the supplied model? (About 397.3 lux) (!802.5 lux) (!About 50.5 lux) (!About 22.4 lux)




What is the approximate rate of air temperature change from 120 to 240 seconds? (Minus 0.25 degrees Celsius per minute) (!Plus 0.25 degrees Celsius per minute) (!Minus 2.0 degrees Celsius per minute) (!Zero degrees Celsius per minute)




Which expression defines a residual in this course? (Observed value minus model value) (!Model value minus measured time) (!Count minus the unit of measurement) (!A measured quantity divided by its axis label)




What is the proposed temperature at the end of the given model interval? (22.45 degrees Celsius) (!22.90 degrees Celsius) (!24.00 degrees Celsius) (!Exactly 0.45 degrees Celsius)




Why is a close two-point agreement limited evidence? (Other models could fit within the observation uncertainty) (!It provides proof that every independent sample behaves identically) (!All fitted models become exact real laws) (!It means the starting observations should be discarded)





Memory Game

Data logger Device or system recording measurements with their observation times
Sampling interval Time difference between scheduled observations
Illuminance Quantity reported in lux for the light channel
Time reference Agreed starting point or event for comparing timestamps
Missing field Mark indicating that an observation is unavailable in one channel
Residual Observed value minus the value predicted by a model





Drag and Drop

Match the situations Possible responses
Identify the source variable Record the sensor and the unit for each channel
Check the observed order Use timestamps from the same reference
Treat one unavailable humidity measurement Preserve the row and distinguish the empty field from zero
Reproduce a comparison Define the time boundary and recompute the two group means
Test the cooling proposal Compare residuals with the assumed reading allowance and collect suitable repeats





Crossword Puzzle

logger Device that saves time-labelled data
interval Gap between two consecutive scheduled observations
illuminance Quantity reported in lux in the teaching record
offset Persistent difference a reference check can reveal
timestamp Recorded identifier giving the time of an observation
residual Difference remaining after subtracting a prediction





LearningApps

If the search returns no suitable result, use the matching task on this page.


Cloze Text

Complete the text.
Give every sensor

its unit. Plan the recording

around the event and sensor response. Use a common

reference to compare readings. Keep an empty field for a

reading. Use the supplied

to make a predicted value. Subtract the prediction from the observed value to obtain a

.



Open Tasks


Easy

  1. Name the three units: State how light, air temperature and relative humidity are recorded in the sample.
  2. Read the nominal interval: Find the seconds between the second and third recorded rows.
  3. Find the available observations: Count the available humidity entries without treating the missing one as zero.
  4. Identify the file representation: Explain how a CSV line connects time to several values at once.


Standard

  1. Calculate the one-hour row counts: Include both endpoints when comparing sixty-second and thirty-second spacing.
  2. Summarise the change in illuminance: Find both means and the percentage decrease from the earlier condition.
  3. Test a numeric zero: Predict what changes if only the blank humidity field is replaced by a measured zero.
  4. Calculate an endpoint residual: Find the prediction and observed-minus-predicted difference for 240 seconds.


Advanced

  1. Align two separate instruments: Suggest a common event marker and explain what a difference between the two clock records could do to inference.
  2. Judge the need for faster sampling: Decide whether sixty seconds suits a brief light interruption and name one sensor property to check.
  3. Test the timestamp assertion: Predict what happens if two adjacent rows share one timestamp and explain why the check helps.
  4. Debate two possible cooling explanations: Explain why changes in the air or the sensor response could alter two recorded temperatures, and name additional measurements.


Learning Check

  1. Design a suitable classroom record: State the channels, units and at least three pieces of metadata for synchronised observations of a shade change.
  2. Compare plans and measurement counts: Calculate the rows and total three-channel readings for each one-hour interval plan. Explain why more samples might fail to capture a rapid real change with a slow sensor.
  3. Calculate trends from the supplied data: Compute both light averages, the percentage difference and the two-minute cooling rate. Identify the missing humidity entry.
  4. Check against a known answer: Predict the output for the original CSV and explain the effects of either a missing humidity entry or a measured zero.
  5. Compare two observed and predicted values: Find the predictions and residuals for 180 and 240 seconds. Evaluate them against the stated illustrative reading allowance.
  6. Plan a follow-up record: Specify a way to test an alternative explanation involving measurement delay or a change in room conditions.


Worked checks

  1. Record temperature in degrees Celsius, illuminance in lux and relative humidity in per cent. Document time reference, sensor position, units and instrument identifier or calibration check. Use a shared clock or a known event to align readings.
  2. Sixty-second spacing gives 61 timestamps and 183 possible readings. Thirty-second spacing gives 121 timestamps and 363 possible readings. A sensor that takes time to respond can smooth a brief event even when many readings are recorded.
  3. The light averages are 802.5 lux and approximately 397.3 lux. The reduction relative to the first mean is about 50.5 per cent. Temperature drops by 0.5 degrees in two minutes, giving −0.25 degrees per minute. Humidity is missing at 180 seconds.
  4. The output gives 802.5 lux, 397.3 lux and a reduction of 50.5 per cent, with four humidity readings. A true numeric zero is a reading and gives five humidity records here. Retaining a blank preserves information about incomplete data.
  5. The model predicts about 22.64 and 22.45 degrees. The residuals are about +0.06 and −0.05 degrees, both small in comparison with the illustrative allowance. The observed agreement does not rule out other models.
  6. Use a visible common event, compare independently timed responses and keep the raw data. Track a reference temperature outside the changing location or use a comparison setup. Repeat under similar conditions and check whether the apparent delay persists.


Learning evidence

Provide a units-labelled three-channel record, a justified sample interval, the processed comparison and a test of the Python output. Compare the temperature residuals using the stated uncertainty. AQA describes quantitative recording with appropriate digital instruments and computer processing. The exercise data are simulated.

OER and Wikipedia

Department for Education, AS and A level subject content for Science AQA Physics 7408, digital instruments and computer processing Python library documentation, reading CSV records Python library documentation, calculating a mean


Linked learning areas


aiMOOC Projects



Schulfach+




aiMOOCs



aiMOOC Projekte









MOOCwiki · Deutsch

Nach dem Lernen ist vor dem Lernen

Entdecke direkt den nächsten Lernkurs. Weitere Inhalte erscheinen, wenn Du weiter nach unten scrollst.

Zur MOOCwiki-Hauptseite

Mediathek

Suche verfeinern

Dein Lernplan bestimmt, was oben steht. Alle anderen Inhalte bleiben erreichbar. Seitenaufrufe beeinflussen die Auswahl nicht.

Inhalte werden geladen ...

Mediathek wird aus dem Wiki geladen ...