Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pclass survived sex age 1 1st 1 female 29 2 1st 1 male 0 3 1st 0 female 2 4 1st 0 male 30 5

image text in transcribed
"pclass" "survived" "sex" "age"
"1" "1st" 1 "female" 29
"2" "1st" 1 "male" 0
"3" "1st" 0 "female" 2
"4" "1st" 0 "male" 30
"5" "1st" 0 "female" 25
"6" "1st" 1 "male" 48
"7" "1st" 1 "female" 63
"8" "1st" 0 "male" 39
"9" "1st" 1 "female" 53
"10" "1st" 0 "male" 71
"11" "1st" 0 "male" 47
"12" "1st" 1 "female" 18
"13" "1st" 1 "female" 24
"14" "1st" 1 "female" 26
"15" "1st" 1 "male" 80
"16" "1st" 0 "male" 24
"17" "1st" 1 "female" 50
"18" "1st" 1 "female" 32
"19" "1st" 0 "male" 36
"20" "1st" 1 "male" 37
"21" "1st" 1 "female" 47
"22" "1st" 1 "male" 26
"23" "1st" 1 "female" 42
"24" "1st" 1 "female" 29
"25" "1st" 0 "male" 25
"26" "1st" 1 "male" 25
"27" "1st" 1 "female" 19
"28" "1st" 1 "female" 35
"29" "1st" 1 "male" 28
"30" "1st" 0 "male" 45
"31" "1st" 1 "male" 40
"32" "1st" 1 "female" 30
"33" "1st" 1 "female" 58
"34" "1st" 0 "male" 42
"35" "1st" 1 "female" 45
"36" "1st" 1 "female" 22
"37" "1st" 0 "male" 41
"38" "1st" 0 "male" 48
"39" "1st" 1 "female" 44
"40" "1st" 1 "female" 59
"41" "1st" 1 "female" 60
"42" "1st" 1 "female" 41
"43" "1st" 0 "male" 45
"44" "1st" 1 "male" 42
"45" "1st" 1 "female" 53
"46" "1st" 1 "male" 36
"47" "1st" 1 "female" 58
"48" "1st" 0 "male" 33
"49" "1st" 0 "male" 28
"50" "1st" 0 "male" 17
"51" "1st" 1 "male" 11
"52" "1st" 1 "female" 14
"53" "1st" 1 "male" 36
"54" "1st" 1 "female" 36
"55" "1st" 0 "male" 49
"56" "1st" 0 "male" 36
"57" "1st" 1 "female" 76
"58" "1st" 0 "male" 46
"59" "1st" 1 "female" 47
"60" "1st" 1 "male" 27
"61" "1st" 1 "female" 33
"62" "1st" 1 "female" 36
"63" "1st" 1 "female" 30
"64" "1st" 1 "male" 45
"65" "1st" 0 "male" 27
"66" "1st" 1 "female" 26
"67" "1st" 1 "female" 22
"68" "1st" 0 "male" 47
"69" "1st" 1 "female" 39
"70" "1st" 0 "male" 37
"71" "1st" 1 "female" 64
"72" "1st" 1 "female" 55
"73" "1st" 0 "male" 70
"74" "1st" 1 "female" 36
"75" "1st" 1 "female" 64
"76" "1st" 0 "male" 39
"77" "1st" 1 "female" 38
"78" "1st" 1 "male" 51
"79" "1st" 1 "male" 27
"80" "1st" 1 "female" 33
"81" "1st" 0 "male" 31
"82" "1st" 1 "female" 27
"83" "1st" 1 "male" 31
"84" "1st" 1 "female" 17
"85" "1st" 1 "male" 53
"86" "1st" 1 "male" 4
"87" "1st" 1 "female" 54
"88" "1st" 0 "male" 50
"89" "1st" 1 "female" 27
"90" "1st" 1 "female" 48
"91" "1st" 1 "female" 48
"92" "1st" 1 "male" 49
"93" "1st" 0 "male" 39
"94" "1st" 1 "female" 23
"95" "1st" 1 "female" 38
"96" "1st" 1 "female" 54
"97" "1st" 0 "female" 36
"98" "1st" 1 "male" 36
"99" "1st" 0 "male" 30
"100" "1st" 1 "female" 24
"101" "1st" 1 "female" 28
"102" "1st" 1 "female" 23
"103" "1st" 0 "male" 19
"104" "1st" 0 "male" 64
"105" "1st" 1 "female" 60
"106" "1st" 1 "female" 30
"107" "1st" 1 "male" 50
"108" "1st" 1 "male" 43
"109" "1st" 1 "female" 22
"110" "1st" 1 "male" 60
"111" "1st" 1 "female" 48
"112" "1st" 0 "male" 37
"113" "1st" 1 "female" 35
"114" "1st" 0 "male" 47
"115" "1st" 1 "female" 35
"116" "1st" 1 "female" 22
"117" "1st" 1 "female" 45
"118" "1st" 0 "male" 24
"119" "1st" 1 "male" 49
"120" "1st" 0 "male" 71
"121" "1st" 1 "male" 53
"122" "1st" 1 "female" 19
"123" "1st" 0 "male" 38
"124" "1st" 1 "female" 58
"125" "1st" 1 "male" 23
"126" "1st" 1 "female" 45
"127" "1st" 0 "male" 46
"128" "1st" 1 "male" 25
"129" "1st" 1 "female" 25
"130" "1st" 1 "male" 48
"131" "1st" 1 "female" 49
"132" "1st" 0 "male" 45
"133" "1st" 1 "female" 35
"134" "1st" 0 "male" 40
"135" "1st" 1 "male" 27
"136" "1st" 1 "female" 24
"137" "1st" 0 "male" 55
"138" "1st" 1 "female" 52
"139" "1st" 0 "male" 42
"140" "1st" 0 "male" 55
"141" "1st" 1 "female" 16
"142" "1st" 1 "female" 44
"143" "1st" 1 "female" 51
"144" "1st" 0 "male" 42
"145" "1st" 1 "female" 35
"146" "1st" 1 "male" 35
"147" "1st" 1 "male" 38
"148" "1st" 1 "female" 35
"149" "1st" 1 "female" 38
"150" "1st" 0 "female" 50
"151" "1st" 1 "male" 49
"152" "1st" 0 "male" 46
"153" "1st" 0 "male" 50
"154" "1st" 0 "male" 32
"155" "1st" 0 "male" 58
"156" "1st" 0 "male" 41
"157" "1st" 1 "male" 42
"158" "1st" 1 "female" 45
"159" "1st" 1 "female" 39
"160" "1st" 1 "female" 49
"161" "1st" 1 "female" 30
"162" "1st" 1 "male" 35
"163" "1st" 0 "male" 42
"164" "1st" 1 "female" 55
"165" "1st" 1 "female" 16
"166" "1st" 1 "female" 51
"167" "1st" 0 "male" 29
"168" "1st" 1 "female" 21
"169" "1st" 0 "male" 30
"170" "1st" 1 "female" 58
"171" "1st" 1 "female" 15
"172" "1st" 0 "male" 30
"173" "1st" 1 "female" 16
"174" "1st" 0 "male" 19
"175" "1st" 1 "female" 18
"176" "1st" 1 "female" 24
"177" "1st" 0 "male" 46
"178" "1st" 0 "male" 54
"179" "1st" 1 "male" 36
"180" "1st" 0 "male" 28
"181" "1st" 0 "male" 65
"182" "1st" 0 "male" 44
"183" "1st" 1 "female" 33
"184" "1st" 1 "female" 37
"185" "1st" 1 "male" 30
"186" "1st" 0 "male" 55
"187" "1st" 0 "male" 47
"188" "1st" 0 "male" 37
"189" "1st" 1 "female" 31
"190" "1st" 1 "female" 23
"191" "1st" 0 "male" 58
"192" "1st" 1 "female" 19
"193" "1st" 0 "male" 64
"194" "1st" 1 "female" 39
"195" "1st" 1 "female" 22
"196" "1st" 0 "male" 65
"197" "1st" 0 "male" 28
"198" "1st" 0 "male" 45
"199" "1st" 0 "male" 23
"200" "1st" 0 "male" 29
"201" "1st" 1 "female" 22
"202" "1st" 0 "male" 18
"203" "1st" 1 "female" 17
"204" "1st" 1 "female" 30
"205" "1st" 1 "male" 52
"206" "1st" 0 "male" 47
"207" "1st" 1 "female" 56
"208" "1st" 0 "male" 38
"209" "1st" 0 "male" 22
"210" "1st" 1 "female" 43
"211" "1st" 0 "male" 31
"212" "1st" 1 "male" 45
"213" "1st" 1 "female" 33
"214" "1st" 0 "male" 46
"215" "1st" 0 "male" 36
"216" "1st" 1 "female" 33
"217" "1st" 0 "male" 55
"218" "1st" 1 "female" 54
"219" "1st" 0 "male" 33
"220" "1st" 1 "male" 13
"221" "1st" 1 "female" 18
"222" "1st" 1 "female" 21
"223" "1st" 0 "male" 61
"224" "1st" 1 "female" 48
"225" "1st" 1 "female" 24
"226" "1st" 1 "female" 35
"227" "1st" 1 "female" 30
"228" "1st" 1 "male" 34
"229" "1st" 1 "female" 40
"230" "1st" 1 "male" 35
"231" "1st" 0 "male" 50
"232" "1st" 1 "female" 39
"233" "1st" 1 "male" 56
"234" "1st" 1 "male" 28
"235" "1st" 0 "male" 56
"236" "1st" 0 "male" 56
"237" "1st" 0 "male" 24
"238" "1st" 1 "female" 18
"239" "1st" 1 "male" 24
"240" "1st" 1 "female" 23
"241" "1st" 1 "male" 6
"242" "1st" 1 "male" 45
"243" "1st" 1 "female" 40
"244" "1st" 0 "male" 57
"245" "1st" 1 "male" 32
"246" "1st" 0 "male" 62
"247" "1st" 1 "male" 54
"248" "1st" 1 "female" 43
"249" "1st" 1 "female" 52
"250" "1st" 1 "female" 62
"251" "1st" 0 "male" 67
"252" "1st" 0 "female" 63
"253" "1st" 0 "male" 61
"254" "1st" 1 "female" 48
"255" "1st" 1 "female" 18
"256" "1st" 0 "male" 52
"257" "1st" 1 "female" 39
"258" "1st" 1 "male" 48
"259" "1st" 0 "male" 49
"260" "1st" 1 "male" 17
"261" "1st" 1 "female" 39
"262" "1st" 1 "male" 31
"263" "1st" 0 "male" 40
"264" "1st" 0 "male" 61
"265" "1st" 0 "male" 47
"266" "1st" 1 "female" 35
"267" "1st" 0 "male" 64
"268" "1st" 1 "female" 60
"269" "1st" 0 "male" 60
"270" "1st" 0 "male" 54
"271" "1st" 0 "male" 21
"272" "1st" 1 "female" 55
"273" "1st" 1 "female" 31
"274" "1st" 0 "male" 57
"275" "1st" 1 "female" 45
"276" "1st" 0 "male" 50
"277" "1st" 0 "male" 27
"278" "1st" 1 "female" 50
"279" "1st" 1 "female" 21
"280" "1st" 0 "male" 51
"281" "1st" 1 "male" 21
"282" "1st" 1 "female" 31
"283" "1st" 0 "male" 62
"284" "1st" 1 "female" 36
"285" "2nd" 0 "male" 30
"286" "2nd" 1 "female" 28
"287" "2nd" 0 "male" 30
"288" "2nd" 0 "male" 18
"289" "2nd" 0 "male" 25
"290" "2nd" 0 "male" 34
"291" "2nd" 1 "female" 36
"292" "2nd" 0 "male" 57
"293" "2nd" 0 "male" 18
"294" "2nd" 0 "male" 23
"295" "2nd" 1 "female" 36
"296" "2nd" 0 "male" 28
"297" "2nd" 0 "male" 51
"298" "2nd" 1 "male" 32
"299" "2nd" 1 "female" 19
"300" "2nd" 0 "male" 28
"301" "2nd" 1 "male" 1
"302" "2nd" 1 "female" 4
"303" "2nd" 1 "female" 12
"304" "2nd" 1 "female" 36
"305" "2nd" 1 "male" 34
"306" "2nd" 1 "female" 19
"307" "2nd" 0 "male" 23
"308" "2nd" 0 "male" 26
"309" "2nd" 0 "male" 42
"310" "2nd" 0 "male" 27
"311" "2nd" 1 "female" 24
"312" "2nd" 1 "female" 15
"313" "2nd" 0 "male" 60
"314" "2nd" 1 "female" 40
"315" "2nd" 1 "female" 20
"316" "2nd" 0 "male" 25
"317" "2nd" 1 "female" 36
"318" "2nd" 0 "male" 25
"319" "2nd" 0 "male" 42
"320" "2nd" 1 "female" 42
"321" "2nd" 1 "male" 0
"322" "2nd" 1 "male" 26
"323" "2nd" 1 "female" 22
"324" "2nd" 1 "female" 35
"325" "2nd" 0 "male" 19
"326" "2nd" 0 "female" 44
"327" "2nd" 0 "male" 54
"328" "2nd" 0 "male" 52
"329" "2nd" 0 "male" 37
"330" "2nd" 0 "female" 29
"331" "2nd" 1 "female" 25
"332" "2nd" 1 "female" 45
"333" "2nd" 0 "male" 29
"334" "2nd" 1 "female" 28
"335" "2nd" 0 "male" 29
"336" "2nd" 0 "male" 28
"337" "2nd" 1 "male" 24
"338" "2nd" 1 "female" 8
"339" "2nd" 0 "male" 31
"340" "2nd" 1 "female" 31
"341" "2nd" 1 "female" 22
"342" "2nd" 0 "female" 30
"343" "2nd" 0 "male" 21
"344" "2nd" 1 "male" 8
"345" "2nd" 0 "male" 18
"346" "2nd" 1 "female" 48
"347" "2nd" 1 "female" 28
"348" "2nd" 0 "male" 32
"349" "2nd" 0 "male" 17
"350" "2nd" 0 "male" 29
"351" "2nd" 1 "female" 24
"352" "2nd" 0 "male" 25
"353" "2nd" 0 "male" 18
"354" "2nd" 1 "female" 18
"355" "2nd" 1 "female" 34
"356" "2nd" 0 "male" 54
"357" "2nd" 1 "male" 8
"358" "2nd" 0 "male" 42
"359" "2nd" 1 "female" 34
"360" "2nd" 1 "female" 27
"361" "2nd" 1 "female" 30
"362" "2nd" 0 "male" 23
"363" "2nd" 0 "male" 21
"364" "2nd" 0 "male" 18
"365" "2nd" 0 "male" 40
"366" "2nd" 1 "female" 29
"367" "2nd" 0 "male" 18
"368" "2nd" 0 "male" 36
"369" "2nd" 0 "female" 38
"370" "2nd" 0 "male" 35
"371" "2nd" 0 "male" 38
"372" "2nd" 0 "male" 34
"373" "2nd" 1 "female" 34
"374" "2nd" 0 "male" 16
"375" "2nd" 0 "male" 26
"376" "2nd" 0 "male" 47
"377" "2nd" 0 "male" 21
"378" "2nd" 0 "male" 21
"379" "2nd" 0 "male" 24
"380" "2nd" 0 "male" 24
"381" "2nd" 0 "male" 34
"382" "2nd" 0 "male" 30
"383" "2nd" 0 "male" 52
"384" "2nd" 0 "male" 30
"385" "2nd" 1 "male" 0
"386" "2nd" 1 "female" 24
"387" "2nd" 0 "male" 44
"388" "2nd" 1 "female" 6
"389" "2nd" 0 "male" 28
"390" "2nd" 1 "male" 62
"391" "2nd" 0 "male" 30
"392" "2nd" 1 "female" 7
"393" "2nd" 0 "male" 43
"394" "2nd" 1 "female" 45
"395" "2nd" 1 "female" 24
"396" "2nd" 1 "female" 24
"397" "2nd" 0 "male" 49
"398" "2nd" 1 "female" 48
"399" "2nd" 1 "female" 55
"400" "2nd" 0 "male" 24
"401" "2nd" 0 "male" 32
"402" "2nd" 0 "male" 21
"403" "2nd" 0 "female" 18
"404" "2nd" 1 "female" 20
"405" "2nd" 0 "male" 23
"406" "2nd" 0 "male" 36
"407" "2nd" 1 "female" 54
"408" "2nd" 0 "male" 50
"409" "2nd" 0 "male" 44
"410" "2nd" 1 "female" 29
"411" "2nd" 0 "male" 21
"412" "2nd" 1 "male" 42
"413" "2nd" 0 "male" 63
"414" "2nd" 0 "female" 60
"415" "2nd" 0 "male" 33
"416" "2nd" 1 "female" 17
"417" "2nd" 0 "male" 42
"418" "2nd" 1 "female" 24
"419" "2nd" 0 "male" 47
"420" "2nd" 0 "male" 24
"421" "2nd" 0 "male" 22
"422" "2nd" 0 "male" 32
"423" "2nd" 1 "female" 23
"424" "2nd" 0 "male" 34
"425" "2nd" 1 "female" 24
"426" "2nd" 0 "female" 22
"427" "2nd" 0 "male" 35
"428" "2nd" 1 "female" 45
"429" "2nd" 0 "male" 57
"430" "2nd" 0 "male" 31
"431" "2nd" 0 "female" 26
"432" "2nd" 0 "male" 30
"433" "2nd" 1 "female" 1
"434" "2nd" 1 "female" 3
"435" "2nd" 0 "male" 25
"436" "2nd" 1 "female" 22
"437" "2nd" 1 "female" 17
"438" "2nd" 1 "female" 34
"439" "2nd" 0 "male" 36
"440" "2nd" 0 "male" 24
"441" "2nd" 0 "male" 61
"442" "2nd" 0 "male" 50
"443" "2nd" 1 "female" 42
"444" "2nd" 0 "female" 57
"445" "2nd" 1 "male" 1
"446" "2nd" 0 "male" 31
"447" "2nd" 1 "female" 24
"448" "2nd" 0 "male" 30
"449" "2nd" 0 "male" 40
"450" "2nd" 0 "male" 32
"451" "2nd" 0 "male" 30
"452" "2nd" 0 "male" 46
"453" "2nd" 1 "female" 13
"454" "2nd" 1 "female" 41
"455" "2nd" 1 "male" 19
"456" "2nd" 0 "male" 39
"457" "2nd" 0 "male" 48
"458" "2nd" 0 "male" 70
"459" "2nd" 0 "male" 27
"460" "2nd" 0 "male" 54
"461" "2nd" 0 "male" 39
"462" "2nd" 0 "male" 16
"463" "2nd" 0 "male" 62
"464" "2nd" 0 "male" 32
"465" "2nd" 1 "female" 14
"466" "2nd" 1 "male" 2
"467" "2nd" 1 "male" 3
"468" "2nd" 0 "male" 36
"469" "2nd" 0 "male" 26
"470" "2nd" 0 "male" 19
"471" "2nd" 0 "male" 28
"472" "2nd" 1 "male" 20
"473" "2nd" 1 "female" 29
"474" "2nd" 0 "male" 39
"475" "2nd" 1 "male" 22
"476" "2nd" 0 "male" 23
"477" "2nd" 1 "male" 29
"478" "2nd" 0 "male" 28
"479" "2nd" 1 "female" 50
"480" "2nd" 0 "male" 19
"481" "2nd" 0 "male" 41
"482" "2nd" 1 "female" 21
"483" "2nd" 1 "female" 19
"484" "2nd" 0 "male" 43
"485" "2nd" 1 "female" 32
"486" "2nd" 0 "male" 34
"487" "2nd" 1 "male" 30
"488" "2nd" 0 "male" 27
"489" "2nd" 1 "female" 2
"490" "2nd" 1 "female" 8
"491" "2nd" 1 "female" 33
"492" "2nd" 0 "male" 36
"493" "2nd" 0 "male" 34
"494" "2nd" 1 "female" 30
"495" "2nd" 1 "female" 28
"496" "2nd" 0 "male" 23
"497" "2nd" 1 "male" 0
"498" "2nd" 1 "male" 3
"499" "2nd" 1 "female" 24
"500" "2nd" 1 "female" 50
"501" "2nd" 0 "male" 19
"502" "2nd" 1 "female" 21
"503" "2nd" 0 "male" 26
"504" "2nd" 0 "male" 25
"505" "2nd" 0 "male" 27
"506" "2nd" 1 "female" 25
"507" "2nd" 1 "female" 18
"508" "2nd" 1 "female" 20
"509" "2nd" 1 "female" 30
"510" "2nd" 0 "male" 59
"511" "2nd" 1 "female" 30
"512" "2nd" 0 "male" 35
"513" "2nd" 1 "female" 40
"514" "2nd" 0 "male" 25
"515" "2nd" 0 "male" 41
"516" "2nd" 0 "male" 25
"517" "2nd" 0 "male" 18
"518" "2nd" 0 "male" 14
"519" "2nd" 1 "female" 50
"520" "2nd" 0 "male" 23
"521" "2nd" 1 "female" 28
"522" "2nd" 1 "female" 27
"523" "2nd" 0 "male" 29
"524" "2nd" 0 "female" 27
"525" "2nd" 0 "male" 40
"526" "2nd" 1 "female" 31
"527" "2nd" 0 "male" 30
"528" "2nd" 0 "male" 23
"529" "2nd" 1 "female" 31
"530" "2nd" 1 "female" 12
"531" "2nd" 1 "female" 40
"532" "2nd" 1 "female" 32
"533" "2nd" 0 "male" 27
"534" "2nd" 1 "female" 29
"535" "2nd" 1 "male" 2
"536" "2nd" 1 "female" 4
"537" "2nd" 1 "female" 29
"538" "2nd" 1 "female" 0
"539" "2nd" 1 "female" 5
"540" "2nd" 0 "male" 36
"541" "2nd" 1 "female" 33
"542" "2nd" 0 "male" 66
"543" "2nd" 1 "male" 31
"544" "2nd" 1 "female" 26
"545" "2nd" 0 "female" 24
"546" "3rd" 0 "male" 42
"547" "3rd" 0 "male" 13
"548" "3rd" 0 "male" 16
"549" "3rd" 1 "female" 35
"550" "3rd" 1 "female" 16
"551" "3rd" 1 "male" 25
"552" "3rd" 1 "male" 20
"553" "3rd" 1 "female" 18
"554" "3rd" 0 "male" 30
"555" "3rd" 0 "male" 26
"556" "3rd" 0 "female" 40
"557" "3rd" 1 "male" 0
"558" "3rd" 1 "female" 18
"559" "3rd" 1 "male" 26
"560" "3rd" 0 "male" 26
"561" "3rd" 0 "male" 20
"562" "3rd" 0 "male" 24
"563" "3rd" 0 "male" 25
"564" "3rd" 0 "male" 35
"565" "3rd" 0 "male" 18
"566" "3rd" 0 "male" 32
"567" "3rd" 1 "female" 19
"568" "3rd" 0 "male" 4
"569" "3rd" 0 "female" 6
"570" "3rd" 0 "female" 2
"571" "3rd" 1 "female" 17
"572" "3rd" 0 "female" 38
"573" "3rd" 0 "female" 9
"574" "3rd" 0 "female" 11
"575" "3rd" 0 "male" 39
"576" "3rd" 1 "male" 27
"577" "3rd" 0 "male" 26
"578" "3rd" 0 "female" 39
"579" "3rd" 0 "male" 20
"580" "3rd" 0 "male" 26
"581" "3rd" 0 "male" 25
"582" "3rd" 0 "female" 18
"583" "3rd" 0 "male" 24
"584" "3rd" 0 "male" 35
"585" "3rd" 0 "male" 5
"586" "3rd" 0 "male" 9
"587" "3rd" 1 "male" 3
"588" "3rd" 0 "male" 13
"589" "3rd" 1 "female" 5
"590" "3rd" 0 "male" 40
"591" "3rd" 1 "male" 23
"592" "3rd" 1 "female" 38
"593" "3rd" 1 "female" 45
"594" "3rd" 0 "male" 21
"595" "3rd" 0 "male" 23
"596" "3rd" 0 "female" 17
"597" "3rd" 0 "male" 30
"598" "3rd" 0 "male" 23
"599" "3rd" 1 "female" 13
"600" "3rd" 0 "male" 20
"601" "3rd" 0 "male" 32
"602" "3rd" 1 "female" 33
"603" "3rd" 1 "female" 0
"604" "3rd" 1 "female" 0
"605" "3rd" 1 "female" 5
"606" "3rd" 1 "female" 24
"607" "3rd" 1 "female" 18
"608" "3rd" 0 "male" 40
"609" "3rd" 0 "male" 26
"610" "3rd" 1 "male" 20
"611" "3rd" 0 "female" 18
"612" "3rd" 0 "female" 45
"613" "3rd" 0 "female" 27
"614" "3rd" 0 "male" 22
"615" "3rd" 0 "male" 19
"616" "3rd" 0 "male" 26
"617" "3rd" 0 "male" 22
"618" "3rd" 0 "male" 20
"619" "3rd" 1 "male" 32
"620" "3rd" 0 "male" 21
"621" "3rd" 0 "male" 18
"622" "3rd" 0 "male" 26
"623" "3rd" 0 "male" 6
"624" "3rd" 0 "female" 9
"625" "3rd" 0 "male" 40
"626" "3rd" 0 "female" 32
"627" "3rd" 0 "male" 21
"628" "3rd" 1 "female" 22
"629" "3rd" 0 "female" 20
"630" "3rd" 0 "male" 29
"631" "3rd" 0 "male" 22
"632" "3rd" 0 "male" 22
"633" "3rd" 0 "male" 35
"634" "3rd" 0 "female" 18
"635" "3rd" 1 "male" 21
"636" "3rd" 0 "male" 19
"637" "3rd" 0 "female" 18
"638" "3rd" 0 "female" 21
"639" "3rd" 0 "female" 30
"640" "3rd" 0 "male" 18
"641" "3rd" 0 "male" 38
"642" "3rd" 0 "male" 17
"643" "3rd" 0 "male" 17
"644" "3rd" 0 "female" 21
"645" "3rd" 0 "male" 21
"646" "3rd" 0 "male" 21
"647" "3rd" 0 "male" 28
"648" "3rd" 0 "male" 24
"649" "3rd" 1 "female" 16
"650" "3rd" 0 "female" 37
"651" "3rd" 0 "male" 28
"652" "3rd" 0 "male" 24
"653" "3rd" 0 "male" 21
"654" "3rd" 1 "male" 32
"655" "3rd" 0 "male" 29
"656" "3rd" 0 "male" 26
"657" "3rd" 0 "male" 18
"658" "3rd" 0 "male" 20
"659" "3rd" 1 "male" 18
"660" "3rd" 0 "male" 24
"661" "3rd" 0 "male" 36
"662" "3rd" 0 "male" 24
"663" "3rd" 0 "male" 31
"664" "3rd" 0 "male" 31
"665" "3rd" 1 "female" 22
"666" "3rd" 0 "female" 30
"667" "3rd" 0 "male" 70
"668" "3rd" 0 "male" 43
"669" "3rd" 0 "male" 35
"670" "3rd" 0 "male" 27
"671" "3rd" 0 "male" 19
"672" "3rd" 0 "male" 30
"673" "3rd" 1 "male" 9
"674" "3rd" 1 "male" 3
"675" "3rd" 1 "female" 36
"676" "3rd" 0 "male" 59
"677" "3rd" 0 "male" 19
"678" "3rd" 1 "female" 17
"679" "3rd" 0 "male" 44
"680" "3rd" 0 "male" 17
"681" "3rd" 0 "male" 22
"682" "3rd" 1 "male" 45
"683" "3rd" 0 "female" 22
"684" "3rd" 0 "male" 19
"685" "3rd" 1 "female" 30
"686" "3rd" 1 "male" 29
"687" "3rd" 0 "male" 0
"688" "3rd" 0 "male" 34
"689" "3rd" 0 "female" 28
"690" "3rd" 0 "male" 27
"691" "3rd" 0 "male" 25
"692" "3rd" 0 "male" 24
"693" "3rd" 0 "male" 22
"694" "3rd" 0 "male" 21
"695" "3rd" 0 "male" 17
"696" "3rd" 1 "male" 36
"697" "3rd" 1 "female" 36
"698" "3rd" 1 "male" 30
"699" "3rd" 0 "male" 16
"700" "3rd" 1 "male" 1
"701" "3rd" 1 "female" 0
"702" "3rd" 0 "male" 26
"703" "3rd" 1 "female" 33
"704" "3rd" 0 "male" 25
"705" "3rd" 0 "male" 22
"706" "3rd" 0 "male" 36
"707" "3rd" 1 "female" 19
"708" "3rd" 0 "male" 17
"709" "3rd" 0 "male" 42
"710" "3rd" 0 "male" 43
"711" "3rd" 0 "male" 32
"712" "3rd" 1 "male" 19
"713" "3rd" 1 "female" 30
"714" "3rd" 0 "female" 24
"715" "3rd" 1 "female" 23
"716" "3rd" 0 "male" 33
"717" "3rd" 0 "male" 65
"718" "3rd" 1 "male" 24
"719" "3rd" 0 "male" 23
"720" "3rd" 1 "female" 22
"721" "3rd" 0 "male" 18
"722" "3rd" 0 "male" 16
"723" "3rd" 0 "male" 45
"724" "3rd" 0 "male" 39
"725" "3rd" 0 "male" 17
"726" "3rd" 0 "male" 15
"727" "3rd" 0 "male" 47
"728" "3rd" 1 "female" 5
"729" "3rd" 0 "male" 40
"730" "3rd" 0 "male" 40
"731" "3rd" 0 "male" 18
"732" "3rd" 0 "male" 26
"733" "3rd" 0 "female" 21
"734" "3rd" 0 "female" 9
"735" "3rd" 0 "male" 18
"736" "3rd" 0 "male" 16
"737" "3rd" 0 "female" 48
"738" "3rd" 0 "male" 25
"739" "3rd" 0 "male" 22
"740" "3rd" 1 "female" 16
"741" "3rd" 1 "male" 9
"742" "3rd" 0 "male" 33
"743" "3rd" 0 "male" 41
"744" "3rd" 1 "female" 31
"745" "3rd" 0 "male" 38
"746" "3rd" 0 "male" 9
"747" "3rd" 0 "male" 1
"748" "3rd" 0 "male" 11
"749" "3rd" 0 "female" 10
"750" "3rd" 0 "female" 16
"751" "3rd" 0 "male" 14
"752" "3rd" 0 "male" 40
"753" "3rd" 0 "female" 43
"754" "3rd" 0 "male" 51
"755" "3rd" 0 "male" 32
"756" "3rd" 0 "male" 20
"757" "3rd" 0 "male" 37
"758" "3rd" 0 "male" 28
"759" "3rd" 0 "male" 19
"760" "3rd" 0 "female" 24
"761" "3rd" 0 "female" 17
"762" "3rd" 0 "male" 28
"763" "3rd" 1 "female" 24
"764" "3rd" 0 "male" 20
"765" "3rd" 0 "male" 23
"766" "3rd" 0 "male" 41
"767" "3rd" 0 "male" 26
"768" "3rd" 0 "male" 21
"769" "3rd" 1 "female" 45
"770" "3rd" 0 "male" 25
"771" "3rd" 0 "male" 11
"772" "3rd" 1 "male" 27
"773" "3rd" 0 "female" 18
"774" "3rd" 1 "female" 26
"775" "3rd" 0 "female" 23
"776" "3rd" 1 "female" 22
"777" "3rd" 0 "male" 28
"778" "3rd" 0 "female" 28
"779" "3rd" 1 "female" 2
"780" "3rd" 1 "female" 22
"781" "3rd" 0 "male" 43
"782" "3rd" 0 "male" 28
"783" "3rd" 1 "female" 27
"784" "3rd" 0 "male" 42
"785" "3rd" 0 "male" 30
"786" "3rd" 0 "female" 27
"787" "3rd" 0 "female" 25
"788" "3rd" 1 "male" 29
"789" "3rd" 1 "male" 21
"790" "3rd" 0 "male" 20
"791" "3rd" 0 "male" 48
"792" "3rd" 0 "male" 17
"793" "3rd" 0 "male" 34
"794" "3rd" 1 "male" 26
"795" "3rd" 0 "male" 22
"796" "3rd" 0 "male" 33
"797" "3rd" 0 "male" 31
"798" "3rd" 0 "male" 29
"799" "3rd" 1 "male" 4
"800" "3rd" 1 "female" 1
"801" "3rd" 0 "male" 49
"802" "3rd" 0 "male" 33
"803" "3rd" 0 "male" 19
"804" "3rd" 1 "female" 27
"805" "3rd" 0 "male" 23
"806" "3rd" 1 "male" 32
"807" "3rd" 0 "male" 27
"808" "3rd" 0 "female" 20
"809" "3rd" 0 "female" 21
"810" "3rd" 1 "male" 32
"811" "3rd" 0 "male" 17
"812" "3rd" 0 "male" 21
"813" "3rd" 0 "male" 30
"814" "3rd" 1 "male" 21
"815" "3rd" 0 "male" 33
"816" "3rd" 0 "male" 22
"817" "3rd" 1 "female" 4
"818" "3rd" 1 "male" 39
"819" "3rd" 0 "male" 18
"820" "3rd" 0 "male" 34
"821" "3rd" 0 "male" 44
"822" "3rd" 0 "female" 22
"823" "3rd" 0 "male" 26
"824" "3rd" 1 "female" 4
"825" "3rd" 1 "male" 29
"826" "3rd" 1 "female" 26
"827" "3rd" 0 "female" 1
"828" "3rd" 0 "male" 18
"829" "3rd" 0 "female" 36
"830" "3rd" 1 "male" 25
"831" "3rd" 0 "female" 37
"832" "3rd" 1 "female" 22
"833" "3rd" 1 "male" 26
"834" "3rd" 0 "male" 29
"835" "3rd" 0 "male" 29
"836" "3rd" 0 "male" 22
"837" "3rd" 1 "male" 22
"838" "3rd" 0 "male" 32
"839" "3rd" 0 "male" 34
"840" "3rd" 0 "male" 36
"841" "3rd" 0 "male" 39
"842" "3rd" 0 "male" 24
"843" "3rd" 0 "female" 25
"844" "3rd" 0 "female" 45
"845" "3rd" 0 "male" 36
"846" "3rd" 0 "female" 30
"847" "3rd" 1 "male" 20
"848" "3rd" 0 "male" 28
"849" "3rd" 0 "male" 30
"850" "3rd" 0 "female" 26
"851" "3rd" 0 "male" 20
"852" "3rd" 1 "male" 27
"853" "3rd" 0 "male" 51
"854" "3rd" 1 "female" 23
"855" "3rd" 1 "male" 32
"856" "3rd" 1 "male" 24
"857" "3rd" 0 "male" 22
"858" "3rd" 0 "male" 29
"859" "3rd" 0 "female" 30
"860" "3rd" 0 "male" 35
"861" "3rd" 0 "male" 33
"862" "3rd" 1 "female" 15
"863" "3rd" 0 "female" 35
"864" "3rd" 0 "male" 24
"865" "3rd" 0 "female" 19
"866" "3rd" 0 "male" 55
"867" "3rd" 1 "male" 21
"868" "3rd" 0 "male" 24
"869" "3rd" 0 "male" 21
"870" "3rd" 0 "male" 28
"871" "3rd" 0 "male" 25
"872" "3rd" 1 "male" 6
"873" "3rd" 1 "female" 27
"874" "3rd" 0 "male" 34
"875" "3rd" 1 "female" 24
"876" "3rd" 0 "male" 18
"877" "3rd" 0 "male" 22
"878" "3rd" 1 "female" 15
"879" "3rd" 1 "female" 1
"880" "3rd" 1 "male" 20
"881" "3rd" 1 "female" 19
"882" "3rd" 0 "male" 33
"883" "3rd" 1 "male" 12
"884" "3rd" 1 "female" 14
"885" "3rd" 0 "female" 29
"886" "3rd" 0 "male" 28
"887" "3rd" 1 "female" 18
"888" "3rd" 1 "female" 26
"889" "3rd" 0 "male" 21
"890" "3rd" 0 "male" 41
"891" "3rd" 1 "male" 39
"892" "3rd" 0 "male" 21
"893" "3rd" 0 "male" 28
"894" "3rd" 1 "female" 22
"895" "3rd" 0 "male" 61
"896" "3rd" 0 "male" 23
"897" "3rd" 1 "female" 22
"898" "3rd" 1 "male" 9
"899" "3rd" 0 "male" 28
"900" "3rd" 0 "male" 42
"901" "3rd" 0 "female" 31
"902" "3rd" 0 "male" 28
"903" "3rd" 1 "male" 32
"904" "3rd" 0 "male" 20
"905" "3rd" 0 "female" 23
"906" "3rd" 0 "female" 20
"907" "3rd" 0 "male" 20
"908" "3rd" 0 "male" 16
"909" "3rd" 1 "female" 31
"910" "3rd" 0 "male" 2
"911" "3rd" 0 "male" 6
"912" "3rd" 0 "female" 3
"913" "3rd" 0 "female" 8
"914" "3rd" 0 "female" 29
"915" "3rd" 0 "male" 1
"916" "3rd" 0 "male" 7
"917" "3rd" 0 "male" 2
"918" "3rd" 0 "male" 16
"919" "3rd" 0 "male" 14
"920" "3rd" 0 "female" 41
"921" "3rd" 0 "male" 21
"922" "3rd" 0 "male" 19
"923" "3rd" 0 "male" 32
"924" "3rd" 0 "male" 0
"925" "3rd" 0 "female" 3
"926" "3rd" 0 "female" 26
"927" "3rd" 0 "male" 21
"928" "3rd" 0 "male" 25
"929" "3rd" 0 "male" 22
"930" "3rd" 1 "male" 25
"931" "3rd" 0 "male" 24
"932" "3rd" 0 "female" 28
"933" "3rd" 0 "male" 19
"934" "3rd" 0 "male" 25
"935" "3rd" 0 "female" 18
"936" "3rd" 1 "male" 32
"937" "3rd" 0 "male" 17
"938" "3rd" 0 "male" 24
"939" "3rd" 0 "male" 38
"940" "3rd" 0 "male" 21
"941" "3rd" 0 "male" 10
"942" "3rd" 0 "male" 4
"943" "3rd" 0 "male" 7
"944" "3rd" 0 "male" 2
"945" "3rd" 0 "male" 8
"946" "3rd" 0 "female" 39
"947" "3rd" 0 "female" 22
"948" "3rd" 0 "male" 35
"949" "3rd" 0 "male" 50
"950" "3rd" 0 "female" 47
"951" "3rd" 0 "female" 2
"952" "3rd" 0 "male" 18
"953" "3rd" 0 "female" 41
"954" "3rd" 0 "male" 50
"955" "3rd" 0 "male" 16
"956" "3rd" 0 "male" 25
"957" "3rd" 0 "male" 38
"958" "3rd" 0 "male" 14
"959" "3rd" 0 "male" 24
"960" "3rd" 1 "female" 21
"961" "3rd" 0 "male" 39
"962" "3rd" 1 "female" 1
"963" "3rd" 1 "female" 24
"964" "3rd" 1 "female" 4
"965" "3rd" 1 "male" 25
"966" "3rd" 0 "male" 20
"967" "3rd" 0 "male" 24
"968" "3rd" 1 "male" 29
"969" "3rd" 0 "male" 22
"970" "3rd" 0 "male" 40
"971" "3rd" 0 "male" 21
"972" "3rd" 1 "female" 18
"973" "3rd" 0 "male" 4
"974" "3rd" 0 "male" 10
"975" "3rd" 0 "female" 9
"976" "3rd" 0 "female" 2
"977" "3rd" 0 "male" 40
"978" "3rd" 0 "female" 45
"979" "3rd" 0 "male" 19
"980" "3rd" 0 "male" 30
"981" "3rd" 0 "male" 32
"982" "3rd" 0 "male" 33
"983" "3rd" 1 "female" 23
"984" "3rd" 0 "male" 21
"985" "3rd" 0 "male" 60
"986" "3rd" 0 "male" 19
"987" "3rd" 0 "female" 22
"988" "3rd" 1 "male" 31
"989" "3rd" 0 "male" 27
"990" "3rd" 0 "female" 2
"991" "3rd" 0 "female" 29
"992" "3rd" 1 "male" 16
"993" "3rd" 1 "male" 44
"994" "3rd" 0 "male" 25
"995" "3rd" 0 "male" 74
"996" "3rd" 1 "male" 14
"997" "3rd" 0 "male" 24
"998" "3rd" 1 "male" 25
"999" "3rd" 0 "male" 34
"1000" "3rd" 1 "male" 0
"1001" "3rd" 1 "female" 16
"1002" "3rd" 0 "male" 32
"1003" "3rd" 0 "male" 30
"1004" "3rd" 0 "male" 44
"1005" "3rd" 1 "male" 25
"1006" "3rd" 1 "male" 7
"1007" "3rd" 1 "female" 9
"1008" "3rd" 1 "female" 29
"1009" "3rd" 0 "male" 36
"1010" "3rd" 1 "female" 18
"1011" "3rd" 1 "female" 63
"1012" "3rd" 0 "male" 11
"1013" "3rd" 0 "male" 40
"1014" "3rd" 0 "female" 10
"1015" "3rd" 0 "male" 36
"1016" "3rd" 0 "female" 30
"1017" "3rd" 0 "male" 33
"1018" "3rd" 0 "male" 28
"1019" "3rd" 0 "male" 28
"1020" "3rd" 0 "male" 47
"1021" "3rd" 0 "female" 18
"1022" "3rd" 0 "male" 31
"1023" "3rd" 0 "male" 16
"1024" "3rd" 0 "female" 31
"1025" "3rd" 1 "male" 22
"1026" "3rd" 0 "male" 20
"1027" "3rd" 0 "female" 14
"1028" "3rd" 0 "male" 22
"1029" "3rd" 0 "male" 22
"1030" "3rd" 0 "male" 32
"1031" "3rd" 1 "female" 38
"1032" "3rd" 0 "male" 51
"1033" "3rd" 0 "male" 18
"1034" "3rd" 0 "male" 21
"1035" "3rd" 1 "female" 47
"1036" "3rd" 0 "male" 28
"1037" "3rd" 0 "male" 21
"1038" "3rd" 0 "male" 27
"1039" "3rd" 0 "male" 36
"1040" "3rd" 0 "male" 27
"1041" "3rd" 1 "female" 15
"1042" "3rd" 0 "male" 45
"1043" "3rd" 0 "female" 14
"1044" "3rd" 0 "male" 26
"1045" "3rd" 0 "male" 27
"1046" "3rd" 0 "male" 29
(1) 3. The data file titanic.dat (accessible from MOODLE) contains information about 1046 passengers on RMS Titanic in 1912 and whether or not they survived the sinking of the ship (survived = 1 or died = 0). In R, fit a Bernoulli regression model to the survival of passengers with the linear predictor: logit (14) = 20 + Q age; (a) What is the fitted probability of surviving, ii, for a 20 year old passenger? (b) Evaluate a 95% confidence interval for the age co-efficient. Is age a good explanatory variable for predicting the survival of passengers? You may assume the regression coefficient estimator has a normal distribution with mean given by the true value of the regression coefficient and standard deviation approximated by the standard error from the R output. [2] Consider instead the following Bernoulli regression model where the linear predictor is based on the sex of the passengers: logit() = 3, female, + Bymale; where female; is an indicator variable that is 1 if passenger i is female or 0 otherwise, and likewise for the indicator variable males. Fit this regression model in R. Note that there is no intercept term. (c) What is the fitted probability of surviving for a male passenger? (d) Is this model adequate in describing the variability in the data at the 5% significance level? (1) 3. The data file titanic.dat (accessible from MOODLE) contains information about 1046 passengers on RMS Titanic in 1912 and whether or not they survived the sinking of the ship (survived = 1 or died = 0). In R, fit a Bernoulli regression model to the survival of passengers with the linear predictor: logit (14) = 20 + Q age; (a) What is the fitted probability of surviving, ii, for a 20 year old passenger? (b) Evaluate a 95% confidence interval for the age co-efficient. Is age a good explanatory variable for predicting the survival of passengers? You may assume the regression coefficient estimator has a normal distribution with mean given by the true value of the regression coefficient and standard deviation approximated by the standard error from the R output. [2] Consider instead the following Bernoulli regression model where the linear predictor is based on the sex of the passengers: logit() = 3, female, + Bymale; where female; is an indicator variable that is 1 if passenger i is female or 0 otherwise, and likewise for the indicator variable males. Fit this regression model in R. Note that there is no intercept term. (c) What is the fitted probability of surviving for a male passenger? (d) Is this model adequate in describing the variability in the data at the 5% significance level

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Development Of Knowledge Framework For Affective Content Analysis

Authors: Swarnangini Sinha

1st Edition

B0CQJ13WZ1, 979-8223977490

More Books

Students also viewed these Databases questions

Question

IDENTIFY the key trends in HR technology.

Answered: 1 week ago

Question

Understanding Groups

Answered: 1 week ago