程序代写案例-BIS4435
Questions 8 Dr. Roman Belavkin BIS4435 Question 1 Answer the following questions: a) What is a fuzzy set? Answer: A fuzzy set is a set of elements that have some common property (such as ‘Hot’). What makes the set fuzzy is a fuzzy mem- bership function. b) What is a membership function of a fuzzy set? Answer: Membership function describes the degree of confidence that an object belongs to the set. Usually a fuzzy set is some category (discrete fact, such as ‘Hot’) related to a real variable (continuous, such as temperature T ). Membership function relates the value of the real variable (e.g. a temperature T = +20◦C) to the fuzzy set by saying how much this particular value belongs to the category (e.g. how much it is true that T = +20◦C is ‘Hot’). Membership can be measured in percentage from 0% to 100% or as a number from 0 to 1. Sometimes membership function is also called ‘confidence factor’. For example, membership M(Hot) for T = +20◦C is 80% means that we can be 80% confident that temperature +20◦C is hot. c) Can a fuzzy membership be True and False at the same time? Answer: Yes. In fact, a fuzzy variable is always True and False at the same time, but with different degrees of membership (confidence). Moreover, if M is the membership of a variable in True, then its membership in False will be 1−M . d) What is a fuzzy variable? 1 BIS4435 2 Answer: A collection of fuzzy sets is a fuzzy variable. Usually, the sets of a fuzzy variable are related to the same real variable and de- scribe different categories that can characterise this variable. For ex- ample, for a real value temperature the corresponding fuzzy variable can be {Cold, Hot}. Question 2 Consider the following real variables from everyday life: • Income measured in £UK. • Speed measured in meters per second. • A TV show measured in how much you are interested watching it. • A meal measured in how much you like to eat it. • A traffic light measured in what colour is on. In each case, suggest a fuzzy variable corresponding to these real variables. For which of these five variables the use of a fuzzy variable is not really necessary? Why? Answer: I suggest the following fuzzy variables (you may come up with a bit different): • Income: {Small, Medium, Large} • Speed: {Slow, Fast} • A TV show: {Boring, OK, Fascinating} • A meal: {Disguisting, So−−so, Good, Delisheous} • A traffic light: {Red, Yellow, Green} It is not necessary to use the fuzzy representation for a traffic light. The reason for that is that we only have to consider when it is either Red, Yellow or Green, and we do not need to consider intermediate states. Furthermore, it is not really often when you see, say, Red and Green at the same time. Thus, fuzzy variables are necessary when we really have to consider ‘blurred’ states. Question 3 Consider the following fuzzy expert system for weather forecast: BIS4435 3 Rule Condition Action Confidence R1: IF arrow is down THEN clouds M = 0.8 R2: IF arrow is in the middle AND moving down THEN clouds M = 0.6 R3: IF arrow is in the middle AND moving up THEN sunny M = 0.6 R4: IF arrow is up THEN sunny M = 0.8 The following two plots represent the membership functions of two fuzzy variables describing the position of the arrow of barometer (left) and the direction of its movement (right): - 6 A A A A A A A J J J J J J J M Down UpMiddle Air pressure in millibars 980 10301010 10201000 Arrow Position 0 0,25 0,5 0,75 1 - 6 @ @ @ @ @ @ @