Skip to content

Instantly share code, notes, and snippets.

import { Posts } from 'meteor/example-forum';
import Users from 'meteor/vulcan:users';
import { Votes } from 'meteor/vulcan:voting';
import { getSetting } from 'meteor/vulcan:core';
import { Random } from 'meteor/random';
async function runVoteMigration(collectionName) {
try {
//Abort early if votes collection is not empty
if (Votes.findOne()) {
@Discordius
Discordius / Microeconomics Homework 1 101A
Created September 15, 2015 04:42
Econ 101A Homework
# Econ 101A Problem Set
##Problem 1: Univariate unconstrained maximization
$$ \max_x f(x;x_0) = e^{-(x-x_0)^2} $$
### 1. Write down the first order conditions for this problem with respect to x (notice that $x_0$ is a parameter, you should not maximize with respect to it).
$$ f'(x;x_0) = 2 e^{-(x-x_0)^2)} (x_0-x) = 0 $$
@Discordius
Discordius / Jaynes
Created May 20, 2015 04:14
Jaynes Probability Theory: Final Draft
# Paper for Yan: Multiple Hypothesis Comparison
## Introduction
The gap between standard statistical hypothesis testing and bayesian statistics is large, and there are only a few efforts trying to bridge the gap between these two approaches and analyzing one from the perspective of the other. The purpose of this paper is to analyze a fundamental practice in standard statistics, comparing a null hypothesis to a competing hypothesis, to the ideal bayesian approach. The goal is to find useful guidelines that can help us understand and estimate the validity of the standard statistical practice from a bayesian viewpoint.
## The difference between standard hypothesis testing and bayesian analysis
The main difference that we are going to focus on, is that standard hypothesis testing relies on something we are going to call "dual hypothesis testing". The practice that to estimate the validity of a hypothesis, you test it against a "null-hypothesis". The bayesian approach, on the other hand, compares not only two
@Discordius
Discordius / Jaynes Probability Theory: Multiple Hypotheses Testing
Last active August 29, 2015 14:21
Jaynes Probability Theory: Final Draft
# Paper for Yan: Multiple Hypothesis Comparison
## Introduction
The gap between standard statistical hypothesis testing and bayesian statistics is large, and there are only a few efforts trying to bridge the gap between these two approaches and analyzing one from the perspective of the other. The purpose of this paper is to analyze a fundamental practice in standard statistics, comparing a null hypothesis to a competing hypothesis, to the ideal bayesian approach. The goal is to find useful guidelines that can help us understand and estimate the validity of the standard statistical practice from a bayesian viewpoint.
## The difference between standard hypothesis testing and bayesian analysis
The main difference that we are going to focus on, is that standard hypothesis testing relies on something we are going to call "dual hypothesis testing". The practice that to estimate the validity of a hypothesis, you test it against a "null-hypothesis". The bayesian approach, on the other hand, compares not only two
@Discordius
Discordius / Jaynes Probability Theory: Multiple Hypothesis Testing
Last active August 29, 2015 14:21
Jaynes Probability Theory: Final Draft
<h1 id="paper-for-yan-multiple-hypothesis-comparison">Paper for Yan: Multiple Hypothesis Comparison</h1>
<h2 id="introduction">Introduction</h2>
<p>The gap between standard statistical hypothesis testing and bayesian statistics is large, and there are only a few efforts trying to bridge the gap between these two approaches and analyzing one from the perspective of the other. The purpose of this paper is to analyze a fundamental practice in standard statistics, comparing a null hypothesis to a competing hypothesis, to the ideal bayesian approach. The goal is to find useful guidelines that can help us understand and estimate the validity of the standard statistical practice from a bayesian viewpoint.</p>
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
@Discordius
Discordius / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@Discordius
Discordius / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {