Question

In: Statistics and Probability

The following table lists the game stats of a certain team M (e.g., Men’s Basketball) on...

The following table lists the game stats of a certain team M (e.g., Men’s Basketball) on a game-by-game basis:

Points Scored:

51 76 55 55 71 59 61 64 64 63 71 56 56 53 61 77

58 76 74 79 79 60 61 68 61 79 79 70 59 74 58 66

Points Allowed:

81 79 50 82 46 64 78 80 61 79 86 56 50 55 61 58

87 47 72 52 83 52 68 90 61 47 54 63 60 55 88 76

a) Find how many times team M won their game against their rivals.

b) Find how many times team M won by a margin of 10 points.

c) Calculate the season average of Points Scored by team M.

d) Identify the games won by team M in the season.

Solve in Matlab please.

Solutions

Expert Solution


Matlab

Executive code:

out put:

copy code:

% Matlab script to analyze the data for the team M

% define the matrix to store the Points Scored and Points Allowed by M in
% the 2 halves game-by-game basis
Points_Scored = [51,76,55,55,71,59,61,64,64,63,71,56,56,53,61,77; 58,76,74,79,79,60,61,68,61,79,79,70,59,74,58,66];
Points_Allowed = [81,79,50,82,46,64,78,80,61,79,86,56,50,55,61,58; 87,47,72,52,83,52,68,90,61,47,54,63,60,55,88,76];

% calculate the total points scores and allowed in the entire game (summing
% the points scored and allowed in 2 halves)
Total_Points_Scored = sum(Points_Scored,1);
Total_Points_Allowed = sum(Points_Allowed,1);

% a) Find out how many times team M won their game against their rivals
% find returns the indices where Total_Points_Scored > Total_Points_Allowed
% length returns the number of elements returned by find function
M_won = length(find(Total_Points_Scored > Total_Points_Allowed));

fprintf('M won %d games against their rivals\n',M_won);

% b) Find out how many times M won by a margin of 10 points
% calculate the difference in scores of Total_Points_Scored and Total_Points_Allowed
score_difference = Total_Points_Scored-Total_Points_Allowed;

% find returns the indices where score difference = 10
% length returns the number of elements returned by find function
M_won_margin10 = length(find(score_difference == 10));

fprintf('M won %d games by a margin of 10 points\n',M_won_margin10);

% c) Calculate season average of Points Scored by team M
% mean returns the average value of the vector Total_Points_Scored
season_avg_Points_Scored = mean(Total_Points_Scored);

fprintf('Season Average of Points Scored by team M : %.2f\n',season_avg_Points_Scored);

% d) Identify the games won by team M in the season
% find returns the indices where Total_Points_Scored > Total_Points_Allowed
games_won_by_M = find(Total_Points_Scored > Total_Points_Allowed);

fprintf('Games won by M in the season: ');
format compact;
disp(games_won_by_M);

%end of script


Related Solutions

The coach of a very popular men’s basketball team claims that the average distance the fans...
The coach of a very popular men’s basketball team claims that the average distance the fans travel to the campus to watch a game is 35 miles. The team members feel otherwise. A sample of 16 fans who travel to games was randomly selected and yielded a mean of M= 36 miles and s= 5 miles. Test the coach’s claim at the 5% (.05) level of significance. one-tailed or two-tailed test: State the hypotheses: df= tα or t value for...
Soma recorded in the table the height of each player on the basketball team Basketball Players’...
Soma recorded in the table the height of each player on the basketball team Basketball Players’ Heights (in inches) 66 66 68 57 64 65 67 67 64 65 Construct a normal probability distribution curve for this population! Indicate the number for the mean, 1SD, 2SD and 3SD (both sides of the mea) (1+ 6*0.5=4p)
16#2 The following table provides the starting players of a basketball team and their heights Player...
16#2 The following table provides the starting players of a basketball team and their heights Player A B C D E Height (in.) 75 77 78 81 84 a. The population mean height of the five players is: 79 b. Find the sample means for samples of size 2. A, B: ?¯ = A, C: ?¯ = A, D: ?¯ = A, E: ?¯= B, C: ?¯ = B, D: ?¯ = B, E: ?¯ = C, D: ?¯= C,...
Assume that the Gamecocks basketball team has a probability of 0.70 of winning a game against...
Assume that the Gamecocks basketball team has a probability of 0.70 of winning a game against any opponent, and that the outcomes of its games are independent of each other. Suppose during the basketball season it will play a total of 30 games. Let X denote the total number of games that it will win during the season. (a) Write down the formula for the probability mass function (pmf) (p(x)) of X. Is your pmf the binomial pmf? (b) Use...
The district manager of basketball officials has to assign each team of officials to one game...
The district manager of basketball officials has to assign each team of officials to one game on Friday night. There are four sites for games. So each site needs one group of officials. Below are the distances in miles each group of officials is from each site. Game site Officials Wayne Sioux City Winnebago Wakefield Group A 210 90 180 160 Group B 100 70 130 200 Group C 175 105 140 170 Group D 80 65 105 120 Formulate...
The district manager of basketball officials has to assign each team of officials to one game...
The district manager of basketball officials has to assign each team of officials to one game on Friday night. There are four sites for games. So each site needs one group of officials. Below are the distances in miles each group of officials is from each site. Game Site Officials Wayne South Sioux City Winnebago Wakefield Group A 210 90 180 160 Group B 100 70 130 200 Group C 175 105 140 170 Group D 80 65 105 120...
The table below lists pitches in a baseball game for two pitchers and the breakdown of...
The table below lists pitches in a baseball game for two pitchers and the breakdown of “strikes” and “balls” (good pitches and bad pitches). The summary statistics are also listed. Pitcher Strikes Balls Total Bumgarner 76 32 108 Cueto 76 41 117   Bumgarner                  Cueto             Sample Mean (pitches per inning) 12.0                              13.0             Sample Variance (pitches per inning) 3.5 8             Sample Size (# of innings) 9 9              (an “inning” is one of the rounds in a...
Every time a certain basketball team wins, the players become over-confident. In that case, their chance...
Every time a certain basketball team wins, the players become over-confident. In that case, their chance of winning the next game is only 35%. Every time the team loses, the players become angry with themselves and more focused. In that case, their chance of winning the next game is 75% Assuming that the team wins the 1st game, calculate the probability they win the 4th game. Find the equilibrium distribution as well.
Every time a certain basketball team wins, the players become over-confident. In that case, their chance...
Every time a certain basketball team wins, the players become over-confident. In that case, their chance of winning the next game is only 35%. Every time the team loses, the players become angry with themselves and more focused. In that case, their chance of winning the next game is 75% Assuming that the team wins the 1st game, calculate the probability they win the 4th game. Find the equilibrium distribution as well.
Every time a certain basketball team wins, the players become over-confident. In that case, their chance...
Every time a certain basketball team wins, the players become over-confident. In that case, their chance of winning the next game is only 35%. Every time the team loses, the players become angry with themselves & more focused. In that case, their chance of winning the next game is 75%. Assuming that the team wins the first game, calculate the probability they win the fourth game. Find the equilibrium distribution as well.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT