Showing 285 to 288

Power law vs exponential

#statistics

  • Exponential: (constant)x
  • Power law: x(constant)

Power law distributions are fractal. Twice as wealthy is half as likely, or whatever the constant you use.

Exponentials decay faster than power laws. In an exponential based on 0.5x, every increase of x by one point halves the probability, whereas in a power law based on x0.5, you need greater increases of x to halve the probability. Pareto distributions in particular have a property called . . .

The Pareto distribution is related to the exponential distribution as follows. If X is Pareto-distributed with minimum xm and index α, then

node:internal/modules/cjs/loader:1228 throw err; ^ Error: Cannot find module 'katex' Require stack: - /home/kept/private-dotfiles/.config/emacs/texToMathML.js at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15) at Module._load (node:internal/modules/cjs/loader:1051:27) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object. (/home/kept/private-dotfiles/.config/emacs/texToMathML.js:1:15) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/kept/private-dotfiles/.config/emacs/texToMathML.js' ] } Node.js v20.18.1

is exponentially distributed with rate parameter α. Equivalently, if Y is exponentially distributed with rate α, then

node:internal/modules/cjs/loader:1228 throw err; ^ Error: Cannot find module 'katex' Require stack: - /home/kept/private-dotfiles/.config/emacs/texToMathML.js at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15) at Module._load (node:internal/modules/cjs/loader:1051:27) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object. (/home/kept/private-dotfiles/.config/emacs/texToMathML.js:1:15) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/kept/private-dotfiles/.config/emacs/texToMathML.js' ] } Node.js v20.18.1

is Pareto-distributed with minimum xm and index α.

This can be shown using the standard change-of-variable techniques:

node:internal/modules/cjs/loader:1228 throw err; ^ Error: Cannot find module 'katex' Require stack: - /home/kept/private-dotfiles/.config/emacs/texToMathML.js at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15) at Module._load (node:internal/modules/cjs/loader:1051:27) at Module.require (node:internal/modules/cjs/loader:1311:19) at require (node:internal/modules/helpers:179:18) at Object. (/home/kept/private-dotfiles/.config/emacs/texToMathML.js:1:15) at Module._compile (node:internal/modules/cjs/loader:1469:14) at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) at Module.load (node:internal/modules/cjs/loader:1288:32) at Module._load (node:internal/modules/cjs/loader:1104:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12) { code: 'MODULE_NOT_FOUND', requireStack: [ '/home/kept/private-dotfiles/.config/emacs/texToMathML.js' ] } Node.js v20.18.1

The last expression is the cumulative distribution function of an exponential distribution with rate α.

Created (3 years ago)

Eshell/shell

#emacs Cheatsheets/TILs

Pressing RET anywhere executes that line. For example, when Guix tells you to reload GUIX_PROFILE, it prints out the commands to do so. So you can simply… go there with the cursor and press RET! It's so stupid yet so good.

Cool hotkeys

  • C-c C-p -> return to top of last command
  • C-c M-b inserts the printed buffer name at point
  • C-c M-i inserts the printed process name at point
  • C-c M-v inserts an env var at point
  • C-c M-d toggles betw direct input and delayed input (send on RET) (useful for some programs) (<2020-Apr-23>: is this basically for y/n prompts?)
(defun eshell-here ()
  "Opens up a new shell in the directory associated with the
current buffer's file. The eshell is renamed to match that
directory to make multiple eshell windows easier."
  (interactive)
  (let* ((parent (if (buffer-file-name)
                     (file-name-directory (buffer-file-name))
                   default-directory))
         (height (/ (window-total-height) 3))
         (name   (car (last (split-string parent "/" t)))))
    (split-window-vertically (- height))
    (other-window 1)
    (eshell "new")
    (rename-buffer (concat "*eshell: " name "*"))

    (insert (concat "ls"))
    (eshell-send-input)))

;;  My function, x exits that shell and closes that window.
(defun eshell/x ()
  (insert "exit")
  (eshell-send-input)
  (delete-window))

Programs like top wouldn’t work well in Eshell […] However, if you type top, eshell notices top on its naughty list (the list is called eshell-visual-commands), and will farm it out to a special comint buffer. If you find an app that doesn’t work well in EShell, append it to this list.

It is not bash or zsh or even csh; do not treat it as such, even though it is heavily inspired by them. To use Eshell effectively you should treat it as if you are using a completely alien shell.

–Howard Abrams

Argument predicates are a cool way of quickly filtering lists of files or even elisp lists. The predicate syntax is based on the one used in zsh, so if you are familiar with argument predication in zsh, you can apply most of your knowledge to Eshells’ version.

Unlike most other areas of Eshell, argument predicates are documented in Eshell itself. You can access the help files by typing eshell-display-predicate-help or eshell-display-modifier-help (directly in eshell of course).

Filtering globbed lists of files is very useful, as it saves you the hassle of using tools like find or abusing ls to do your thing.

What links here

Created (3 years ago)

Likelihood function

#statistics

The likelihood measures the goodness of fit of a model to a sample of data, for given values of the unknown parameters.

It is formed from the Joint probability distribution of the sample, but viewed and used as a function of the parameters only, treating the random variables as fixed at the observed values (like in Bayes?).

What links here

Created (3 years ago)

Getting things done

See also Learning

  • Willpower
  • Just One Thing
  • The 7 Habits of Highly Effective People
  • The Power of Habit
  • The Now Habit

In their book Art & Fear: Observations On the Perils (and Rewards) of Artmaking, David Bayles and Ted Orland say that by their observation the elements that prove to allow a creative person to work are essentially idiosyncratic.

For example, they say, Hemingway discovered that in order to be productive, he needed to stand up while typing.

And, they continue, this discovery of Hemingway's is useless to nearly everyone else: other artists find what they need to be productive is something different.

Most productivity suggestions are naturally from people who found something that worked for them, and so recommend that's what you should do: "The Standing Up Method for Productive Writing".

So in lieu of a working general theory, the solution is to be experimental on a personal level: find a way to measure your productivity, even if subjectively, vary your working conditions in systematic way, and see what makes a difference for you.

www.greaterwrong.com/posts/NyFtHycJvkyNjXNsP/chaotic-inversion?commentId=oGXDkvKc2XDJKJEQ6

What links here

Created (3 years ago)
Showing 285 to 288