Chapter 1. Tutorial 1.2: Creating and interpreting bar charts and pie charts

1.1 Problem Statement

{0.59, 0.69, 0.79, 0.89}
rand(0,3)
@firstservein[$firstserveinindex]
{0.63, 0.73, 0.83, 0.93}
rand(0,3)
@firstservewin[$firstserveinindex]
{0.56, 0.66, 0.76, 0.86}
rand(0,3)
@secondservein[$firstserveinindex]
{0.46, 0.56, 0.66, 0.76}
rand(0,3)
@winpoint[$firstservein]
$firstservein*$firstservewin
$firstservein*(1-$firstservein)
1-$firstservein
(1-$firstservein)*$secondservein
$firstoutsecondin*$winpoint
$probwinfirstserve+$secondservewin

A player serving in tennis has two chances to get a serve into play. If the first serve is out, the player serves again. If the second serve is also out, the player loses the point. Here are the probabilities based on a long running championship series:

P(1st serve is in) = $firstservein

P(win point | 1st serve is in) = $firstservewin.

P(2nd serve in | 1st serve out) = $secondservein.

P(win point | 1 serve out and 2nd serve in) = $winpoint.

Consider the (partially) completed tree diagram below:

1.2 Step 1

questions

Question 1.1

P++eChfXTUFXkuzD1m25/KTHyyMp5uvc/pYZPjJ0GpMGZ/BsyXn1QkQWIHgEJq1q/8oaZ4Vw+yxx//qGlypDzqShdcyYweBSuc6iHlJJueK1LisvmIs0ZdqYAL9e3jYkvHS5Qw==
Correct.
Incorrect.

Question 1.2

d9Eczbfb61M+YqFPb/7ftUv0FneMKjkMJe1RJaKu1ZAxJFWiBQi6oIT/7QzUIbMp6U/OaKoDFLpfuTVcb6YhJT7kJytfNMQpOvEZoa8tsVyo87hKwufYwot86N7ydhPRFyPpaQ==
Correct.
Incorrect.

Question 1.3

42elM/NtuUZZDCEr2fFz3To6ZhzQgncCmi1gh9ZfqD7jL6QWyipVacDJ2bDxR1Pg9hsExQvhW3l7LYby4jqgb6JxzAEZ0ItCfFhHZEY/B8Pk8U0lfd3kUw==
Correct.
Incorrect.

1.3 Step 2

questions

Question 1.4

6g2+U3oR/Q+wRL5vEHKgTp1eV2unrnKnTwv7yRG2czenndsFfoPbctpGFrGaO+yWyUlfKXkAUzR/3BvGhQM4oaTv2WeavNxHYXhptq7hIWw5vKqLe58s2LxGIig9FWLjqfSar+LGWPoHZaqr
Correct.
Incorrect.

Question 1.5

TIx7sGsMuaYGjDKECxdYOLMnpuAnd7Y2JVC9CVODK45q5+APsbHg6uGk94JzEGDqFKXSDhzOYJCb8I4bVJ0Jfu+NY9dX77LQyOAbuchf6fOGgu3Kwivu7tSXZre4JUfYleP7yrNi8ls=
Correct.
Incorrect.

Question 1.6

Yl0KflQdHsfsT11YWlVEekwlkYzJXpCOsj0fhNLfLdcZtq7Kz1lDchTl8TUfuV6KrM1OI7CBtMuwChf5akyBpk6EfKNHxm3WT5nj3ouTj57wm6zwsch04tqp6Zq22AF/MYzroHD++uKUM8rtMy9WjNFjYwYw6kjIPoqLej3oYEpmnlHVcY5WhQ==
Correct.
Incorrect.

1.4 Step 3

questions

Question 1.7

7ukw07DNWZDD61s/E5VpbAKO9iBNQcR23NHxWomWySY0ga6MoB5y/ugReJZCWdA/tmJV29zOOlHlwwm5JZnHwEqrX5GlaTK+K+p0mGD59ESf7VkQqoF5QDLWtNtljyp59TzgOS3I/Ic=
Correct.
Incorrect.

Question 1.8

aBZrjjAEn/b3klPt2HR1enXRLNDBIBImljspTvPduLNEjUby2aRDxAFo/9MOTP41dejJV7X/lOJhTjocHopN8Xz3Fj4WSFIhF9xpgdWH9SImk7BY+U5ObWBYOZeBDtneAYIihsfJM0udFIAyHVHnjFycJLVeI8CmoXOqUw==
Correct.
Incorrect.