Question: - Use the demographic segmentation from the previous module to create a set of charts that will demonstrate . the relationship between demographic segments and
Use the demographic segmentation from the previous module to create a set of charts that will demonstrate the relationship between demographic segments and cost of claimHint: make sure to apply appropriate summary statistics to your charts in order to account for any uneven groups breakdown for example, retired status
Data StructurestrInsurancedata
# Create visualizations for demographic segmentation
# MariGE DistributionggplotInsurancedata, aesx maritalgeomhistogrambinwidth fill "orange", color "black"labstitle "Marital Distribution of Customers"
#Gender DistributionggplotInsurancedata, aesx gender, fill gendergeombar scalefillmanual values c "blue"pink"Labstitle "Gender Distribution of Customers", x "Gender", y "Count"
# Townsize DistributionggplotInsurancedata, aesx townsize, fill townsizegeombarlabstitle "Townsize Distribution of Customers", x "Townsize", y "Count"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
