Push Tracker
experiments-07-07-12-local-.../agentic_scratch/devstral-small2-24b/t4_debug_loop/stats.py

10 lines
210 B
Python
Raw Permalink Normal View History

G
2026-07-12 21:35:10 -04:00
import math
def mean_std(xs):
n = len(xs)
mean = sum(xs) / n
variance = sum((x - mean) ** 2 for x in xs) / n
std = math.sqrt(variance)
return (mean, std)
print(mean_std([2,4,4,4,5,5,7,9]))