Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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! image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions