Question

In: Statistics and Probability

There are three basketball players, A, B, and C. A takes 30 shots a game, with...

There are three basketball players, A, B, and C. A takes 30 shots a game, with a shooting percentage of 70%. B takes 20 shots, hitting 60%, and C takes 10 shots, hitting 50%.

write a program in java or Python. Use the above statement to simulate players A, B, and C in a season of 82 games. Generate a string of shots for each player in each game, length 30, 20, and 10 shots. Count the number of shots each makes.

Accumulate and make histograms of the following statistics:

  • Total made shots for all three players per game.
  • Total made shots for player A per game.
  • Total made shots for player B per game.
  • Total made shots for player C per game.

Which of these histograms resemble a Normal distribution?

Solutions

Expert Solution

SOLUTION;-

GIVEN DATA;-

import random

A = [] # create an empty list for player A
B = [] # create an empty list for player A
C = [] # create an empty list for player A

for _ in range(30):
# create a bias of 70% chance
if random.random() <= 0.7:
A.append(1)
else:
A.append(0)

for _ in range(20):
# create a bias of 60% chance
if random.random() <= 0.6:
B.append(1)
else:
B.append(0)

for _ in range(10):
# create a bias of 50% chance
if random.random() <= 0.5:
C.append(1)
else:
C.append(0)

A_shots=sum(A)
B_shots=sum(B)
C_shots=sum(C)

print('Histogram')
print('A stats {0}/{1} - {2}'.format(A_shots,len(A),'*'*A_shots))
print('B stats {0}/{1} - {2}'.format(B_shots,len(B),'*'*B_shots))
print('C stats {0:>2}/{1:>2} - {2}'.format(C_shots,len(C),'*'*C_shots))

Normal distribution will be for player C as the probability is 50%. The chance of shooting is 1 over 2 which is equal to 50%


Related Solutions

This is a sequential game with two players A and B. In this game a dime...
This is a sequential game with two players A and B. In this game a dime is put on the table. A can take it or pass. If A takes a dime, the game ends; if A passes, then B can take 2 dimes or pass; if B takes 2 dimes, the game ends; if B passes, then A can take 3 dimes or pass; and so on until a choice of a dollar. This process is shown in the...
Consider three players (1, 2, 3) and three alternatives (A, B, C). Players vote simultaneously for...
Consider three players (1, 2, 3) and three alternatives (A, B, C). Players vote simultaneously for an alternative and abstention is not allowed.The alternative with more votes wins. If no alternative receives a majority, alternative A is chosen. U1 (A) = U2 (B) = U3 (C) = 2 U1 (B) = U2 (C) = U3 (A) = 1 U1 (C) = U2 (A) = U3 (B) = 0 Obtain all Nash equilibria in pure strategies.
The number of 3-point shots made per game during high-school basketball games was counted for all...
The number of 3-point shots made per game during high-school basketball games was counted for all 523 games played during one school year in a particular school district. The results are shown in the bar chart below. 350 300 250 200 150 100 50 0 1 2 3 4 5 6 If we take a simple random sample of size 40 from this population and calculate the mean number of 3-point baskets, which of the following best describes the shape...
Solve the follwing game theory matrix, Find the optimal strategies for both players a b c...
Solve the follwing game theory matrix, Find the optimal strategies for both players a b c A -4 2 3 B -1 0 4 C 2 -1 -3
A basketball player has made 80​% of his foul shots during the season. Assuming the shots...
A basketball player has made 80​% of his foul shots during the season. Assuming the shots are​ independent, find the probability that in​ tonight's game he does the following. ​a) Misses for the first time on his fourth attempt ​b) Makes his first basket on his fourth shot ​c) Makes his first basket on one of his first 3 shots
Consider the following game that has two players. Player A has three actions, and player B...
Consider the following game that has two players. Player A has three actions, and player B has three actions. Player A can either play Top, Middle or Bottom, whereas player B can play Left, Middle or Right. The payoffs are shown in the following matrix. Notice that a payoff to player A has been omitted (denoted by x). Player B    Left Middle Right Top (-1,1) (0,3) (1,10) Middle (2,0) (-2,-2) (-1,-1) Bottom (x,-1) (1,2) (3,2) (player A) Both players...
Two players A and B play a game of dice . They roll a pair of...
Two players A and B play a game of dice . They roll a pair of dice alternately . The player who rolls 7 first wins . If A starts then find the probability of B winning the game ?
Three players (A, B, and C) agree to divide the 13 pieces of candy shown below...
Three players (A, B, and C) agree to divide the 13 pieces of candy shown below by lining them up in order and using the method of markers. The players' bids are as indicated. Which items go to A? Which items go to B? Which items go to C? Which items are left over?
Find the PMF where two players, Player A & Player B are playing basketball. Player A...
Find the PMF where two players, Player A & Player B are playing basketball. Player A goes 1st and has probability p1 of making a basket on any throw. Player B, who shoots second, has probability p2 of making a basket. The outcomes of the successive trials are assumed to be independent.
Consider this childhood game with two players, A and B. There are 11 lit candles. The...
Consider this childhood game with two players, A and B. There are 11 lit candles. The players take turns blowing out 1, 2, or 3 candles, with A going first. The player that blows out the last candle wins. It is possible to solve this game using backwards induction. The numbers below may help you to organize your thoughts. 1 2 3 4 5 6 7 8 9 10 11 a. In equilibrium, which player wins the game? b. On...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT