由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 如何weighted sample without replacement
相关主题
without replacementSAS file question,thanks very mcuh
请教一道sas 题sampling weight variable怎么用到linear regression里啊?
求教如何用sas从一个大population选sample怎么分辨 standard error 和 standard deviation?
Under-sampling vs Weightingonsite求建议呀
请教一个bootstrapping的问题。Help on understanding how to Creating a Random Sample without Replacement
因为一个组中没有死亡(event), 没有办法做Cox怎么办?借人气问一个Excel sampling 问题 (转载)
Question about weighting complex surveyFaster Random Sampling with Replacement
选课求助新手请教一个weighting analysis的问题
相关话题的讨论汇总
话题: sample话题: without话题: weighted话题: 如何
进入Statistics版参与讨论
1 (共1页)
y*******n
发帖数: 99
1
k种不同颜色的球,个数为[n1, n2, n3, ..., n_k], 如何sample without
replacement?要求sample operation time complexity log(k)
class WeightedSample:
def __init__(self, num_balls):
pass

def sample(self):
pass # return a color in time complexity of log(k)
看了https://en.wikipedia.org/wiki/Reservoir_sampling 似乎也做不到logk, 这里
面有什么技巧吗?
1 (共1页)
进入Statistics版参与讨论
相关主题
请教一下proc ttest, weighted data请教一个bootstrapping的问题。
跪求SAS大牛们一个简单问题因为一个组中没有死亡(event), 没有办法做Cox怎么办?
weighted correlation的问题Question about weighting complex survey
weighted sum of independent bernoulli选课求助
without replacementSAS file question,thanks very mcuh
请教一道sas 题sampling weight variable怎么用到linear regression里啊?
求教如何用sas从一个大population选sample怎么分辨 standard error 和 standard deviation?
Under-sampling vs Weightingonsite求建议呀
相关话题的讨论汇总
话题: sample话题: without话题: weighted话题: 如何