Question

For full point, you need to give me your main R code and the results. Hand...

For full point, you need to give me your main R code and the results. Hand in your homework as a word file.

  1. With R, calculate the following numbers.

=    

       

  1. For the data, {2, 3, 4, 5, 6, 7, 8, 9, -3, -4}, find its maximum and minimum value.
  1. Find the sum of .

  1. On a recent English test, the scores were normally distributed with a mean of 74 and a standard deviation of 7. What proportion of the class would be expected to score between 60 and 80 points?

Homework Answers

Answer #1


> data<-c(2,3,4,5,6,7,8,9,-3,-4)
> data
[1] 2 3 4 5 6 7 8 9 -3 -4

Maximum of given data--
> maximum=max(data)
> maximum
[1] 9

Minimum of given data--
> minimum=min(data)
> minimum
[1] -4

Sum of the Data--
> sum=sum(data)
> sum
[1] 37
> mean=74
> sd=7

p(60 < z < 80) is

> z60<-pnorm(60,74,7)
> z60
[1] 0.02275013
> z80<-pnorm(80,74,7)
> z80
[1] 0.804317
> z=z80-z60
> z
[1] 0.7815669
p(60 < z < 80) = 0.7815669

So, about 78% of the class is expected to score between 60 and 80 on the test.

Know the answer?
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
Similar Questions
Problem 1. Your company is creating product code for its product control. They need you to...
Problem 1. Your company is creating product code for its product control. They need you to figure out some stuff If the code consists of 3 small letters from our English alphabet followed by a dash, and then 4 numbers followed by a dash and then followed by 2 letters (again small English alphabet), please answer the following important cooperate questions . _ _ _ - _ _ _ _ - _ _ (a) How many different product codes are...
R Code Directions: All work has to be your own, you may not work in groups....
R Code Directions: All work has to be your own, you may not work in groups. Show all work. Submit your solutions in a pdf document on Moodle. Include your R code (which must be commented and properly indented) in the pdf file. Name this pdf file ‘your last name’-HW5.pdf. Also submit one text file with your R code, which must be commented and properly indented. You may only use ‘runif’ to generate random numbers; other random number generating functions...
(Sure, take your time. would you like me to post this again?) Thanks in advance !...
(Sure, take your time. would you like me to post this again?) Thanks in advance ! Write the following methods in java class ARM that represent state information as well as functional blocks of the ARM platform. [Go through the following 5 classes then write methods for the instructions: mov, str, ldr, add in class ARM, finally, write a print method for ARM that can display the registers and the memory locations that have been used. (make sure to make...
please write the code in java so it can run on jGRASP import java.util.Scanner; 2 import...
please write the code in java so it can run on jGRASP import java.util.Scanner; 2 import java.io.*; //This imports input and output (io) classes that we use 3 //to read and write to files. The * is the wildcard that will 4 //make all of the io classes available if I need them 5 //It saves me from having to import each io class separately. 6 /** 7 This program reads numbers from a file, calculates the 8 mean (average)...
Using R to solve the problem, please copy and paste your code. Thanks. (You must use...
Using R to solve the problem, please copy and paste your code. Thanks. (You must use R) 8. (15 pts) Consider the following questions: give the distribution name, carefully define the random variables you use and find the final answer. (a) (3 pts) A professor has made 20 exams of which 8 are hard, 7 are reasonable, and 5 are easy. The exams are mixed up and the professor selects 4 of them at random to give to four sections...
How can this PHP code be changed to use a parameter to the function that you...
How can this PHP code be changed to use a parameter to the function that you would then pass $students in? (instead of using a global). Also, can you show how to use a loop to handle any length of array? (instead of an array that is 3 elements). <?php $students = array(     array('FName'=>'Jane', 'LName'=>'Doe', 'ClassScore'=>90),     array('FName'=>'Bob', 'LName'=>'Joe', 'ClassScore'=>50),     array('FName'=>'John', 'LName'=>'Doe', 'ClassScore'=>20)     );     //1. CalculateSum() Function     function CalculateSum()     {         // Use $students array throughout the function.         global $students;         // Add...
§ Comment your code - you will be glad you did. You will be reusing code...
§ Comment your code - you will be glad you did. You will be reusing code throughout the semester. § You will demo each of your projects. In each demo, you will be asked to demonstrate the functionality of the program and possibly describe how some of the code works. Be prepared for this. § You will upload your projects on Blackboard. Details about this will be announced in class. § Late projects will lose points: 20% per day of...
I need the actual code for this... I found a similar response but it was not...
I need the actual code for this... I found a similar response but it was not thorough enough. Problem Prerequisites: None Suppose that a scientist is doing some important research work that requires her to use rabbits in her experiments. She starts out with one adult male rabbit and one adult female rabbit. At the end of each month, a pair of adult rabbits produces one pair of offspring, a male and a female. These new offspring will take one...
R Code Directions: All work has to be your own, you may not work in groups....
R Code Directions: All work has to be your own, you may not work in groups. Show all work. Submit your solutions in a pdf document on Moodle. Include your R code (which must be commented and properly indented) in the pdf file. Name this pdf file ‘your last name’-HW5.pdf. Also submit one text file with your R code, which must be commented and properly indented. You may only use ‘runif’ to generate random numbers; other random number generating functions...
Use Python to Complete the following on a single text file and submit your code and...
Use Python to Complete the following on a single text file and submit your code and your output as separate documents. For each problem create the necessary list objects and write code to perform the following examples: Sum all the items in a list. Multiply all the items in a list. Get the largest number from a list. Get the smallest number from a list. Remove duplicates from a list. Check a list is empty or not. Clone or copy...