neuniversity / ALY6140

1 stars 3 forks source link

Assignment 4 Questions Confusion #18

Open shahtrupt opened 5 years ago

shahtrupt commented 5 years ago

Dear Professor and classmates,

I am confused about what exactly is expected from the below two questions mentioned in our Week 4 Assignment: 1. Generate a box plot that shows average bill amount by day of week - Do we need to create a plot which has 4 box plots by days of week showing their respective bill amounts? 2. Generate a box plot that shows average bill amount by gender - Do we need to create a plot which has 2 box plots by gender showing their respective bill amounts?

Please let me know how should I interpret the above questions. Thanks in advance!

Jin-pengSong commented 5 years ago

I think we can create a plot which includes 4 box plots by days of week.

By the way, I have a question about the statistics: Take the first row as an instance, whether the total_bill belongs to one consumer or two consumers? Whether the tip belongs to one or two consumers?

shahtrupt commented 5 years ago

I think we do not have to consider the size of the party here. I tried creating the plot that shows average bill amount by day of week. I am not sure whether this is what is expected. image

Jin-pengSong commented 5 years ago

I have the similar plot which looks like you.

On Fri, Nov 30, 2018 at 10:38 AM shahtrupt notifications@github.com wrote:

I think we do not have to consider the size of the party here. I tried creating the plot that shows average bill amount by day of week. I am not sure whether this is what is expected. [image: image] https://user-images.githubusercontent.com/44628610/49308031-e25a4b80-f48b-11e8-9510-5f40c603d0cc.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neuniversity/ALY6140/issues/18#issuecomment-443298134, or mute the thread https://github.com/notifications/unsubscribe-auth/AqhJLqjcpd6ITsVaZkJ-nINR2E2AhNoMks5u0XsWgaJpZM4Y6z7m .

Jin-pengSong commented 5 years ago

Do we need to consider the size in the above questions, such as the average bill?

On Fri, Nov 30, 2018 at 10:38 AM shahtrupt notifications@github.com wrote:

I think we do not have to consider the size of the party here. I tried creating the plot that shows average bill amount by day of week. I am not sure whether this is what is expected. [image: image] https://user-images.githubusercontent.com/44628610/49308031-e25a4b80-f48b-11e8-9510-5f40c603d0cc.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neuniversity/ALY6140/issues/18#issuecomment-443298134, or mute the thread https://github.com/notifications/unsubscribe-auth/AqhJLqjcpd6ITsVaZkJ-nINR2E2AhNoMks5u0XsWgaJpZM4Y6z7m .

shahtrupt commented 5 years ago

I don't think so, as both the questions did not mention anything about the 'size' of the party in the average bill.

Jin-pengSong commented 5 years ago

Do you know how to show two plots side by side?

On Fri, Nov 30, 2018 at 10:47 AM shahtrupt notifications@github.com wrote:

I don't think so, as both the questions did not mention anything about the 'size' of the party in the average bill.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neuniversity/ALY6140/issues/18#issuecomment-443300922, or mute the thread https://github.com/notifications/unsubscribe-auth/AqhJLq6TKpZyB6kPtRY6pk9279pckenAks5u0X1VgaJpZM4Y6z7m .

CHENGYULIU1 commented 5 years ago

I generated the similar plot too!!

Jin-pengSong commented 5 years ago

side by side?

On Saturday, December 1, 2018, CHENGYULIU1 notifications@github.com wrote:

I generated the similar plot too!!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/neuniversity/ALY6140/issues/18#issuecomment-443436689, or mute the thread https://github.com/notifications/unsubscribe-auth/AqhJLrLLGMzbvNnulAQeEdVcj-SmQavuks5u0qkJgaJpZM4Y6z7m .

Jin-pengSong commented 5 years ago

I have already solved the side by side problem. However, still confuse how to use Bokeh to create boxplot

pr24 commented 5 years ago

I generated same boxplot.

echolq012 commented 5 years ago

I also have the problem with " average bill amount". Does anyone figure out the average bill amount?

hansu101 commented 5 years ago

Hi guys, I have similar box plots with you. But I have a question about showing side by side, can we control the location by plt.subplot ( , , )?

wangyuhan1234 commented 5 years ago

I think plt.subplot() works for plotting multiple outputs. You may also want to use plt.figure() to adjust the figure size.

ghost commented 5 years ago

I used the plt.subplot() for this question, but also generate the above one...