Python Help with Histogram and Boxplot in Python

  • Thread starter Thread starter SShep71
  • Start date Start date
  • Tags Tags
    Histogram Python
AI Thread Summary
A transfer student is seeking assistance with a statistics assignment that involves creating a histogram and a boxplot using Python, specifically for analyzing annual rainfall data in Los Angeles from 1965 to 2006. The student has no prior coding experience and is unsure where to start. Respondents emphasize the need for the student to demonstrate more effort in their inquiry to receive meaningful help. Suggestions include using the pyplot library for plotting, with resources available online for examples of histograms and boxplots. There is also a mention of needing clarification on the graphics toolkit to be used, as well as confusion about ASCII output versus graphical plotting.
SShep71
Messages
5
Reaction score
0
I could really use some help here, I am a transfer student so my course load is all out of order. I have a statistics course that requires me to use Python to solve this one question (the 2 parts shown below). I never took any sort of coding before, I don't know where to even start. Can anyone help with this boxplot and histogram? So I can input it into my Lab report.
The weather in Los Angeles is dry most of the time, but it can be quite rainy in the winter. The rainiest month of the year is February. The following table presents the annual rainfall in Los Angeles, in inches, for each February from 1965 to 2006.

Using Python:

2) Construct a histogram for these data.

4) Construct a boxplot for these data. Does the box-plot show any outliers?
php7Y0XKA.png
 
Technology news on Phys.org
You will need to show a lot more effort than that to get much help from us. What graphics toolkit (Tk) do you have that you want to use to plot these histograms? Or are you expected to plot them using ASCII output...?
 
I really want to provide more, but I honestly don't know what ASCII or a toolkit is at this point. The only programming I have ever done is G-code for CNC machine. All my instructions say is" Provide Python code and two plots" for the question and two plots.
 
berkeman said:
You will need to show a lot more effort than that to get much help from us. What graphics toolkit (Tk) do you have that you want to use to plot these histograms? Or are you expected to plot them using ASCII output...?
I would guess that the OP is expected to use pyplot. Examples of histograms and box plots using pyplot can be located with a search engine.
 
Last edited:
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top