Questions tagged [statistics]
For questions that relate to probability or measurements, either outputting or parsing.
40 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
11
votes
7
answers
598
views
Sticks expectation
This was originally a question from interviewstreet.com over a decade ago
You are given an array (or whatever - your choice of input) of positive integers \$y_1,\ldots,y_n\$ that represents \$n\$ line ...
16
votes
30
answers
2k
views
Your Average Character
Write a program or function that takes in a string of characters, and finds the alphabetical average:
That is, the average of the alphabetical positions (numerically) of each letter converted to ...
6
votes
6
answers
1k
views
Critical Calculations
Background
In the game stick ranger, there is an item which grants the character the ability to get critical hits.
Each time a projectile hits an enemy, it has some probability to be a critical hit (...
14
votes
8
answers
767
views
Number Clusters
Your task is to create a program or function, that when given an input list of nonnegative integers of length \$l \ge 2\$ and a nonnegative integer \$c\$ where \2ドル \le c \le l\,ドル group the list into \$...
11
votes
4
answers
856
views
Implement Perceptron
There was a previous perceptron question but it was closed. Also it required a lot of extra stuff that's not normally part of the perception algorithm like I know it. This question will be much ...
14
votes
3
answers
916
views
Sniff out biased random permutations
The brilliant engineers at <enter company you love to hate> have struck again. This time they've "revolutionised" the generation of random permutations. "Every great invention is ...
8
votes
12
answers
425
views
Repeat average
Background
It was a normal presentation that I were in as a audience, until the presenter gave a math problem about repeat taking 2 number out of a list a replacing them with average, claiming that ...
16
votes
17
answers
1k
views
Square chunk my matrix
Your challenge is to write a function/program that takes a matrix of integers m and a number n as input and:
Splits m into n by n chunks
Replaces each chunk with the most common value in that chunk (...
29
votes
9
answers
3k
views
Approximate when you are going to die
A mortality table or life table is an actuarial tool that gives the probability that a person aged \$A\$ years will die in the next year, and is used to help calculate the premiums for life insurance, ...
14
votes
22
answers
2k
views
Mode length of a sentence
The task is simple. You are given a string with alphabetical words (say "Hello world, this are tests"). You have to return the mode of the lengths of ...
22
votes
95
answers
6k
views
Average Two Letters
Introduction
Every letter in the English alphabet can be represented as an ASCII code. For example, a is 97, and ...
9
votes
11
answers
911
views
Olympic game scoring [closed]
The challenge is to write a golf-code program that, given n positive real numbers from 0 to 10 (format x.y, y only can be 0 or 5: 0, 0.5, 1, 1.5, 2, 2.5 ... 9.5 and 10), discard the lowest and highest ...
16
votes
9
answers
1k
views
Fivenum and a little bit
(a paradox, a paradox, a most ingenious paradox)
This is the first part of a multipart series inspired by different R functions.
The Task
Given a dataset \$D\$ of positive integers, I need you to ...
3
votes
5
answers
2k
views
Average Idle-Dice Rolling
So I ran into this progressive/idle game cleverly called Idle Dice. Has a variety of random effects applied to a pretty typical progression formula game. Warning, time sink! Play at your own risk.
...
15
votes
28
answers
2k
views
Standardize the Samples (Compute the z-Score)
Given a list of floating point numbers, standardize it.
Details
A list \$x_1,x_2,\ldots,x_n\$ is standardized if the mean of all values is 0, and the standard deviation is 1. One way to compute this ...