Question: Please write in Python. 2 Suppose the radius of a circle, r, is a random number (it has a uniform distribution in the interval from
Please write in Python.

2 Suppose the radius of a circle, r, is a random number (it has a uniform distribution in the interval from 0 to 1), and consider the area of the circle, i.e., A = ar2. (a) Write Python code to construct a list L of n tuples, where each tuple is a pair (ri, A;) with each ri being a random number and A; = ar? Use n = 10 and print out the list L. Use the random seed of 123. (b) Adding to your Python code in part (a), calculate (and print out) the means of the ri and Ai, i.e., mean r = ha-1 Ti and mean A = h 21=1 A. (c) Calculate, print out, and comment on the value a(mean r)2 in comparison with mean_A. Also comment on the value of mean r. Use n = 1000000 and do not print out L
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
