hw3_explained_sol. University of California, Berkeley STAT MISC
Homework_03_explained
file:///C:/Users/Ashley/Downloads/Homework_03_explained.html 1/13
In [2]: from datascience import *
from scipy import stats
from scipy import special
import numpy as np
Homework 3
In some of the problems below, you have to do a numerical calculation in a code cell. All the libraries you might
need ha
...[Show More]
hw3_explained_sol. University of California, Berkeley STAT MISC
Homework_03_explained
file:///C:/Users/Ashley/Downloads/Homework_03_explained.html 1/13
In [2]: from datascience import *
from scipy import stats
from scipy import special
import numpy as np
Homework 3
In some of the problems below, you have to do a numerical calculation in a code cell. All the libraries you might
need have been imported for you, but in fact you don't need most of them. Run the import cell at the top before
you start the homework.
In some problems we have given you some skeleton code but you don't have to use it; we won't grade any of the
code.
Note about terminology. Once and for all: If a question says " successes" it means exactly successes.
1. Students Rolling Dice
A probability class consists of 20 students, unimaginatively called Student 1, Student 2, and so on.
a) Student 1 rolls a die 12 times. Write a math expression for the chance that Student 1 gets 2 sixes. Use the
code cell below to write a Python expression that evaluates to the chance, and then write the output on your
paper along with the math expression. You don't have to write all the decimal places. Just four or five places is
fine, and don't worry about exactly how to round.
[Show Less]