 # 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

Movie Data Sets and Visualizations \$100.00
Movie
Data
Sets
Visualizations
Mathematics
Statistics
R-Programming
Coherent
Requirement
Analysis
Projects
R Programming Problems \$75.00
Computer Science
R Programming
Statistics
Data Analysis
CSV Files
Arguments
Syntax
Predictions
Population
Intervals
Scripts
Linear Regression
Statistics Questions \$30.00
Statistics
Mathematics
R Programming
Data Sets
Means Test
Tables
Differences
Degrees Of Freedom
Coefficient Test
Correlation
Critical Values
T-Statistics
Variables
Calculations
Statistics Problems \$38.00
Mathematics
Statistics
Probability
Performances
Courts
Cases
Raw Data
Percentage
Charts
Ranking
Judges
Statistics Problems \$30.00
Mathematics
Statistics
Volvo
Variance
Miles
Gallons
Rejection
Decisions
Null Hypothesis
Alternative Hypothesis
Agencies
Random Samples
Distributions
Die Rolls Problem \$7.00
Mathematics
Statistics
Probability
Die Rolls
Conditional Distribution
Zero Values
Fractions
Expressions
Live Chats