CS4373_5473 Homework1 Solved

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product

Notice: Given the nature of on-line course, we will require you to practice using Words, Markdown, or HTML to write and format your homework solutions (no scanned smeared image please). It will prepare you for taking the on-line exams, where only a Words style editor (with HTML support) is available.

  1. (Data Statistics) Write basic Python functions to obtain the following statistics and apply these functions to columns C, D, E, and F in the table.
    • The mean and the midrange.
    • The mode and the modality (i.e., bimodal, trimodal, etc.).
    • The five-number summary.
    • Compare to the corresponding functions provided by DataFrame
  2.  (Similarity and Distance) Prompt the user for a tuple, say p = (a1,b2,515,−0.876,6.4253,45), and perform the following tasks.
    • Print the row in the DataFrame that is the least dissimilar to p, where the dissimilarity is measured by different types of distances, including the Euclidean distance, Manhattan distance, supremum distance, and cosine similarity, using the set of columns C, D, E, and F.
    • Normalize the data points by making the norm of each data point (under columns C,D, E, and F) equal to 1. That is, scale the values in columns C, D, E, and F, so that,

for each row (c, d, e, f) we have pc2 + d2 + e2 + f2 = 1. Then, print the row in the DataFrame that has the shortest Euclidean distances from the normalized point p.

  1.  (Normalization) Write functions to normalize the data in a given column using the following methods. Apply these functions on column C.
  • Min-max normalization that transforms the values onto a given range, for example,[−1.0,1.0].
  • Z-score normalization.

Decimal scaling normalization

  • HW01-8cgd5v.zip