 R Programming Problems

Subject Mathematics Statistics-R Programming

Question

Check the file: Questions.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

1.
(a)
I counted how many players in each team in 797 players’ data using table function, and divide it by 797 to obtain the proportion. I then multiply the proportion by 150 to find the rough estimate of the number of players to be sampled and round them up. The sum of them should be approximately equal to 150. It turns out that all the allocations are 5 and the sum is also exactly 150. Then, I used the 'strata()' function from sampling package to obtain strata samples.
(b)
E(logsal) = 14.5403
C.I. for logsal = [14.37123, 14.70937]
(c)
E(pitcher) = 420.4
C.I. for pitcher = [361.2663, 479.5337]
(d)
The optimal allocation may benefit because it is not clear to say the variances in each strata are even roughly the same....

This is only a preview of the solution. Please use the purchase button to see the entire solution

Related Homework Solutions

Statistics Questions \$78.00
Statistics
MLE Formula
Mathematics
Chi-Square Distribution
Degrees Of Freedom
Mean
Variance
Gene Expression
R codes
Samples
Functions
Monte Carlo Study
Parameter Values
Probability
Patterns
Categorical Independent Variables \$28.00
mathematics
Statistics
R
Programming
Categorical
Independent
Variables
Kindergarten
R Programming Problems \$48.00
Statistics
Mathematics
Computer Science
R Programming
Data Sets
Plots
Statistical Procedures
Functions
Weight
Permutation Test
Variables
Chi-Squared
Codes
R Programming Problems: Durban Watson Test \$33.00
Computer Science
R Programming
Durban Watson Test
Statistics
Mathematics
Commands
Codes
Variables
Regression
Plots
Residuals
Functions
Lines
Graphics
R Programming Problems \$43.00
Mathematics
Statistics
Computer Science
R Programming
Smokers
Studies
Codes
Surveys
F-Tests
Plots
Commands
Regression Variables
Libraries
Regions
Live Chats