程序代写案例-BIS4435

欢迎使用51辅导,51作业君孵化低价透明的学长辅导平台,服务保持优质,平均费用压低50%以上! 51fudao.top
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
@
@
@
@
@
@
@






M
Down Up
Arrow Movement
0 +2 +4-2-4
Millibars per hour
0
0,25
0,5
0,75
1
The air pressure is measured in millibars, and the speed of its change in
millibars per hour. Answer the following questions:
a) How much is the arrow Down, Up or in the Middle if it indicates that the
pressure is 1020 millibars? Use membership functions on the graphs.
Answer: By looking at the left graph (or using a ruler) we can find
that when the pressure is 1020 millibars the arrow is up with confidence
M = 0.5, down with M = 0 and in the middle with M = 0.25.
b) How much is the arrow moving Down or Up if the pressure changes −2
millibars every hour?
Answer: Similarly, by looking at the right graph we can say that
the arrow is moving down with confidence M = 0.75 and moving up
with M = 0.
c) Using the membership values found above and confidences of the rules
in the table calculate the degree of confidence in that the sky is clear
or cloudy.
BIS4435 4
Answer: The following are the above found degrees of membership
of the arrow to five categories:
M(arrow is down) = 0
M(arrow is in the middle) = 0.25
M(arrow is up) = 0.5
M(arrow is moving down) = 0.75
M(arrow is moving up) = 0
First, we find the combined membership values of condition parts of
the rules:
M(arrow is down) = 0
M(arrow is in the middle AND moving down) = min[0.25, 0.75] = 0.25
M(arrow is in the middle AND moving up) = min[0.25, 0] = 0
M(arrow is up) = 0.5
To calculate the degree of confidence in conclusion of each rule, we
need to multiply the the membership values of their conditions by the
degrees of confidence of the rules itself:
M(action) = M(condition)×M(rule) .
Using the M values for rules in the table we can calculate
M1(clouds) = 0× 0.8 = 0
M2(clouds) = 0.25× 0.6 = 0.15
M1(sunny) = 0× 0.6 = 0
M2(sunny) = 0.5× 0.8 = 0.4
Because we have two conclusions about for each type of weather, we
need to use the following formula for combining memberships of two
conclusions:
M(x) = M1(x) + M2(x)−M1(x)×M2(x)
So, the results are
M(clouds) = 0 + 0.15− 0× 0.15 = 0.15
M(sunny) = 0 + 0.4− 0× 0.4 = 0.4
Question 4
What is the purpose of defuzzyfication? Name at least one method used for
defuzzyfication.
BIS4435 5
Answer: The process of defuzzyfication is conversion from fuzzy sets in
a fuzzy variable into a single real value. The purpose of this is to derive a
single crisp conclusion from a set of fuzzy conclusions a system has arrived
to (e.g. how much money exactly a bank can let). One common method
for defuzzyfication is called centroid. It uses the ‘centre of gravity’ of the
combined area under of memberships.
Question 5
Name three strengths and three weaknesses of fuzzy expert systems.
Answer: Strengths are:
• Fuzzy ES need to use fewer rules as opposed to traditional rule–based
system. This is because there is no need to cover all the cases.
• Because there are fewer rules, it is easier to understand a fuzzy logic
expert system.
• It is possible to fine tune the system by changing parameters of mem-
bership functions. This allows for using a fuzzy system in ‘What–If’
analysis by strategic planning.
Weaknesses are:
• Fuzzy systems usually are more limited in explaining their solutions,
than crisp rule–based systems. This is because there are usually fewer
rules doing bigger steps in reasoning, and all rules fire in parallel, which
may be hard to follow.
• They still require the knowledge to be engineered (e.g. by consulting
experts).
• Saturation problem. If membership functions are not defined carefully
(e.g. memberships in fuzzy sets are not well separated), then the
system may begin to give the same answer (output value) for all the
problems (for different input values). The system in this case will be
just generating the average answer all the time.

欢迎咨询51作业君
51作业君

Email:51zuoyejun

@gmail.com

添加客服微信: abby12468