nhaliday : visualization   491

 « earlier
Sci-Hub | The Moral Machine experiment. Nature | 10.1038/s41586-018-0637-6
Preference for inaction
Sparing pedestrians
Sparing the lawful
Sparing females
Sparing the fit
Sparing higher status
Sparing more characters
Sparing the young
Sparing humans

We selected the 130 countries with at least 100 respondents (n range 101–448,125), standardized the nine target AMCEs of each country, and conducted a hierarchical clustering on these nine scores, using Euclidean distance and Ward’s minimum variance method20. This analysis identified three distinct ‘moral clusters’ of countries. These are shown in Fig. 3a, and are broadly consistent with both geographical and cultural proximity according to the Inglehart–Welzel Cultural Map 2010–201421.

The first cluster (which we label the Western cluster) contains North America as well as many European countries of Protestant, Catholic, and Orthodox Christian cultural groups. The internal structure within this cluster also exhibits notable face validity, with a sub-cluster containing Scandinavian countries, and a sub-cluster containing Commonwealth countries.

The second cluster (which we call the Eastern cluster) contains many far eastern countries such as Japan and Taiwan that belong to the Confucianist cultural group, and Islamic countries such as Indonesia, Pakistan and Saudi Arabia.

The third cluster (a broadly Southern cluster) consists of the Latin American countries of Central and South America, in addition to some countries that are characterized in part by French influence (for example, metropolitan France, French overseas territories, and territories that were at some point under French leadership). Latin American countries are cleanly separated in their own sub-cluster within the Southern cluster.

...

Fig. 3 | Country-level clusters.

[ed.: I actually rather like how the values the West has compare w/ the global mean according in this plot.]

...
Participants from individualistic cultures, which emphasize the distinctive value of each individual23, show a stronger preference for sparing the greater number of characters (Fig. 4a). Furthermore, participants from collectivistic cultures, which emphasize the respect that is due to older members of the community23, show a weaker preference for sparing younger characters (Fig. 4a, inset).
pdf  study  org:nat  psychology  social-psych  poll  values  data  experiment  empirical  morality  ethics  pop-diff  cultural-dynamics  tradeoffs  death  safety  ai  automation  things  world  gender  biases  status  class  egalitarianism-hierarchy  order-disorder  anarcho-tyranny  crime  age-generation  quantitative-qualitative  number  nature  piracy  exploratory  phalanges  n-factor  europe  the-great-west-whale  nordic  usa  anglo  anglosphere  sinosphere  asia  japan  china  islam  MENA  latin-america  gallic  wonkish  correlation  measure  similarity  dignity  universalism-particularism  law  leviathan  wealth  econ-metrics  institutions  demographics  religion  group-level  within-group  expression-survival  comparison  technocracy  visualization  trees  developing-world  regional-scatter-plots
october 2019 by nhaliday
Python Tutor - Visualize Python, Java, C, C++, JavaScript, TypeScript, and Ruby code execution
C++ support but not STL

Ten years and nearly ten million users: my experience being a solo maintainer of open-source software in academia: http://www.pgbovine.net/python-tutor-ten-years.htm
I HYPERFOCUS ON ONE SINGLE USE CASE
I (MOSTLY*) DON'T LISTEN TO USER REQUESTS
I (MOSTLY*) REFUSE TO EVEN TALK TO USERS
I DON'T DO ANY MARKETING OR COMMUNITY OUTREACH
I KEEP EVERYTHING STATELESS
I DON'T WORRY ABOUT PERFORMANCE OR RELIABILITY
I USE SUPER OLD AND STABLE TECHNOLOGIES
I DON'T MAKE IT EASY FOR OTHERS TO USE MY CODE
FINALLY, I DON'T LET OTHER PEOPLE CONTRIBUTE CODE
UNINSPIRATIONAL PARTING THOUGHTS
APPENDIX: ON OPEN-SOURCE SOFTWARE MAINTENANCE
tools  devtools  worrydream  ux  hci  research  project  homepage  python  programming  c(pp)  javascript  jvm  visualization  software  internet  web  debugging  techtariat  state  form-design  multi  reflection  oss  shipping  community  collaboration  marketing  ubiquity  robust  worse-is-better/the-right-thing  links  performance  engineering  summary  list  top-n  pragmatic  cynicism-idealism
september 2019 by nhaliday
Call graph - Wikipedia
I've found both static and dynamic versions useful (former mostly when I don't want to go thru pain of compiling something)

best options AFAICT:

C/C++ and maybe Go: https://github.com/gperftools/gperftools
https://gperftools.github.io/gperftools/cpuprofile.html

