Question: Question 5 and 6 have me stuck because I do not understand what they are asking for, I sent photos of the pervious questions code

Question 5 and 6 have me stuck because I do not understand what they are asking for, I sent photos of the pervious questions code to help you get some context. Thank you! Question 5 and 6 have me stuck because I do not understand

what they are asking for, I sent photos of the pervious questions

code to help you get some context. Thank you! Question 4 I

Question 4 I am also not sure im doing it right

Logout jupyter WeeksLabAssignment at Checkport Let Monday at 8-10 M Castorsand) Trust Fle Ede View Insert Python 30 Cell Keme Widgets Help Markdown + X Pan C Question Represent result as a list of all potential spots of the die the demonstrate a roll of two dicen (equivalently two times of a rol of one die) In [27] port numy en In [28]: dice array die - [1, 2, 3, 4, 5, 6 write your code here rolli - rp.random.choice(die) roll2 - rp.randon.choicedie) print("oice 1 Rolled:rolla) print("olce 2 Rolled: rol12) Dice 1 Rolledt 1 bice 2 Rolled: 4 Question 2 Simulate single move in Monopoly is the sum of two dions) In [29] one move write your die rolli - rolla sundle 295 Question : Simulate il potential valors of each move via 10,000 experiment Store result into a Pandas Duraframe and display first few rows of the DataFrame In (1) write your code bare Lurt pandas w od p100 for inpannum) rolls . np.Cando.choicedim,) out.com.sulla) I utcm ta roit diety rollstietout) rull it out.com oral) 14. palle calme - L'outcome 1) rolli (4 117, 110, 111118 .. 1154. 1973. 12. 29. 11. 2017) Wersal 892otebooks/WeekblabAssignment.pynb jupyter Weeksi.abAssignment Chapet Last Monday 8 10 MM tud) E Kamel Widget Logout Trusted Python F Wew het We ++ Run CM Out Question Simulate all potential values of each move via 10. aperiments. Stove result into a Pandes DataFrame and display first few rows of the DataFrame IN (3) Hite your code bere import pandas as pd roll dict- - 1000 for 1 in parannum ep) rolls randon.choicedie.2) out.com rosemrolls) IF ut.com in oil dict() roll dict(outcom] else mailloutcome) 1 print (rella roll Durmistroll diet.item(), calmoutcomes frequency rollar im. 197.120.7. 1075, 15-11.30, 31 562, 11547. 8. 1973, 12: 230, 10:49, 21 h 4 . + 2 3 10 1878 1 on Pingwencion ( hay the bution of the value permet Monopoly using default that her otti arratis titillater 11. ) 15 IES! F Eat Wew Cell Kornel Widgets Help Pythonso + XO Run CM 11.30 Question 4: Plot a hintogram using DataFrame function (hu) to display the distribution of the value por move in Monopoly using default bins. In [18): write your code here roll of histo) Dut[18] array([[AresSubplot.title('center's outcome'>. AxesSubplot.title-'center' frequency'>>]). dtype-object) utcome frequency 2.00 175 150 11 12 100 075 45 90 025 so Gaustion Pistogramine Military to display the distribution of the value per move in Monopoly using default bis I twite your add (int) Traceback (most recent call last) Type python-input-127227230 In urite your code here - roll artis-art TypeError arang) using ruired gutt Start 1) Question : Choose a custom in one that it plays best the frequency of each mive von 10,000 experiments hinting range with floating numbers In your care der unten direla rollit placement.ht,201,10))) af lectue Logout jupyter WeeksLabAssignment at Checkport Let Monday at 8-10 M Castorsand) Trust Fle Ede View Insert Python 30 Cell Keme Widgets Help Markdown + X Pan C Question Represent result as a list of all potential spots of the die the demonstrate a roll of two dicen (equivalently two times of a rol of one die) In [27] port numy en In [28]: dice array die - [1, 2, 3, 4, 5, 6 write your code here rolli - rp.random.choice(die) roll2 - rp.randon.choicedie) print("oice 1 Rolled:rolla) print("olce 2 Rolled: rol12) Dice 1 Rolledt 1 bice 2 Rolled: 4 Question 2 Simulate single move in Monopoly is the sum of two dions) In [29] one move write your die rolli - rolla sundle 295 Question : Simulate il potential valors of each move via 10,000 experiment Store result into a Pandas Duraframe and display first few rows of the DataFrame In (1) write your code bare Lurt pandas w od p100 for inpannum) rolls . np.Cando.choicedim,) out.com.sulla) I utcm ta roit diety rollstietout) rull it out.com oral) 14. palle calme - L'outcome 1) rolli (4 117, 110, 111118 .. 1154. 1973. 12. 29. 11. 2017) Wersal 892otebooks/WeekblabAssignment.pynb jupyter Weeksi.abAssignment Chapet Last Monday 8 10 MM tud) E Kamel Widget Logout Trusted Python F Wew het We ++ Run CM Out Question Simulate all potential values of each move via 10. aperiments. Stove result into a Pandes DataFrame and display first few rows of the DataFrame IN (3) Hite your code bere import pandas as pd roll dict- - 1000 for 1 in parannum ep) rolls randon.choicedie.2) out.com rosemrolls) IF ut.com in oil dict() roll dict(outcom] else mailloutcome) 1 print (rella roll Durmistroll diet.item(), calmoutcomes frequency rollar im. 197.120.7. 1075, 15-11.30, 31 562, 11547. 8. 1973, 12: 230, 10:49, 21 h 4 . + 2 3 10 1878 1 on Pingwencion ( hay the bution of the value permet Monopoly using default that her otti arratis titillater 11. ) 15 IES! F Eat Wew Cell Kornel Widgets Help Pythonso + XO Run CM 11.30 Question 4: Plot a hintogram using DataFrame function (hu) to display the distribution of the value por move in Monopoly using default bins. In [18): write your code here roll of histo) Dut[18] array([[AresSubplot.title('center's outcome'>. AxesSubplot.title-'center' frequency'>>]). dtype-object) utcome frequency 2.00 175 150 11 12 100 075 45 90 025 so Gaustion Pistogramine Military to display the distribution of the value per move in Monopoly using default bis I twite your add (int) Traceback (most recent call last) Type python-input-127227230 In urite your code here - roll artis-art TypeError arang) using ruired gutt Start 1) Question : Choose a custom in one that it plays best the frequency of each mive von 10,000 experiments hinting range with floating numbers In your care der unten direla rollit placement.ht,201,10))) af lectue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!