泰坦尼克数据集预测分析_探索性数据分析-泰坦尼克号数据集案例研究(第二部分)

泰坦尼克数据集预测分析

Data is simply useless until you don’t know what it’s trying to tell you.

除非您不知道数据在试图告诉您什么,否则数据将毫无用处。

With this quote we’ll continue on our quest to find the hidden secrets of the Titanic. ‘The Unsinkable’, as it was claimed by its designers and makers proved that even the best of human engineering may sometimes fail when nature comes on to test it.

用这句话,我们将继续寻找泰坦尼克号的秘密。 正如其设计师和制造商所宣称的,“坚不可摧”证明了,即使人类最好的工程学,有时也会由于自然的考验而失败。

In last article, we saw the different attributes of the data and had quick glance on what the data looked like. If you haven’t read part 1 of this blog , I recommend you to kindly read it by clicking here before continuing. In this article we’ll look at the relationships of each of the attributes to the survival of the passenger and to continue with our quest to find out whether you would’ve survived the Titanic Sinking or not.

在上一篇文章中,我们看到了数据的不同属性,并快速浏览了数据的外观。 如果您还没有阅读本博客的第1部分,建议您在继续之前单击此处 ,请仔细阅读。 在本文中,我们将研究每个属性与乘客生存的关系,并继续我们的探索,以找出您是否会在《泰坦尼克号沉没》中幸存。

1.旅客舱位与生存的关联 (1. Co-Relation of Passenger Class with the survival)

Since, there are 3 classes present in the ship. Let’s find out the count of each passengers in each class.

此后,船上共有3个班级。 让我们找出每个班级的每位乘客人数。

Output:

输出:

Image for post

Now, let’s find out the the total number of survivors from each class

现在,让我们找出每个班级的幸存者总数

Output:

输出:

Image for post
Image for post

As you can see, the percentage of the passengers belonging to Upper Class who survived is better than the rest of the two having a survival percentage of around 62.96%.

如您所见,幸存的上层阶级乘客百分比要好于其余两个的生存百分比(约62.96%)。

The Survival Percentage of Middle Class Passengers is around 47.28% which better than the lower class but worse than that of the Upper Class

中产阶级乘客的生存率大约为47.28%,高于低层阶级,但低于上层阶级

The Lower Class was hit the most, having a survival percentage of just 24.23% which is significantly lower than the above two classes.

下层阶级受到的打击最大,生存率仅为24.23%,明显低于上述两个阶级。

The results indicate that the survival of the Titanic Sink was largely affected by the class in which you belong indicating the discrimination based on the class.

结果表明,泰坦尼克号水槽的生存在很大程度上受到您所属类别的影响,表明基于类别的歧视。

2.性别与生存的关系 (2. Co-Relation of Gender with the survival)

Let’s start by printing the number of passengers of each gender.

让我们开始打印每种性别的乘客数量。

Output:

输出:

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值