A2-Q.2 (10 marks) Consider the data, file BaseballSalary2.csv, consist of the salaries of 797 baseball players...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A2-Q.2 (10 marks) Consider the data, file BaseballSalary2.csv, consist of the salaries of 797 baseball players from the rosters of all major league teams in November, 2004. We will use this file as a population. Use R to answer the following parts. Set the seed of your randomization to be the last 3 digits of your student number. #R code to read the data dataset<-read.csv head (dataset) 1 2 3 4 5 6 baseballPlayer ("BaseballSalary2.csv", header=T) [, 2:3] salary 1 6200000 2 11000000 3 375000 4 375000 5 2150000 6 7750000 For each question, report the R. code, the R output, and your answer. (a) Calculate logsal= log(salary). Find the population mean and population variance for the variable logsal. (1 mark) (b) Take a simple random sample without replacement (SRS) of 150 players. Construct a histogram of the variables salary and logsal. Does the distribution of salary appear approximately normal? What about logsal? Compute the sample mean and variance for the variable logsal. (2 marks) A2-Q.2 (10 marks) Consider the data, file BaseballSalary2.csv, consist of the salaries of 797 baseball players from the rosters of all major league teams in November, 2004. We will use this file as a population. Use R to answer the following parts. Set the seed of your randomization to be the last 3 digits of your student number. #R code to read the data dataset<-read.csv head (dataset) 1 2 3 4 5 6 baseballPlayer ("BaseballSalary2.csv", header=T) [, 2:3] salary 1 6200000 2 11000000 3 375000 4 375000 5 2150000 6 7750000 For each question, report the R. code, the R output, and your answer. (a) Calculate logsal= log(salary). Find the population mean and population variance for the variable logsal. (1 mark) (b) Take a simple random sample without replacement (SRS) of 150 players. Construct a histogram of the variables salary and logsal. Does the distribution of salary appear approximately normal? What about logsal? Compute the sample mean and variance for the variable logsal. (2 marks)
Expert Answer:
Related Book For
Posted Date:
Students also viewed these general management questions
-
Major league baseball teams have imposed what is commonly called a luxury tax on themselves. A team is subject to the tax if its payroll exceeds a specified level. The annual threshold for for the...
-
The minimum salaries for major league baseball players are shown in Table 75 for various years. Let y be the minimum salary (in thousands of dollars) at x years since 1970. a. Construct a...
-
Major League Baseball tests players to see whether they are using performance-enhancing drugs. Officials select a team at random, and a drug-testing crew shows up unannounced to test all 40 players...
-
The object provides methods for the creation of Statement objects that will be used to execute Oracle statements in the next step. a. Statement b. Connection c. DriverManager d. Driver
-
A helicopter with a load on the end of a cable is shown in Figure AP8.4 (a).The position control system is shown in Figure AP8.4 (b), where the visual feedback is represented by H(s). Sketch the Bode...
-
An electric turntable 0.750 m in diameter is rotating about a fixed axis with an initial angular velocity of 0.250 rev/s and a constant angular acceleration of 0.900 rev/s2, (a) Compute the angular...
-
Use technology and the data in RestaurantTips to construct a graph of the relationship between Server and Credit for the situation in Exercise 2.38. Data From Exercise 2.38: Credit Card by Server The...
-
The following data were taken from the financial statements of Whiting Enterprises Inc. for the current fiscal year. Assuming that long-term investments totaled $1,000,000 for the past two years and...
-
Two parallel-plate capacitors C and C are connected in series to a battery. Both capacitors have the same plate area of 4.20 cm and plate separation of 2.65 mm. However, the first capacitor C is...
-
A month has elapsed since Precision Computer Centre's year-end. Tony Freedman will use four specialized journals for recording business transactions in the month of September. To assist you in...
-
Alon Brav and his colleagues at Duke University show that when the average activist investor announces they have taken a substantial position, the stock jumps 7%. This suggests that between...
-
A. Briefly describe some of the major determinants of food retail location. How would these determinants impact the existence of food deserts? B. Briefly explain the role of fixed (or entry) costs...
-
4. According to Stirling approximation, log(n!) nlogn - n. Using your calculator or whatever you feel comfortable with, calculate the left and right side of this expression for n varying from 1 to...
-
Course: Advanced Application Development 1. How do you create a Scanner object s that reads lines from the file in the src folder with file name defined by names.txt? String fileName = "names.txt"?...
-
1) Why do they declare a queue size? 2) Why not have an infinite number of nodes? 3) Is a circular queue possible with an infinite number of nodes?
-
Exception Handling and Input/Output Streams Instructions: Part 1: Exception Handling (40 points) Create a Java class called TemperatureConverter that includes the following methods:...
-
A series RLC circuit consisting of a 9 , 0 W resistor, an inductor of 7 5 mH , and a 1 6 6 mu F capacitor, is connected across a 1 2 0 V , 6 0 Hz power source. Find the current and the power factor,...
-
Reduction in sales All of the above 29. Belt of an electric motor is broken, it needs a. Corrective maintenance b. Scheduled maintenance c. Preventive maintenance d. Timely maintenance. 30. The...
-
5x 4 = 3x + 16 Simplify the expression or solve the equation, as appropriate.
-
M = 3, (0, 4) Sketch the line that has the given slope and contains the given point.
-
In a study of African American and Caucasian girls of ages 9 and 10 years, the girls recorded their diets in a diary for three days. The researcher then computed the daily salt intake. The...
-
Identify and explain the meaning of the term "strategy."
-
Identify and describe the major features of the Strategic Management model.
-
Identify and describe the relationship between the strategy formulation process and the strategy implementation process.
Study smarter with the SolutionInn App