3.4. Chapter Exercise#
Apply the key ideas from this chapter in the connected task below. Work in your own notebook or local project. Keep your implementation, reasoning, and verification results together.
3.4.1. Compute with arrays#
Use an array from a real dataset already supplied in the book and state its dtype, shape, and what each axis means.
Select a subset and compute a vectorized result with ufuncs and a deliberate broadcasting operation. Explain the compatible shapes before executing it.
Compare a small result with a hand calculation. Use the chapter’s seeded random-generation approach for a separate simulation and label it simulated, explaining reproducibility and how it differs from observed data.
Return to the chapter lessons as needed: Arrays Basics, Array Computation, Random Number Generation.