Fuzzy Logic is an approach to computing based on "degrees of truth" rather than the usual "true or false" logic. It deals with reasoning that is approximate rather than precise to solve problems in a way that more resembles human logic, hence database querying process by the two valued realization of Boolean algebra is not adequate.
Fuzzy Scenario of Relations on Databases
The Fuzzy Scenario of Relations on Databases can be understood with the help of the following example −
Example
Suppose we have a database having the records of persons who visited India. In simple database, we will have the entries made in the following way −
Name | Age | Citizen | Visited Country | Days Spent | Year of Visit |
---|---|---|---|---|---|
John Smith | 35 | U.S. | India | 41 | 1999 |
John Smith | 35 | U.S. | Italy | 72 | 1999 |
John Smith | 35 | U.S. | Japan | 31 | 1999 |
Now, if anyone queries about the person who visited India and Japan in the year 99 and is the citizen of US, then the output will show two entries having the name of John Smith. This is simple query generating simple output.
But what if we want to know whether the person in the above query is young or not. According to the above result, the age of the person is 35 years. But can we assume the person to be young or not? Similarly, same thing can be applied on the other fields like days spent, year of visit, etc.
The solution of the above issues can be found with the help of Fuzzy Value sets as follows −
FV(Age){ very young, young, somewhat old, old }
FV(Days Spent){ barely few days, few days, quite a few days, many days }
FV(Year of Visit){distant past, recent past, recent }
Now if any query will have the fuzzy value then the result will also be fuzzy in nature.
Fuzzy Query System
A fuzzy query system is an interface to users to get information from the database using (quasi) natural language sentences. Many fuzzy query implementations have been proposed, resulting in slightly different languages. Although there are some variations according to the particularities of different implementations, the answer to a fuzzy query sentence is generally a list of records, ranked by the degree of matching.
Quantification
In modeling natural language statements, quantified statements play an important role. It means that NL heavily depends on quantifying construction which often includes fuzzy concepts like “almost all”, “many”, etc. Following are a few examples of quantifying propositions −
- Every student passed the exam.
- Every sport car is expensive.
- Many students passed the exam.
- Many sports cars are expensive.
In the above examples, the quantifiers “Every” and “Many” are applied to the crisp restrictions “students” as well as crisp scope “(person who)passed the exam” and “cars” as well as crisp scope ”sports”.
Fuzzy Events, Fuzzy Means and Fuzzy Variances
With the help of an example, we can understand the above concepts. Let us assume that we are a shareholder of a company named ABC. And at present the company is selling each of its share for ₹40. There are three different companies whose business is similar to ABC but these are offering their shares at different rates - ₹100 a share, ₹85 a share and ₹60 a share respectively.
Now the probability distribution of this price takeover is as follows −
Price | ₹100 | ₹85 | ₹60 |
---|---|---|---|
Probability | 0.3 | 0.5 | 0.2 |
Now, from the standard probability theory, the above distribution gives a mean of expected price as below −
And, from the standard probability theory, the above distribution gives a variance of expected price as below −
Suppose the degree of membership of 100 in this set is 0.7, that of 85 is 1, and the degree of membership is 0.5 for the value 60. These can be reflected in the following fuzzy set −
The fuzzy set obtained in this manner is called a fuzzy event.
We want the probability of the fuzzy event for which our calculation gives −
Now, we need to calculate the fuzzy mean and the fuzzy variance, the calculation is as follows −
Fuzzy_mean
Fuzzy_Variance
Comments
Post a Comment