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
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...
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)...
In this problem, you will write an implementation of BubbleSort. Your function should take in a...
In this problem, you will write an implementation of BubbleSort. Your function should take in a single line representing an array of integers, and output a single line containing the list in ascending order. For example, if you receive the following input followed by a newline: 8 7 6 5 4 3 2 1 then you should display the following output followed by a newline: 1 2 3 4 5 6 7 8 Starter code for reading the input and...
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...
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...
And need to be writing in C++ language Programm need to start with   #include<fstream> Prepare a...
And need to be writing in C++ language Programm need to start with   #include<fstream> Prepare a text file data_in.txt with the following information (highlight the piece of text below with numbers and copy it to a text file): 54, 70, 75, 63, 17, 59, 87, 16, 93, 81, 60, 67, 90, 53, 88, 9, 61, 8, 96, 98, 12, 34, 66, 76, 38, 55, 58, 27, 92, 45, 41, 4, 20, 22, 69, 77, 86, 35, 19, 32, 49, 15,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT