Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

hw06 Study Guide

Beoordeling
-
Verkocht
-
Pagina's
19
Cijfer
A
Geüpload op
23-02-2022
Geschreven in
2021/2022

Question 1. Assuming no one is cheating and the coin is fair, if a customer plays twice, what is the chance they make money? In [ ]: p_winning_after_two_flips = 0.5 * 0.5 In [ ]: _ = ('q1_1') _ = p() A certain customer plays the game 20 times and wins 13 of the bets. You suspect that the customer is cheating! That is, you think that their chance of winning is higher than the normal chance of winning. You decide to test your hunch using the outcomes of the 20 games you observed.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

hw06


December 12, 2018


In [ ]: # Homework 6: Testing Hypotheses
Reading: Textbook chapter 11.
Please complete this notebook by filling in the cells provided. Before you begin, execute the
following cell to load the provided tests. Each time you start your server, you will need to execute
this cell again to load the tests.
Homework 6 is due Friday, 11/2 at 11:59pm. Start early so that you can come to office hours if
you’re stuck. Check the website for the office hours schedule. Late work will not be accepted as
per the policies of this course.
Directly sharing answers is not okay, but discussing problems with the course staff or with
other students is encouraged. Refer to the policies page to learn more about how to learn cooper-
atively.
For all problems that you must write our explanations and sentences for, you must pro-
vide your answer in the designated space. Moreover, throughout this homework and all future
ones, please be sure to not re-assign variables throughout the notebook! For example, if you use
max_temperature in your answer to one question, do not reassign it later on.
In [ ]: # Don't change this cell; just run it.
! pip install -U okpy

import numpy as np
from datascience import *

# These lines do some fancy plotting magic.
import matplotlib
%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('fivethirtyeight')
import warnings
warnings.simplefilter('ignore', FutureWarning)

from client.api.notebook import Notebook
ok = Notebook('hw06.ok')
_ = ok.auth(inline=True)

0.1 1. Catching Cheaters
Suppose you are a casino owner, and your casino runs a very simple game of chance. The dealer
flips a coin. The customer wins 9 dollars from the casino if it comes up heads and loses 10 dollars

1

,if it comes up tails.




2

, Question 1. Assuming no one is cheating and the coin is fair, if a customer plays twice, what
is the chance they make money?

In [ ]: p_winning_after_two_flips = 0.5 * 0.5

In [ ]: _ = ok.grade('q1_1')
_ = ok.backup()

A certain customer plays the game 20 times and wins 13 of the bets. You suspect that the
customer is cheating! That is, you think that their chance of winning is higher than the normal
chance of winning.
You decide to test your hunch using the outcomes of the 20 games you observed.




3

Geschreven voor

Vak

Documentinformatie

Geüpload op
23 februari 2022
Aantal pagina's
19
Geschreven in
2021/2022
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$8.99
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
boomamor2 NURSING
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1026
Lid sinds
4 jaar
Aantal volgers
733
Documenten
3711
Laatst verkocht
4 weken geleden

4.0

116 beoordelingen

5
60
4
24
3
16
2
4
1
12

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen