subject
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)

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, mjweed3381
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
image
Computers and Technology, 23.06.2019 15:00, abelxoconda
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
image
Computers and Technology, 25.06.2019 15:00, ariana0517
What feature allows users to collaborate on a document by marking the edits one author makes for the other to see?
Answers: 1
image
Computers and Technology, 25.06.2019 15:30, wowihavefun
If a 120 v appliance requires 15 a to operate, what is the resistance of the appliance?
Answers: 1
You know the right answer?
It's time to bootstrap so that we can quantify the variability in our estimate! Simulate 1000 resamp...

Questions in other subjects:

Konu
Mathematics, 16.10.2020 19:01