Effect of different normalization and transformation methods

Assignment Help Python Programming
Reference no: EM132344471

For this assessment, you are required to write Python (Python 2/3) code to integrate several datasets into one single schema and find and fix possible problems in the data. Input and output of this assessment are shown below:

Table 1. The input and output of the task

Inputs

Output

Jupyter notebook

vic_suburb_boundary.zip, gtfs.zip Crimebylocation.xlsx

<student_no>.csv

<student_no>_solution.csv

<student_no>_ass3.ipynb

You are given multiple datasets in various formats and the task is about creating housing information in Victoria, Australia. Your assessment is to perform the following tasks.

Task 1: Data Integration

In this task, you are required to integrate these datasets into one with the following schema.

Table 2. Description of the final schema

COLUMN

DESCRIPTION

ID

A unique id for the property

Address

The property address

Suburb (20/100)

The property suburb. The suburb must only be calculated using Vic_suburb_boundary.zip. Default value: "not available"

Price

The property price

Type

The type of property

Date

Date of sold

Rooms

Number of bedrooms

Bathroom

Number of bathrooms

Car

The number of parking space of the property

LandSize

The area of the property

Age

The age of the property at the time of selling

Latitude

The Latitude of the property

Longitude

The Longitude of the property

train_station_id (15/100)

The closest train station to the property that has a direct trip to the Southern Cross Railway Station. A direct trip is a trip that there are no connections (transfers) in the trip from the origin to the destination. Default value: 0

distance_to_train_stat ion (5/100)

The direct distance from the closest train station to the property that has a direct trip to the Southern Cross Railway Station. Default value: 0

travel_min_to_CBD (20/100)

The average travel time (minutes) from the closest train station (regional/metropolitan) that has a direct trip to the "Southern Cross Railway Station" on weekdays (i.e. Monday-Friday) departing between 7 to 9:30 am. For example, if there are 3 direct trips departing from the closest train station to the Southern Cross Railway Station on weekdays between 7-9:30 am and each takes 6, 7, and 8 minutes respectively, then the value of this column for the property should be (6+7+8)/3.). Default value: 0

over_priced? (10/100)

A boolean feature indicating whether or not the price of the property is higher than the median price of the similar properties (with respect to bedrooms, bathrooms, parking_space, and property_type attributes) in the same suburb on the year of selling. Default value: -1

crime_A_average (7/100)

The average of type A crime for three years prior to selling in the same suburb as the property. For example, if a property is sold in 2016, then you should calculate the average of the crime type A for 2013, 2014 and 2015. Default value: -1

crime_B_average (7/100)

The average of type B crime for three years prior to selling in the same suburb as the property. For example, if a property is sold in 2016, then you should calculate the average of the crime type B crime for 2013, 2014 and 2015. Default value: -1

 

crime_C_average (6/100)

The average of type C crime for three years prior to selling in the same suburb as the property. For example, if a property is sold in 2016, then you should calculate the average of the crime type C for 2013, 2014 and 2015. Default value: -1

Task 2: data reshaping

In this task, you need to study the effect of different normalization/transformation methods (i.e. standardization, min-max normalization, log, power, and root transformation) on Rooms, crime_C_average, travel_min_to_CBD, and property_age attributes. You need to observe and explain their effect assuming that we want to build a linear model on price using these attributes as the predictors of the linear model and recommend which one(s) do you think would work better on this data. When building the linear model, the same normalization/transformation method can be applied to each of these attributes.

Task 3: Documentation and Methodology

The main focus on the documentation would be on the quality of your explanation on finishing these tasks. Your notebook file should be on a decent format with proper sections and subsections.

Note 1: the output csv file must have the exact same columns as specified on the schema. If you decide not to calculate any of the required attributes, then you must have a column for that attribute in your final data-frame with the default value as the value of all the rows. Please note that output file which is not in a correct format, as specified in the integrated schema, won't be marked.

Note 2: the radius of the earth is still 6378 km!

Note 3: In table 2, numbers in front of some of the rows in the format of (a/b) are the allocated mark associated with that attribute. For example, the "suburb" attribute carries 20% of the total mark of task 1. Please note that 10% of the total marks for task 1 is marked on any other issue that may occur during the data integration process.

Note 4: You can only use the vic_suburb_boundary.zip file to extract the suburb name of the property. Using other external datasets or packages (e.g., geopy) to directly get the suburb information will be penalized (this will result in 0 marks for the suburb attribute).

Attachment:- Data Wrangling.rar

Attachment:- Data Wrangling relevant files.rar

Verified Expert

Data wrangling is the assignment of data analysis using python ide and jupyter notebook in which the cases are implemented and all the things were clear using the jupyter notebook template which is the standard template used for the coding in python 3.1

Reference no: EM132344471

Questions Cloud

Evaluate issues in the current environment : Evaluate issues in the current environment that affect the demand for and supply of engineering and technical personnel.
Determine the total materials variance : Determine the total materials variance and round to the nearest whole dollar. Enter a favorable variance as a negative number.
Under the federal rules of civil procedures : Under the Federal Rules of Civil Procedures (FRCP) amendments dating back to 1938 there has been governance and the discovery of evidence in lawsuits
Commercial health insurance is any type of health insurance : Commercial health insurance is any type of health insurance not paid for by a government agency.
Effect of different normalization and transformation methods : Write Python code to integrate several datasets into one single schema and find and fix possible problems in the data -
Compare your group participation rates-employment levels : Compare your group's participation rates, employment levels, and income levels with another racial or ethnic group in the United States.
What amount of maintenance services total cost is allocated : What amount of Maintenance Services total cost is allocated to the Mixing Department? Adelphi Company uses absorption costing.
Write a business report for employees of Innovative Solution : CT501 Business Analysis and Systems Development Approaches Assignment - Report, Murdoch University, Australia. Write a business report
Determine number board feet of lumber : Towson Company manufactures book cases, and each requires 38 board feet of lumber. Towson expects that 1,800 and 2,050 book cases will be built in June.

Reviews

len2344471

7/24/2019 12:00:39 AM

Please note that, there must be a direct trip between the closest station to the Sothern Cross Station within the time frame, i.e. 7 to 9:30am. As you may know, the travel time to the CBD in the morning is an important factor which affects the price of the properties. So please note that in the assignment, you must find the closest station to each property that has a direct trip to the SC station departing from 7 to 9:30am.

len2344471

7/24/2019 12:00:22 AM

Got an update on Data Wrangling assignment from our faculty. "I have updated the specification of Assessment 3 on the crime attributes of the local government area. Please calculate the crime rate for the LOCAL GOVERNMENT AREA which the suburb belongs to. A new council dataset which maps the suburbs to local government areas is also provided. Please use this dataset to get the crime attributes for this task." Please download the council dataset. You will need this data to map the suburb to a local government.

len2344471

7/24/2019 12:00:12 AM

For Wrangling, I will provide all relevant files needed to finish that assignment. it should be as per specification mentioned in file because that is my final assignment and I want to get high grades in this assignment. Please find attached Zip file for the Data Wrangling assignment. It includes a specification file which gives you information on how to perform the assignment and there is one submission details file which will let you know extra details about submission and assignment. Rest of the files are related to the assignment. Let me know if you have any questions. I am expecting this assignment as per requirements and with high standard as this is my last assignment and I want to score really well in this assignment. Please try to make it up to mark and as per the requirements.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd