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...
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 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.
The probability that a certain hockey team will win any given game is 0.3628 based on...
The probability that a certain hockey team will win any given game is 0.3628 based on their 13 year win history of 377 wins out of 1039 games played (as of a certain date). Their schedule for November contains 12 games. Let X = number of games won in November. Find the probability that the hockey team wins at least 7 games in November. (Round your answer to four decimal places.) Please use TI-84 calculator not excel. Thanks!
6. Team A and Team B are competing in the following game: There are 25 flags...
6. Team A and Team B are competing in the following game: There are 25 flags planted on the beach. On its turn a team may take 1, 2, 3, or 4 flags. The team that takes the last flag wins. Team A chooses first. You are the captain of Team B. Using backward induction, devise and explain a strategy that guarantees your team will win.
Team A and Team B are competing in the following game: There are 25 flags planted...
Team A and Team B are competing in the following game: There are 25 flags planted on the beach. On its turn a team may take 1, 2, 3, or 4 flags. The team that takes the last flag wins. Team A chooses first. You are the captain of Team B. Using backward induction, devise and explain a strategy that guarantees your team will win.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT