A452 of 56
0 XP
  1. Hook
  2. Problems

A4 · Problem set 11

Problem set 11: data

These labs use lessons 45 to 51: fitting, interpolation, reading text data, statistics of measurements, Monte Carlo, the FFT, and filtering. Each is a task you'd do on real bench data: calibrate a sensor, clean a log, report an uncertainty, predict a yield, find a hidden tone.

Check

The CSV in the starter is a sensor calibration: temperature in °C and output in V. Fit a straight line with np.polyfit and set slope (V per °C), offset (V at 0 °C), and T_at to the temperature that gives 1.0 V.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

The log in the starter has gaps. Read it with np.genfromtxt, then for the v column set n_good (readings present), m (their mean) and sem (their standard error, with ddof=1).

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

A resistance is measured as R=V/I with V = 3.3 ± 0.01 V and I = 0.022 ± 0.0003 A, independent. Set R and uR (absolute, in ohms), combining the relative uncertainties in quadrature.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Model R = 4.7 kΩ ±tR% and C = 33 nF ±tC% as uniform. With rng = np.random.default_rng(7) and 100,000 draws (R first), set yld to the fraction of RC filters whose corner is within ±10% of nominal, and p5, p95 to the 5th and 95th percentiles of the corner.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

The starter makes a noisy record with one hidden tone, sampled at 2 kHz for 4000 samples. Set f_peak to the frequency of the largest FFT bin, skipping DC, and amp to that bin's amplitude estimate, 2 * |X| / N.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.

Practice

Keep practicing

9 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.