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 the parametric form of the unit circle

Write the parametric form of the unit circle. Given an arbitrary positive integer n, write an algorithm that generates n evenly spaced points that are sampled along the unit circle

  Prepare a currency conversion design

currency conversion design pseudocodeprogram pseudocodestart main moduledeclare option 0declare value 0declare

  If you can monitor when sql injections are performed on an

if you can monitor when sql injections are performed on an sql database what would you recommend as a security

  Working with physicists that hav an inert lattice structure

working with Physicists that hav an inert lattice structure, and they use this for placing charged particles at regual spacing along a straight line

  You have been commissioned to prepare a manual covering the

in a 6-8-page paper complete the followingyou have been commissioned to create a manual covering the installation

  Creating an interactive java program

Create an interactive Java program that illustrates the use of constructors, methods, loops and arrays.

  Describe properties of bfs and dfs for acyclic tree

Analyze the given properties of BFS and DFS for Acyclic Tree without making any assumptions. Optimality, Completeness.

  Complete the step process for designing dimensional models

Complete the step process for designing dimensional models for each process you identify and create a dimensional model (star schema) for each process you identify Align

  Determine mean process turnaround time

Their priorities are 2, 3, 1, 5 and 4, respectively, with 1 being the highest priority. Specify the order in which processes execute and determine the mean process turnaround time for each of the scheduling algorithms.

  An undirected graph g is called bipartite

An undirected graph G is called bipartite if its vertices can be partitioned into two sets X and Y such that every edge in G has one end vertex in X and one end vertex in Y

  Design a property database using microsoft access

Database window opens, then type the word Client as the name for this file where the cursor is blinking, then click the create bottom.

  Devise a linear-time algorithm to count the parallel edges

Parallel edge detection: Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudo-code.

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