12 August 2016

Holiday notes2 - Grammar of graphics (ggplot2)

Grammar Of Graphics + Gestalt Principles


Video: Grammar of Graphics separates. 

Picture: Gestalt principles



    1.   Event-verb-sentence

Picture: How to Decipher an Event-sentence

Predicate: the event (vad händer)
Subject: someone/something… = utförare/activator for the event
Direct/Accusative-object: the (verkans)-object (what/who) that is changed
Indirect/Dative-object: for who ? the beneficiary for the event = stakeholder

Adverbial = Event-attribute (preciserar verb, såsom adjektiv för substantiv)
a)   dimensions: when/where/how/why (why=the reason)
b)   measures: how much/many (measure-adv.)
c)   perception: how something is perceived; f.ex. beautiful, intensive (sätts-adv.)
+gradient: how much/little; very beautiful (grad-adv.)
d)   judgement: f.ex. maybe, surely, not, … (sats-adverbial)
e)   feeling/attitude: f.ex. unfortunately, jag kommer gärna, …


Adverb express verb-properties. F.ex. he runs fast. run=verb, fast=adverb.
It answer a question of how. F.ex. how does he run? Fast.
Adjective (adnoun) express noun properties. F.ex. how is the apple?

Modality express a person’s judgement about an event; how sure a current/future state/event/will is.

    2.   State/tillstånds-verb-sentence
a)   Event-verb-sentence:
Mahler sings. Sentence ok.
b)   State/tillstånds-verb-sentence:
Mahler är (is)… här behövs predikats-fyllnad.
Han heter (is called)…      -  ‘’  - (subjekts-pf)
Lisa kallar honom…          -  ‘’  - (objekts-pf)

Picture: How to Decipher an Definition-sentence (link)

Predikats-fyllnad (=complement): Is/Is-Named



Input --> Process --> Output
WordNet: organised by Meaning (or relation)
Image result for wordnet
Image result for wordnetNouns
  • hypernymsY is a hypernym of X if every X is a (kind of) Y
    canine is a hypernym of dog)
  • hyponymsY is a hyponym of X if every Y is a (kind of) X
    dog is a hyponym of canine)
  • coordinate termsY is a coordinate term of X if X and Y share a hypernym
    wolf is a coordinate term of dog, and dog is a coordinate term of wolf)
  • meronymY is a meronym of X if Y is a part of X
    window is a meronym of building)
  • holonymY is a holonym of X if X is a part of Y
    building is a holonym of window)

  • hypernym: the verb Y is a hypernym of the verb X if the activity X is a (kind of) Y
    (to perceive is an hypernym of to listen)
  • troponym: the verb Y is a troponym of the verb X if the activity Y is doing X in some manner
    (to lisp is a troponym of to talk)
  • entailment: the verb Y is entailed by X if by doing X you must be doing Y
    (to sleep is entailed by to snore)
  • coordinate terms: those verbs sharing a common hypernym
    (to lisp and to yell)

Adjectives specifies a none (object) via comparisons/contrastations or e-valuation.
Adverb specifies a verb (event) via an answer to how/when/where/what way questions.---
Social groups & Value-based words (Norsk Monitor, SlidePlayer):

Image result for norsk monitor

Image result for norsk monitor

Wolfram Language - Vad är matematik ?

Wolfram Language
Coherence is the quality of being logical and consistent, forming a unified whole. 
All language-parts fits together; unified and integrated. 
That makes it easier to understand. 
Simple chains: Inputs --> algorithm/processes --> Input/Outputs --> algorithm/processes --> Input/Outputs --> ... 

Symmetry: Output <- Function(Input), where the function can be categorised as a reflection, rotation or scaling.
Automation: Auto-motion (because no-reason-to-do-it-any-other-way), Self-process 
Conjecture/Hypotheses = reasonable likely, förmodan

Classify = to define categories
1. Define A & B Commutative diagram for morphism.svg, 2. Define relationshipsVenn A intersect B.svg,
...definitions ordered into tree-branches/roots.
A. Define the logic p\Rightarrow q\,      , B. Define the calculation DFAexample.svg /transform/process/function

Video: Language book, Fast Intro for Programmers


Pic. Same pattern - towards a universal data definition language

Pic. Guiding Principles & Concepts, for the Wolfram Language

Canonical = conforming to a general rule or acceptable procedure, 
Mathematics. (of an equation, coordinate, etc.) in simplest or standardform

Pic. WDF language


Video: ...

Pic. ....

The 17 equations that changed the world
--> I look forward to see them United by 0

Holiday notes



Pic. Good

Picture: Interesting site (link) - found via Twitter

Constructional theory
Everything in nature moves in waves that Converge and Diverge, Bend Positive and Negative.
From water running down from a mountain (streams&deltas), and Potential Energy Surfaces.
Trees with roots and leaves, and the hierarchical tree-structure
It is a fundamental natural-law/property.

Pic. The governing law/principles drives the self-assembly + incl. the unpredictability.

A theory is a simplified and generic image of a complex and specific reality.

Is it morally legal with so few ? Quorum - protection against unrepresentative governance

Don' learn to be a Data-scientist, do what you enjoy to do

Ethics (actions) + Moral (~ethicology)

  • Equal opportunities, regardless of will/choice
    ~ freedom of will/choice  - pro will/choice
  • norms ~ pro/contra-operational and value rules
    when actions influence other people/life
  • the fact we live, put in debt/obligation to all forms of life
    our inheritance is the order discovered/built by past generations/life
  • current society put a high value on each individual - human rights
  • principals: 'universal-principal', 'veil-of-ignorance', 'put-yourself-in-the-other's-situation', don't 'do/don't do to others what you yourself want/don't want' - ask what they want

Image result for ethical values model
Pic. Think dimensions; far=now/future, wide=one/all, high=zoom in/out

Pic. Hedonometer

Nations Brands Index --> Good Country Index
Vid: "To do well, do good. To compete, co-operate. 2014 Ireland, 2016 Sweden, ...