Computers and Technology, 25.04.2020 01:17 sebby33
It's time to bootstrap so that we can quantify the variability in our estimate! Simulate 1000 resamples from close_novas. For each resample, compute the slope of the least-squares regression line, and multiply it by 1 million to compute an estimate of the age of the universe. Store these ages in an array called bootstrap_ages, and then use them to compute a 95% confidence interval for the age of the universe.
bootstrap_ages = make_array()
for i in np. arange(1000):
bootstrap_ages = np. append(bootstrap_ages, 1e6*fit_line(close_novas. sample
lower_end = percentile(2.5, bootstrap_ages)
upper_end = percentile(97.5, bootstrap_ages)
Table().with_column("Age estimate", bootstrap_ages*1e-9).hist(bins=np. arange(12, 16, .1), unit= "billion years")
print("95% confidence interval for the age of the universe: [{:g}, {:g}] billion years".format(lower_end*1e-9, upper_end*1e-9)
Answers: 2
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
Computers and Technology, 23.06.2019 04:40
The narrative structure of the popular movies can be broken down into
Answers: 3
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
It's time to bootstrap so that we can quantify the variability in our estimate! Simulate 1000 resamp...
Mathematics, 02.02.2020 18:57
History, 02.02.2020 18:57
Arts, 02.02.2020 18:57
Biology, 02.02.2020 18:57
Physics, 02.02.2020 18:57
English, 02.02.2020 18:57
Social Studies, 02.02.2020 18:57