Starting from:

$24.99

MAST90105: Lab 10 Solution

The Lab and Workshop this week covers problems arising Module 6, Sections 3 to the end.
1 Lab

1. (Elaborating Textbook 6.5-10) The ”golden” ratio is φ = (1 + 5)/2. If a,b are numbers, show that they have the ”golden” ratio if .
John Putz, a mathematician who was interested in music, analyzed 29 Mozart piano sonata movements which could easily be divided into 2 distinct sections, the Exposition (in which the first and second subjects, the melodies that underly the movement, are revealed) and the Development/Recapitulation (in which the first and second subjects are developed and then restated). Mozart showed interest in mathematics and Putz wondered whether the numbers of bars in the Exposition, b and Development/Recapitulation, a followed the golden ratio (the Recapitulation is often of similar length to the Exposition in Sonata movements from the ”classical” period, so that the Development and Recapitulation are always longer than the Exposition).
The data on the Mozart piano sonata movements is in the lab folder as ”Mozart.xls”, with a values in column 2 and b values in column 1. Import this data into R using the read excel() function. You will need to install readxl library.
a. Make a scatter plot of the points a + b against the points a. Is this plot linear?
b. Find the equation of the least squares regression line with and without intercept. Superimpose them on the scatter plot.
c. On the scatter plot, superimpose the line y = φx. Compare this line with the least squares regression line.
d. Find the sample mean of the points (a + b)/a. Is the mean close to φ?
e. Now consider the same questions using the data on a and b. Compare and contrast your results and explain any differences.
f. Consider the residuals from the linear models versus the response values as well as the differences between the values from y = φx and the response values. In each linear model case, plot the residuals and the difference values on the same plot. Comment on systematic differences
g. Do you think Mozart wrote his music thinking about the number of bars in the Development and Recapitulation being the number in the Exposition times the golden ratio? Why?
2 Workshop
2. Let X1,...,Xn be a random sample from a gamma distribution with α = 4 so that

Continuing the question from last week, give an approximate 100(1 − α)% confidence interval for θ.
3. A random sample of size 16 from N(µ,25) yielded ¯x = 73.8. Find a 95% confidence interval for µ. (Recall z0.025 = 1.96, z0.05 = 1.645).
4. A pet store sells guinea pig food in “2-pound” bags that are weighed on a an old 25pound scale. Suppose it is known that the standard deviation of weights is σ = 0.12 pound. If a sample of 16 bags of guinea pig food were carefully weighed in a laboratory and the average weight was ¯x = 2.09 pounds, find an approximate 95% confidence interval for µ, the mean weight of gerbil food in the “2-pound” bags sold by the pet store.
5. To determine whether bacteria count was lower in the west basin of Lake Macatawa than in the east basin, n = 37 samples of water were taken in the west basin, and the number of bacteria colonies in 100 millilitres of water was counted. The sample characteristics were ¯x = 11.95 and s = 11.80, measured in hundreds of colonies. Find the approximate 95% confidence interval for the mean number of colonies, say µW , in 100 millilitres of water in the west basin. (Note, t0.025(36) = 2.028, t0.05(36) = 1.688)
6. Thirteen tons of cheese is stored in some old gypsum mines, including “22-pound” wheels (label weight). A random sample of n = 9 of these wheels yields ¯x = 20.9 and s = 1.858. Assuming that the weights of the wheels is N(µ,σ2) find a 95% confidence interval for µ. Is the claim these are “22 pound” wheels reasonable? (t0.025(8) = 2.306, t0.05(8) = 1.859)
7. The length of life of brand X light bulbs is assumed to be N(µX,784). The length of life of brand Y light bulbs is assumed to be N(µY ,627) and these lifetimes are independent of X. If a random sample of n = 56 brand X light bulbs yielded ¯x = 937.4 hours and a random sample of size m = 57 brand Y light bulbs yielded ¯y = 988.9, find a 95% confidence interval for µX − µY . Is it reasonable to conclude that the two brands of light bulb have the same mean lifetimes?
8. A test was conducted to determine if a wedge on the end of a plug designed to hold a seal onto that plug was operating correctly. The data were the force required to remove a seal from the plug with the wedge in place (X) and without the wedge (Y ). Assume the distributions of X and Y are N(µX,σ2) and N(µY ,σ2) respectively. Samples of size 10 on each variable yielded:
Variable n x¯ s
X 10 2.548 0.323
Y 10 1.564 0.210
a. Find a 95% confidence interval for µX −µY . (t0.025(18) = 2.101, t0.05(18) = 1.734)
b. Do you think the wedge is operating correctly?
9. Let X be the length in centimeters of a species of fish when caught in the spring. A random sample of 13 observations yielded the sample variance s2 = 37.751. Find a 95% confidence interval for
10. Let X be the length of a male grackle (a type of bird). Suppose X ∼ N(µ,4.84). Find the sample size that is needed if we are to be 95% confident the maximum error (ie.

zα/2(σ/ n)) of the estimate of µ is 0.4. (z0.025 = 1.96)
11. For a public opinion poll for a close election, let p denote the proportion of votes who favour candidate A. How large a sample should be taken if we want the maximum error of the estimate of p to be equal to
a. 0.03 with 95% confidence?
b. 0.02 with 95% confidence?
c. 0.03 with 90% confidence? (z0.05 = 1.645).
12. Let Y1 < ··· < Y5 be the order statistics of 5 independent observations from an exponential distribution that has a mean of θ = 3.
a. Find the p.d.f. of the sample minimum Y1
b. Compute the probability that Y5 < 5
c. Determine P(1 < Y1)
13. In a clinical trial, let the probability of a successful outcome have a prior distribution that is uniform over [0,1]. Suppose that the first patient has a successful outcome. Find the Bayes estimate of θ that would be obtained for the squared error loss. Also find the Bayes estimate with absolute loss. In both cases, find a 85% posterior probability interval that is symmetric around the Bayes estimate.

More products