Chapter 2: Problem 10
You throw a pair of six-sided dice and sum the number from each of the dice: \(Z=X_{1}+X_{2}\), where \(Z\) is the sum of the results from dice 1 , \(X_{1}\), and dice \(2, X_{2} .\) If we perform this experiment many times \((N)\), we can find the average and standard deviation from standard estimators from statistics. The average, \(\langle Z\rangle\), of \(Z\) is estimated from: $$ \langle Z\rangle=\frac{1}{N} \sum_{j=1}^{N} Z_{j} $$ and the standard deviation, \(\Delta Z\), is estimated from: $$ \Delta Z=\frac{1}{N-1}\left(\sum_{j=1}^{N}\left(Z_{j}-\langle Z\rangle\right)^{2}\right. $$ (a) Write a function that returns an array of \(N\) values for \(Z\). (b) Write a function that returns an estimate of the average of an array \(z\) using the formula provided. (c) Write a function that returns an estimate of the standard deviation of an array z using the formula provided. (d) Find the average and standard deviation for \(N=100\) throws of two dice.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.