Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Before solving the question, PLEASE MAKE SURE YOU HAVE a STRONG UNDERSTANDING OF the MATERIAL RELATED TO THIS PROBLEM AND DO NOT POST a SOLUTION

Before solving the question, PLEASE MAKE SURE YOU HAVE a STRONG UNDERSTANDING OF the MATERIAL RELATED TO THIS PROBLEM AND DO NOT POST a SOLUTION UNLESS YOU ARE FULLY SURE ABOUT THE ANSWER. Show completely your solution and make it clearly readable. Please solve all the questions because all of them are related, and I cannot post each one individually as well as my package for this month is over and I really need them!

Any defect or disregard of these above conditions, will result in getting thumbs-down.

Using Python if needed, answer the following questions with TYPING the code (i.e, provide the code typed on the answer with screenshot so I can copy it)

image text in transcribed

image text in transcribed

1. Create examples of zero vector, one vector, square matrix, diagonal matrix, identity matrix, and symmetric matrix one by one, and represent vectors and matrices with NumPy 2. The shares of three companies A, B, and C are 1 million won, 800,000 won, and 500,000 won, respectively. We want to find the amount required to purchase 3, 4, and 5 shares of these stocks, respectively. 1) Express the stocks price and quantity as p vector and n vector, respectively and coded with NumPy. 2) The amount required to purchase stocks is expressed by multiplication, and the value is calculated by Numpy operation. 7. The ratings given by three users a, b, and c to 4 movies are expressed as vectors as follows. 4 0 2 5 2 2 2 0 a = ,b = C = 1) Find the Euclidean distance between a, b, and c. Which two users are the closest? And which two users are farthest apart? 2) Find the cosine distance between a, b, and c. Which two users are the closest? And which two users are farthest apart

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago