mortality
mortality,
an Octave code which
processes some sample mortality data.
Licensing:
The computer code and data files made available on this web page
are distributed under
the MIT license.
Languages:
mortality is available in
a MATLAB version and
an Octave version and
a Python version.
Related Data and Programs:
mortality_test
will_you_be_alive,
an Octave code which
carries out the probability simulations
described in "Will You Be Alive 10 Years From Now?",
by Paul Nahin;
Reference:
-
Paul Nahin,
Will You Be Alive 10 Years From Now?,
Princeton, 2014,
ISBN: 978-0691156804,
LC: QA273.25.N344
Source Code:
-
mortality_average_life.m,
estimates the average life span.
-
mortality_cdf.m,
computes the cumulative probability that a person dying in 2007
was of a given age or younger.
-
mortality_cdf_plot.m,
plots the cumulative probability that a person dying in 2007
was of a given age or younger.
-
mortality_count.m,
sample mortality count, giving age, and number of deaths
for each age group over one year, for 2007.
-
mortality_count_plot.m,
plots the sample mortality count.
-
mortality_expected_plot.m,
plots the expected total lifespan.
-
mortality_pdf.m,
computes the probability that a person dying in 2007 was
of a given age.
-
mortality_pdf_plot.m,
plots the probability that a person dying in 2007 was of a given age.
-
mortality_plus10_plot.m,
plots the probability of living at least 10 more years.
-
mortality_this_year.m,
determines, for each yearly age bracket, the chances of being alive
at the beginning of the year and dead by the end of it, based on
data from 2007.
-
mortality_this_year_plot.m,
plots, for each yearly age bracket, the chances of being alive
at the beginning of the year and dead by the end of it, based on
data from 2007.
-
mortality_to_die.m,
the per bracket "to die" function.
-
mortality_to_die_plot.m,
plots the per bracket "to die" function.
Last modified on 05 February 2024.