Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Questions tagged [statistics]

For questions that relate to probability or measurements, either outputting or parsing.

Filter by
Sorted by
Tagged with
11 votes
7 answers
598 views

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

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 ...
Jake's user avatar
  • 314
6 votes
6 answers
1k views

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

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

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

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

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 ...
okie's user avatar
  • 1,807
16 votes
17 answers
1k views

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

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

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 ...
vrintle's user avatar
  • 3,000
22 votes
95 answers
6k views

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

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 ...
JuanCa's user avatar
  • 361
16 votes
9 answers
1k views

(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

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

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 ...

15 30 50 per page
1
2 3

AltStyle によって変換されたページ (->オリジナル) /