Using Statistics to calculate data samples