import math


def mean_and_std(values):
  """Compute mean standard deviation"""
  size = len(values)
  mean = sum(values) / size
  s = 0.0
  for v in values:
    s += (v - mean) ** 2
  std = math.sqrt((1.0 / (size - 1)) * s)
  return mean, std