Simulate Wigner and Wishart spectra
CodingIntermediate⏱ 1 hourRandom Matricessimulationwignersemicircleuniversality
Problem
- Generate symmetric matrices with i.i.d. entries above the diagonal and plot the histogram of the eigenvalues of against the semicircle density.
- Repeat with Rademacher entries, and with heavy-tailed but unit-variance entries. Comment on universality of the bulk.
- Track across and compare with the prediction .
Implement it, then check the implementation against something you can verify independently.
Write it
Solve it here7 tests · Python runs in your browser
⌘/Ctrl + ↵ to run · limit 60s · draft saved in this browser
7 tests will run against your code. The first run downloads the Python runtime — several megabytes, once per browser.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Simulate distance contrast run | Classical ML | Coding | 30 min | ||
| Balls into bins, with one choice and with two run | AI Systems | Coding | 1 hour | ||
| Cache hit rates under Zipf popularity run | AI Systems | Coding | 1 hour | ||
| Frobenius versus operator norm for random matrices | Random Matrices | Numerical | 30 min | ||
| Measure anisotropy in an embedding space run | RAG | Coding | 1 hour |