Anscombe Quartet Dataset Pseudocode

Замовник: AI | Опубліковано: 25.09.2025
Бюджет: 250 $

I need clear, Python-style pseudocode that automatically builds four separate x-y datasets which satisfy the classic conditions of Anscombe’s quartet: identical descriptive statistics yet visibly different data arrangements. The script must run start-to-finish with no user input, printing (or returning) the four datasets rather than plotting them. Because I want the logic to be easy to port into actual Python later, please keep the flow, indentation, and function calls recognisably Pythonic. At the same time, weave in detailed inline comments that walk through each key step—dataset construction, calculation of shared statistics, and the sanity checks that prove those statistics match across all four sets. Acceptance will be based on: • A single block of well-structured pseudocode that can be copied as-is into a .txt or .py file. • Internal commentary explaining why and how the means, variances, and correlations are preserved despite differing point layouts. • No external inputs or hard-to-source libraries—everything self-contained. In short, deliver pseudocode that someone could immediately translate into Python to reproduce the quartet’s statistical magic without drawing the graphs.