Draw the graphic for the healthy set

Assignment Help Data Structure & Algorithms
Reference no: EM13873046

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?

Reference no: EM13873046

Questions Cloud

Compute sales revenue net sales and gross profit for lbs : Compute Sales Revenue, Net Sales, and Gross Profit for LBS. Compute the gross profit percentage (using the formula shown in this chapter and rounding to one decimal place). Prepare journal entries to record transactions (a) and (e). LBS is considerin..
Eboo patel writes about the importance of pluralism : Eboo Patel writes about the importance of pluralism
The society of professional journalist code : Read the Case Study below, post a detailed Pro or Con response to "was what Carter did a morally permissible act?"Provide a detailed paragraph with at least two reasons to support your opinion, including one of the principles covered in the Society o..
Describe strategies you will apply to your current career : Based on the marketing concepts you learned from this course, describe the strategies you will apply to your current career and / or business. Explain in detail and provide real-world examples
Draw the graphic for the healthy set : Draw the graphic for the healthy set, representing the values, healthy and unhealthy - 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?
Examine the key factors that influence the supply and demand : examine the key factors that influence the supply and demand
Mcdonalds social responsibility : From the e-Activity, evaluate McDonald's level of responsiveness to social responsibility concerns. Include an example from your observation of your local McDonald's to support your response
Items are likely to be reported on southern sporting goods : Which of the above items are likely to be reported on Southern Sporting Goods' external financial statements, and which items will be combined behind the scenes? Prepare the journal entries that Southern Sporting Goods would record and show any comp..
Person returned to the cave : Question 1 According to Plato, what would the people in the cave do to the person who had been outside the cave after this person returned to the cave?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Propose an efficient data structure

Propose an efficient data structure that may hold the tour operator's data using a normalization process. Describe each step of the process that will enable you to have a 2nd Normal Form data structure.

  Analogue of max flow min cut theorem-capacitated network

Explain how to define the s-t cut on node capacitated network as opposed to edge capacitated network, and how would one illustrate that analogue of the max flow min cut theorem.

  Your final project is a script which performs a fundamental

your final project will utilize many of the various skills that you have learned throughout this course. the final

  Implement bucket sort suing two-dimensional array

Where n is number of values to be sorted. Each row of two-dimensional array is referred to as bucket. Write class named BucketSort containing method called sort.

  Database design activities

Assume Ray wishes to start a DVD rental program at his stores that he plans to call Henry's DVD Club. He refers to each of his consumers as members.

  Difference between formulas and functions

Assume your mother in law heard that you prepared the budget for the high school reunion picnic and has asked if you could help her to make a monthly household budget.

  Finding median by black-box worst-case linear-time algorithm

Given a black-box worst-case linear-time algorithm for ?nding median, create algorithm solving the selection problem for an arbitrary order statistic.

  Define how to building a binary search tree

Three of these operations (all but add) must visit every node in the tree. One of these must use preorder traversal, one must use inorder traversal, and one must use postorder traversal.

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  How to draw a five inch square

How to draw a five inch square on the screen using * symbo

  Arraysq1-write a program to find average marks obtained by

arraysq1-write a program to find average marks obtained by 10 students in a test along with algorithm?q2 -write a menu

  You need to find the smallest array and see a segment fault

Write me a function that finds the smallest item in an ArrayBag (by reference) and returns true if the arrayBag is not empty and false otherwise.

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