Simulate distance contrast
CodingBeginner⏱ 30 minClassical MLsimulationcontrastdimensionknn
Problem
Simulate points in and measure the contrast as grows.
- Confirm the contrast decays and identify the rate.
- Repeat with data lying on a -dimensional subspace embedded in and show the contrast is governed by .
- Repeat with an anisotropic covariance with a power-law spectrum and comment.
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 |
|---|---|---|---|---|---|
| Johnson–Lindenstrauss dimension arithmetic | High-Dim Probability | Numerical | 15 min | ||
| Two different curses of dimensionality | Classical ML | Numerical | 15 min | ||
| A sufficient condition for correct retrieval | RAG | Proof | 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 |