Lower bound of Wilson score confidence interval for a Bernoulli parameter
All implementations use 95% probability.
pos is the number of positive votes, n is the total number of votes.
Lower bound of Wilson score confidence interval for a Bernoulli parameter
All implementations use 95% probability.
pos is the number of positive votes, n is the total number of votes.
| // Node.js implementation of Evan Miller's algorithm for ranking stuff based on upvotes: | |
| // http://www.evanmiller.org/how-not-to-sort-by-average-rating.html | |
| const stats = require('simple-statistics') | |
| const lower_bound = (upvotes, n = 0, confidence = 0.95) => { | |
| if (n === 0) return 0 | |
| // for performance purposes you might consider memoize the calcuation for z | |
| const z = stats.probit(1-(1-confidence)/2) |
db.votes.aggregate([{
$lookup: {
from: "users",
localField: "createdBy",
foreignField: "_id",
| #!/bin/bash | |
| GARBAGE="/var/lib/docker/aufs/diff" | |
| du -hd 1 $GARBAGE | sort -hrk 1 | head -25 | |
| find $GARBAGE -maxdepth 1 -name *-removing -exec rm -rf '{}' \; |
| <html> | |
| <head> | |
| <style> | |
| *{ | |
| font-family: arial; | |
| font-size: 11px; | |
| } | |
| table{ | |
| border-collapse: collapse; | |
| border: 1px solid silver; |
| ' Example function call: =BuildHTMLTable(A1:D5) | |
| Public Function BuildHTMLTable(rng As Range) As String | |
| ' Given a Range of Cells, build a Bootstrap HTML table, using the formatting | |
| ' specified in the Excel cells. If "header" is specified to equal true, assumes | |
| ' the first row in the table is a header row. | |
| Dim last_r As Long: last_r = rng.Cells(1, 1).Row | |
| Dim tds As New Collection | |
| Dim txt As String | |
| Dim isFirstRow As Boolean: isFirstRow = True |
| <?xml version="1.0" encoding="utf-8"?> | |
| <html> | |
| <!--Created by Arma 3 Launcher: https://arma3.com--> | |
| <head> | |
| <meta name="arma:Type" content="preset" /> | |
| <meta name="arma:PresetName" content="overthrow rhs" /> | |
| <meta name="generator" content="Arma 3 Launcher - https://arma3.com" /> | |
| <title>Arma 3 Mods</title> | |
| <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet" type="text/css" /> | |
| <style> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"