Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We have shown how BB and singles have similar predictive power for scoring runs. Another way to compare the usefulness of these baseball metrics is

We have shown how BB and singles have similar predictive power for scoring runs. Another way to compare the usefulness of these baseball metrics is by assessing how stable they are across the years. Because we have to pick players based on their previous performances, we will prefer metrics that are more stable. In these exercises, we will compare the stability of singles and BBs.

Before we get started, we want to generate two tables: one for 2002 and another for the average of 1999-2001 seasons. We want to define per plate appearance statistics, keeping only players with more than 100 plate appearances. Here is how we create the 2002 table, including each player's singles rate and BB rate for the 2002 season:

library(Lahman) bat_02 <- Batting %>% filter(yearID == 2002) %>% mutate(pa = AB + BB, singles = (H - X2B - X3B - HR)/pa, bb = BB/pa) %>% filter(pa >= 100) %>% select(playerID, singles, bb) 

Now compute a similar table but with rates computed over 1999-2001. Keep only rows from 1999-2001 where players have 100 or more plate appearances, calculate each player's single rate and BB rate per season, then calculate the average single rate (mean_singles) and average BB rate (mean_bb) per player over those three seasons.

a-How many players had a single rate mean_singles of greater than 0.2 per plate appearance over 1999-2001?

b-How many players had a BB rate mean_bb of greater than 0.2 per plate appearance over 1999-2001?

Use inner_join() to combine the bat_02 table with the table of 1999-2001 rate averages you created in the previous question.

c-What is the correlation between 2002 singles rates and 1999-2001 average singles rates?

d-What is the correlation between 2002 BB rates and 1999-2001 average BB rates?

Use inner_join() to combine the bat_02 table with the table of 1999-2001 rate averages you created in the previous question.

e-What is the correlation between 2002 singles rates and 1999-2001 average singles rates?

f-What is the correlation between 2002 BB rates and 1999-2001 average BB rates?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing Theory And Practice

Authors: C. William Thomas, Bart Ward, Emerson Henke

3rd Edition

0534920748, 978-0534920746

More Books

Students also viewed these Accounting questions

Question

Discuss the benefits and limitations of working in teams.

Answered: 1 week ago