### riela's blog

By riela, history, 8 days ago, ,

My hair grown too long, I was about to cut it, when one question come to mind:

Let's suppose I cut each of my hairs to a length uniformly random, how will my head look like?

instead of uniform random, other distributions like normal, binomial, can be applied.

• +120

 » 8 days ago, # |   +267 Your hair would look terrible.
•  » » 8 days ago, # ^ |   +105 do you have proof?
•  » » » 7 days ago, # ^ |   +163 Looks pretty ugly to me. codeimport javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; import javafx.scene.canvas.GraphicsContext; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage stage) throws Exception { Group g = new Group(); Canvas canvas = new Canvas(1000, 1000); g.getChildren().add(canvas); GraphicsContext gc = canvas.getGraphicsContext2D(); for (int i = 0; i < 1000; i++) { int height = (int) (300 + Math.random() * 700); gc.strokeLine(i, 0, i, height); } Scene s = new Scene(g); stage.setScene(s); stage.show(); } } 
•  » » » » 7 days ago, # ^ | ← Rev. 2 →   -9 So which haircut algorithm do you recommend? Maybe cutting each hair by a random distance between 0 and the length of my shortest hair?Or some convex function that depends on the distance of the center of my head?
•  » » » » » 7 days ago, # ^ |   +15 Ok boomer go to a barbershop. The masters of hair cutting know these functions very well
•  » » » » » » 7 days ago, # ^ |   -18 I prefer to do it my self. I don't want a stranger touch my head with a weapon in his hand
•  » » » » » » » 7 days ago, # ^ |   +2 Then you can ask your mom to cut your hair!
•  » » » » 7 days ago, # ^ |   +90 Am I the only one that sees layers here? Does a brain just try to find patterns even in a random thing?
 » 8 days ago, # |   +166 For you, it'd probably look like this.
•  » » 7 days ago, # ^ |   0 Why is everyone on CF down-voting you all the time??? Your posts are pure gold
•  » » » 7 days ago, # ^ |   +13 I'm sure I have a bunch of people downvoting me automatically because they're mad I'm a higher quality shitposter than them. Whatever.
 » 7 days ago, # |   +8 what do you mean exactly by uniformly random?
•  » » 7 days ago, # ^ |   +117 This is why you're green.
•  » » » 7 days ago, # ^ |   +162 what do you mean exactly by uniformly random?
•  » » » » 7 days ago, # ^ |   -46 That's why you don't have a name
•  » » » » 7 days ago, # ^ |   -36 Owning Okarinn like a boss :v
•  » » » » 7 days ago, # ^ |   -35 Why are you red?
•  » » » » 7 days ago, # ^ |   +166
•  » » » » 7 days ago, # ^ |   +8 I don't get the question, there is just one uniform distribution, right?
•  » » » » » 7 days ago, # ^ | ← Rev. 2 →   -25 What kind of properties would this "one uniform distribution" have? Each number (integer/real, whatever) is equally likely and the sum/integral of probability value/density is 1? Figure out yourself what's wrong with that.
•  » » » » » » 7 days ago, # ^ |   -16 Yup, so what's wrong with that? I honestly don't know.(and we're talking about some interval, not all real values)
•  » » » » » » » 7 days ago, # ^ |   -34 (and we're talking about some interval, not all real values) Who's talking about it? You're only now talking about it, proof by Ctrl+F. That's the point. Even then, if it's "some" interval, what good is it? It's like asking you to lend me three fiddy and I'll give it back to you at some point.The problem with all real/integer values is obviously that a distribution with such properties doesn't exist (sum/integral of a constant is 0 or +- inf).Naming a distribution is useless if you don't give it specific parameters.
•  » » » » » » » » 7 days ago, # ^ |   +38 well, unless you can cut hair so that it becomes longer then it was, there's only one reasonable way to understand original post
•  » » » » » » » » » 7 days ago, # ^ |   -16 No, even with that assumption, there's an infinite number of possible intervals.
•  » » » » » » » » » 7 days ago, # ^ |   0 I said reasonable, not possible
•  » » » » » » » » » 7 days ago, # ^ |   -21 There's an infinite number of reasonable intervals too. You could want to cut your hair from 12 cm to uniform([5, 10]), uniform([1, 2]), uniform([1, 10]), etc. That's not even getting into the question of how you define reasonable for a normal distribution.
•  » » » » » » » » 6 days ago, # ^ |   -15 Out of nowhere, you wrote "each number (integer/real)" so I specified that the problem makes sense only for an interval and I obviously meant interval $[0, currentLenth]$.I thought that I would learn something new :(
•  » » » » » » » » » 6 days ago, # ^ |   +15 Why exactly that interval? Why not any other?
•  » » » » » » » » » 6 days ago, # ^ |   0 What else can it mean that we cut a hair of length $5$ uniformly at random? Cutting to interval $[2, 4]$? Come on.
•  » » » » » » » » » 6 days ago, # ^ |   -20 How about to an interval [0, 2]? Or [0, 1]? What the hell is wrong with those choices? Are you the fashion police?
•  » » » » » » » » 6 days ago, # ^ |   -9 As you mention it is not possible to choose at random a point "uniformly" over the real line, but it is maybe worth pointing out that it is possible to choose at random a sequence of points in R in such a way that the distribution of these points is invariant under translations. These random sequences are provided for instance by the Poisson point process and can be used for instance as a toy model for stars in the firmament, that wherever you look it is equally likely to find the same number of stars.
•  » » » » 6 days ago, # ^ |   -32