static: https://github.com/Vermeille/clang-callgraph
https://stackoverflow.com/questions/5373714/how-to-generate-a-calling-graph-for-c-code
I had to go through some extra pain to get this to work:
- if you use Homebrew LLVM (that's slightly incompatible w/ macOS c++filt, make sure to pass -n flag)
- similarly macOS sed needs two extra backslashes for each escape of the angle brackets

another option: doxygen

Go: https://stackoverflow.com/questions/31362332/creating-call-graph-in-golang
both static and dynamic in one tool

Java: https://github.com/gousiosg/java-callgraph
both static and dynamic in one tool

Python:
https://github.com/gak/pycallgraph
more up-to-date forks: https://github.com/daneads/pycallgraph2 and https://github.com/YannLuo/pycallgraph
I've had some trouble getting nice output from this (even just getting the right set of nodes displayed, not even taking into account layout and formatting).
- Argument parsing syntax is idiosyncratic. Just read pycallgraph --help.
- Options -i and -e take glob patterns (see pycallgraph2/{tracer,globbing_filter}.py), which are applied the function names qualified w/ module paths.
- Functions defined in the script you are running receive no module path. There is no easy way to filter for them using the -i and -e options.
- The --debug option gives you the graphviz for your own use instead of just writing the final image produced.

static: https://github.com/davidfraser/pyan
more up-to-date fork: https://github.com/itsayellow/pyan/
one way to good results: pyan -dea --format yed \$MODULE_FILES > output.graphml, then open up in yEd and use hierarchical layout

various: https://github.com/jrfonseca/gprof2dot

I believe all the dynamic tools listed here support weighting nodes and edges by CPU time/samples (inclusive and exclusive of descendants) and discrete calls. In the case of the gperftools and the Java option you probably have to parse the output to get the latter, tho.

IIRC Dtrace has probes for function entry/exit. So that's an option as well.

old pin: https://github.com/nst/objc_dep
Graph the import dependancies in an Objective-C project
concept  wiki  reference  tools  devtools  graphs  trees  programming  code-dive  let-me-see  big-picture  libraries  software  recommendations  list  top-n  links  c(pp)  golang  python  javascript  jvm  stackex  q-n-a  howto  yak-shaving  visualization  dataviz  performance  structure  oss  osx  unix  linux  static-dynamic  repo  cocoa
july 2019 by nhaliday
Amazon Products Visualization - YASIV
based off a single test run, this works really well, at least for popular books (all I was interested in at the time)
tools  search  recommendations  consumerism  books  aggregator  exploratory  let-me-see  network-structure  amazon  similarity  graphs  visualization
july 2019 by nhaliday
Analysis of Current and Future Computer Science Needs via Advertised Faculty Searches for 2019 - CRN
Differences are also seen when analyzing results based on the type of institution. Positions related to Security have the highest percentages for all but top-100 institutions. The area of Artificial Intelligence/Data Mining/Machine Learning is of most interest for top-100 PhD institutions. Roughly 35% of positions for PhD institutions are in data-oriented areas. The results show a strong interest in data-oriented areas by public PhD and private PhD, MS, and BS institutions while public MS and BS institutions are most interested in Security.
org:edu  data  analysis  visualization  trends  recruiting  jobs  career  planning  academia  higher-ed  cs  tcs  machine-learning  systems  pro-rata  measure  long-term  🎓  uncertainty  progression  grad-school  phd  distribution  ranking  top-n  security  status  s-factor  comparison  homo-hetero  correlation  org:ngo  white-paper  cost-benefit
june 2019 by nhaliday
What every computer scientist should know about floating-point arithmetic
Floating-point arithmetic is considered as esoteric subject by many people. This is rather surprising, because floating-point is ubiquitous in computer systems: Almost every language has a floating-point datatype; computers from PCs to supercomputers have floating-point accelerators; most compilers will be called upon to compile floating-point algorithms from time to time; and virtually every operating system must respond to floating-point exceptions such as overflow. This paper presents a tutorial on the aspects of floating-point that have a direct impact on designers of computer systems. It begins with background on floating-point representation and rounding error, continues with a discussion of the IEEE floating point standard, and concludes with examples of how computer system builders can better support floating point.

Float Toy: http://evanw.github.io/float-toy/
https://news.ycombinator.com/item?id=22113485

https://stackoverflow.com/questions/2729637/does-epsilon-really-guarantees-anything-in-floating-point-computations
"you must use an epsilon when dealing with floats" is a knee-jerk reaction of programmers with a superficial understanding of floating-point computations, for comparisons in general (not only to zero).

This is usually unhelpful because it doesn't tell you how to minimize the propagation of rounding errors, it doesn't tell you how to avoid cancellation or absorption problems, and even when your problem is indeed related to the comparison of two floats, it doesn't tell you what value of epsilon is right for what you are doing.

...

Regarding the propagation of rounding errors, there exists specialized analyzers that can help you estimate it, because it is a tedious thing to do by hand.

https://www.di.ens.fr/~cousot/projects/DAEDALUS/synthetic_summary/CEA/Fluctuat/index.html

This was part of HW1 of CS24:
https://en.wikipedia.org/wiki/Kahan_summation_algorithm
In particular, simply summing n numbers in sequence has a worst-case error that grows proportional to n, and a root mean square error that grows as {\displaystyle {\sqrt {n}}} {\sqrt {n}} for random inputs (the roundoff errors form a random walk).[2] With compensated summation, the worst-case error bound is independent of n, so a large number of values can be summed with an error that only depends on the floating-point precision.[2]

cf:
https://en.wikipedia.org/wiki/Pairwise_summation
In numerical analysis, pairwise summation, also called cascade summation, is a technique to sum a sequence of finite-precision floating-point numbers that substantially reduces the accumulated round-off error compared to naively accumulating the sum in sequence.[1] Although there are other techniques such as Kahan summation that typically have even smaller round-off errors, pairwise summation is nearly as good (differing only by a logarithmic factor) while having much lower computational cost—it can be implemented so as to have nearly the same cost (and exactly the same number of arithmetic operations) as naive summation.

In particular, pairwise summation of a sequence of n numbers xn works by recursively breaking the sequence into two halves, summing each half, and adding the two sums: a divide and conquer algorithm. Its worst-case roundoff errors grow asymptotically as at most O(ε log n), where ε is the machine precision (assuming a fixed condition number, as discussed below).[1] In comparison, the naive technique of accumulating the sum in sequence (adding each xi one at a time for i = 1, ..., n) has roundoff errors that grow at worst as O(εn).[1] Kahan summation has a worst-case error of roughly O(ε), independent of n, but requires several times more arithmetic operations.[1] If the roundoff errors are random, and in particular have random signs, then they form a random walk and the error growth is reduced to an average of {\displaystyle O(\varepsilon {\sqrt {\log n}})} O(\varepsilon {\sqrt {\log n}}) for pairwise summation.[2]

A very similar recursive structure of summation is found in many fast Fourier transform (FFT) algorithms, and is responsible for the same slow roundoff accumulation of those FFTs.[2][3]

https://eng.libretexts.org/Bookshelves/Electrical_Engineering/Book%3A_Fast_Fourier_Transforms_(Burrus)/10%3A_Implementing_FFTs_in_Practice/10.8%3A_Numerical_Accuracy_in_FFTs
However, these encouraging error-growth rates only apply if the trigonometric “twiddle” factors in the FFT algorithm are computed very accurately. Many FFT implementations, including FFTW and common manufacturer-optimized libraries, therefore use precomputed tables of twiddle factors calculated by means of standard library functions (which compute trigonometric constants to roughly machine precision). The other common method to compute twiddle factors is to use a trigonometric recurrence formula—this saves memory (and cache), but almost all recurrences have errors that grow as O(n‾√) , O(n) or even O(n2) which lead to corresponding errors in the FFT.

...

There are, in fact, trigonometric recurrences with the same logarithmic error growth as the FFT, but these seem more difficult to implement efficiently; they require that a table of Θ(logn) values be stored and updated as the recurrence progresses. Instead, in order to gain at least some of the benefits of a trigonometric recurrence (reduced memory pressure at the expense of more arithmetic), FFTW includes several ways to compute a much smaller twiddle table, from which the desired entries can be computed accurately on the fly using a bounded number (usually <3) of complex multiplications. For example, instead of a twiddle table with n entries ωkn , FFTW can use two tables with Θ(n‾√) entries each, so that ωkn is computed by multiplying an entry in one table (indexed with the low-order bits of k ) by an entry in the other table (indexed with the high-order bits of k ).

[ed.: Nicholas Higham's "Accuracy and Stability of Numerical Algorithms" seems like a good reference for this kind of analysis.]
nibble  pdf  papers  programming  systems  numerics  nitty-gritty  intricacy  approximation  accuracy  types  sci-comp  multi  q-n-a  stackex  hmm  oly-programming  accretion  formal-methods  yak-shaving  wiki  reference  algorithms  yoga  ground-up  divide-and-conquer  fourier  books  tidbits  chart  caltech  nostalgia  dynamic  calculator  visualization  protocol-metadata  identity
may 2019 by nhaliday
A Recipe for Training Neural Networks
acmtariat  org:bleg  nibble  machine-learning  deep-learning  howto  tutorial  guide  nitty-gritty  gotchas  init  list  checklists  expert-experience  abstraction  composition-decomposition  gradient-descent  data-science  error  debugging  benchmarks  programming  engineering  best-practices  dataviz  checking  plots  generalization  regularization  unsupervised  optimization  ensembles  random  methodology  multi  twitter  social  discussion  techtariat  links  org:med  pdf  visualization  python  recommendations  advice  devtools
april 2019 by nhaliday
Which benchmark programs are faster? | Computer Language Benchmarks Game
old:
https://salsa.debian.org/benchmarksgame-team/archive-alioth-benchmarksgame
https://web.archive.org/web/20170331153459/http://benchmarksgame.alioth.debian.org/
includes Scala

very outdated but more languages: https://web.archive.org/web/20110401183159/http://shootout.alioth.debian.org:80/

OCaml seems to offer the best tradeoff of performance vs parsimony (Haskell not so much :/)
https://blog.chewxy.com/2019/02/20/go-is-average/
http://blog.gmarceau.qc.ca/2009/05/speed-size-and-dependability-of.html
old official: https://web.archive.org/web/20130731195711/http://benchmarksgame.alioth.debian.org/u64q/code-used-time-used-shapes.php
https://web.archive.org/web/20121125103010/http://shootout.alioth.debian.org/u64q/code-used-time-used-shapes.php
Haskell does better here

other PL benchmarks:
https://github.com/kostya/benchmarks
BF 2.0:
Kotlin, C++ (GCC), Rust < Nim, D (GDC,LDC), Go, MLton < Crystal, Go (GCC), C# (.NET Core), Scala, Java, OCaml < D (DMD) < C# Mono < Javascript V8 < F# Mono, Javascript Node, Haskell (MArray) << LuaJIT << Python PyPy < Haskell < Racket <<< Python << Python3
mandel.b:
C++ (GCC) << Crystal < Rust, D (GDC), Go (GCC) < Nim, D (LDC) << C# (.NET Core) < MLton << Kotlin << OCaml << Scala, Java << D (DMD) << Go << C# Mono << Javascript Node << Haskell (MArray) << LuaJIT < Python PyPy << F# Mono <<< Racket
https://github.com/famzah/langs-performance
C++, Rust, Java w/ custom non-stdlib code < Python PyPy < C# .Net Core < Javscript Node < Go, unoptimized C++ (no -O2) << PHP << Java << Python3 << Python
comparison  pls  programming  performance  benchmarks  list  top-n  ranking  systems  time  multi  🖥  cost-benefit  tradeoffs  data  analysis  plots  visualization  measure  intricacy  parsimony  ocaml-sml  golang  rust  jvm  javascript  c(pp)  functional  haskell  backup  scala  realness  generalization  accuracy  techtariat  crosstab  database  repo  objektbuch  static-dynamic  gnu  mobile
december 2018 by nhaliday
WHO | Priority environment and health risks
also: http://www.who.int/heli/risks/vectors/vector/en/

Environmental factors are a root cause of a significant disease burden, particularly in developing countries. An estimated 25% of death and disease globally, and nearly 35% in regions such as sub-Saharan Africa, is linked to environmental hazards. Some key areas of risk include the following:

- Unsafe water, poor sanitation and hygiene kill an estimated 1.7 million people annually, particularly as a result of diarrhoeal disease.
- Indoor smoke from solid fuels kills an estimated 1.6 million people annually due to respiratory diseases.
- Malaria kills over 1.2 million people annually, mostly African children under the age of five. Poorly designed irrigation and water systems, inadequate housing, poor waste disposal and water storage, deforestation and loss of biodiversity, all may be contributing factors to the most common vector-borne diseases including malaria, dengue and leishmaniasis.
- Urban air pollution generated by vehicles, industries and energy production kills approximately 800 000 people annually.
- Unintentional acute poisonings kill 355 000 people globally each year. In developing countries, where two-thirds of these deaths occur, such poisonings are associated strongly with excessive exposure to, and inappropriate use of, toxic chemicals and pesticides present in occupational and/or domestic environments.
- Climate change impacts including more extreme weather events, changed patterns of disease and effects on agricultural production, are estimated to cause over 150 000 deaths annually.

ed.:
Note the high point at human origin (Africa, Middle East) and Asia. Low points in New World and Europe/Russia. Probably key factor in explaining human psychological variation (Haidt axes, individualism-collectivism, kinship structure, etc.). E.g., compare Islam/Judaism (circumcision, food preparation/hygiene rules) and Christianity (orthodoxy more than orthopraxy, no arbitrary practices for group-marking).

I wonder if the dietary and hygiene laws of Christianity get up-regulated in higher parasite load places (the US South, Middle Eastern Christianity, etc.)?

Also the reason for this variation probably basically boils down how long local microbes have had time to adapt to the human immune system.

obv. correlation: https://pinboard.in/u:nhaliday/b:074ecdf30c50

Tropical disease: https://en.wikipedia.org/wiki/Tropical_disease
Tropical diseases are diseases that are prevalent in or unique to tropical and subtropical regions.[1] The diseases are less prevalent in temperate climates, due in part to the occurrence of a cold season, which controls the insect population by forcing hibernation. However, many were present in northern Europe and northern America in the 17th and 18th centuries before modern understanding of disease causation. The initial impetus for tropical medicine was to protect the health of colonialists, notably in India under the British Raj.[2] Insects such as mosquitoes and flies are by far the most common disease carrier, or vector. These insects may carry a parasite, bacterium or virus that is infectious to humans and animals. Most often disease is transmitted by an insect "bite", which causes transmission of the infectious agent through subcutaneous blood exchange. Vaccines are not available for most of the diseases listed here, and many do not have cures.

cf. Galton: https://pinboard.in/u:nhaliday/b:f72f8e03e729
org:gov  org:ngo  trivia  maps  data  visualization  pro-rata  demographics  death  disease  spreading  parasites-microbiome  world  developing-world  africa  MENA  asia  china  sinosphere  orient  europe  the-great-west-whale  occident  explanans  individualism-collectivism  n-factor  things  phalanges  roots  values  anthropology  cultural-dynamics  haidt  scitariat  morality  correlation  causation  migration  sapiens  history  antiquity  time  bio  EEA  eden-heaven  religion  christianity  islam  judaism  theos  ideology  database  list  tribalism  us-them  archaeology  environment  nature  climate-change  atmosphere  health  fluid  farmers-and-foragers  age-of-discovery  usa  the-south  speculation  questions  flexibility  epigenetics  diet  food  sanctity-degradation  multi  henrich  kinship  gnon  temperature  immune  investing  cost-benefit  tradeoffs  org:davos
july 2018 by nhaliday
Prisoner's dilemma - Wikipedia
caveat to result below:
An extension of the IPD is an evolutionary stochastic IPD, in which the relative abundance of particular strategies is allowed to change, with more successful strategies relatively increasing. This process may be accomplished by having less successful players imitate the more successful strategies, or by eliminating less successful players from the game, while multiplying the more successful ones. It has been shown that unfair ZD strategies are not evolutionarily stable. The key intuition is that an evolutionarily stable strategy must not only be able to invade another population (which extortionary ZD strategies can do) but must also perform well against other players of the same type (which extortionary ZD players do poorly, because they reduce each other's surplus).[14]

Theory and simulations confirm that beyond a critical population size, ZD extortion loses out in evolutionary competition against more cooperative strategies, and as a result, the average payoff in the population increases when the population is bigger. In addition, there are some cases in which extortioners may even catalyze cooperation by helping to break out of a face-off between uniform defectors and win–stay, lose–switch agents.[8]

https://alfanl.com/2018/04/12/defection/
Nature boils down to a few simple concepts.

Haters will point out that I oversimplify. The haters are wrong. I am good at saying a lot with few words. Nature indeed boils down to a few simple concepts.

In life, you can either cooperate or defect.

Used to be that defection was the dominant strategy, say in the time when the Roman empire started to crumble. Everybody complained about everybody and in the end nothing got done. Then came Jesus, who told people to be loving and cooperative, and boom: 1800 years later we get the industrial revolution.

Because of Jesus we now find ourselves in a situation where cooperation is the dominant strategy. A normie engages in a ton of cooperation: with the tax collector who wants more and more of his money, with schools who want more and more of his kid’s time, with media who wants him to repeat more and more party lines, with the Zeitgeist of the Collective Spirit of the People’s Progress Towards a New Utopia. Essentially, our normie is cooperating himself into a crumbling Western empire.

Turns out that if everyone blindly cooperates, parasites sprout up like weeds until defection once again becomes the standard.

The point of a post-Christian religion is to once again create conditions for the kind of cooperation that led to the industrial revolution. This necessitates throwing out undead Christianity: you do not blindly cooperate. You cooperate with people that cooperate with you, you defect on people that defect on you. Christianity mixed with Darwinism. God and Gnon meet.

This also means we re-establish spiritual hierarchy, which, like regular hierarchy, is a prerequisite for cooperation. It is this hierarchical cooperation that turns a household into a force to be reckoned with, that allows a group of men to unite as a front against their enemies, that allows a tribe to conquer the world. Remember: Scientology bullied the Cathedral’s tax department into submission.

With a functioning hierarchy, men still gossip, lie and scheme, but they will do so in whispers behind closed doors. In your face they cooperate and contribute to the group’s wellbeing because incentives are thus that contributing to group wellbeing heightens status.

Without a functioning hierarchy, men gossip, lie and scheme, but they do so in your face, and they tell you that you are positively deluded for accusing them of gossiping, lying and scheming. Seeds will not sprout in such ground.

Spiritual dominance is established in the same way any sort of dominance is established: fought for, taken. But the fight is ritualistic. You can’t force spiritual dominance if no one listens, or if you are silenced the ritual is not allowed to happen.

If one of our priests is forbidden from establishing spiritual dominance, that is a sure sign an enemy priest is in better control and has vested interest in preventing you from establishing spiritual dominance..

They defect on you, you defect on them. Let them suffer the consequences of enemy priesthood, among others characterized by the annoying tendency that very little is said with very many words.

https://contingentnotarbitrary.com/2018/04/14/rederiving-christianity/
To recap, we started with a secular definition of Logos and noted that its telos is existence. Given human nature, game theory and the power of cooperation, the highest expression of that telos is freely chosen universal love, tempered by constant vigilance against defection while maintaining compassion for the defectors and forgiving those who repent. In addition, we must know the telos in order to fulfill it.

In Christian terms, looks like we got over half of the Ten Commandments (know Logos for the First, don’t defect or tempt yourself to defect for the rest), the importance of free will, the indestructibility of evil (group cooperation vs individual defection), loving the sinner and hating the sin (with defection as the sin), forgiveness (with conditions), and love and compassion toward all, assuming only secular knowledge and that it’s good to exist.

Iterated Prisoner's Dilemma is an Ultimatum Game: http://infoproc.blogspot.com/2012/07/iterated-prisoners-dilemma-is-ultimatum.html
The history of IPD shows that bounded cognition prevented the dominant strategies from being discovered for over over 60 years, despite significant attention from game theorists, computer scientists, economists, evolutionary biologists, etc. Press and Dyson have shown that IPD is effectively an ultimatum game, which is very different from the Tit for Tat stories told by generations of people who worked on IPD (Axelrod, Dawkins, etc., etc.).

...

For evolutionary biologists: Dyson clearly thinks this result has implications for multilevel (group vs individual selection):
... Cooperation loses and defection wins. The ZD strategies confirm this conclusion and make it sharper. ... The system evolved to give cooperative tribes an advantage over non-cooperative tribes, using punishment to give cooperation an evolutionary advantage within the tribe. This double selection of tribes and individuals goes way beyond the Prisoners' Dilemma model.

implications for fractionalized Europe vis-a-vis unified China?

and more broadly does this just imply we're doomed in the long run RE: cooperation, morality, the "good society", so on...? war and group-selection is the only way to get a non-crab bucket civilization?

Iterated Prisoner’s Dilemma contains strategies that dominate any evolutionary opponent:
http://www.pnas.org/content/109/26/10409.full
http://www.pnas.org/content/109/26/10409.full.pdf
https://www.edge.org/conversation/william_h_press-freeman_dyson-on-iterated-prisoners-dilemma-contains-strategies-that

https://en.wikipedia.org/wiki/Ultimatum_game

analogy for ultimatum game: the state gives the demos a bargain take-it-or-leave-it, and...if the demos refuses...violence?

The nature of human altruism: http://sci-hub.tw/https://www.nature.com/articles/nature02043
- Ernst Fehr & Urs Fischbacher

Some of the most fundamental questions concerning our evolutionary origins, our social relations, and the organization of society are centred around issues of altruism and selfishness. Experimental evidence indicates that human altruism is a powerful force and is unique in the animal world. However, there is much individual heterogeneity and the interaction between altruists and selfish individuals is vital to human cooperation. Depending on the environment, a minority of altruists can force a majority of selfish individuals to cooperate or, conversely, a few egoists can induce a large number of altruists to defect. Current gene-based evolutionary theories cannot explain important patterns of human altruism, pointing towards the importance of both theories of cultural evolution as well as gene–culture co-evolution.

...

Why are humans so unusual among animals in this respect? We propose that quantitatively, and probably even qualitatively, unique patterns of human altruism provide the answer to this question. Human altruism goes far beyond that which has been observed in the animal world. Among animals, fitness-reducing acts that confer fitness benefits on other individuals are largely restricted to kin groups; despite several decades of research, evidence for reciprocal altruism in pair-wise repeated encounters4,5 remains scarce6–8. Likewise, there is little evidence so far that individual reputation building affects cooperation in animals, which contrasts strongly with what we find in humans. If we randomly pick two human strangers from a modern society and give them the chance to engage in repeated anonymous exchanges in a laboratory experiment, there is a high probability that reciprocally altruistic behaviour will emerge spontaneously9,10.

However, human altruism extends far beyond reciprocal altruism and reputation-based cooperation, taking the form of strong reciprocity11,12. Strong reciprocity is a combination of altruistic rewarding, which is a predisposition to reward others for cooperative, norm-abiding behaviours, and altruistic punishment, which is a propensity to impose sanctions on others for norm violations. Strong reciprocators bear the cost of rewarding or punishing even if they gain no individual economic benefit whatsoever from their acts. In contrast, reciprocal altruists, as they have been defined in the biological literature4,5, reward and punish only if this is in their long-term self-interest. Strong reciprocity thus constitutes a powerful incentive for cooperation even in non-repeated interactions and when reputation gains are absent, because strong reciprocators will reward those who cooperate and punish those who defect.

...

We will show that the interaction between selfish and strongly reciprocal … [more]
concept  conceptual-vocab  wiki  reference  article  models  GT-101  game-theory  anthropology  cultural-dynamics  trust  cooperate-defect  coordination  iteration-recursion  sequential  axelrod  discrete  smoothness  evolution  evopsych  EGT  economics  behavioral-econ  sociology  new-religion  deep-materialism  volo-avolo  characterization  hsu  scitariat  altruism  justice  group-selection  decision-making  tribalism  organizing  hari-seldon  theory-practice  applicability-prereqs  bio  finiteness  multi  history  science  social-science  decision-theory  commentary  study  summary  giants  the-trenches  zero-positive-sum  🔬  bounded-cognition  info-dynamics  org:edge  explanation  exposition  org:nat  eden  retention  long-short-run  darwinian  markov  equilibrium  linear-algebra  nitty-gritty  competition  war  explanans  n-factor  europe  the-great-west-whale  occident  china  asia  sinosphere  orient  decentralized  markets  market-failure  cohesion  metabuch  stylized-facts  interdisciplinary  physics  pdf  pessimism  time  insight  the-basilisk  noblesse-oblige  the-watchers  ideas  l
march 2018 by nhaliday
Which Countries Create the Most Ocean Trash? - WSJ
China and Indonesia Are Top Sources of Plastic Garbage Reaching Oceans, Researchers Say
news  org:rec  china  asia  developing-world  environment  oceans  attaq  trivia  cocktail  data  visualization  maps  world  scale  top-n  ranking
january 2018 by nhaliday
Christianity in China | Council on Foreign Relations
projected to outpace CCP membership soon

This fascinating map shows the new religious breakdown in China: http://www.businessinsider.com/new-religious-breakdown-in-china-14

Map Showing the Distribution of Christians in China: http://www.epm.org/resources/2010/Oct/18/map-showing-distribution-christians-china/

Christianity in China: https://en.wikipedia.org/wiki/Christianity_in_China
Accurate data on Chinese Christians is hard to access. According to the most recent internal surveys there are approximately 31 million Christians in China today (2.3% of the total population).[5] On the other hand, some international Christian organizations estimate there are tens of millions more, which choose not to publicly identify as such.[6] The practice of religion continues to be tightly controlled by government authorities.[7] Chinese over the age of 18 are only permitted to join officially sanctioned Christian groups registered with the government-approved Protestant Three-Self Church and China Christian Council and the Chinese Patriotic Catholic Church.[8]

In Xi we trust - Is China cracking down on Christianity?: http://www.dw.com/en/in-xi-we-trust-is-china-cracking-down-on-christianity/a-42224752A

In China, Unregistered Churches Are Driving a Religious Revolution: https://www.theatlantic.com/international/archive/2017/04/china-unregistered-churches-driving-religious-revolution/521544/

Cracks in the atheist edifice: https://www.economist.com/news/briefing/21629218-rapid-spread-christianity-forcing-official-rethink-religion-cracks

Jesus won’t save you — President Xi Jinping will, Chinese Christians told: https://www.washingtonpost.com/news/worldviews/wp/2017/11/14/jesus-wont-save-you-president-xi-jinping-will-chinese-christians-told/

http://www.sixthtone.com/news/1001611/noodles-for-the-messiah-chinas-creative-christian-hymns

Catholics in China are split between those in “underground” communities that recognize the pope and those belonging to a state-controlled Catholic Patriotic Association where bishops are appointed by the government in collaboration with local Church communities.

http://www.bbc.com/news/world-asia-china-42914029
The underground churches recognise only the Vatican's authority, whereas the Chinese state churches refuse to accept the authority of the Pope.

There are currently about 100 Catholic bishops in China, with some approved by Beijing, some approved by the Vatican and, informally, many now approved by both.

...

Under the agreement, the Vatican would be given a say in the appointment of future bishops in China, a Vatican source told news agency Reuters.

For Beijing, an agreement with the Vatican could allow them more control over the country's underground churches.

Globally, it would also enhance China's prestige - to have the world's rising superpower engaging with one of the world's major religions.

Symbolically, it would the first sign of rapprochement between China and the Catholic church in more than half a century.

The Vatican is the only European state that maintains formal diplomatic relations with Taiwan. It is currently unclear if an agreement between China and the Vatican would affect this in any way.

What will this mean for the country's Catholics?

There are currently around 10 million Roman Catholics in China.

http://www.catholicherald.co.uk/news/2018/02/06/china-is-the-best-implementer-of-catholic-social-doctrine-says-vatican-bishop/
The chancellor of the Pontifical Academy of Social Sciences praised the 'extraordinary' Communist state

“Right now, those who are best implementing the social doctrine of the Church are the Chinese,” a senior Vatican official has said.

Bishop Marcelo Sánchez Sorondo, chancellor of the Pontifical Academy of Social Sciences, praised the Communist state as “extraordinary”, saying: “You do not have shantytowns, you do not have drugs, young people do not take drugs”. Instead, there is a “positive national conscience”.

The bishop told the Spanish-language edition of Vatican Insider that in China “the economy does not dominate politics, as happens in the United States, something Americans themselves would say.”

Bishop Sánchez Sorondo said that China was implementing Pope Francis’s encyclical Laudato Si’ better than many other countries and praised it for defending Paris Climate Accord. “In that, it is assuming a moral leadership that others have abandoned”, he added.

...

As part of the diplomacy efforts, Bishop Sánchez Sorondo visited the country. “What I found was an extraordinary China,” he said. “What people don’t realise is that the central value in China is work, work, work. There’s no other way, fundamentally it is like St Paul said: he who doesn’t work, doesn’t eat.”

China reveals plan to remove ‘foreign influence’ from Catholic Church: http://catholicherald.co.uk/news/2018/06/02/china-reveals-plan-to-remove-foreign-influence-from-catholic-church1/

China, A Fourth Rome?: http://thermidormag.com/china-a-fourth-rome/
As a Chinaman born in the United States, I find myself able to speak to both places and neither. By accidents of fortune, however – or of providence, rather – I have identified more with China even as I have lived my whole life in the West. English is my third language, after Cantonese and Mandarin, even if I use it to express my intellectually most complex thoughts; and though my best of the three in writing, trained by the use of Latin, it is the vehicle of a Chinese soul. So it is in English that for the past year I have memed an idea as unconventional as it is ambitious, unto the Europæans a stumbling-block, and unto the Chinese foolishness: #China4thRome.

This idea I do not attempt to defend rigorously, between various powers’ conflicting claims to carrying on the Roman heritage; neither do I intend to claim that Moscow, which has seen itself as a Third Rome after the original Rome and then Constantinople, is fallen. Instead, I think back to the division of the Roman empire, first under Diocletian’s Tetrarchy and then at the death of Theodosius I, the last ruler of the undivided Roman empire. In the second partition, at the death of Theodosius, Arcadius became emperor of the East, with his capital in Constantinople, and Honorius emperor of the West, with his capital in Milan and then Ravenna. That the Roman empire did not stay uniformly strong under a plurality of emperors is not the point. What is significant about the administrative division of the Roman empire among several emperors is that the idea of Rome can be one even while its administration is diverse.

By divine providence, the Christian religion – and through it, Rome – has spread even through the bourgeois imperialism of the 19th and 20th centuries. Across the world, the civil calendar of common use is that of Rome, reckoned from 1 January; few places has Roman law left wholly untouched. Nevertheless, never have we observed in the world of Roman culture an ethnogenetic pattern like that of the Chinese empire as described by the prologue of Luo Guanzhong’s Romance of the Three Kingdoms 三國演義: ‘The empire, long divided, must unite; long united, must divide. Thus it has ever been.’1 According to classical Chinese cosmology, the phrase rendered the empire is more literally all under heaven 天下, the Chinese œcumene being its ‘all under heaven’ much as a Persian proverb speaks of the old Persian capital of Isfahan: ‘Esfahān nesf-e jahān ast,’ Isfahan is half the world. As sociologist Fei Xiaotong describes it in his 1988 Tanner Lecture ‘Plurality and Unity in the Configuration of the Chinese People’,

...

And this Chinese œcumene has united and divided for centuries, even as those who live in it have recognized a fundamental unity. But Rome, unlike the Chinese empire, has lived on in multiple successor polities, sometimes several at once, without ever coming back together as one empire administered as one. Perhaps something of its character has instead uniquely suited it to being the spirit of a kind of broader world empire. As Dante says in De Monarchia, ‘As the human race, then, has an end, and this end is a means necessary to the universal end of nature, it follows that nature must have the means in view.’ He continues,

If these things are true, there is no doubt but that nature set apart in the world a place and a people for universal sovereignty; otherwise she would be deficient in herself, which is impossible. What was this place, and who this people, moreover, is sufficiently obvious in what has been said above, and in what shall be added further on. They were Rome and her citizens or people. On this subject our Poet [Vergil] has touched very subtly in his sixth book [of the Æneid], where he brings forward Anchises prophesying in these words to Aeneas, father of the Romans: ‘Verily, that others shall beat out the breathing bronze more finely, I grant you; they shall carve the living feature in the marble, plead causes with more eloquence, and trace the movements of the heavens with a rod, and name the rising stars: thine, O Roman, be the care to rule the peoples with authority; be thy arts these, to teach men the way of peace, to show mercy to the subject, and to overcome the proud.’ And the disposition of place he touches upon lightly in the fourth book, when he introduces Jupiter speaking of Aeneas to Mercury in this fashion: ‘Not such a one did his most beautiful mother promise to us, nor for this twice rescue him from Grecian arms; rather was he to be the man to govern Italy teeming with empire and tumultuous with war.’ Proof enough has been given that the Romans were by nature ordained for sovereignty. Therefore the Roman … [more]
org:ngo  trends  foreign-policy  china  asia  hmm  idk  religion  christianity  theos  anomie  meaningness  community  egalitarianism-hierarchy  protestant-catholic  demographics  time-series  government  leadership  nationalism-globalism  org:data  comparison  sinosphere  civic  the-bones  power  great-powers  thucydides  multi  maps  data  visualization  pro-rata  distribution  geography  within-group  wiki  reference  article  news  org:lite  org:biz  islam  buddhism  org:euro  authoritarianism  antidemos  leviathan  regulation  civil-liberty  chart  absolute-relative  org:mag  org:rec  org:anglo  org:foreign  music  culture  gnon  org:popup  🐸  memes(ew)  essay  rhetoric  conquest-empire  flux-stasis  spreading  paradox  analytical-holistic  tradeoffs  solzhenitsyn  spengler  nietzschean  europe  the-great-west-whale  occident  orient  literature  big-peeps  history  medieval  mediterranean  enlightenment-renaissance-restoration-reformation  expansionism  early-modern  society  civilization  world  MENA  capital  capitalism  innovation  race  alien-character  optimat
january 2018 by nhaliday
A genetic map of the world – Gene Expression
The above map is from a new preprint on the patterns of genetic variation as a function of geography for humans, Genetic landscapes reveal how human genetic diversity aligns with geography. The authors assemble an incredibly large dataset to generate these figures. The orange zones are “troughs” of gene flow. Basically barriers to gene flow.  It is no great surprise that so many of the barriers correlate with rivers, mountains, and deserts. But the aim of this sort of work seems to be to make precise and quantitative intuitions which are normally expressed verbally.
gnxp  scitariat  commentary  bio  preprint  study  summary  genetics  genomics  pic  data  maps  visualization  stock-flow  gene-flow  walls  world  africa  europe  MENA  india  asia  china  japan  korea  anglo  developing-world  russia  sapiens  gavisti  population-genetics  geography  🌞  mediterranean  britain  oceans  race  tribalism
december 2017 by nhaliday
Sequence Modeling with CTC
A visual guide to Connectionist Temporal Classiﬁcation, an algorithm used to train deep neural networks in speech recognition, handwriting recognition and other sequence problems.
acmtariat  techtariat  org:bleg  nibble  better-explained  machine-learning  deep-learning  visual-understanding  visualization  analysis  let-me-see  research  sequential  audio  classification  model-class  exposition  language  acm  approximation  comparison  markov  iteration-recursion  concept  atoms  distribution  orders  DP  heuristic  optimization  trees  greedy  matching  gradient-descent  org:popup
december 2017 by nhaliday
Disaggregating the economy: cost of living | askblog
here are the US states color-coded according to per capita GDP with an adjustment for Regional Price Parities: that is, it’s a measure of income adjusted for what it actually costs to buy housing and other goods. With that change, California, New York, and Maryland are no longer in the top category. Hoever, a number of midwestern states like Kansas, Nebraska, South Dakota, and my own Minnesota move into the top category. A number of states in the mountain west and south that were in the lowest-income category when just looking at per capita GDP move up a category or two when the Regional Price Parities are taken into account.
econotariat  cracker-econ  commentary  links  economics  econ-metrics  wealth  compensation  pro-rata  analysis  data  maps  visualization  within-group  usa  context  cost-benefit  midwest  urban  housing  money  intricacy  urban-rural  efficiency
november 2017 by nhaliday
Race, Religion, and Immigration in… | Democracy Fund Voter Study Group
Figure 2 The Relationship between 2011 Attitudes and Vote Choices in 2012

Third, although perceptions of the economy are related to vote choice in both years—unsurprisingly, people who believed the economy was doing worse were more likely to vote for the out-party Republicans—its effect is similar in both years. This suggests that the 2016 vote choice was not uniquely about “economic anxiety.”

The results also show that certain factors were less strongly related to voters’ choice in 2016 than they were in 2012: social issue attitudes, economic issue attitudes, and, more notably, party identification. The smaller impact of party identification reflects the larger number of defections in 2016, as compared to 2012.

What stands out most, however, is the attitudes that became more strongly related to the vote in 2016: attitudes about immigration, feelings toward black people, and feelings toward Muslims. This pattern fits the prevailing discourse of the two campaigns and the increased attention to issues involving ethnic, racial, and religious minorities in 2016.(v)
org:ngo  wonkish  politics  polisci  data  analysis  database  visualization  correlation  phalanges  chart  2016-election  postmortem  coalitions  policy  ranking  list  impetus  trump  migration  race  poll  values  islam  education  class  obama  elections  identity-politics  demographics  roots  nationalism-globalism  religion  christianity  usa  diversity  clinton  flux-stasis  homo-hetero  emotion  crosstab  economics  trade  redistribution  taxes  welfare-state  stylized-facts  labor  cost-benefit  prediction  descriptive  2016  2017  sentiment
november 2017 by nhaliday
The Wilson Effect: the increase in heritability of IQ with age. - PubMed - NCBI
FIGURE 2 Estimates of genetic and shared environmental influence on g by age. The age scale is not linear (see text for details).
study  biodet  behavioral-gen  iq  psychology  cog-psych  metabuch  stylized-facts  variance-components  developmental  data  visualization  twin-study  correlation  🌞  pdf  piracy  age-generation  plots  psychometrics
november 2017 by nhaliday
Global Evidence on Economic Preferences
- Benjamin Enke et al

This paper studies the global variation in economic preferences. For this purpose, we present the Global Preference Survey (GPS), an experimentally validated survey dataset of time preference, risk preference, positive and negative reciprocity, altruism, and trust from 80,000 individuals in 76 countries. The data reveal substantial heterogeneity in preferences across countries, but even larger within-country heterogeneity. Across individuals, preferences vary with age, gender, and cognitive ability, yet these relationships appear partly country specific. At the country level, the data reveal correlations between preferences and bio-geographic and cultural variables such as agricultural suitability, language structure, and religion. Variation in preferences is also correlated with economic outcomes and behaviors. Within countries and subnational regions, preferences are linked to individual savings decisions, labor market choices, and prosocial behaviors. Across countries, preferences vary with aggregate outcomes ranging from per capita income, to entrepreneurial activities, to the frequency of armed conflicts.

...

This paper explores these questions by making use of the core features of the GPS: (i) coverage of 76 countries that represent approximately 90 percent of the world population; (ii) representative population samples within each country for a total of 80,000 respondents, (iii) measures designed to capture time preference, risk preference, altruism, positive reciprocity, negative reciprocity, and trust, based on an ex ante experimental validation procedure (Falk et al., 2016) as well as pre-tests in culturally heterogeneous countries, (iv) standardized elicitation and translation techniques through the pre-existing infrastructure of a global polling institute, Gallup. Upon publication, the data will be made publicly available online. The data on individual preferences are complemented by a comprehensive set of covariates provided by the Gallup World Poll 2012.

...

The GPS preference measures are based on twelve survey items, which were selected in an initial survey validation study (see Falk et al., 2016, for details). The validation procedure involved conducting multiple incentivized choice experiments for each preference, and testing the relative abilities of a wide range of different question wordings and formats to predict behavior in these choice experiments. The particular items used to construct the GPS preference measures were selected based on optimal performance out of menus of alternative items (for details see Falk et al., 2016). Experiments provide a valuable benchmark for selecting survey items, because they can approximate the ideal choice situations, specified in economic theory, in which individuals make choices in controlled decision contexts. Experimental measures are very costly, however, to implement in a globally representative sample, whereas survey measures are much less costly.⁴ Selecting survey measures that can stand in for incentivized revealed preference measures leverages the strengths of both approaches.

The Preference Survey Module: A Validated Instrument for Measuring Risk, Time, and Social Preferences: http://ftp.iza.org/dp9674.pdf

Table 1: Survey items of the GPS

Figure 1: World maps of patience, risk taking, and positive reciprocity.
Figure 2: World maps of negative reciprocity, altruism, and trust.

Figure 3: Gender coefficients by country. For each country, we regress the respective preference on gender, age and its square, and subjective math skills, and plot the resulting gender coefficients as well as their significance level. In order to make countries comparable, each preference was standardized (z-scores) within each country before computing the coefficients.

Figure 4: Cognitive ability coefficients by country. For each country, we regress the respective preference on gender, age and its square, and subjective math skills, and plot the resulting coefficients on subjective math skills as well as their significance level. In order to make countries comparable, each preference was standardized (z-scores) within each country before computing the coefficients.

Figure 5: Age profiles by OECD membership.

Table 6: Pairwise correlations between preferences and geographic and cultural variables

Figure 10: Distribution of preferences at individual level.
Figure 11: Distribution of preferences at country level.

interesting digression:
D Discussion of Measurement Error and Within- versus Between-Country Variation
study  dataset  data  database  let-me-see  economics  growth-econ  broad-econ  microfoundations  anthropology  cultural-dynamics  culture  psychology  behavioral-econ  values  🎩  pdf  piracy  world  spearhead  general-survey  poll  group-level  within-group  variance-components  🌞  correlation  demographics  age-generation  gender  iq  cooperate-defect  time-preference  temperance  labor  wealth  wealth-of-nations  entrepreneurialism  outcome-risk  altruism  trust  patience  developing-world  maps  visualization  n-factor  things  phalanges  personality  regression  gender-diff  pop-diff  geography  usa  canada  anglo  europe  the-great-west-whale  nordic  anglosphere  MENA  africa  china  asia  sinosphere  latin-america  self-report  hive-mind  GT-101  realness  long-short-run  endo-exo  signal-noise  communism  japan  korea  methodology  measurement  org:ngo  white-paper  endogenous-exogenous  within-without  hari-seldon
october 2017 by nhaliday
per page:    204080120160

Copy this bookmark: