{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# STA 663 Project 1: \n", "- Huggingface: mastergopote44/Long-Term-Care-Aggregated-Data\n", "- Name: Justin Kao\n", "- School: Duke University" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## I. Load Incidence & Termination dataset from SOA website" ] }, { "cell_type": "code", "execution_count": 77, "metadata": {}, "outputs": [], "source": [ "import requests\n", "from io import BytesIO\n", "from zipfile import ZipFile\n", "import pandas as pd\n", "\n", "# Directory to store the extracted files\n", "desired_directory = '/Users/justinkao/Desktop/Durham NC/Duke University/Courses/S_2024_STA 663 Statistical Computing and Computation(Dr. Ouwen Huang)/Project 1/STA663_Project_1' # Replace with your actual path\n", "\n", "# URLs of the zip files\n", "zip_files = {\n", " 'incidence': 'https://www.soa.org/4a33aa/globalassets/assets/files/resources/experience-studies/2020/2000-2016-ltc-incidence.zip',\n", " 'termination': 'https://www.soa.org/4a2e5d/globalassets/assets/files/resources/experience-studies/2020/2000-2016-ltc-termination.zip'\n", "}\n", "\n", "# DataFrames dictionary\n", "dataframes = {}\n", "\n", "# Download and unzip the files\n", "for name, zip_url in zip_files.items():\n", " response = requests.get(zip_url)\n", " # Check if the request was successful\n", " if response.ok:\n", " with ZipFile(BytesIO(response.content)) as thezip:\n", " # Extract all files from the zip into a directory\n", " thezip.extractall(desired_directory)\n", " # Loop through each file in the zip\n", " for zipinfo in thezip.infolist():\n", " # Construct the full path to the extracted file\n", " file_path = f'{desired_directory}/{zipinfo.filename}'\n", " # Assuming the file is a tab-separated txt file\n", " df = pd.read_csv(file_path, sep='\\t', low_memory=False) # Adjust sep if necessary\n", " # Assign the DataFrame to the corresponding variable\n", " dataframes[name] = df\n", " else:\n", " print(f\"Failed to retrieve {zip_url}\")" ] }, { "cell_type": "code", "execution_count": 56, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | Group_Indicator | \n", "Gender | \n", "Issue_Age_Bucket | \n", "Incurred_Age_Bucket | \n", "Issue_Year_Bucket | \n", "Policy_Year | \n", "Marital_Status | \n", "Premium_Class | \n", "Underwriting_Type | \n", "Coverage_Type_Bucket | \n", "... | \n", "ALF_EP_Bucket | \n", "HHC_EP_Bucket | \n", "Region | \n", "Active_Exposure | \n", "Total_Exposure | \n", "Claim_Count | \n", "Count_NH | \n", "Count_ALF | \n", "Count_HHC | \n", "Count_Unk | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Group | \n", "Female | \n", "55-59 | \n", "55-59 | \n", "2003-2005 | \n", "1-3 years | \n", "Single | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "Unknown | \n", "37.583332 | \n", "37.583332 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "70-74 | \n", "1997-1999 | \n", "10-12 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "14.500000 | \n", "14.500000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2 | \n", "Group | \n", "Female | \n", "50-54 | \n", "60-64 | \n", "2000-2002 | \n", "10-12 years | \n", "Unknown | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "Unknown | \n", "2250.000000 | \n", "2252.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
3 | \n", "Individual | \n", "Female | \n", "55-59 | \n", "70-74 | \n", "1994-1996 | \n", "13-15 years | \n", "Married | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "19.000000 | \n", "19.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
4 | \n", "Individual | \n", "Male | \n", "60-64 | \n", "65-69 | \n", "2003-2005 | \n", "4-6 years | \n", "Married | \n", "Substandard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "90 | \n", "20 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2089318 | \n", "Individual | \n", "Male | \n", "55-59 | \n", "60-64 | \n", "2012-2014 | \n", "1-3 years | \n", "Married | \n", "Substandard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "7.083333 | \n", "7.083333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089319 | \n", "Individual | \n", "Male | \n", "65-69 | \n", "70-74 | \n", "1997-1999 | \n", "7-9 years | \n", "Married | \n", "Standard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "180 | \n", "180 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089320 | \n", "Individual | \n", "Female | \n", "65-69 | \n", "75-79 | \n", "1994-1996 | \n", "7-9 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "6.000000 | \n", "6.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089321 | \n", "Individual | \n", "Female | \n", "50-54 | \n", "55-59 | \n", "1994-1996 | \n", "7-9 years | \n", "Single | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "Unknown | \n", "6.000000 | \n", "6.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089322 | \n", "Individual | \n", "Female | \n", "0-49 | \n", "50-54 | \n", "1997-1999 | \n", "1-3 years | \n", "Single | \n", "Preferred | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "90 | \n", "30 | \n", "03: South | \n", "3.000000 | \n", "3.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089323 rows × 31 columns
\n", "\n", " | Gender | \n", "Incurred_Age_Bucket | \n", "Incurred_Year_Bucket | \n", "Claim_Type | \n", "Region | \n", "Diagnosis_Category | \n", "Claim_Duration | \n", "Exposure | \n", "Deaths | \n", "Recovery | \n", "Terminations | \n", "Benefit_Expiry | \n", "Others_Terminations | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Female | \n", "Unknown | \n", "2009-2010 | \n", "HCC | \n", "Unknown | \n", "Unknown | \n", "80 | \n", "77 | \n", "0 | \n", "2 | \n", "2 | \n", "1 | \n", "0 | \n", "
1 | \n", "Female | \n", "Unknown | \n", "2003-2004 | \n", "NH | \n", "Unknown | \n", "Unknown | \n", "86 | \n", "49 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
2 | \n", "Female | \n", "Unknown | \n", "2005-2006 | \n", "Other | \n", "Unknown | \n", "Unknown | \n", "88 | \n", "16 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
3 | \n", "Female | \n", "Unknown | \n", "2003-2004 | \n", "ALF | \n", "Unknown | \n", "Unknown | \n", "114 | \n", "29 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
4 | \n", "Female | \n", "Unknown | \n", "< 2001 | \n", "NH | \n", "Unknown | \n", "Unknown | \n", "4 | \n", "56 | \n", "5 | \n", "1 | \n", "6 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
627185 | \n", "Male | \n", "85-89 | \n", "2007-2008 | \n", "NH | \n", "Unknown | \n", "05: Injury | \n", "33 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627186 | \n", "Male | \n", "75-79 | \n", "2007-2008 | \n", "HCC | \n", "03: South | \n", "Unknown | \n", "31 | \n", "62 | \n", "3 | \n", "0 | \n", "3 | \n", "0 | \n", "0 | \n", "
627187 | \n", "Female | \n", "80-84 | \n", "2013-2014 | \n", "HCC | \n", "01: Mid-West | \n", "07: Stroke | \n", "23 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627188 | \n", "Male | \n", "70-74 | \n", "2001-2002 | \n", "HCC | \n", "02: Northeast | \n", "Unknown | \n", "30 | \n", "7 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627189 | \n", "Female | \n", "85-89 | \n", "2003-2004 | \n", "ALF | \n", "Unknown | \n", "Unknown | \n", "32 | \n", "95 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
627190 rows × 13 columns
\n", "\n", " | Group_Indicator | \n", "Gender | \n", "Issue_Age_Bucket | \n", "Incurred_Age_Bucket | \n", "Issue_Year_Bucket | \n", "Policy_Year | \n", "Marital_Status | \n", "Premium_Class | \n", "Underwriting_Type | \n", "Coverage_Type_Bucket | \n", "... | \n", "ALF_EP_Bucket | \n", "HHC_EP_Bucket | \n", "Region | \n", "Active_Exposure | \n", "Total_Exposure | \n", "Claim_Count | \n", "Count_NH | \n", "Count_ALF | \n", "Count_HHC | \n", "Count_Unk | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Group | \n", "Female | \n", "55-59 | \n", "55-59 | \n", "2003-2005 | \n", "1-3 years | \n", "Single | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "Unknown | \n", "37.583332 | \n", "37.583332 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "70-74 | \n", "1997-1999 | \n", "10-12 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "14.500000 | \n", "14.500000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2 | \n", "Group | \n", "Female | \n", "50-54 | \n", "60-64 | \n", "2000-2002 | \n", "10-12 years | \n", "Unknown | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "Unknown | \n", "2250.000000 | \n", "2252.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
3 | \n", "Individual | \n", "Female | \n", "55-59 | \n", "70-74 | \n", "1994-1996 | \n", "13-15 years | \n", "Married | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "19.000000 | \n", "19.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
4 | \n", "Individual | \n", "Male | \n", "60-64 | \n", "65-69 | \n", "2003-2005 | \n", "4-6 years | \n", "Married | \n", "Substandard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "90 | \n", "20 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2089318 | \n", "Individual | \n", "Male | \n", "55-59 | \n", "60-64 | \n", "2012-2014 | \n", "1-3 years | \n", "Married | \n", "Substandard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "7.083333 | \n", "7.083333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089319 | \n", "Individual | \n", "Male | \n", "65-69 | \n", "70-74 | \n", "1997-1999 | \n", "7-9 years | \n", "Married | \n", "Standard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "180 | \n", "180 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089320 | \n", "Individual | \n", "Female | \n", "65-69 | \n", "75-79 | \n", "1994-1996 | \n", "7-9 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "6.000000 | \n", "6.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089321 | \n", "Individual | \n", "Female | \n", "50-54 | \n", "55-59 | \n", "1994-1996 | \n", "7-9 years | \n", "Single | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "Unknown | \n", "6.000000 | \n", "6.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089322 | \n", "Individual | \n", "Female | \n", "0-49 | \n", "50-54 | \n", "1997-1999 | \n", "1-3 years | \n", "Single | \n", "Preferred | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "90 | \n", "30 | \n", "03: South | \n", "3.000000 | \n", "3.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2088757 rows × 31 columns
\n", "\n", " | Group_Indicator | \n", "Gender | \n", "Issue_Age_Bucket | \n", "Incurred_Age_Bucket | \n", "Issue_Year_Bucket | \n", "Policy_Year | \n", "Marital_Status | \n", "Premium_Class | \n", "Underwriting_Type | \n", "Coverage_Type_Bucket | \n", "... | \n", "ALF_EP_Bucket | \n", "HHC_EP_Bucket | \n", "Region | \n", "Active_Exposure | \n", "Total_Exposure | \n", "Claim_Count | \n", "Count_NH | \n", "Count_ALF | \n", "Count_HHC | \n", "Count_Unk | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Group | \n", "Female | \n", "55-59 | \n", "55-59 | \n", "2003-2005 | \n", "1-3 years | \n", "Single | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "37.583332 | \n", "37.583332 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "70-74 | \n", "1997-1999 | \n", "10-12 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "14.500000 | \n", "14.500000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2 | \n", "Group | \n", "Female | \n", "50-54 | \n", "60-64 | \n", "2000-2002 | \n", "10-12 years | \n", "Unknown | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "2250.000000 | \n", "2252.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
3 | \n", "Individual | \n", "Female | \n", "55-59 | \n", "70-74 | \n", "1994-1996 | \n", "13-15 years | \n", "Married | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "19.000000 | \n", "19.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
4 | \n", "Individual | \n", "Male | \n", "60-64 | \n", "65-69 | \n", "2003-2005 | \n", "4-6 years | \n", "Married | \n", "Substandard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "90 | \n", "20 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2089318 | \n", "Individual | \n", "Male | \n", "55-59 | \n", "60-64 | \n", "2012-2014 | \n", "1-3 years | \n", "Married | \n", "Substandard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "7.083333 | \n", "7.083333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089319 | \n", "Individual | \n", "Male | \n", "65-69 | \n", "70-74 | \n", "1997-1999 | \n", "7-9 years | \n", "Married | \n", "Standard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "180 | \n", "180 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089320 | \n", "Individual | \n", "Female | \n", "65-69 | \n", "75-79 | \n", "1994-1996 | \n", "7-9 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "6.000000 | \n", "6.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089321 | \n", "Individual | \n", "Female | \n", "50-54 | \n", "55-59 | \n", "1994-1996 | \n", "7-9 years | \n", "Single | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "6.000000 | \n", "6.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2089322 | \n", "Individual | \n", "Female | \n", "0-49 | \n", "50-54 | \n", "1997-1999 | \n", "1-3 years | \n", "Single | \n", "Preferred | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "90 | \n", "30 | \n", "03: South | \n", "3.000000 | \n", "3.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2088757 rows × 31 columns
\n", "\n", " | Gender | \n", "Incurred_Age_Bucket | \n", "Incurred_Year_Bucket | \n", "Claim_Type | \n", "Region | \n", "Diagnosis_Category | \n", "Claim_Duration | \n", "Exposure | \n", "Deaths | \n", "Recovery | \n", "Terminations | \n", "Benefit_Expiry | \n", "Others_Terminations | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "Female | \n", "Unknown | \n", "2009-2010 | \n", "HCC | \n", "Unknown | \n", "Unknown | \n", "80 | \n", "77 | \n", "0 | \n", "2 | \n", "2 | \n", "1 | \n", "0 | \n", "
1 | \n", "Female | \n", "Unknown | \n", "2003-2004 | \n", "NH | \n", "Unknown | \n", "Unknown | \n", "86 | \n", "49 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
2 | \n", "Female | \n", "Unknown | \n", "2005-2006 | \n", "Other | \n", "Unknown | \n", "Unknown | \n", "88 | \n", "16 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
3 | \n", "Female | \n", "Unknown | \n", "2003-2004 | \n", "ALF | \n", "Unknown | \n", "Unknown | \n", "114 | \n", "29 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
4 | \n", "Female | \n", "Unknown | \n", "< 2001 | \n", "NH | \n", "Unknown | \n", "Unknown | \n", "4 | \n", "56 | \n", "5 | \n", "1 | \n", "6 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
627185 | \n", "Male | \n", "85-89 | \n", "2007-2008 | \n", "NH | \n", "Unknown | \n", "05: Injury | \n", "33 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627186 | \n", "Male | \n", "75-79 | \n", "2007-2008 | \n", "HCC | \n", "03: South | \n", "Unknown | \n", "31 | \n", "62 | \n", "3 | \n", "0 | \n", "3 | \n", "0 | \n", "0 | \n", "
627187 | \n", "Female | \n", "80-84 | \n", "2013-2014 | \n", "HCC | \n", "01: Mid-West | \n", "07: Stroke | \n", "23 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627188 | \n", "Male | \n", "70-74 | \n", "2001-2002 | \n", "HCC | \n", "02: Northeast | \n", "Unknown | \n", "30 | \n", "7 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627189 | \n", "Female | \n", "85-89 | \n", "2003-2004 | \n", "ALF | \n", "Unknown | \n", "Unknown | \n", "32 | \n", "95 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
627190 rows × 13 columns
\n", "\n", " | Gender | \n", "Incurred_Age_Bucket | \n", "Incurred_Year_Bucket | \n", "Claim_Type | \n", "Region | \n", "Diagnosis_Category | \n", "Claim_Duration | \n", "Exposure | \n", "Deaths | \n", "Recovery | \n", "Terminations | \n", "Benefit_Expiry | \n", "Others_Terminations | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3675 | \n", "Female | \n", "65-69 | \n", "2009-2010 | \n", "HCC | \n", "04: West | \n", "04: Circulatory | \n", "17 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
3676 | \n", "Female | \n", "90+ | \n", "2005-2006 | \n", "NH | \n", "03: South | \n", "Unknown | \n", "20 | \n", "108 | \n", "3 | \n", "3 | \n", "6 | \n", "0 | \n", "0 | \n", "
3677 | \n", "Female | \n", "90+ | \n", "< 2001 | \n", "NH | \n", "04: West | \n", "01: Alzheimer's and Dementia | \n", "93 | \n", "3 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
3678 | \n", "Female | \n", "80-84 | \n", "2013-2014 | \n", "HCC | \n", "03: South | \n", "01: Alzheimer's and Dementia | \n", "23 | \n", "142 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
3679 | \n", "Female | \n", "0-49 | \n", "2003-2004 | \n", "NH | \n", "03: South | \n", "06: Nervous System | \n", "36 | \n", "3 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
627185 | \n", "Male | \n", "85-89 | \n", "2007-2008 | \n", "NH | \n", "03: South | \n", "05: Injury | \n", "33 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627186 | \n", "Male | \n", "75-79 | \n", "2007-2008 | \n", "HCC | \n", "03: South | \n", "Unknown | \n", "31 | \n", "62 | \n", "3 | \n", "0 | \n", "3 | \n", "0 | \n", "0 | \n", "
627187 | \n", "Female | \n", "80-84 | \n", "2013-2014 | \n", "HCC | \n", "01: Mid-West | \n", "07: Stroke | \n", "23 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627188 | \n", "Male | \n", "70-74 | \n", "2001-2002 | \n", "HCC | \n", "02: Northeast | \n", "Unknown | \n", "30 | \n", "7 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
627189 | \n", "Female | \n", "85-89 | \n", "2003-2004 | \n", "ALF | \n", "03: South | \n", "Unknown | \n", "32 | \n", "95 | \n", "1 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "
619812 rows × 13 columns
\n", "\n", " | Group_Indicator | \n", "Gender | \n", "Issue_Age_Bucket | \n", "Incurred_Age_Bucket | \n", "Issue_Year_Bucket | \n", "Policy_Year | \n", "Marital_Status | \n", "Premium_Class | \n", "Underwriting_Type | \n", "Coverage_Type_Bucket | \n", "... | \n", "ALF_EP_Bucket | \n", "HHC_EP_Bucket | \n", "Region | \n", "Active_Exposure | \n", "Total_Exposure | \n", "Claim_Count | \n", "Count_NH | \n", "Count_ALF | \n", "Count_HHC | \n", "Count_Unk | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1702737 | \n", "Individual | \n", "Female | \n", "50-54 | \n", "60-64 | \n", "2003-2005 | \n", "7-9 years | \n", "Single | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "90 | \n", "0 | \n", "04: West | \n", "19.583332 | \n", "19.583332 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1380059 | \n", "Individual | \n", "Female | \n", "70-74 | \n", "80-84 | \n", "2000-2002 | \n", "13-15 years | \n", "Married | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "84.333336 | \n", "108.916660 | \n", "8 | \n", "0 | \n", "0 | \n", "8 | \n", "0 | \n", "
837211 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "60-64 | \n", "2000-2002 | \n", "4-6 years | \n", "Unknown | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "90 | \n", "0 | \n", "03: South | \n", "3.000000 | \n", "3.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1315575 | \n", "Individual | \n", "Female | \n", "80-84 | \n", "80-84 | \n", "1994-1996 | \n", "4-6 years | \n", "Married | \n", "Standard | \n", "Full underwriting | \n", "Other | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "3.750000 | \n", "3.750000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
907204 | \n", "Individual | \n", "Female | \n", "55-59 | \n", "55-59 | \n", "1994-1996 | \n", "4-6 years | \n", "Married | \n", "Standard | \n", "Full underwriting | \n", "Other | \n", "... | \n", "30 | \n", "0 | \n", "03: South | \n", "2.583333 | \n", "2.583333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
259245 | \n", "Group | \n", "Female | \n", "65-69 | \n", "65-69 | \n", "2003-2005 | \n", "4-6 years | \n", "Married | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "4.000000 | \n", "4.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1414796 | \n", "Individual | \n", "Female | \n", "55-59 | \n", "65-69 | \n", "1997-1999 | \n", "10-12 years | \n", "Single | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "04: West | \n", "62.750000 | \n", "62.833332 | \n", "1 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "
131965 | \n", "Individual | \n", "Male | \n", "70-74 | \n", "80-84 | \n", "2009-2011 | \n", "7-9 years | \n", "Unknown | \n", "Standard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "2.416666 | \n", "2.416666 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
671338 | \n", "Individual | \n", "Female | \n", "70-74 | \n", "85-89 | \n", "1997-1999 | \n", "15+ years | \n", "Single | \n", "Preferred | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "14.249999 | \n", "19.916664 | \n", "3 | \n", "0 | \n", "1 | \n", "2 | \n", "0 | \n", "
121987 | \n", "Individual | \n", "Male | \n", "70-74 | \n", "85-89 | \n", "2000-2002 | \n", "13-15 years | \n", "Married | \n", "Preferred | \n", "Unknown | \n", "Other | \n", "... | \n", "0 | \n", "0 | \n", "04: West | \n", "3.083333 | \n", "3.083333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1671005 rows × 31 columns
\n", "\n", " | Group_Indicator | \n", "Gender | \n", "Issue_Age_Bucket | \n", "Incurred_Age_Bucket | \n", "Issue_Year_Bucket | \n", "Policy_Year | \n", "Marital_Status | \n", "Premium_Class | \n", "Underwriting_Type | \n", "Coverage_Type_Bucket | \n", "... | \n", "ALF_EP_Bucket | \n", "HHC_EP_Bucket | \n", "Region | \n", "Active_Exposure | \n", "Total_Exposure | \n", "Claim_Count | \n", "Count_NH | \n", "Count_ALF | \n", "Count_HHC | \n", "Count_Unk | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1756216 | \n", "Group | \n", "Female | \n", "50-54 | \n", "55-59 | \n", "2009-2011 | \n", "7-9 years | \n", "Unknown | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "32.749996 | \n", "32.749996 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2001415 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "75-79 | \n", "1994-1996 | \n", "15+ years | \n", "Married | \n", "Standard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
454164 | \n", "Group | \n", "Male | \n", "0-49 | \n", "0-49 | \n", "1997-1999 | \n", "10-12 years | \n", "Married | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "7.000000 | \n", "7.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1073250 | \n", "Individual | \n", "Male | \n", "65-69 | \n", "80-84 | \n", "1997-1999 | \n", "13-15 years | \n", "Married | \n", "Standard | \n", "Other | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "63.583332 | \n", "65.583328 | \n", "3 | \n", "1 | \n", "1 | \n", "1 | \n", "0 | \n", "
811617 | \n", "Individual | \n", "Male | \n", "65-69 | \n", "65-69 | \n", "1994-1996 | \n", "4-6 years | \n", "Married | \n", "Standard | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "02: Northeast | \n", "23.416662 | \n", "23.416662 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
736427 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "75-79 | \n", "2000-2002 | \n", "15+ years | \n", "Married | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "90 | \n", "30 | \n", "01: Mid-West | \n", "1.500000 | \n", "1.500000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
506473 | \n", "Individual | \n", "Female | \n", "65-69 | \n", "65-69 | \n", "2000-2002 | \n", "4-6 years | \n", "Unknown | \n", "Substandard | \n", "Full underwriting | \n", "Other | \n", "... | \n", "0 | \n", "0 | \n", "01: Mid-West | \n", "3.000000 | \n", "3.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
1894427 | \n", "Individual | \n", "Female | \n", "0-49 | \n", "60-64 | \n", "2000-2002 | \n", "15+ years | \n", "Single | \n", "Preferred | \n", "Unknown | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "2.083333 | \n", "2.083333 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
244198 | \n", "Group | \n", "Female | \n", "55-59 | \n", "60-64 | \n", "2006-2008 | \n", "1-3 years | \n", "Unknown | \n", "Standard | \n", "Full underwriting | \n", "Comprehensive | \n", "... | \n", "0 | \n", "0 | \n", "03: South | \n", "2.000000 | \n", "2.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
2069551 | \n", "Individual | \n", "Female | \n", "60-64 | \n", "65-69 | \n", "1997-1999 | \n", "7-9 years | \n", "Married | \n", "Preferred | \n", "Other | \n", "Comprehensive | \n", "... | \n", "20 | \n", "20 | \n", "04: West | \n", "9.000000 | \n", "9.000000 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
417752 rows × 31 columns
\n", "\n", " | Gender | \n", "Incurred_Age_Bucket | \n", "Incurred_Year_Bucket | \n", "Claim_Type | \n", "Region | \n", "Diagnosis_Category | \n", "Claim_Duration | \n", "Exposure | \n", "Deaths | \n", "Recovery | \n", "Terminations | \n", "Benefit_Expiry | \n", "Others_Terminations | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57033 | \n", "Male | \n", "75-79 | \n", "2001-2002 | \n", "HCC | \n", "03: South | \n", "08: Other | \n", "56 | \n", "3 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
365822 | \n", "Male | \n", "90+ | \n", "2009-2010 | \n", "HCC | \n", "03: South | \n", "01: Alzheimer's and Dementia | \n", "36 | \n", "10 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
575969 | \n", "Female | \n", "70-74 | \n", "< 2001 | \n", "HCC | \n", "04: West | \n", "04: Circulatory | \n", "123 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
217054 | \n", "Female | \n", "85-89 | \n", "2007-2008 | \n", "NH | \n", "02: Northeast | \n", "Unknown | \n", "65 | \n", "16 | \n", "0 | \n", "1 | \n", "1 | \n", "0 | \n", "0 | \n", "
47634 | \n", "Female | \n", "90+ | \n", "2013-2014 | \n", "NH | \n", "04: West | \n", "08: Other | \n", "40 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
117646 | \n", "Female | \n", "70-74 | \n", "< 2001 | \n", "HCC | \n", "03: South | \n", "05: Injury | \n", "1 | \n", "8 | \n", "0 | \n", "2 | \n", "3 | \n", "0 | \n", "1 | \n", "
266556 | \n", "Male | \n", "60-64 | \n", "2007-2008 | \n", "Other | \n", "01: Mid-West | \n", "Unknown | \n", "45 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
373216 | \n", "Female | \n", "80-84 | \n", "2001-2002 | \n", "HCC | \n", "03: South | \n", "08: Other | \n", "138 | \n", "4 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
139310 | \n", "Female | \n", "50-54 | \n", "2005-2006 | \n", "HCC | \n", "03: South | \n", "06: Nervous System | \n", "3 | \n", "7 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
129336 | \n", "Female | \n", "90+ | \n", "2009-2010 | \n", "HCC | \n", "01: Mid-West | \n", "08: Other | \n", "28 | \n", "14 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
495849 rows × 13 columns
\n", "\n", " | Gender | \n", "Incurred_Age_Bucket | \n", "Incurred_Year_Bucket | \n", "Claim_Type | \n", "Region | \n", "Diagnosis_Category | \n", "Claim_Duration | \n", "Exposure | \n", "Deaths | \n", "Recovery | \n", "Terminations | \n", "Benefit_Expiry | \n", "Others_Terminations | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
368230 | \n", "Female | \n", "65-69 | \n", "2009-2010 | \n", "HCC | \n", "03: South | \n", "06: Nervous System | \n", "57 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
9464 | \n", "Female | \n", "75-79 | \n", "< 2001 | \n", "NH | \n", "03: South | \n", "08: Other | \n", "119 | \n", "3 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
278806 | \n", "Female | \n", "90+ | \n", "2005-2006 | \n", "NH | \n", "04: West | \n", "Unknown | \n", "97 | \n", "5 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
280654 | \n", "Female | \n", "85-89 | \n", "2013-2014 | \n", "NH | \n", "03: South | \n", "08: Other | \n", "6 | \n", "192 | \n", "3 | \n", "0 | \n", "3 | \n", "1 | \n", "0 | \n", "
592960 | \n", "Female | \n", "65-69 | \n", "2005-2006 | \n", "ALF | \n", "02: Northeast | \n", "Unknown | \n", "8 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
595747 | \n", "Female | \n", "90+ | \n", "2001-2002 | \n", "HCC | \n", "01: Mid-West | \n", "01: Alzheimer's and Dementia | \n", "80 | \n", "2 | \n", "0 | \n", "1 | \n", "1 | \n", "0 | \n", "0 | \n", "
120359 | \n", "Female | \n", "85-89 | \n", "2005-2006 | \n", "ALF | \n", "01: Mid-West | \n", "05: Injury | \n", "2 | \n", "4 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
124058 | \n", "Male | \n", "0-49 | \n", "2001-2002 | \n", "HCC | \n", "03: South | \n", "Unknown | \n", "84 | \n", "2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
409170 | \n", "Male | \n", "80-84 | \n", "2007-2008 | \n", "HCC | \n", "02: Northeast | \n", "06: Nervous System | \n", "10 | \n", "4 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
391058 | \n", "Male | \n", "80-84 | \n", "2003-2004 | \n", "Other | \n", "01: Mid-West | \n", "Unknown | \n", "34 | \n", "6 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "
123963 rows × 13 columns
\n", "