Friday, March 24, 2017

Coursera - Data Management and Visualization

Data Mgmt and Visualization - Week 4 Assignment
Students who attempted suicide only considered for the report.

The univariate graph of percentage of kids who going for shopping with their father:


This graph is unimodal, with its highest peak at 89% of students responded NO to the question. So the students who attempted suicide or thinking seriously about suicide are not going much shopping with their parents.

The below graph is  univariate graph of percentage of kids who playing game with their father:
Most of students, say 88% of students responded No to the question. So as the above graph, students who are not playing game shows high suicide attempt rate.

The below graph is  univariate graph of percentage of kids who going for religious activities with their father
Most of students, say 88% of students responded No to the question. So as the above graph, shows students who are not playing game shows high suicide attempt rate.

The below three plotted graphs which shows close relation of these variables with the suicide attempt.


Sunday, March 12, 2017

Coursera - Data Management and Visualization

Data Mgmt and Visualization - Week 3 Assignment





I collapsed the responses for students who went for shopping, religious services and played game with their father to create three new variables: shopping, game, and religious. For shopping, game, and religious,  most commonly endorsed response were 3 in the rate of 51.55%, 48.88% and 47.63% respectively. That means students who attempted suicide or actually thought about it, don't have habit of doing any such activities with their father.

Saturday, March 4, 2017

Coursera - Data Management and Visualization



Data Mgmt and Visualization - Week 2 Assignment


In this assignment I have shown frequency distribution of the variables showing relations with parents, particularly activities with father. To refine the data we need only the information of adolescence who seriously think about suicide and who attempted for it. I have used logical statement used for sub-setting. 

The screenshots of code and output have given below.


   

A random sample of 6,504 adolescents were asked the following question, “Have you gone shopping with your father in last 4 weeks?” Of the total number, about 30.01% chose category 7 which was a legitimate skip [has not had intercourse], and about 51.41% fell into category 0 (no). 
For the next question, the same students were asked “Have you played a sport with your father in last 4 weeks?"  About 48.74% answered no and the same percentage 30.01%, as for first question skipped the question. 
For the next question, "Have you gone to a religious service or church-related event in the last 4 week?” same percentage of students-  30.01%  skipped the question, and about 47.49% fell into category 0.