Course Hero Logo

hw08.pdf - hw08 October 26 2022 1 : # Initialize Otter...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 3 out of 10 pages.

hw08October 26, 2022[1]:# Initialize Otterimportottergrader=otter.Notebook("hw08.ipynb")1Homework 8: Confidence IntervalsHelpful Resource:Python Reference: Cheat sheet of helpful array & table methods used in Data 8!Recommended Reading:EstimationPlease complete this notebook by filling in the cells provided.Before you begin, execute thecell below to setup the notebook by importing some helpful libraries.Each time youstart your server, you will need to execute this cell again.For all problems that you must write explanations and sentences for, youmustprovide youranswer in the designated space. Moreover, throughout this homework and all future ones,pleasebe sure to not re-assign variables throughout the notebook!For example, if you usemax_temperaturein your answer to one question, do not reassign it later on. Otherwise, you willfail tests that you thought you were passing previously!Deadline:This assignment isdue Wednesday, 10/26 at 11:00pm PT. Turn it in by Tuesday, 10/25 at11:00pm PT for 5 extra credit points. Late work will not be accepted as per thepoliciespage.Note: This homework has hidden tests on it. That means even though tests may say100% passed, it doesn’t mean your final grade will be 100%. We will be running moretests for correctness once everyone turns in the homework.Directly sharing answers is not okay, but discussing problems with the course staff or with otherstudents is encouraged. Refer to thepoliciespage to learn more about how to learn cooperatively.You should start early so that you have time to get help if you’re stuck. Offce hours are held Mondaythrough Friday inWarren Hall101B. The offce hours schedule appears onfa22/officehours/.[2]:# Don't change this cell; just run it.1
importnumpyasnpfromdatascienceimport*# These lines do some fancy plotting magic.",importmatplotlib%matplotlibinlineimportmatplotlib.pyplotaspltplt.style.use('fivethirtyeight')importwarningswarnings.simplefilter('ignore',FutureWarning)1.11. Thai Restaurants in BerkeleyOswaldo and Varun are trying to see what the best Thai restaurant in Berkeley is. They survey 1,500UC Berkeley students selected uniformly at random and ask each student what Thai restaurant isthe best. (Note: This data is fabricated for the purposes of this homework.) The choices of Thairestaurants areLucky House,Imm Thai,Thai Temple, andThai Basil. After compiling the results,Oswaldo and Varun release the following percentages, percentages of votes that each restaurantreceived, from their sample:Thai RestaurantPercentageLucky House8%Imm Thai53%Thai Temple25%Thai Basil14%These percentages represent a uniform random sample of the population of UC Berkeley students.We will attempt to estimate the correspondingparameters, or the percentage of the votes that eachrestaurant will receive from the population (i.e. all UC Berkeley students). We will use confidenceintervals to compute a range of values that reflects the uncertainty of our estimates.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 10 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Winter
Professor
NoProfessor
Tags
Statistical hypothesis testing, Imm Thai

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture