Question

In: Statistics and Probability

Create a random data set consisting of two different samples, drawn from Census data that contains...

Create a random data set consisting of two different samples, drawn from Census data that contains numeric values - such as age. Show details of the sourcing.

State the null and alternate hypothesis in words that apply to the topic you are addressing. Perform a two-sided, two-sample t-test. Explain what you are doing.

Show the graph of the test will all features shown and labeled

State the conclusion of the test and grounds.

Solutions

Expert Solution

The graphs are:

No prescription Prescription
count 11 11
mean 35.7200 33.0127
sample standard deviation 2.6415 3.6660
sample variance 6.9777 13.4394
minimum 29.98 28.12
maximum 38.75 39.51
range 8.77 11.39
1st quartile 34.8650 30.2950
median 36.7800 31.4500
3rd quartile 37.2100 35.9450
interquartile range 2.3450 5.6500
mode 37.2100 #N/A
low extremes 0 0
low outliers 1 0
high outliers 0 0
high extremes 0 0

The independent samples t-test assuming equal variance will be used here.

The hypothesis being tested is:

H0: µ1 = µ2

H1: µ1 ≠ µ2

No prescription Prescription
35.7200 33.0127 mean
2.6415 3.6660 std. dev.
11 11 n
20 df
2.70727 difference (No prescription - Prescription)
10.20857 pooled variance
3.19509 pooled std. dev.
1.36239 standard error of difference
0 hypothesized difference
1.987 t
.0608 p-value (two-tailed)

The p-value is 0.0608.

Since the p-value (0.0608) is greater than the significance level (0.05), we fail to reject the null hypothesis.

Therefore, we can conclude that µ1 = µ2.

No prescription Prescription
34.5 35.75
37.21 29.75
32.25 37.23
38.24 36.14
38.75 33.54
35.23 31.27
35.65 28.12
37.21 30.84
36.78 31.45
37.12 29.54
29.98 39.51

Related Solutions

Two different simple random samples are drawn from two different populations. The first sample consists of...
Two different simple random samples are drawn from two different populations. The first sample consists of 20 people with 9 having a common attribute. The second sample consists of 2000 people with 1440 of them having the same common attribute. Compare the results from a hypothesis test of p 1equalsp 2 ​(with a 0.01 significance​ level) and a 99​% confidence interval estimate of p 1minusp 2. Identify the test statistic. Identify the critical​ value(s).
Two different simple random samples are drawn from two different populations. The first sample consists of...
Two different simple random samples are drawn from two different populations. The first sample consists of 40 people with 19 having a common attribute. The second sample consists of 2200 people with 1555 of them having the same common attribute. Compare the results from a hypothesis test of p 1=p 2 ​(with a 0.01 significance​ level) and a 99​% confidence interval estimate of p 1-p 2. Calculate the test statistic z to two decimal places, the critical values, and find...
Two different simple random samples are drawn from two different populations. The first sample consists of...
Two different simple random samples are drawn from two different populations. The first sample consists of 30 people with 14 having a common attribute. The second sample consists of 1900 people with 1370 of them having the same common attribute. Compare the results from a hypothesis test of p 1equalsp 2 ​(with a 0.01 significance​ level) and a 99​% confidence interval estimate of p 1minusp 2. What are the null and alternative hypotheses for the hypothesis​ test? A. Upper H...
10. Two different simple random samples are drawn from two different populations. The first sample consists...
10. Two different simple random samples are drawn from two different populations. The first sample consists of 40 people with 21 having a common attribute. The second sample consists of 1800 people with 1271 of them having the same common attribute. Compare the results from a hypothesis test of p 1=p  2 ​(with a 0.05 significance​ level) and a 95​% confidence interval estimate of p 1-p 2. What are the null and alternative hypotheses for the hypothesis​ test? A.H 0​: p...
Two random samples of 40 students were drawn independently from two populations of students. Assume their...
Two random samples of 40 students were drawn independently from two populations of students. Assume their aptitude tests are normally distributed (total points = 100). The following statistics regarding their scores in an aptitude test were obtained: xbar1= 76, s1 = 8, xbar2 = 72, and s2 = 6.5. Test at the 5% significance level to determine whether we can infer that the two population means differ. (Note: You cannot necessarily assume that the populations have the same variances). Please...
Two random samples were drawn from members of the U.S. Congress. One sample was taken from...
Two random samples were drawn from members of the U.S. Congress. One sample was taken from members who are Democrats and the other from members who are Republicans. For each sample, the number of dollars spent on federal projects in each congressperson's home district was recorded. Dollars Spent on Federal Projects in Home Districts Party Less than 5 Billion 5 to 10 Billion More than 10 billion Row Total Democratic 6 16 23 45 Republican 11 17 19 47 Column...
Two random samples were drawn from members of the U.S. Congress. One sample was taken from...
Two random samples were drawn from members of the U.S. Congress. One sample was taken from members who are Democrats and the other from members who are Republicans. For each sample, the number of dollars spent on federal projects in each congressperson's home district was recorded. Dollars Spent on Federal Projects in Home Districts Party Less than 5 Billion 5 to 10 Billion More than 10 billion Row Total Democratic 9 11 25 45 Republican 11 19 17 47 Column...
Independent random samples of 36 and 46 observations are drawn from two quantitative populations, 1 and...
Independent random samples of 36 and 46 observations are drawn from two quantitative populations, 1 and 2, respectively. The sample data summary is shown here. Sample 1 Sample 2 Sample Size 36 46 Sample Mean 1.29 1.32 Sample Variance 0.0590 0.0530 Do the data present sufficient evidence to indicate that the mean for population 1 is smaller than the mean for population 2? Use one of the two methods of testing presented in this section. (Round your answer to two...
The following observations are from two independent random samples, drawn from normally distributed populations. Sample 1...
The following observations are from two independent random samples, drawn from normally distributed populations. Sample 1 [66.73, 66.8, 75.06, 58.09, 54.64, 52.83] Sample 2 [66.71, 68.17, 66.22, 66.8, 68.81] Test the null hypothesis H0:σ21=σ22 against the alternative hypothesis HA:σ21≠σ22. a) Using the larger sample variance in the numerator, calculate the F test statistic. Round your response to at least 3 decimal places.     b) The p-value falls within which one of the following ranges: p-value > 0.50 0.10 < p-value...
a) If random samples of size 12 are drawn from a population with mean 7 and...
a) If random samples of size 12 are drawn from a population with mean 7 and standard deviation 2 , find the standard error of the distribution of sample means. b) Assume the sample is a random sample from a distribution that is reasonably normally distributed and we are doing inference for a sample mean. Find endpoints of a t-distribution with 0.025 beyond them in each tail if the sample has size n=26. c) Assume the sample is a random...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT