Question

hours age sex 7 17 f 8 40 f 8 60 m 5 35 f 6...

hours age sex
7 17 f
8 40 f
8 60 m
5 35 f
6 22 m
4 7 m
7 16 f
6 10 m
4 19 f
5 9 m
6 14 m

Please make a confidence interval with the data given and give the mean, standard deviation, critical value, and the margin of error.

Second, for hours and age please give the Min, Q1, Med, Q3, Max, Mean and standard deviation (separate the hours and age so they have their own data set for each)

Please help!!

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

For Hours:

By using R-software:

> lHours=c(7,8,8,5,6,4,7,6,4,5,6);Hours
[1] 7 8 8 5 6 4 7 6 4 5 6
> n1=length(Hours);n1
[1] 11
> summary(Hours)
Min. 1st Qu. Median Mean 3rd Qu. Max.
4 5 6 6 7 8
> mH=mean(Hours);mH #mean of Hours
[1] 6
> v=var(Hours);v # Sample variance
[1] 2
> s1=sqrt(v);s1 # Sample standard deviation
[1] 1.414214
> SDhr=sqrt(((n1-1)/n1)*v);SDhr # population standard deviation
[1] 1.3484

R-code:

Hours=c(7,8,8,5,6,4,7,6,4,5,6);Hours
n1=length(Hours);n1
summary(Hours)
mH=mean(Hours);mH #mean of Hours
v=var(Hours);v # Sample variance
s1=sqrt(v);s1 # Sample standard deviation
SDhr=sqrt(((n1-1)/n1)*v);SDhr # population standard deviation

From this R-Output of data set Hours we get,  

Min=4, Q1=5, Med=Q2=6, Q3=7, Max=8, Mean=6, Standard deviation=1.3484

Also,  = 6, sl = 1.4142

using t- test we find 95 % C.I. as foloows,

(\bar{x}- t_{(n-1),\alpha/2}*\frac{s_1}{\sqrt{n}},\bar{x}+ t_{(n-1),\alpha/2}*\frac{s_1}{\sqrt{n}})

(\bar{x}-M.E.,\bar{x}+ M.E.)

Where,

Critical value:   t_{(n-1),\alpha/2}=t_{(11-1),0.05/2}=t_{10,0.025}=2.228 (From t-table)

By using MS-Excel Function "=TINV(0.05,10)")

(6- 2.228*\frac{1.4142}{\sqrt{11}},6+2.228*\frac{1.4142}{\sqrt{11}})

(6- 0.95,6+0.95)

Margin of error=0.95

(5.05,6.95)

The required C.I. for Hour is (5.05,6.95)

For Age:

> Age=c(17,40,60,35,22,7,16,10,19,9,14);Age
[1] 17 40 60 35 22 7 16 10 19 9 14
> n2=length(Age);n2
[1] 11
> summary(Age)
Min. 1st Qu. Median Mean 3rd Qu. Max.
7.00 12.00 17.00 22.64 28.50 60.00
> mA=mean(Age);mA #mean of Age
[1] 22.63636
> v1=var(Age);v1 # Sample variance
[1] 260.4545
> s2=sqrt(v1);s2 # Sample standard deviation
[1] 16.1386
> SDA=sqrt(((n2-1)/n2)*v);SDA # population standard deviation of Age
[1] 1.3484

R-Code:

Age=c(17,40,60,35,22,7,16,10,19,9,14);Age
n2=length(Age);n2
summary(Age)
mA=mean(Age);mA #mean of Age
v1=var(Age);v1 # Sample variance
s2=sqrt(v1);s2 # Sample standard deviation
SDA=sqrt(((n2-1)/n2)*v1);SDA # population standard deviation of Age

From this R-Output of data set Age we get,  

Min=7, Q1=12, Med=Q2=17, Q3=28.50, Max=60, Mean=22.64, Standard deviation=15.3876

Also,  \bar{x}=6,s_2=16.1386

using t- test we find 95 % C.I. as foloows,

(\bar{x}- t_{(n-1),\alpha/2}*\frac{s_2}{\sqrt{n}},\bar{x}+ t_{(n-1),\alpha/2}*\frac{s_2}{\sqrt{n}})

(\bar{x}-M.E.,\bar{x}+ M.E.)

Where,

Critical value:   t_{(n-1),\alpha/2}=t_{(11-1),0.05/2}=t_{10,0.025}=2.228 (From t-table)

By using MS-Excel Function "=TINV(0.05,10)")

(22.64- 2.228*\frac{16.1386}{\sqrt{11}},22.64+2.228*\frac{16.1386}{\sqrt{11}})

(22.6-10.8414,22.6+10.8414)

Margin of error=10.8414

(11.7586,33.4814)

The required C.I. for Age is  (11.7586,33.4814)


Add a comment
Know the answer?
Add Answer to:
hours age sex 7 17 f 8 40 f 8 60 m 5 35 f 6...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • You have been analyzing discharges by sex from DRG 462, Rehabilitation, for Critical Care Hospital. Specifically, you are interested in determining if there is a difference in average age by sex. Revi...

    You have been analyzing discharges by sex from DRG 462, Rehabilitation, for Critical Care Hospital. Specifically, you are interested in determining if there is a difference in average age by sex. Review the data in Table 5–A–1, and answer the questions that follow. Table 5–A–1 Mean Age of Patients by Sex, DRG 462, Rehabilitation, Critical Care Hospital, 2004 Female Male Total N 80 88 168 Mean 55.467 53.947 54.671 Standard Deviation 17.5344 19.1981 18.3856 Standard Error 1.9604 2.0465 1.4185 Lower...

  • A random sample of 40 adults with no children under the age of 18 years results...

    A random sample of 40 adults with no children under the age of 18 years results in a meandaly leisure time of 5.92 hours, with a standard deviation of 2.33 hours. A random sample of 40 adults with children under the age of 18 results in a mean daily leisure time of 4.26 hours, with a standard deviation of 1.61 hours. Construct and interpret a 95% confidence interval for the mean difference in leisure time between adults with no children...

  • Assessment plots Due in 14 hours, 6 m Here is a set of sample data 1...

    Assessment plots Due in 14 hours, 6 m Here is a set of sample data 1 15 26 38 62 67 79 84 93 96 100 Identify the 5 number summary (min, Q1, median, Q3, max) Hint: HelpG Video Textbook Points possible: 1 This is attempt 1 of 3. 3S Submit ctionaskip&ito 3

  • Consider the sample: 9, 6, 7, 9, 10, 8 a) Find : the mean, the median,...

    Consider the sample: 9, 6, 7, 9, 10, 8 a) Find : the mean, the median, the mode b) Find : the range, the quartiles Q1, Q3, the variance, the standard deviation. c) Draw a box-plot for the given data set.

  • (2) Consider the sample: 9, 6. 7, 9, 10, 8 a) Find: the mean, the median,...

    (2) Consider the sample: 9, 6. 7, 9, 10, 8 a) Find: the mean, the median, the mode b) Find: the range, the quartiles Q1, Q3, the variance, the standard deviation c) Draw a box-plot for the given data set.

  • please answer number 6. 7. and 8. only Birthweight for girls was compared to boys in...

    please answer number 6. 7. and 8. only Birthweight for girls was compared to boys in the month of July in MoristoWn Hospital. S. Boys: 8, 6, 4, 7, 8, 9, 10, 7, 8, 7, 5, 4, 8, 8 and 9 lbs 4, 6, 7, 8, 10, 9, 8, 4, 5, 8, 4, 6, 7,9 and 9 lbs Girs: Describe the data for both sets: Girls Вoys 7,2 6.9 7 Меan Median 4,1.9 Mode Standard Deviation (sample) Q1 Q3 Skewness...

  • You have been analyzing discharges by sex from DRG 462, Rehabilitation, for Critical Care Hospital. Specifically,...

    You have been analyzing discharges by sex from DRG 462, Rehabilitation, for Critical Care Hospital. Specifically, you are interested in determining if there is a difference in average age by sex. Review the data in Table 5–A–1, and answer the questions that follow. Table 5–A–1 Mean Age of Patients by Sex, DRG 462, Rehabilitation, Critical Care Hospital, 2004 Female Male Total N 80 88 168 Mean 55.467 53.947 54.671 Standard Deviation 17.5344 19.1981 18.3856 Standard Error 1.9604 2.0465 1.4185 Lower...

  • to of age A options: fewer than 6 hours, 6 to 6.9 hours, 7 to 7.9...

    to of age A options: fewer than 6 hours, 6 to 6.9 hours, 7 to 7.9 hours, and 8 hours or more. Later in the options: age 39 or younger and age 40 or older. Sample data follow. 6 to 6.9 7 to 7.9 of age. Ha: Hours of sleep per night is not mutually exclusive from age. Find the value of the test statistic. (Round your answer to three decimal places.) What Is the p-value? (Round your answer to...

  • Quick Check please Respondents Sex Statistic Std. Error 6.33 5.12 7.54 4.85 2.00 90.364 9.506 EmailHrsiperWeek...

    Quick Check please Respondents Sex Statistic Std. Error 6.33 5.12 7.54 4.85 2.00 90.364 9.506 EmailHrsiperWeek Male Mean 95% Confidence Interval for Mean 5% Trimmed Mean Median Variance Std. Deviation Minimum Maximum Range Interquartile Range Skewness Kurtosis 615 Lower Bound Upper Bound 50 50 2.658 7.585 5.93 4.98 6.88 4.57 2.00 78.924 8.884 157 314 485 Female Mean 95% Confidence Interval for Mean 5% Trimmed Mean Median Variance Std. Deviation Minimum Maximum Range Interquartile Range Skewness Kurtosis Lower Bound Upper...

  • Average Sleep Time on a School Night Students 4 hours 8 5 hours 9 6 hours...

    Average Sleep Time on a School Night Students 4 hours 8 5 hours 9 6 hours 14 7 hours 12 8 hours 15 9 hours 4 10 hours 0 Ho: 72.7% of high school students (grade 9-12) do not get enough sleep at night. (minimum 8 hours) Ha: 72.7% of high school students (grade 9-12) do get enough sleep at night. Sample size: Sample mean: Sample deviation: Record the hypothesis test. Use 5% level of significance Include 95% confidence interval...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT