Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Probability & Python Programming Write a Python program to simulate customers entering the florist according to the below table. Run it for 10 days and

Probability & Python Programming

Write a Python program to simulate customers entering the florist according to the below table. Run it for 10 days and track the number of customers who by 1, 6, and 12 roses, and the number who buy 1, 2, and 3 gift cards. Do the numbers match what we would expect? Please provide indented code and comments so I can prepare for my exam. Thanks

image text in transcribed

Below given is the solution to the above questions.

image text in transcribed

image text in transcribed

A florist has 100 customers a day, who buy some combination of roses and gift cards, with the number of customers given by the following table: 1 rose 6 roses 20 7 12 roses 10 13 gift card 40 2 gift cards 3 gift cards What is the marginal PMF of gift cards bought? Roses bought? What is the expected number of gift cards sold per customer? What is the expected number of gift cards sold per day? What is the expected number of roses sold per customer? What is the expected number of roses sold per day? Are the two PMF's independent? ME 10 O ME CU PR 1 0 Xpethed Aumbe ad enme s 59 LOO PME io PMEs Indo - Lto So A florist has 100 customers a day, who buy some combination of roses and gift cards, with the number of customers given by the following table: 1 rose 6 roses 20 7 12 roses 10 13 gift card 40 2 gift cards 3 gift cards What is the marginal PMF of gift cards bought? Roses bought? What is the expected number of gift cards sold per customer? What is the expected number of gift cards sold per day? What is the expected number of roses sold per customer? What is the expected number of roses sold per day? Are the two PMF's independent? ME 10 O ME CU PR 1 0 Xpethed Aumbe ad enme s 59 LOO PME io PMEs Indo - Lto So

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

Step: 3

blur-text-image

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

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

f. Did they change their names? For what reasons?

Answered: 1 week ago