GSS Dataset Tutorial


We are analyzing the data-set Premarital Sex for today's class.

 This is to visualize the opinion on Premarital Sex from 1989 to 2008.


 We plot the line graphs for the three groups based on Average Sex per year:

 1) Not wrong at all
2) Sometimes wrong
3) Almost always wrong and Always wrong



We have an interesting result already. Over the past 20 years, those opposed to premarital sex have been having more and more sex on average each year, while those who think it is not wrong at all have been having less and less.

 Now, we plot the Respondent's opinion on pre-martial sex based on Average Age of Respondent.


Since younger people have sex much more frequently than older people (create a new worksheet plotting SexPerYear against AGE if you want to see for yourself), we can see that the puzzling trends in sexual activity are likely linked to the changing average age of these difference groups.

The answer appears when we segment the population into under-40 and over-40 age brackets. In the under-40 age bracket, beliefs have remained remarkably consistent over the past twenty years.

 In the over-40 age bracket, on the other hand, there has been a clear shift towards increased acceptance of premarital sex.

Comments

Popular posts from this blog

Working with Pandas

Playing with Tableau

Visualizing with Tableau-1