Question

In: Math

Math 473: R Homework #4 Name: Due: Thursday, November 7th at the beginning of class; if...

Math 473: R Homework #4 Name: Due: Thursday, November 7th at the beginning of class; if your homework is submitted at the end of class or later, it will be considered late. Please print this sheet and staple it to the front of your homework. You will not receive any credit for your program if it does not run, if you did not call the program from the R Console window, you call your program more than once from the R Console window, or your program is not done 100% in R. If you write your program line by line at the R prompt, or copy and paste it into the R prompt or submit more than one R program you will not receive any credit. You will not receive any credit for your program if your font is too small (less than 8) to be readable. You will not receive any credit if you do not use the “list” command or a command that performs the same function as “list”. See previous templates for examples. Write one R program to answer the following questions: 1. 48% of men consider themselves professional baseball fans. You randomly select 10 men and ask each if he considers himself a professional baseball fan. Determine the probability that the number of men who consider themselves baseball fans is exactly eight. 2. Fifty-five percent of households say they would feel secure if they had $50,000 in savings. You randomly select 8 households and ask them if they would feel secure if they had $50,000 in savings. Determine the probability that the number of households that say they would feel secure is more than five. 3. 32% of adults say cashews are their favorite kind of nut. You randomly select 12 adults and ask each to name his or her favorite nut. Determine the probability that the number of adults who say cashews are their favorite nut is at most two. 4. 29% of college students say they use credit cards because of the rewards program. You randomly select 10 college students and ask each to name the reason he or she uses credit cards. Determine the probability that the number of college students who say they uses credit cards because of the rewards program is between two and five inclusive. 5. Sixty-six percent of pet owners say they consider their pet to be their best friend. You randomly select 11 pet owners and ask them if they consider their pet to be their best friend. Determine the probability that the number of pet owners who say their pet is their best friend is at least eight. Type a comment next to each line in the R program. The comments should describe what each line does. Hint: See the Probability Distributions handout on Blackboard. Hint: Use the “list” command at the end of the program (see the dice template); assign your answers to variables. Submit a printed version of the following: 1. R program 2. Program output: answers to each of the 5 questions Grade distribution: 15 points: function comments 10 points: R Console window (need to show that you compiled the function using the source command, and need to show that you called the function) 75 points: function output (print R Console screen; 15 points for the correct answer to each problem; print R Console screen).

Please i need full R program not only the out put i need the program line by line from the syntax to the out put.. thank you

Solutions

Expert Solution


Related Solutions

CHEM 4722/5722 Homework Set #3 (due beginning of class Thu Apr 2) Homework is to be...
CHEM 4722/5722 Homework Set #3 (due beginning of class Thu Apr 2) Homework is to be turned in prior to class and should be done on plain white printer paper. If not, it will be returned for resubmission with a penalty assessed. Word processing should be used for any narrative answers. Calculations and mechanisms can be done freehand but must be very neat, organized, legible and on plain white paper. No lined paper will be accepted. An example of a...
CHE 1102 Homework #8 – Due November 14                                     
CHE 1102 Homework #8 – Due November 14                                                                                                                                                                                                   Name__________________________________                Print Two Sided or STAPLE                                                                                   Email ID ________________________________            Show work for full credit. Showing work means: 1) Write the equation you are using, 2) Fill in values (with units) in the equation, and 3) Show the final answer to correct sig figs/units. Intermediate math steps are not necessary. 1) What is the molar solubility of the following compounds based upon their given Ksp values: a)...
Problem Set 2 is due in class on Thursday, February 7. There are two workers in...
Problem Set 2 is due in class on Thursday, February 7. There are two workers in an economy, Maeve and Dolores. They can make either cowboy hats or lassos. In one day, Maeve can make 40 cowboy hats, or she can make 20 lassos. In the same day, Dolores can make 30 cowboy hats, or she can make 10 lassos. What is the opportunity cost of a cowboy hat for Maeve? What is the opportunity cost of a lasso for...
           Homework: Polynomial Using Array Description: Implement a polynomial class (1) Name your class...
           Homework: Polynomial Using Array Description: Implement a polynomial class (1) Name your class Polynomial (2) Use array of doubles to store the coefficients so that the coefficient for x^k is stored in the location [k] of the array. (3) define the following methods: a. public Polynomial()    POSTCONDITION: Creates a polynomial represents 0 b. public Polynomial(double a0)    POSTCONDITION: Creates a polynomial has a single x^0 term with coefficient a0 c. public Polynomial(Polynomial p)    POSTCONDITION: Creates...
Due Thursday (20 pts) Week 4 Write a 175- to 265-word response to the following: What...
Due Thursday (20 pts) Week 4 Write a 175- to 265-word response to the following: What are some finance options for lifespan management facilities and services? How will those options influence the services provided? Provide details.
3. This data is from #4 in the Correlation (Ch. 7) homework. The correlation is r...
3. This data is from #4 in the Correlation (Ch. 7) homework. The correlation is r = .73. Answer the following: a. Predict the number of courses June is taking based on the fact that she missed 7 classes. b. Predict the number of courses Jordan is taking based on the fact that he missed 5 classes. c. Find the standard error of the estimate. What does this tell you about your predictions? You are interested in whether the number...
4) Define an abstract class Name Java class that implements interface Comparable   
4) Define an abstract class Name Java class that implements interface Comparable   
62% of all students at a college still need to take another math class. If 4...
62% of all students at a college still need to take another math class. If 4 students are randomly selected, find the probability that a. Exactly 2 of them need to take another math class. b. At most 2 of them need to take another math class. c. At least 2 of them need to take another math class. d. Between 2 and 3 (including 2 and 3) of them need to take another math class. Round all answers to...
Homework 4 Due April 27, 2020 On February 1st, September call option with exercise price of...
Homework 4 Due April 27, 2020 On February 1st, September call option with exercise price of $55 written on Aztec stock is sold for $4.375 per share and September put option with exercise price of $55 written on the same stock is sold for $6 per share. At the time, T-bills coming due in September are priced to yield 12%. Aztec stock is sold for $53 per share on February 1st. The time period between Feb 1 st and expiration...
Name the 4 commonly used R & D terms according to the National Science Foundation.and define...
Name the 4 commonly used R & D terms according to the National Science Foundation.and define each of them
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT