![]() ![]() As such you could get away with calculating these statistics by hand. You only have to submit your answers, not your program. ![]() How much did people pay to be on the ship? Calculate the expectation of fare conditioned on passenger-class:.You can express your answer as a parameterized distribution. Calculate the conditional probability that a person survives given their sex and passenger-class:.Write a program in C, C++, Java or Python that reads the data file and finds the answers to the following questions: The columns describe different attributes about the person including whether they survived ($S$), their age ($A$), their passenger-class ($C$), their sex ($G$) and the fare they paid ($X$). The titanic.csv file contains data for 887 of the real Titanic passengers. Although there was some element of luck involved in surviving the sinking, some groups of people were more likely to survive than others. One of the reasons that the shipwreck resulted in such loss of life was that there were not enough lifeboats for the passengers and crew. This sensational tragedy shocked the international community and led to better safety regulations for ships. When the Titanic sank it killed 1502 out of 2224 passengers and crew. On April 15, 1912, the largest passenger liner ever made collided with an iceberg during her maiden voyage. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |