Fuzzy Logic
en.wikipedia.org
en.wikipedia.org
http://faculty.petra.ac.id/resmana/private/fuzzy
I was very interested in training neural networks to find out optimal fuzzy parameters for robotic control systems as an alternative to gain scheduling. There were some cool small companies making nifty scientific apps that I remember evaluating (Aptronix and Neuralogix come to my mind).
I made a quick capture under VBox with Windows 3.1 for others to see, (though i think it should also work under Wine and otya128's winevdm port to Windows 10):
http://runtimeterror.com/pages/badsector/nyan/gimme/webm/fuz...
EDIT: i started reading it now for real and i have to say it is a very interesting way to teach. In theory the hyperlinked approach would work fine in the web, but i cannot think of anything similar in practice. The closest i can think of was some interactive examples in a blog post i found some years ago about making a 2D game.
But most of all, this reminds me of PowerPoint presentations, which iirc were sometimes similarly made for use at home and with educational content. Also olde .HLP and .CHM ‘books’ were employed in this vein.
Still, what i found interesting was mainly the way this was presented in bite-sized pieces (via the pages that couldn't arbitrarily extend via scrolling), combined with clear graphs/pictures and interactivity (not just hyperlinking, but also end-of-chapter quizzes and in a couple of cases showing values changing live as you move your mouse over them).
Technically simple stuff, of course, and certainly done before (i mean, ToolBook was made in 1989 and is still around, so chances are someone is using it :-P), but not something i see often, which seems to be a shame. I had only heard the name "fuzzy logic" before, but after reading that presentation (just the fundamentals) i got a decent idea about what they are and it was easy to follow the tutorial. In comparison the same URL has a bunch of PDFs, including a text-only tutorial that seemed to describe more or less the same stuff. However i could only glaze over before closing it since i just couldn't focus on it. The interactive stuff is just so much more attractive :-P
I just downloaded DosBox, installed Win3.1 and the software. I am having a blast down memory lane. It's impressive how your brain can retrieve memories so well with only minimal hints after more than 20 years... the persistence of memory!
I recently read Fuzzy Logic with Engineering Applications by Ross. Helpful and interesting, though he does tend to occasionally spend pages performing every step of a calculation.
https://en.wikipedia.org/wiki/Modal_logic
It has interesting properties, and it avoids the main pitfal of fuzzy logic IMO: when a fact is associated with a truth value of 0.8, what does that really mean? Why is the truth value 0.8 rather than 0.81, for instance? Can we say so for sure?
An overlapping alternative is Dempster-Shafer evidence theory, which has "belief functions" and rules on how to combine them.
Can someone explain how this is different than bayesian statistics?
Also fuzzy logic builds a "traditional" logical framework for deduction on terms, again this is a bit different from Bayesian approach, which is more abductive reasoning.
you cannot compute the probability A and B for a reason: they might be related (what if they're mutually exclusive for instance? )
So how does fuzzy logic deals with this?
How useful is it for modeling real world problem?
It's also useful for encoding uncertainties that are not yet mutually exclusive. There are other logics too (eg Dempster-Shafer evidence theory), often grouped together as "monotone measures".
It doesn't, because truth values are not probabilities. They are answers to questions more like “How tall is X” than “How likely is it that X is sufficiently tall”.
Instead you could put a distribution (but NOT a probability distribution) for belonging in the set of early that would look something like this.
If you wake up before 6:30 it would definitely 100% be early and at 8:30 it would. Or at 8:30 it would not at all, 0%, be early. Between there we would put some kind of partly belonging to Early rises.
In probability it is either or, but lack of knowledge makes us, but put a probability on what it is. In fuzzy logic, it is a bit of both at the same time.
Does not make it much easier to understand? You bet, which is why symbolic logic is much more useful.
You could say Bayesian statistics is a subset of Fuzzy logic.
Given how informal people have to be in Bayesian statistics to come up with reasonable priors (e.g. uniform), and how well it works by just guessing reasonable values, it could be argued that the power of Bayes is not in the inference but from the slack in the system it permits. Fuzzy logic is pure slack.
I think modern neural networks with activations like leaky relu look more at home in a fuzzy logic textbook than in a statistics text book.
I don't think that's accurate. Concepts like conditional probability and independence have no analogue in fuzzy logic.
Arguably not. Mathematicians have teased out differences between different many-valued logics and systems. A critical one between probability and fuzziness is that probability includes the axiom of the excluded middle and fuzziness does not. In probability the values of mutually exclusive events must sum to 1.0, in fuzziness they need not, because it doesn't require events to be mutually exclusive in the sense that probability requires.
Assuming that the die is fair, this is not possible in the real world.
Bayesian probability [1] states that this is not possible as expected.
``` P(land1 ^ land6) = P(land1) x P(land6 | land1) = 1/6 x 0 = 0 ```
However, fuzzy logic [1] results in an unintuitive result.
``` T(land1 ^ land6) = min(land1, land6) = min(1/6, 1/6) = 0 ```
[1] https://www.mathsisfun.com/data/bayes-theorem.html [2] http://www.sfu.ca/~jeffpell/papers/FuzzyLogic77.pdf
But at the end of it managed to reduce it to a one line formula I could get almost identical results from when simulating in Excel.
I don't think this is an unusual case looking at other examples I found on the net - really it is just a form of non linear control and probably the easiest way to deal with a second order system that reverses action over the peak.
I'm sure I've read the Wikipedia page for fuzzy logic but the lab really helped to drive home some of the concepts. Additionally, it was a very cool application for J, which is often derided as being a strictly numerical tool. The lab describes itself as:
... how to create a linguistic inference system using fuzzy sets. Such systems of linguistic variables are referred to as fuzzy logic systems.
First we describe the concept of membership with nonfuzzy and fuzzy sets. Then we tackle fuzzy membership for scalar and array fuzzy sets, and later inference with array sets.
It really is better to work through the lab within the J system[0], but for those without it is browse-able in plain text online[1]
[0]: Help -> Studio -> Labs -> General Interest / Fuzzy Logic
[1]: https://github.com/jsoftware/labs_labs/blob/master/general/f...
https://www.electronicdesign.com/technologies/digital-ics/ar...
Others?