Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Load the hmeq _ small.csv data set as a data frame. Standardize the data set as a new data frame. Normalize the data set as
Load the hmeqsmall.csv data set as a data frame.
Standardize the data set as a new data frame.
Normalize the data set as a new data frame.
Print the means and standard deviations of both the standardized and normalized data.
Ex: Using the first rows, found in hmeqsample.csv the output is:
The means of df are LOAN e
MORTDUE e
VALUE e
YOJ e
CLAGE e
CLNO e
DEBTINC e
dtype: float
The standard deviations of df are LOAN
MORTDUE
VALUE
YOJ
CLAGE
CLNO
DEBTINC
dtype: float
The means of df are LOAN
MORTDUE
VALUE
YOJ
CLAGE
CLNO
DEBTINC
dtype: float
The standard deviations of df are LOAN
MORTDUE
VALUE
YOJ
CLAGE
CLNO
DEBTINC
dtype: float
# Import the necessary modules
hmeq # Read in the file hmeqsmall.csv
# Standardize the data
standardized # Code to standardize the data
# Output the standardized data as a data frame
df # Code to output as a data frame
# Normalize the data
normalized # Code to normalize the data
# Output the standardized data as a data frame
df # Code to ouput as a data frame
# Print the means and standard deviations of df and df
printThe means of df are # Code for mean of df
printThe standard deviations of df are # Code for standard deviation of df
printThe means of df are # Code for mean of df
printThe standard deviations of df are # Code for standard deviation of df
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started