Notes on Interval Estimation

We have looked at creating a confidence interval for the difference between two population means using independent samples, meaning that the data from the two samples have no influence on each other. However, sometimes situations arise when the data sets are dependent. In this section, we will discuss how to construct a confidence interval for the difference between two population means using dependent samples where the observations in one sample uniquely correspond with observations in the second sample. Two dependent data sets, in which the observations from one data set are matched directly to the observations from the other data set, are called paired data.

So how do you decide when to design an experiment that will give you paired data? In general, you should select to use paired data when you want to compare two subgroups of a population that are logically connected. Each member of the first subgroup is systematically paired with a single member of the second subgroup either by matching characteristics or by using a preexisting connection, for example, twins. Here are some specific situations in which paired data would be used.

Pretest/posttest studies on the same subjects: For instance, suppose researchers wanted to study whether a person's sleeping habits changed when taking a new drug. Data would be taken from a number of participants both before the drug was administered and after. The data from each participant would then be paired together.

Pairing subjects with similar characteristics: The same research on sleep could occur by recruiting subjects as pairs by matching variables such as age, ethnicity, work environment, and so forth, and then giving one group a treatment (that is, the new drug) and the other a placebo.

Pairing subjects who have a specific connection that is of interest: For instance, parent/child pairings or sibling/twin pairings could reveal how certain genetic traits are related to patients' responses to the new drug.

Confidence Interval Estimation

We have looked at creating a confidence interval for the difference between two population means using independent samples, meaning that the data from the two samples have no influence on each other. However, sometimes situations arise when the data sets are dependent. In this section, we will discuss how to construct a confidence interval for the difference between two population means using dependent samples where the observations in one sample uniquely correspond with observations in the second sample. Two dependent data sets, in which the observations from one data set are matched directly to the observations from the other data set, are called paired data.

So how do you decide when to design an experiment that will give you paired data? In general, you should select to use paired data when you want to compare two subgroups of a population that are logically connected. Each member of the first subgroup is systematically paired with a single member of the second subgroup either by matching characteristics or by using a preexisting connection, for example, twins. Here are some specific situations in which paired data would be used.

Pretest/posttest studies on the same subjects: For instance, suppose researchers wanted to study whether a person's sleeping habits changed when taking a new drug. Data would be taken from a number of participants both before the drug was administered and after. The data from each participant would then be paired together.

Pairing subjects with similar characteristics: The same research on sleep could occur by recruiting subjects as pairs by matching variables such as age, ethnicity, work environment, and so forth, and then giving one group a treatment (that is, the new drug) and the other a placebo.

Pairing subjects who have a specific connection that is of interest: For instance, parent/child pairings or sibling/twin pairings could reveal how certain genetic traits are related to patients' responses to the new drug.

The goal of this lab is to start getting you comfortable using the Rguroo point-and-click interface and using the software to help visualize and interpret data.

Part I. Eye Color Dataset

For this part of the lab, we will explore the graphical features of Rguroo using the dataset called HairEyeColor. This dataset can be found on Titanium. Download the dataset to your desktop. In Rguroo in the left hand column select the dropdown Data, then select Data Import. Within Data Import select Data Frame, then select the file and select Upload.

Question #1 Once you have imported the data, then if you double click on the dataset name the raw data will show up. If you right click on the dataset name there are many features, one of which is the summary function. Using these features answer the following questions.
(a) How many variables are there in this dataset?
(b) Are the variables quantitative or categorical?
(c) Specifically name one of the variables, and state what values it can take.
(d) How many cases are in this dataset?

Question #2 Now let’s look at only the variable of Eye color and obtain a barplot of the values. Do this by clicking on the drop menu for Create Plot and select Barplot. We first need to select the dataset by clicking the drop down menu of Select a Dataset; choose HairEyeColor. Switch from Numerical/Freq tab to Categorical tab. Select the Factor 1 drop down menu and click on Eye. Now, click on the Relative Frequency selection. Fill in the Labels for the Title, X-Axis, and Y-Axis. Click on the eye icon to view the bar graph.
Copy the Barplot and paste it below.

Question #3 You can add the specific percentage of each category as well as other features by clicking on the Details tab. To add the specific percentages, go to Bar, Value Labels, Error Bars and select Add Value Labels. Press the eye icon to see the change.
Copy the new more detailed Barplot and paste it below.

Question #4 Based on your Barplot in the previous question, which category has the most people? Which has the least?

Question #5 We can also look at the Eye as a Factor of Gender. This would allow us to visually compare the distribution of Eye Color of males and females. To do this click on the Basics tab, and select Sex for the Factor 2 box and select the eye icon.
Copy the Barplot with eye color and gender and paste it below.

Question #6 Which color is most prevalent for females; which color for males?

Faculty of Science, Technology, Engineering and Mathematics M248 Analysing data

Please read the Student guidance for preparing and submitting TMAs on the M248 website before beginning work on a TMA. You can submit a TMA either by post or electronically using the University’s online TMA/EMA
service.

You are advised to look at the general advice on answering TMAs provided on the M248 website. Each TMA is marked out of 50. The marks allocated to each part of each question are indicated in brackets in the margin. Your overall score for each TMA will be the sum of your marks for these questions.

Note that the Minitab files that you require for TMA 05 are not part of the M248 data files and must be downloaded from the ‘Assessment’ area of the M248 website.

Question 1, which covers topics in Unit 9, and Question 2, which covers topics in Unit 10, form M248 TMA 05. Question 1 is marked out of 32; Question 2 is marked out of 18.

Minitab Question one
You should be able to answer this question after working through Unit 9.
(a) A study was undertaken to examine the tensile strength of a new type of polyester fibre. The Minitab worksheet polyester-fibre.mtw gives the breaking strengths (in grams/denier, denier being a unit of fineness) of a random sample of n = 30 observations, given in the variable Strength.

The existing type of polyester fibre which the new type is designed to replace has a mean breaking strength of 0.26 grams/denier. Interest centres on using the data in polyester-fibre.mtw to test whether the mean breaking strength of the new type of polyester fibre differs from the mean breaking strength of the existing type of polyester fibre.

(i) Write down appropriate null and alternative hypotheses for a test of whether the mean breaking strength of the new type of polyester fibre differs from the mean breaking strength of the existing type of polyester fibre. Define any notation that you use. [3]

(ii) It is proposed to use a z-test to test the hypotheses specified in part (a)(i). Justify this choice of test in terms of the sample size, n. [1]

(iii) Write down the formula for the test statistic used in the z-test of part (a)(ii). Define any further notation that you use. [2]

(iv) Write down the null distribution of the test statistic in part (a)(iii). What is the reason for the use of the word ‘null’ in the phrase ‘null distribution’? [2]

(v) Using Minitab, obtain the standard deviation of the values in Strength, then perform the z-test that you have been considering throughout part (a) of this question. Provide a copy of the **Minitab
output** produced by performing this test. (This output should comprise four lines which start with the words Test, The, Variable and Strength, respectively.) [3]

(vi) Interpret the result of the test that you have just performed, as given by its p-value. [3]
(vii) Would you have rejected H0 or not rejected H0 if you had tested the hypotheses of interest in this question at the 5% significance level? Would you have rejected H0 or not rejected H0 if you had tested these hypotheses at the 1% significance level? Justify each of your answers separately. [4]

(b) The proportion, p0, of foraging bumblebees not exposed to pesticides who bring very little pollen back to their nest is 0.4. A recent study of foraging bumblebees investigated the effect of exposure to a widely used neonicotoid pesticide called imidacloprid on pollen foraging rates. (Neonicotoid pesticides are commonly used in agriculture due to their low toxicity in mammals.) Let p denote the proportion of foraging bumblebees exposed to imidacloprid who bring very little pollen back to their nest.

A sample of 60 bumblebees were exposed to a low (field realistic) dose of imidacloprid: 39 of these bumblebees brought back very little pollen to their nest. Use these data to perform the test of the hypotheses H0 : p = 0:4; H1 : p > 0:4; by working through the following subparts of this part of the question.

(i) Calculate the observed value of the test statistic for this test. [2]
(ii) Using the approximate normal null distribution of this test statistic, identify the rejection region of a test of the stated hypotheses using a 1% significance level. [2]
(iii) Report and interpret the outcome of this hypothesis test. [2]

(c) The isotopic abundance ratio of natural silver (Ag) is the ratio of the stable isotopes Ag107 to Ag109. Its mean is 1.076 and measurements on a random sample of observed isotopic abundance ratios suggested that they are plausibly normally distributed with a sample standard deviation of 0.0026. Interest in this part of the question concerns the planning of a further experiment to detect whether this ratio is different in observations from a certain source of silver nitrate. The new study will use a two-sided test at the 5% significance level, assuming normality. It is desired to make sufficient observations of the isotopic abundance ratio on the silver nitrate so that the power of the test to distinguish a difference between the null hypothesis of a true underlying mean of 1.076 and a value that is 0.0015 larger or 0.0015 smaller is 90%. For the purpose of performing the necessary sample size calculation, it will be assumed that the population standard deviation of the isotopic abundance ratio measurements is equal to the sample standard deviation given above.

(i) Calculate, by hand, the size of the sample required to achieve the desired power of the test. Show our working. [6]

(ii) Ignoring rounding up to an integer, and assuming that no other aspect of the problem changes, by what multiple is the required sample size changed if, instead of seeking to distinguish between the underlying mean and values that are 0.0015 larger or smaller than it, it was decided to seek to distinguish between the underlying mean and values that are 2/3 as much (that is, 0.001) larger or smaller than it? [2]

