Question

In: Math

Instructions This assignment is to be typed up in the supplied R-Script. You need to show...

Instructions This assignment is to be typed up in the supplied R-Script. You need to show all of your work in R in the given script. Be sure and use # in front of any text that you type in. You are allowed to work with your peer group, but please site your sources! If you get help from anyone, you need to mention that in your write up. This assignment is worth 60 points (10 per problem) and you can use it to replace the online Midterm Quiz. That is, if you chose to, you can count it twice.

6. Minimum wage. A Rasmussen Reports survey of 1,000 US adults found that 42% believe raising the minimum wage will help the economy. Construct a 99% confidence interval for the true proportion of US adults who believe this.

Solutions

Expert Solution

Use the blow code for RStudio:

# Finding confidence interval for population proportion

# Method1:

n = 1000                      # Number of respondents

p.hat = 0.42                  # Sample prop, 42% = 42/100 = 0.42

x = n*p.hat                   # Number of successes

c = 0.99                      # Confidence level,99%=99/100=0.99

One_proptest = prop.test(x,n,conf.level=c)

One_proptest$conf.int         # Confidence interval

#....................................................................................................................

# Method2:

n = 1000                      # Number of respondents

p.hat = 0.42                  # Sample prop, 42% = 42/100 = 0.42

c = 0.99                      # Confidence level,99%=99/100=0.99

alpha = 1-c                              # Level of significance

z.star = round(qnorm(1-alpha/2),2)

z.star

E = round(z.star*sqrt(p.hat*(1-p.hat)/n),4)    # Margin of Error

E

p.hat + c(-1,1)*E                           #Confidence interval

RStudio Console/Output:

The 99% confidence interval for the true proportion of US adults who believe this is (0.3780, 0.4611).


Related Solutions

Instructions This assignment is to be typed up in the supplied R-Script. You need to show...
Instructions This assignment is to be typed up in the supplied R-Script. You need to show all of your work in R in the given script. Be sure and use # in front of any text that you type in. You are allowed to work with your peer group, but please site your sources! If you get help from anyone, you need to mention that in your write up. This assignment is worth 60 points (10 per problem) and you...
Writing Assignment #1 Instructions The following assignment should be typed and printed or handwritten and turned...
Writing Assignment #1 Instructions The following assignment should be typed and printed or handwritten and turned in to the CA office in room​ 201 TMCB.​ If there is no one in the CA Office, you can slip your assignment through the slot in the door. You must follow the instructions below or you will not receive credit.​ You can turn in the assignment up until 5:00 PM on the due date. Important Notices: If you do not staple multiple pages,...
PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to...
PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to analyze the information below from BOTH the management AND the employee perspective. This information pertains to a labor union in a simulated/made up/not real firm in Glen Ellyn. The first part of your information relates to Management – the second part relates to the Labor Union employees. I have provided you with information from the last union negotiations at the plant in 2016. It...
Instructions: 1. This is a short essay assignment in which you need to write a critical...
Instructions: 1. This is a short essay assignment in which you need to write a critical response that is analytical and insightful. 2. The question: In chapter 9, we have discussed major economic crimes including: Fraud, Bribery, Forgery, Credit Crimes, Financial Market Crimes, and Money Laundering Crime. Examine only one of the above economic crimes by providing a definition of the crime, some legal features, and a discussion of the effects of the crime on the economy.
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so. Problem 3 : In lab lecture notes and demo code, I simulated random samples from Exp(1) to verify classical central limit theorem numerically. I also stressed that no matter what type of random samples you use, the standardized partial sum Sn...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so. Problem 1 : Consider a binomial random variable X ∼ Bin(100, 0.01). 1. Report P(X = 7), P(X = 8), P(X = 9), try to use one ONE R command to return all these three values. 2. Find the probability P(0...
Write a R-script to (and show the outputs of your code) (a) Create a sequence of...
Write a R-script to (and show the outputs of your code) (a) Create a sequence of numbers starting at 3.5 and ending at 10.7 with increments of 0.79. Find the variance and mean of those numbers. And finally sort the vector in a decreasing manner (b) Create a 3 different 3 by 3 matrices such that each of the numbers 1,2,...,9 appear exactly once (Sudoku style) in each of the matrices.
I need this computer typed so I can read it, and please show work. thanks! You...
I need this computer typed so I can read it, and please show work. thanks! You purchase an ABC 10%, 30 Year bond with a $100 face value for 109.72 What is the yield to maturity of the bond? What is the current yield on the bond? What is the duration of the bond? If you bought the bond today and sold it after 1 year at a YTM of 10% what is your cash flow yield? What is your...
I need a ten minute presentation typed up or powerpoint on the Financial Analysis of the...
I need a ten minute presentation typed up or powerpoint on the Financial Analysis of the company Johnson & Johnson for 2017. Financial Data for 2017 can be found on Johnson & Johnson's website.
You will need to use R to compute the final probabilities, but show all of the...
You will need to use R to compute the final probabilities, but show all of the work up to that point and write down the R code that you ran to compute your final answer. Problems should be done in the order listed, and should be clear and complete for full marks. 1. The tensile strength of plastic used to make grocery bags is an important quality characteristic. It is known that the strength is normally distributed with mean, μ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT