Computer Science > QUESTIONS & ANSWERS > University of California, Berkeley - DATA 8 DATA8lab08 Resampling and the Bootstrap (All)

University of California, Berkeley - DATA 8 DATA8lab08 Resampling and the Bootstrap

Document Content and Description Below

Lab08 August 6, 2019 [1]: # Initialize OK from client.api.notebook import Notebook ok = Notebook('lab08.ok') ===================================================================== Assignment: Res... ampling and the Bootstrap OK, version v1.12.5 ===================================================================== 1 Lab 8: Resampling and the Bootstrap The British Royal Air Force wanted to know how many warplanes the Germans had (some number N, which is a parameter), and they needed to estimate that quantity knowing only a random sample of the planes’ serial numbers (from 1 to N). We know that the German’s warplanes are labeled consecutively from 1 to N, so N would be the total number of warplanes they have. We normally investigate the random variation among our estimates by simulating a sampling procedure from the population many times and computing estimates from each sample that we generate. In real life, if the RAF had known what the population looked like, they would have known N and would not have had any reason to think about random sampling. However, they didn’t know what the population looked like, so they couldn’t have run the simulations that we normally do. Simulating a sampling procedure many times was a useful exercise in understanding random variation for an estimate, but it’s not as useful as a tool for practical data analysis. Let’s flip that sampling idea on its head to make it practical. Given just a random sample of serial numbers, we’ll estimate N, and then we’ll use simulation to find out how accurate our estimate probably is, without ever looking at the whole population. This is an example of statistical inference. As usual, run the cell below to prepare the lab and the automatic tests. [3]: # Run this cell to set up the notebook, but please don't change it. # These lines import the Numpy and Datascience modules. import numpy as np from datascience import * # These lines do some fancy plotting magic. [Show More]

Last updated: 2 years ago

Preview 1 out of 15 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$7.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

41
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 10, 2021

Number of pages

15

Written in

Seller


seller-icon
Muchiri

Member since 4 years

209 Documents Sold

Reviews Received
19
5
1
1
6
Additional information

This document has been written for:

Uploaded

Apr 10, 2021

Downloads

 0

Views

 41

Document Keyword Tags


$7.00
What is Scholarfriends

In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·