Minitab statistics question 2
Question 2 { 18 marks
You should be able to answer this question after working through Unit 10.
(a) Halofenate has been shown to be effective in the treatment of conditions associated with abnormally high levels of lipids in the blood; triglyceride is a lipid of particular importance. A group of 22 patients were treated with halofenate medication. The changes between the patients’ triglyceride levels after treatment with halofenate and before treatment with halofenate were measured. These changes are in the Minitab worksheet triglyceride.mtw, in the column Halofenate. (Note that a negative change corresponds to the desirable outcome of a reduction in triglyceride levels.)

The column Placebo contains the changes between triglyceride levels after treatment with an inactive placebo and before treatment with the placebo, for an independently drawn control group of 21 patients. The main question of interest is whether halofenate makes a more favourable change to triglyceride levels, in comparison to a placebo.

Graphical investigation of the data shows that normality cannot be assumed for the distribution of either Halofenate or Placebo. It is therefore decided to compare the effects of halofenate and a placebo on
triglyceride reduction using the Mann{Whitney test.

(i) Write down appropriate null and alternative hypotheses for a test of whether the difference between the location of the changes between triglyceride levels after and before treatment with halofenate and the location of the changes between triglyceride levels after and before treatment with a placebo is negative. Define any notation that you use. [3]

(ii) Use Minitab to carry out the Mann-Whitney test of the hypotheses discussed above. Provide a copy of one line of the Minitab output which includes the p-value associated with the test. [2]

(iii) Interpret the result of the test that you have just performed, as given by its p-value. [2]
(b) In Table 5 of Unit 3, data were given on the month of death (January = 1, February = 2, . . . , December = 12) for 82 descendants of Queen Victoria; they all died of natural causes. The data are repeated here in Table 1.
2023-04-04T10:00:33.png

The question of whether or not these royal deaths could be claimed to be from a discrete uniform distribution on the range 1; 2; : : : ; 12 was considered informally in Example 20 of Unit 3 and, at some length, in Chapter 8 of Computer Book A. From these investigations, it looked as though the discrete uniform distribution may be a plausible model for these data, but no firm conclusion was reached.

In this part of the question, you are going to perform a chi-squared goodness-of-fit test of the discrete uniform distribution to these data.

(i) Obtain the expected frequencies of the values 1; 2; : : : ; 12 assuming a discrete uniform distribution. Why is it not necessary to pool categories before performing a chi-squared goodness-of-fit test in this case? [3]

(ii) Carry out the remainder of the chi-squared goodness-of-fit test: report the individual elements of the chi-squared test statistic, the value of the test statistic itself, the number of degrees of freedom of the chi-squared null distribution, and whatever this tells you about the p-value associated with the test. Interpret the outcome of the test.

m248 TM 05 sample statistics solution.docx

Let us know if you like us to help you with any of your coursework,

Faculty of Science, Technology, Engineering and MathematicsM248 Analysing data

M248 - TMA 04

*Please read the Student guidance for preparing and submitting TMAs on the M248 website before beginning work on a TMA. You can submit a TMA either by post or electronically using the University’s online TMA/EMA
service.
You are advised to look at the general advice on answering TMAs provided on the M248 website. Each TMA is marked out of 50. The marks allocated to each part of each question are indicated in brackets in the margin. Your overall score for each TMA will be the sum of your marks for these questions. Note that one of the Minitab files that you require for TMA 04 is not part of the M248 data files and must be downloaded from the ‘Assessment’ area of the M248 website. For your convenience, the other Minitab file required for TMA 04, which already appeared in the module, is also available for download from the ‘Assessment’ area.*

Question 1, which covers topics in Unit 7, and Question 2, which covers topics in Unit 8, form M248 TMA 04. Question 1 is marked out of 23; Question 2 is marked out of 27.

Question 1 { 23 marks
You should be able to answer this question after working through Unit 7.
(a) Let X and Y be independent random variables both with the same
mean µ 6= 0. Define a new random variable W = aX + bY where a and
b are constants.
(i) Obtain an expression for E(W). [2]
(ii) What constraint is there on the values of a and b so that W is an
unbiased estimator of µ? Hence write all unbiased versions of W as
a formula involving a, X and Y only (and not b). [3]
(b) An otherwise fair six-sided die has been tampered with in an attempt to
cheat at a dice game. The effect is that the 1 and 6 faces have different
probability of occurring than the 2, 3, 4 and 5 faces.
Let θ be the probability of obtaining a 1 on this biased die. Then, the
outcomes of rolling the biased die have the following probability mass
function.
Table 1 The p.m.f. of outcomes of rolls of a biased die:
2023-04-04T09:31:24.png

(i) By consideration of the p.m.f. in Table 1, explain why it is necessary for θ to be such that 0 < θ < 1=2. [2]
(ii) The value of θ is unknown. Data from which to estimate the value of θ were obtained by rolling the biased die 1000 times. The result of this experiment is shown in Table 2.

Table 2 Outcomes of 1000 independent rolls of a biased die
2023-04-04T09:32:29.png
Show that the likelihood of θ based on these data is
L(θ) = C θ395 (1 − 2θ)605 where C is a positive constant, not dependent on θ. [5]
(iii) Show that L0(θ) = C θ394(1 − 2θ)604 (395 − 2000 θ): [4]

(iv) What is the value of the maximum likelihood estimate, θb, of θ based on these data? Justify your answer. What does the value of θb suggest about the value of θ for this biased die compared with the
value of θ associated with a fair, unbiased, die? [4]

c) Studies of the size and range of wild animal populations often involve tagging observed individual animals and recording how many times each is caught in a trap (from which it is then released back into the wild). The dataset presented in Table 3 consists of the numbers of times each of n = 334 wood mice were caught in a particular trap (over a two-year time period). The data are also provided in the Minitab file wood-mice.mtw.

Table 3 Numbers of trappings of wood mice
2023-04-04T09:35:14.png

The geometric distribution with parameter p is a good model for these data.
(i) What is the maximum likelihood estimator of p for a geometric model? [1]
(ii) What is the maximum likelihood estimate of p for the data in Table 3? You are recommended to use Minitab to help you to answer this part of the question. [2]

Question 2 in Statistics
You should be able to answer this question after working through Unit 8.
(a) In this part of the question, you should calculate the required confidence interval by hand, using tables, and show your working. (You may use Minitab to check your answers, if you wish.)

Modern aircraft cockpit windscreens are complex items, comprising several layers of material and a heating system. Such windscreens are replaced upon damage to any of their components. A dataset was collected on the times to replacement of n = 84 windscreens of a particular modern airliner. The sample mean windscreen replacement time was 23 515 hours of flight. The sample standard deviation of windscreen replacement times was 5168 hours of flight.

(i) Obtain an approximate 90% confidence interval for the mean replacement time of this type of aircraft windscreen. What
property of the dataset justifies using this type of confidence interval, and why? [6]
(ii) Interpret the particular confidence interval that you found in part (a)(i) in terms of repeated experiments. [3]

(b) In this part of the question, you should calculate the required confidence interval by hand, using tables, and show your working. (You may use Minitab to check your answers, if you wish.)
In a large study of patients who were being treated for hypertension (high blood pressure), 148 out of 5493 patients receiving the conventional treatment for hypertension later suffered a stroke. Also,
192 out of 5492 patients receiving an alternative drug to treat their hypertension later suffered a stroke

(i) Obtain an approximate 95% confidence interval for the difference in proportions between the number of conventionally treated hypertension patients who later suffered a stroke and the number of hypertension patients treated with the alternative drug who later suffered a stroke. (You are advised to work with proportions rounded to four decimal places throughout; also, you may assume that the numbers involved are large enough that your approximation is a good one.) [5]

(ii) Some clinicians had suggested that the proportions of hypertension patients who suffered a stroke would not depend on which treatment they were being given. Are the data consistent with that
suggestion? Justify your answer briefly. [2]

(c) In various places in this module, data on the silver content of coins minted in the reign of the twelfth-century Byzantine king Manuel I Comnenus have been considered. The full dataset is in the Minitab file coins.mtw. The dataset includes, amongst others, the values of the silver content of nine coins from the first coinage (variable Coin1) and seven from the fourth coinage (variable Coin4) which was produced a number of years later. (For the purposes of this question, you can ignore the variables Coin2 and Coin3.) In particular, in Activity 8 and Exercise 2 of Computer Book B, it was argued that the silver contents in both the first and the fourth coinages can be assumed to be normally distributed. The question of interest is whether there were differences in the silver content of coins minted early and late in Manuel’s reign. You are about to investigate this question using a two-sample t-interval.

(i) Using Minitab, find either the sample standard deviations of the two variables Coin1 and Coin4, or their sample variances. Hence, check for equality of variances using the rule of thumb given in
Subsection 4.4 of Unit 8. [3]

(ii) Whatever the outcome of part (c)(i), use Minitab to obtain a 90% two-sample t-interval for the difference E(X1) − E(X4) where X1 denotes the mean silver content in coins of the first coinage and X4
denotes the mean silver content in coins of the fourth coinage.

State that interval and comment briefly on what it tells us about the silver content of coins in the earlier and later coinages. [3]

(iii) Name the distribution used in constructing the confidence interval in part (c)(ii), state the value of its parameter and show why the parameter takes the value that it does. [2]
(iv) What would have been the outcome if you had obtained a 90% two-sample t-interval for E(X4) − E(X1) instead of for

E(X1) − E(X4)? Justify your conclusion in terms of the derivative of the parameter transformation involved. [3]

If you need someone to help you with this statistics assignment, then MyMathLab homework help is the right platform to address all your statistics needs.