Do the Groups Differ
groups holds two or more lists of measurements, one list per group. Return the p-value of a one-way analysis of variance: the test of whether all the groups share the same mean.
Example 1
groups [[1,2,3],[1,2,3],[1,2,3]]
returns 1.0
Three identical groups: no sign of any difference.
Constraints
- 2 to 5 groups of 3 to 20 values each
- At least one group has values that differ
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More SciPy problems
- Fit the DecayMedium
- Is the Mean DifferentMedium
- Lowest PointMedium
- Nearest Point to Each QueryMedium
- Range for the MeanMedium
- Two Groups ComparedMedium
- Where It Crosses ZeroMedium
- Chains of Close PointsHard