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

  Write a report to the key decision-makers

Write a report to the key decision-makers within the business on whether Cloud Accounting will become commonplace in the future and is, therefore, appropriate for their business.

  Describe the term heuristic optimization algorithms

question 1 list the cost functions for the select and join operations.question 2 what are the cost functions of the

  Describe algorithm that finds maximum feasible flow in graph

Describe an algorithm that finds a maximum feasible flow in G. Denote by MF(|V|, |E|) the worst-case running time of an ordinary maximum flow algorithm.

  Relationships in a database model

Discuss different types of classifications and do they overlap, or do they each tell us something unique about the entity relationship?

  Question about unix and shell scripting

Explain the results of executing each of the following grep commands in your home directory.

  Identify the dfd elements

Compare the guidelines for preparing flowcharts and DFDs. What general design principles and limitations are common to both documentation techniques?

  Binary tree templated class prepare a binary sort tree

there are really 2 problems1. binary tree templated class. create a binary sort tree templated class that will

  Design an o(v+e) time algorithm that computes

Design an O(V+E) time algorithm that computes the smallest number of batches required to complete all tasks. A task can be assigned to a batch i if and only if all tasks that are its prerequisites have already been assigned to batches 1 to (i-1).

  Two phase routing algorithm

Two Phase Routing Algorithm: use the analysis of the first phase to give a full analysis (no "symmetry" argument) of the second phase.

  How pseudocodes can be optimized to improve efficiency

Create an Alice World with four helicopters and a list containing the helicopters. Program the world to make the helicopters each lift off from the ground one at a time and then all turn and fly away together.

  1 early printings of clrs3 say on pages 546-547 we treat

1. early printings of clrs3 say on pages 546-547 we treat min and max differently the element stored in min does not

  Calculate the total weights and values of each subset

Use the decrease-by-one technique to generate the power set and calculate the total weights and values of each subset, then find the largest value that fits into the knapsack and output that value.

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