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

  What frank greitzer and hohimer argue about difficulties

What Frank, Greitzer & Hohimer argue about difficulties of picking up trail before fact, in order to provide time to intervene and prevent insider cyber attack?

  Write about diagnosing organizations and diagnostic process

For your course project work this week, consider what you have learned about diagnosing organizations and the diagnostic process. Use that knowledge to complete the first milestone of your course project

  What punishment purposes should guide you in making

If you were the judge, would you grant Dove's request for a downward departure. Why or why not. Please justify your opinion.

  Similiarities of italian and northern european renaissance

Write down the relationships between arts and the cultures of Italian Renaissance and the Northern European Renaissance?

  What problems do you see coming from the assumption

Do you agree or disagree with the idea that a juvenile's case should be moved to adult court based on the seriousness of the offense.

  Write summary about public community government meetings

You will write a summary news lead about one of the public community government meetings that you will choose and watch from the attached list

  Describe why variation in skin color is of no use

The subfields of anthropology seem quite diverse in their specific subjects and methods. Why, then, are they all considered parts of the single discipline of anthropology? What ties them together.

  Discuss about a variety of literary characteristics

In this course, you learned about a variety of literary characteristics including connotation, denotation, tone and mood. Choose one or more poems.

  How is diagnostic evaluation used in instructional planning

How is diagnostic evaluation used in instructional planning? What strategies does early childhood teacher use to assess young students using formative measures?

  Discuss the budgetary and managerial impact

Write a 1,450 - word paper in which you evaluate past, present, and future trends of the criminal justice component you select in the State of California.

  Design an hmm describing daphnas eating behavior

Daphna is dining daily at her favorite cafeteria, which serves salad, lasagna or pasta. While always craving for something prior to leaving the office, Daphna frequently changes her mind upon reaching the cafeteria. For example, if Daphna craved for ..

  College tution-what are the pro and con issues

Making College Tuition Cheaper?What are the Pro and Con issues? What is your opinion? How would you support your opinion? What is the opposing viewpoint? Can you acknowledge this difference of opinion by conceding some points but still make your a..

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