Homework 6

CHE 116: Numerical Methods and Statistics

Prof. Andrew White

Version 1.5 (2/20/2015)


0. Warmup (2 Points)

  1. We've seen two types of confidence intervals. One type is for predicting where the next sample will be in a known distribution and one type is for predicting where a true mean will be given some data. For the latter type, predicting the true mean, we saw how with many data points or if we know the true standard deviation we can use a normal distribution. When predicting the true mean with a few data points, the confidence interval for error in the mean follows a $t$-distribution. Thus there are three possible confidence interval problems. Write out and label an example problem that demonstrates each of the confidence intervals. Refer back to the example problems in Unit 6, Lecture 2. You only need to set-up your problems, not solve them.

  2. Find a problem you missed in any of your homeworks. Look at the key and state what mistake you made and how it would be fixed. Indicate which homework and problem you're referring to.

1. Book Problems (5 Points)

Complete the following problems from Bulmer. Use Python or Markdown where appropiate.

  • Exercise 6.10
  • Exercise 7.1

Complete the following problems from Langley:

  • Q15 on pg 66 (you can skip the shortcut method and Snedecor's check)
  • Q17 on pg 88
  • Q25 on pg 90

2. CLT Theory (5 Points)

Indicate if the CLT applies with yes or no. If no, state why.

  1. You measure the density of a solution 5 times and take the average
  2. You sum the volume of oil in 20 barrels
  3. You record your electricity bill 25 times
  4. Flip a coin 25 times and consider a heads 0 and a tails 1 and take the average
  5. Your grade is the average of 20 homework

3. Confidence Intervals (4 Points)

Report the given confidence interval for error in the mean using the data in the next cell and describe in words what the confidence interval is for each example

  1. 90% Double
  2. 95% Double
  3. 99% Double
  4. 90% Lower (a value such that the mean lies below that value 90% of the time)

In [3]:
data_3_1 = [5.81, 5.27,  5.4,  4.9,  5.83,  3.2,  6.76,  4.29,  4.76,  5.51]
data_3_2 = [51.47, 48.18,  48.35,  53.57]
data_3_3 = [91.8, 104.04,  129.62,  99.34,  75.92,  56.03,  103.87,  66.27,  88.41,  105.17,  115.05,  111.13,  86.2,  113.48,  96.25,  100.81,  96.56,  89.02,  111.9,  106.55,  117.35,  87.61,  81.97,  106.32,  78.38,  102.38,  80.87,  110.6,  89.09,  132.1]
data_3_4 = [5.89, 3.73,  -10.77,  -13.92,  0.73,  -2.52,  -9.69,  14.15,  -8.16,  2.62,  -0.93,  -13.46,  -2.95,  -7.13,  1.01,  1.45,  16.0,  -17.47,  9.58,  13.3]

4. Math Equations (3 Points)

Solve the following equations using Newton's metod

  1. $\cos(x^2) = x$
  2. $x^2 = 4839$
  3. $\int_{\pi}^{x} \sin^2{s}\,ds = 1$ Hint: Review your previous homeworks to recall how to use quad to integrate

In [ ]: