subject

This assessment has 6 multi-part questions that will all use the setup below. Game attendance in baseball varies partly as a function of how well a team is playing.
Load the Lahman library. The Teams data frame contains an attendance column. This is the total attendance for the season. To calculate average attendance, divide by the number of games played, as follows:
library(tidyverse)
library(broom)
library(Lahman)
Teams_small <- Teams %>%
filter(yearID %in% 1961:2001) %>%
mutate(avg_attendance = attendance/G)
Use linear models to answer the following 3-part question about Teams_small.
Question 1a
0.0/2.0 points (graded)
Use runs (R) per game to predict average attendance.
For every 1 run scored per game, average attendance increases by how much? incorrect
Use home runs (HR) per game to predict average attendance.
For every 1 home run hit per game, average attendance increases by how much? incorrect
Question 1b
Use number of wins to predict average attendance; do not normalize for number of games.
For every game won in a season, how much does average attendance increase? unanswered
Suppose a team won zero games in a season.
Predict the average attendance.
Question 1c
0.0/1.0 point (graded)
Use year to predict average attendance.
How much does average attendance increase each year? unanswered
Question 2
0.0/2.0 points (graded)
Game wins, runs per game and home runs per game are positively correlated with attendance. We saw in the course material that runs per game and home runs per game are correlated with each other. Are wins and runs per game or wins and home runs per game correlated?
What is the correlation coefficient for wins and runs per game? unanswered
What is the correlation coefficient for wins and home runs per game? unanswered
Stratify Teams_small by wins: divide number of wins by 10 and then round to the nearest integer. Keep only strata 5 through 10, which have 20 or more data points.
Use the stratified dataset to answer this three-part question.
Question 3a
0.0/1.0 point (graded)
How many observations are in the 8 win strata?
(Note that due to division and rounding, these teams have 75-85 wins.)
unanswered
Question 3b
0.0/2.0 points (graded)
Calculate the slope of the regression line predicting average attendance given runs per game for each of the win strata.
Which win stratum has the largest regression line slope?
5
6
7
8
9
10
Calculate the slope of the regression line predicting average attendance given HR per game for each of the win strata.
Which win stratum has the largest regression line slope?
5
6
7
8
9
10
incorrect
Question 3c
0.0/1.0 point (graded)
Which of the followng are true about the effect of win strata on average attendance?
Select ALL that apply.
Across all win strata, runs per game are positively correlated with average attendance.
Runs per game have the strongest effect on attendance when a team wins many games.
After controlling for number of wins, home runs per game are not correlated with attendance.
Home runs per game have the strongest effect on attendance when a team does not win many games.
Among teams with similar numbers of wins, teams with more home runs per game have larger average attendance.
Question 4
0.0/3.0 points (graded)
Fit a multivariate regression determining the effects of runs per game, home runs per game, wins, and year on average attendance. Use the original Teams_small wins column, not the win strata from question 3.
What is the estimate of the effect of runs per game on average attendance? unanswered
What is the estimate of the effect of home runs per game on average attendance? unanswered
What is the estimate of the effect of number of wins in a season on average attendance? unanswered
Question 5
0.0/2.0 points (graded)
Use the multivariate regression model from Question 4. Suppose a team averaged 5 runs per game, 1.2 home runs per game, and won 80 games in a season.
What would this team's average attendance be in 2002? unanswered
What would this team's average attendance be in 1960? unanswered
Question 6
0.0/1.0 point (graded)
Use your model from Question 4 to predict average attendance for teams in 2002 in the original Teams data frame.
What is the correlation between the predicted attendance and actual attendance?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Data is processed, stored, and transmitted as a series of 1s and 0s. each 1 or 0 is called a(n) . a series of eight 0s and 1s, called a(n) , represents one character—a letter, number, or punctuation mark. data becomes when it is presented in a format that people can understand and use. digital signals are represented by two different , such as +5 volts and +.2 volts. digital data can also take the form of light and dark spots etched onto the surface of a cd or the positive and negative orientation of particles on the surface of a hard disk. data consists of numbers that might be used in arithmetic operations. it can be represented digitally using the number system. data is composed of letters, symbols, and numerals that are not used in arithmetic operations. computers represent this type of data using , ebcdic, unicode, or utf-8. data is quantified using terms such as or kibibyte (1024 bytes), and prefixes such as or mebi (1,048,576), and giga or (1,073,741,824). to reduce file size and transmission times, digital data can be compressed. compression provides the means to compress data and reconstitute it into its original state. compression throws away some of the original data during the compression process. compressed files usually have at the end of the file name and are represented with special icons. these files have to be or unzipped before you can view the data they contain.
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
How is the brightness of oled of the diaplay is controled
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
You know the right answer?
This assessment has 6 multi-part questions that will all use the setup below. Game attendance in ba...
Questions
question
Arts, 14.01.2021 19:10
question
Mathematics, 14.01.2021 19:10
question
Mathematics, 14.01.2021 19:10
question
Mathematics, 14.01.2021 19:10
question
Mathematics, 14.01.2021 19:10
question
English, 14.01.2021 19:10
Questions on the website: 13722361