Inferential Statistics Concepts

Nhập môn Mô hình tuyến tính với Python

Jason Vestuto

Data Scientist

Probability Distribution

Histogram plot of day count versus temperature bins, Daily high temperatures in August

Nhập môn Mô hình tuyến tính với Python

Populations and Statistics

Histogram plot of day count versus temperature bins, Daily high temperatures in August

Nhập môn Mô hình tuyến tính với Python

Sampling the Population

Population statistics vs Sample statistics

print( len(month_of_temps), month_of_temps.mean(), month_of_temps.std() )
print( len(decade_of_temps), decade_of_temps.mean(), decade_of_temps.std() )

Draw a Random Sample from a Population

month_of_temps = np.random.choice(decade_of_temps, size=31)
Nhập môn Mô hình tuyến tính với Python

Visualizing Distributions

2 histograms, one for sample one for population, both of day count versus temperature bins, with sample bins being much shorter

Nhập môn Mô hình tuyến tính với Python

Visualizing Distributions

2 histograms, one for sample one for population, both of normalized day count versus temperature bins, with sample bin bars being about the same height as population bin bars

Nhập môn Mô hình tuyến tính với Python

Probability and Inference

Histogram plot of day count versus temperature bins, Daily high temperatures in August

Nhập môn Mô hình tuyến tính với Python

Visualizing Distributions

2 histograms, one for each of two different samples, both of normalized day count versus temperature bins, both with similar bin bar heights, but differing slightly from bin to bin

Nhập môn Mô hình tuyến tính với Python

Resampling

# Resampling as Iteration
num_samples = 20
for ns in range(num_samples):
    sample = np.random.choice(population, num_pts)
    distribution_of_means[ns] = sample.mean()
# Sample Distribution Statistics
mean_of_means = np.mean(distribution_of_means)
stdev_of_means = np.std(distribution_of_means)
Nhập môn Mô hình tuyến tính với Python

Let's practice!

Nhập môn Mô hình tuyến tính với Python

Preparing Video For Download...