« first day (4320 days earlier)      last day (515 days later) » 

1:00 AM
Sandbox posts last active a week ago: Test cases
 
1:44 AM
let's maybe not star that every time it happens
considering it's already happened twice
and instead encourage @AZTECCO to use h1s for his sandbox titles :P
 
@UnrelatedString fixed (closes issue #62446770)
 
 
1 hour later…
2:50 AM
Hello!
 
3:11 AM
@RadvylfPrograms That could be really cool
Does JS let you programmatically get the stuff inside a label?
Because then you could use JS labels for assembly labels
 
Unfortunately it does not
 
:(
 
However, you could use an object literal, since they are not lazily evaluated and their keys are ordered
 
There go my dreams of making the competitor to wasm :P
Ooh nice
Not sure how you'd do .text and stuff
I bet this'd be doable in Groovy
 
Syntax still need some work, but a start
Worth noting it doesn't matter what you actually do with the identifiers since as soon as they're evaluated the work is done. Maybe something like mov- rbx, rsi would look nicer
 
3:51 AM
Basic stats question. I have 100,000 items each of which is in one of five categories and each item has a price. I want to estimate the proportion of cost for each category. If I sample 25 at random and just use the price of the items in that sample, how should do the random sample?
Should the probabilities be weighted by the price of each item?
 
4:06 AM
You're overthinking it, if you have N items from a category in your random sample, the expected price of that category as a fraction of the total is just the sum of prices of those N items divided by the total in your sample
You could also approach it as the expected average cost of an item in that category multiplied by the expected percentage of the items that are in that category, which should give you the exact same result
 
@RadvylfPrograms I was thinking that if I have one item with cost 1000 and one hundred with cost 1, a uniform random sample will get it wrong
 
That's just a limitation of small sample sizes and statistics in general
 
@RadvylfPrograms but if weight my sample by cost, don’t I get it right?
 
No matter how you sample your data or account for things, it's always possible there's some wild outlier that makes your predictions totally inaccurate
@graffe Oh as in, sampling non-uniformly?
 
@RadvylfPrograms yes
 
4:20 AM
I guess it'd depend on how much information you have. Like, at some point you need enough information to be able to sample well that you could just use a better approach than random sampling, or more than 25 samples
 
I have all the prices in an array so weighted sampling is easy
Determining which category an item is is done by hand so is expensive
 
Oh interesting
 
Thanks :)
it’s actually a practical problem
 
I guess if there is a large disparity in prices between things and you need the minimum possible number of samples, you'd probably want the number of samples in a subgroup of items to be roughly proportional to the sum of their costs
 
Yes
 
4:23 AM
E.g. if you have one item that costs $1000 and 400 that cost $100 each you'd want 20 and 5
 
But if I weight my sampling by the cost of each item, is my estimate “unbiased”?
 
Oh that's a good question
I think so
 
Thank you! I am much better at questions than answers :)
Also, do I want to sample without replacement? That is never sample the same item twice?
 
Probably
This is a little out of my expertise though so I'm just going by intuition
 
Mine too!
Thank you though
 
4:30 AM
I don't think it would bias the result either way, but with replacement seems like it'd be something you'd only do if you know you should
 
@RadvylfPrograms yes I was hoping someone could tell me :)
 
 
5 hours later…
9:47 AM
good morning!
 
 
1 hour later…
11:01 AM
quiet time here?
 
11:42 AM
very quiet!
 
From the chat rules: "Sometimes, there isn't anybody talking in chat. That's perfectly fine. Don't send messages just because the room is quiet." See here: cgcc-se.github.io/chatiquette
 
:(
 
12:19 PM
Hiya
How come ruby interprets // as regex even though it isnt lol
 
because // is an empty regex
if there's stuff between the // that gets treated as the pattern
 
 
3 hours later…
2:55 PM
the empty regex can be useful in golfing, especially in perl
 
3:26 PM
@Ginger new PFP?
 
in Off-Topic TNB, 3 hours ago, by Ginger
I'm going to leave Niko as my PFP until I finish the game and/or get tired of it
 
3:46 PM
exactly
and if I don't finish before December Niko gets a santa hat
also, we're at 23 questions for CGAC and we only have 4 days until December!
 
:o
 
4:22 PM
@Ginger oh no
 
5:05 PM
0
Q: Find the nth number where the digit sum equals the number of factors

The Thonnu(This is OEIS A057531.) Your task Given a positive integer, \$n\$, find the \$n\$th number where the digit sum equals the number of factors Explanation For example, let's take 22: Its factors are \$[1, 2, 11, 22]\$ (length: 4). Its digit sum is 4. This means that it is a number where the digit su...

 
 
4 hours later…
8:39 PM
good afternoon, just wanted to say hi and share this: loda-lang.org - it might be interesting for oeis enthusiasts!
 

« first day (4320 days earlier)      last day (515 days later) »