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
-
Solve the Ozark University model (Problem 3, Set 8.la) using the preemptive method, assuming that the goals are prioritized in the same order given in the problem.
-
Go to the St. Louis Federal Reserve FRED database, and find data on the total public debt by the federal government (GFDEBTN) and the amount of debt held by foreign and international investors...
-
Retelsdorf Ltd manufactures tablet screens. Recently, the company has been producing slightly below 75% of capacity and management is considering how to use currently unused plant capacity. One...
-
The balance sheet of Lamont Bros. follow: (a) What portions of Lamont's assets were provided by debt, contributed capital, and earned capital? Reduce contributed capital by the cost of the treasury...
-
Bonita, Inc. decided to implement the activity-based costing approach and was quite successful in its use. However, the controller is wondering if instead of only two activity cost pools, they should...
-
An international graduate student will receive a $28,000 foundation scholarship and reduced tuition. He must pay $1,500 in tuition for each of the autumn, winter, and spring quarters, and $500 in the...
-
An asset (not an automobile) put in service in June 2018 has a depreciable basis of $2,055,000, a recovery period of 5 years, and is the only asset placed in service this year. Assuming bonus...
-
First identify and label any variable(s) in this problem. (Diagram not drawn to scale.) Then write an equation(s) and show how to solve it algebraically. Be prepared to show your work. Cheryl fenced...
-
A train on a straight track sounds a 400 Hz horn when passing a parked car on the road. The train is moving at 20 m/s and the temperature is 10C. Find the apparent frequency of the horn for a person...
-
a. Construct an equal-weighted (50/50) portfolio of investments B and C. What are the expected rate of return and standard deviation of the portfolio? Explain your results.(6 Points) b. Construct an...
-
As more companies enter the market, what can we expect to happen to the market structure and market outcomes (e.g., prices, cost, profit maximization decision, etc.)? Discuss clearly how it will...
-
Three identical units of Item K113 are purchased during July, as shown below. Item K113 Units Cost July 9 Purchase 1 156 17 Purchase 1 177 26 Purchase 1 187 Assume that one unit is sold on July 31...
-
In preparation for doing a clustering analysis on a set of RGB colors, we need a function that will give us the "distance" from one color to another and a function that calculates the "center of...
-
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...
-
At 30 June 2024, the accountant for Woodbine Construction, Mary Ellam, is preparing the financial statements for the year ended on that date. To calculate the annual leave payable, the accountant had...
-
How would each of the following liabilities be classified (current, non-current, or both) at the end of the financial year? Unearned revenue Accrued expenses Provision for warranty repair costs...
-
The following were among transactions of Everluck Enterprises Ltd during the financial years ending 30 June 2023 and 30 June 2024. Required Record in general journal form all the above transactions,...
Study smarter with the SolutionInn App