# Thread: SPSS Basic Histogram - how to manipulate given data

1. ## SPSS Basic Histogram - how to manipulate given data

Hi

I have never used SPSS before and have had a look around the web before posting this.

I have a set of data that contains three variables:

1. The name of a road

2. The length of the road; and

3. The suburb the road ends in.

I need to create a histogram to compare the distribution of the road length between roads that end in A and roads that end in B. So I am assuming that the histogram is meant to show road length in certain categories (eg 5km, 10km etc). Is it possible to create this with just the three variables entered in the data set?

That is I need to manipulate the data to show the number of roads 5km or less, 10km or less etc.

Any help would be appreciated.

Kind regards
Beetle

2. ## Re: SPSS Basic Histogram - how to manipulate given data

Are A and B the suburbs the roads end in?

Sorry yes.

4. ## Re: SPSS Basic Histogram - how to manipulate given data

Ok so for the comparative histograms, the names of the roads are irrelevant.

You will probably want back-to-back histograms so you can compare the two distributions. These are basically two separate histograms, one for road lengths ending in suburb A, and the other for road lengths ending in suburb B.

Have a look at this: https://www.youtube.com/watch?v=2bfADOHBI8Q

5. ## Re: SPSS Basic Histogram - how to manipulate given data

Thank you. I suspect I am over thinking the whole problem. I was assuming the histograms should have bars representing road length and showing categories like number of roads 0-5 km, 5-10 km etc but question just says: "provide graphs that allow the distributions of road lengths to be compared between roads that end in suburb A and suburb B".

My lecturer said never to plot raw data rather show that in a table which has me a bit confused.

It then asks to provide mean, median and standard deviation for each distribution.

Another example of posting without containing the whole question by me. I am sorry.