BaşlayınÜcretsiz başlayın

Calculating the sample mean

Now you can calculate the sample mean for this generated sample by taking some elements from the sample.

Using the sample variable you just created, you'll calculate the sample means of the first 10, 50, and 250 samples.

The binom object and describe() method from scipy.stats have been imported for your convenience.

Bu egzersiz, kursun bir parçasıdır

Foundations of Probability in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Print the sample mean of the first 10 samples
print(____(sample[0:____]).____)
Kodu Düzenle ve Çalıştır