Python script to find relation between survival rate and log price

If you only look at fare prices, it seems that there is a pretty accurate linear relation between the natural logarithm of the ticket fare and the survival rate (see enclosed image).

I found that: 

survival rate in % = 0.2 log(price in $) - 0.2,

with an R^2 of 95%, which is pretty good I thought.

The only question here is, what to do with this information? Obviously the data is not independent: you can see that female passengers had more expensive tickets. Splitting the data into bins again (gender, age, etc), and trying to find formulas for every bin is not really giving great results.

Thought I would share it anyway.