注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
Please write a function to perform multinomial sampling. This function should take the following inputs:
- keys: a list of options to select from (e.g. keys = ['blue', 'green', 'red'])
- weigh(as is available in Python and R). We would like you to develop a solution that does not rely on any other types of random sampling routines.
|