Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Problem 1: K-means clustering

For this question you need to refer to the k-means clustering algorithm in the Course Slides posted on Blackboard.

 

Point

x

y

1

1.0

1.0

2

1.5

2.0

3

3.0

4.0

4

5.0

7.0

5

3.5

5.0

6

4.5

5.0

7

3.5

4.5

Assume we have the above dataset that shows 7 points in a 2-dimensional space, with x coordinates shown in the x column, and y coordinates shown in the y column. Assuming the number of clusters is set to 2 (i.e., k=2), and distances among points are measured by Euclidean distance. Based on observation, a good choice of the initial centroids (cluster centers) are point 1 (1.0, 1.0) and point 4 (5.0, 7.0) (these two points are relatively further away from each other). Your job is to run the k-means algorithm and answer the following questions.

(i) After the initial centroids are assigned (shown above), the first step in a clustering process is to check the rest of the points and assign them to one of the two clusters. Here we assume that the centroid remain unchanged during the first round (iteration).

Determine cluster memberships (which points belong to Cluster 1 and which belong to Cluster 2) for each of these 7 points after the first iteration. Show intermediate results how you obtain the solution.

(ii) Based on the results obtained from step (i), recalculate centroids (the mean vectors) for the two clusters. Then recalculate the distance from each point to its centroid. Show your results. Are there any points need to change their cluster memberships? If so, what are these points?

(iii) Continue the process shown in step (ii) for another iteration. Do you observe any changes in cluster memberships? If so, what are these points? If not, will there be further changes if we continue the process with more iterations?

Notes:
• It would be easier to solve the problem if you can draw a picture and show changes of centroids on a 2-dimensional system.
• Since this is a tiny dataset, the entire process can be computed by hand.

Problem 2: Logic

(i) Look at the following sentences written in first-order logic. Explain these sentences in plain English. Based on the definitions on validity and satisfiability, are these statements valid? If not, are they satisfiable? [20 points]

∀x ∃y Loves(x, y) ⇔∃x ∀y Loves(x, y)
∀x Loves(x, movie) ⇔ ¬∃x ¬Loves(x, movie)
∃x Loves(x, movie) ⇔ ¬∀x ¬Loves(x, movie)
¬∀x ¬ Loves(x, movie) ⇔ ∀x Loves(x, movie)

(ii) Based on our discussion on refutation resolution, given the following premises:

Father(A, B) Alive(A)
∀x∀y Father(x, y) ⇒ Parent(x, y)
∀x∀y (Parent(x, y) ∧ Alive(x)) ⇒ Older(x, y) Prove the following: Older(A, B)
Note: this simple question can also be proved by forward/backward reasoning. However you are required to use refutation resolution. [20 points]

Problem 3: Fuzzy Logic

The following fuzzy function was used to calculate membership values for the set healthy. A membership value of 1 is healthy; a membership value of 0 is not healthy; a membership value between 0 and 1 is the degree of membership in the healthy set.

158_Fuzzy Logic.png

BMI values that range from 20 to 25 are members of the healthy set (1). BMI values greater than 27 or less than 18 are not members of the healthy set (0). BMI values close to the healthy range (20 to 25) are a value between 0 and 1. For example, a BMI of 19.6 is 0.8 degree of membership in the healthy set.

(i) Draw the graphic for the healthy set, representing the values, healthy and unhealthy.

(ii) What is the degree of membership to the fuzzy set healthy of person B who has a BMI of 26.2? And to the fuzzy set unhealthy?

(iii) In this example, is it possible that the total degree of membership (summation of degrees of membership in different sets) exceeds 1? Why or why not?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91543353
  • Price:- $65

Priced at Now at $65, Verified Solution

Have any Question?


Related Questions in Computer Engineering

What are the overall cost leadership differentiation and

What are the overall cost leadership, differentiation, and focus strategies?

Question you are shopping for a new computer you will be

Question: You are shopping for a new computer. You will be using the computer for everything you do, such as school, socializing, gaming, and communicating. Your total budget before tax is $1,000.00. Considerations: • Bu ...

What is the current balance of trade for the united states

What is the current balance of trade for the United States? Has this balance been increasing or decreasing? Based on the current economic conditions, how do you think this balance will move in the near future, and why?

Suppose that we have the following cities mudville horns

Suppose that we have the following cities: Mudville, Horns, Farm Town, Almira, Billows, Carmenovsk, Dantub. They are in a rural county and have no paved roads. Your county government decides to build a paved network of r ...

Is there any difference in terms of the information that

Is there any difference in terms of the information that could be provided to the decision maker by an IS that was created using HSM and an IS that was created using SSM?

Question suppose that we have a computer that can test 240

Question : Suppose that we have a computer that can test 2 40 keys each second. What is the expected time (in years) to find a key by exhaustive search if the keyspace is of size 288? What is the expected time (in years) ...

Question the redblue computation simulates two interactive

Question : The Red/Blue computation simulates two interactive flows: an n × n board is initialized so cells have one of three colors: red, white, and blue, where white is empty, red moves right, and blue moves down. Colo ...

Question 1 in each of the following scenarios there is a

Question: 1. In each of the following scenarios there is a relationship to work life in the IT industry. With each of the following question, ensure that your answer includes the explanation of how it would be applied to ...

Determine the critical values for a left-tailed test of a

Determine the critical? value(s) for a? left-tailed test of a population mean at the alpha α=0.01 level of significance based on a sample size of n=15.

Question please research a professional white paper

Question: Please research a professional white paper (academic) PDF format and with in the last two years that is relevant to this class and outline a 750 word document in APA format include the following: cover sheet, i ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As