Assignment 05

CONFIDENCE INTERVALS

This assignment is worth 20 points. Each question is worth 1 point unless otherwise noted.

Copyright EPSY 5261, 2023
Published

July 24, 2024

Instructions

You will use the nhanes.csv data set to answer questions in this lab. The data codebook includes a description of how the data were collected and of each of the attributes included in the data.

Use the code chunks in the assignment05.qmd file to load packages, import the data, and carry out any R computations. Submit a PDF document of your responses to the questions in this assignment.

A social scientist is interested in answering the following two research questions:

Research Question 1: What proportion of adults in the U.S. in 2017 report having sleep trouble?

Research Question 2: What is the difference in the proportion of American adults in 2017 that are experiencing depression between those who have reported sleep trouble and those who have not?

You will use the recent_depression and trouble_sleeping variables from the nhanes.csv data to compute confidence intervals to answer these research questions.

Part 1: Investigating Research Question 1

  1. (5pts.) Compute and report a 95% confidence interval to estimate the proportion of adults in the U.S. in 2017 report having sleep trouble. Then interpret this interval to answer Research Question 1. To fully answer this question, you must:

    • Include the syntax you used to create the interval.
    • Include an interpretation of the confidence interval in context.
  2. (3pts.) Evaluate all three of the assumptions underlying the use of this confidence interval. For each assumption: clearly state whether the assumption is tenable or not and explain why you believe the assumption is tenable or not by referring to the evidence you computed. Be sure to also include any evidence/calculations you are using here.


Part 2: Investigating Research Question 2

  1. (5pts.) Compute and report a 95% confidence interval to estimate the difference in the proportion of American adults in 2017 that are experiencing depression between those who have reported sleep trouble and those who have not. Then interpret this interval to answer Research Question 2. To fully answer this question, you must:

    • Include the syntax you used to create the interval.
    • Include an interpretation of the confidence interval in context.
  2. (3pts.) Evaluate all three of the assumptions underlying the use of this confidence interval. For each assumption: clearly state whether the assumption is tenable or not and explain why you believe the assumption is tenable or not by referring to the evidence you computed. Be sure to also include any evidence/calculations you are using here.


Part 3: Multiple Choice Questions

Please indicate your answer to each question clearly. (You do NOT need to explain your choice.)

  1. If the sample size was increased, all else being the same, how would the widths of the confidence intervals in Questions #1 and #2 change?

    1. The interval widths would both decrease.
    2. The interval widths would both increase.
    3. The interval widths would both stay the same.
    4. One of the interval widths would decrease, the other would increase.
  2. If the confidence level was increased to 98%, all else being the same, how would the widths of the confidence intervals in Questions #1 and #2 change?

    1. The interval widths would both decrease.
    2. The interval widths would both increase.
    3. The interval widths would both stay the same.
    4. One of the interval widths would decrease, the other would increase.

Suppose a researcher computed a 90% confidence interval to estimate the mean number of hours per weekend night adults in U.S. households in 2017 slept. This interval was reported as 90% CI = [8.05, 8.31]. Questions 7–8 each give a potential interpretation of this interval. For each of these questions, indicate whether the interpretation provided is correct or incorrect. (You do NOT need to explain why.)

  1. There is a 90% chance the confidence interval includes the sample mean number of hours per weekend night adults in U.S. households in 2017 slept.

    1. Correct interpretation
    2. Incorrect interpretation
  2. About 90% of adults in U.S. households in 2017 slept between 8.05 and 8.31 hrs per weekend night.

    1. Correct interpretation
    2. Incorrect interpretation


How do I submit the assignment?

Create a PDF of your responses and submit the PDF via email to both the instructor and TA. Also cc any group members. Before you submit the assignment check that: