1. Consider the following supervised dataset consisting of 10 observations, each with two features (observable data...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Consider the following supervised dataset consisting of 10 observations, each with two features (observable data is in X) and an associated label in Y: X= 0 1 00 1 1 00 1 1 10 1 0 1 1 20 2 1 Y 11 (a) Compute the average weighted entropy of the class label in the subsets created by splitting the dataset based on the value of the first feature. You may assume that the features are categoricial (5pts). (b) Now make the same computation, but as if we created subsets using the second feature! (5pts). (c) Which feature is more discriminating based on results in Part (a)? That is, which feature provides better class separation (2pts)? (d) What are the principle components of the observed data X? For this (and the next) part you may assume that the features are continuous and therefore should zscore them. Make sure your final principle components are all unit length. You MAY use a utility function like eig or sud to determine these (5pts). (e) In your own words, describe these axis in terms of a conventional 2D Cartesian Coordinate system (3pts). (f) If we were to project our data down to 1-D using the principle component, what would the new data matrix X be (5pts). 1. Consider the following supervised dataset consisting of 10 observations, each with two features (observable data is in X) and an associated label in Y: X= 0 1 00 1 1 00 1 1 10 1 0 1 1 20 2 1 Y 11 (a) Compute the average weighted entropy of the class label in the subsets created by splitting the dataset based on the value of the first feature. You may assume that the features are categoricial (5pts). (b) Now make the same computation, but as if we created subsets using the second feature! (5pts). (c) Which feature is more discriminating based on results in Part (a)? That is, which feature provides better class separation (2pts)? (d) What are the principle components of the observed data X? For this (and the next) part you may assume that the features are continuous and therefore should zscore them. Make sure your final principle components are all unit length. You MAY use a utility function like eig or sud to determine these (5pts). (e) In your own words, describe these axis in terms of a conventional 2D Cartesian Coordinate system (3pts). (f) If we were to project our data down to 1-D using the principle component, what would the new data matrix X be (5pts).
Expert Answer:
Related Book For
Applied Regression Analysis and Other Multivariable Methods
ISBN: 978-1285051086
5th edition
Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg
Posted Date:
Students also viewed these databases questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
QUIZ... Let D be a poset and let f : D D be a monotone function. (i) Give the definition of the least pre-fixed point, fix (f), of f. Show that fix (f) is a fixed point of f. [5 marks] (ii) Show that...
-
You are given the following information concerning four stocks: a) Using 20X0 as the base year, construct three aggregate measures of the market that simulate the Dow Jones Industrial Average, the...
-
Refer to the Journal of Business Logistics (Vol. 36, 2015) study of the factors that lead to successful performance-based logistics projects, Exercise 8.15. You used the data in the PBL file to test...
-
Kaffen Company, a ski tuning and repair shop, opened on November 1, 2013. The company carefully kept track of all its cash receipts and cash payments. The following information is available at the...
-
Suppose that a one-way analysis of variance involves four treatments but that a different number of observations (e.g., $n_{i}$ ) has been taken under each treatment. Assuming that $n_{1}=3, n_{2}=2,...
-
Presented below are a number of facts related to Weller, Inc. Assume that no mention of these facts was made in the financial statements and the related notes. Instructions Assume that you are the...
-
Oriole Manufacturing's sales decreased significantly in 2021 due to increased online purchasing. The company's income statement showed the following results from selling 386,000 units of product: Net...
-
Write an equation for the line passing through (4, 3) and perpendicular to the line whose equation State your answer in slope-intercept form. is 15. Find the average rate of change of the function...
-
You buy a guitar for $2,750. You pay $250 down and the store finances the remainder with 36 monthly payments of $111.40. Calculate your APR.
-
The Market Values Kia Corps Preferred Stock At $60 Per Share It Pays An Annual Dividend Of $12 Per Share. What Is Kias Cost Of Preferred Stock For Purposes Of WACC Of Kia? A. 16.67% B. 2.40% C. 1.67%...
-
SCI producer of chips Wing chips wants to perform an ABC analysis of its 11 main Suppliers. The information available is the following: What is the result of the ABC analysis? What proposals would...
-
Hanson Hardware, Inc. offers terms of 1/10, net 30. Assume that a year has 360 days, as is used in our WCM textbook. What annual opportunity cost rate is realized when a customer takes the 1%...
-
To borrow $1,000, you must pay back twelve monthly installments of $100. a. It cost you $200 to borrow $1,000 for a year. Why is your yearly interest rate not equal to 200=1,000 20%? b. What is the...
-
i. Find=? x=t2 +3 and y 16t2 ii. Find = ? atx y = (1+ cos*t) and x = (1- sin*t)
-
Pearson Education, a publisher of college textbooks, would like to know if students prefer traditional textbooks or digital textbooks. A random sample of students was asked their preference and the...
-
In an experiment designed to describe the dose-response curve for vitamin K, individual rats were depleted of their vitamin K reserves and then fed dried liver for 4 days at different dosage levels....
-
Radial keratotomy is a type of refractive surgery in which radial incisions are made in the cornea of myopic (nearsighted) patients in an effort to reduce their myopia. Theoretically, the incisions...
-
A psychological experiment was performed to determine whether in problem-solving dyads containing one male and one female, "influencing" behavior depended on the sex of the experimenter. The problem...
-
Suppose we wish to estimate the probability of a rare event (such as a default probability). Let the random variable \(X\) be equal to 1 if the event occurs and to zero otherwise. Then...
-
Consider a 10-year zero-coupon bond with face value \(\$ 100\). The interest rate is fixed at 5\%. The credit spread for the bond is estimated to be \(1 \%\) (except in part (a)). Calculate: (a) The...
-
Consider a total return swap of a coupon bond versus a fixed-rate payment. Discuss whether the payoff is path dependent.
Study smarter with the SolutionInn App