FE520 Introduction to Python for Financial Applications

Assignment Help Other Subject
Reference no: EM132412006

FE520 Introduction to Python for Financial Applications Assignment - Stevens Institute of Technology, USA

1. Clustering & Classification

1. Use sklearn.cluster.KMeans to do clustering on the given data set points.csv. There are 4 clusters in this data set. Draw a scatter plot for the data and use color to indicate their clusters.

2. Regard the clusters given by your KMeans model as the ground truth labels, randomly split the data set into training data and testing data. Create a linear SVM classifier and train it on training data set. Use the confusion matrix to evaluate its performance on testing data set.

3. Regard the data set labels.csv as the ground truth labels, repeat the second question. Compare their performance, discuss what do you observe, and how would explain it.

4. Use tensorflow.keras API to create a fully connected neural network model, repeat the second question. Draw a plot to show how loss changes when the step of training increases.

2. Regression

1. In this question, we are going to use the diabetes data set. Use sklearn.datasets.load diabetes() to load the data and labels.

2. Randomly split the data into training set and testing set.

3. Create a linear regression model using sklearn, and fit training data. Evaluate your model using test data. Give all the coefficient and R-squared score.

4. Use 10-fold cross validation to fit and validate your linear regression models on the whole data set. Print the scores for each validation.

5. Use sklearn to create RandomForestRegressor model, and fit the training data into it.

6. Use Grid Search to find the optimal hyper-parameters (max depth:[None, 7, 4] and min samples split: {2, 10, 20}) for RandomForestRegressor.

3. Web Scraping

The task is to scrape weather information from .

1. Write Python program to scrape the location, last update time, current weather, temperature, humidity and wind speed. The attached image 1 shows the information you need to scrape. Put all the information into a python dictionary.

2. Pack above code into a function which will take the latitude and longitude as inputs and return a dictionary mentioned above. (Hint: You can query the information for a specific latitude and longitude by putting them into the URL).

3. A list of geometric coordinates are given in locations.csv, map your function in 2 to each coordinates, and create a pandas.DataFrame (rows: coordinates, columns: 6 features mentioned in 1). Drop the duplicate locations and invalid records, sort the table by current temperature. Print 5 locations at the top and 5 locations at the bottom.

Submission Requirement: For all the problems in this assignment you need to design and use Python 3, output and present the results in nicely format. Please submit a written report (pdf), where you detail your results and copy your code into an Appendix. You are required to submit a single python file and a brief report. Your grade will be evaluated by combination of report and code. You are strongly encouraged to write comment for your code, because it is a convention to have your code documented all the time.

Attachment:- Python for Financial Applications Assignment Files.rar

Reference no: EM132412006

Questions Cloud

What questions would you ask of the union supporter : Suppose a coworker just brought you a union leaflet urging employees to sign an authorization card. What questions would you ask of the union supporter?
What are some reasons management opposes unionization : What are some reasons management opposes unionization? Do you agree or disagree with these reasons? Why or why not? Present your views in approximately 250 word
Does a person have gender or do gender : Does a person "have" gender or "do" gender? What are the major theories that help us understand the difference between communication and gendered communication?
Review problem based on terminating and downsizing : Choose two (2) factors from those discussed in the textbook that may cause a possible breach of an implied contract. Suggest two (2) strategies that an employer
FE520 Introduction to Python for Financial Applications : FE520 Introduction to Python for Financial Applications Assignment Help and Solution - Stevens Institute of Technology, USA. Draw a scatter plot
What is the montana wrongful discharge from employment act : Briefly describe what is the Montana Wrongful Discharge from Employment Act (WDEA). What do you see as benefits of this act to employees? Employers?
Assess the key elements of a leadership style : Leadership Style and Impact: Assess the three (3) key elements of a leadership style and the impact that those elements can make on business success.
Determine the characteristics of a successful project plan : You are now ready to present to management a final report on establishing a project team and project phases needed to initiate the changes for a more.
What areas of emotional management would you like to improve : What areas of emotional management would you like to improve? How do you think this will help you as a leader? How might storytelling be beneficial to you.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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