Questions tagged [sample]

Small part of or a selection from something (code, logs, data etc.), intended to show the structure, style, or nature of the whole.

In statistics, the process of generating random samples is called .

In and some other programming languages, the function sample performs random sampling of a set with or without replacement.

1672 questions
0
votes
1 answer

Sampling Issue with hive

"all_members" is a table in hive with 10m rows and 1 column: "membership_nbr". I want to sample 3000 rows. This is what I have done: hive>create table sample_members as select * from all_members limit 1; hive>insert overwrite table sample_members…
pmjn6
  • 307
  • 1
  • 4
  • 14
0
votes
4 answers

wpf/silverlight mvvm sample app request

could you guys point me to some really simple silverlight or wpf sample project where the usage of the MVVM is showed
Omu
  • 69,856
  • 92
  • 277
  • 407
0
votes
0 answers

Sample Elements with Evenly Distributed Value

I have a programming problem, which can be described as follows: given a sorted array x and a number k, I am asked to return another sorted array y, such that the elements in array y is evenly distributed by its VALUE (not index). I am required to…
Qiang Zhang
  • 169
  • 1
  • 10
0
votes
2 answers

How could i display the dice sample space by R?

I am a R beginner.If i want to show that throwing the two dice's all sample space like (1,1) (1,2) (1,3) (1,4) (1,5) (1,6) (2,1) (2,2) ... (2,6) (3,1) ... (6,6) My thought is x<-1:6 y<-1:6, but i want to know how to generate (x,y). The question…
Kevin
  • 59
  • 6
0
votes
1 answer

JMeter - Generate Parent Sample Default

When I record something in JMeter or create something in JMeter I always check the "Generate Parent Sample" checkbox. Is there a way I can enable this by default? I tried looking through the properties files but I could find nothing regarding this…
Blacksoil
  • 29
  • 1
  • 4
0
votes
1 answer

Import a sample database into SQL Server on AWS RDS free tier

I'm signed up to Amazon Web Service (AWS) free tier, which allows you to run some very limited instances of EC2 and RDS for free. I've created an RDS instance running SQL Server 2012 Express - this does not allow remote desktop access, so I also…
James Allen
  • 6,406
  • 8
  • 50
  • 83
0
votes
0 answers

Generate a sample xml document with iterable element and namespaces from a schema

I have an bunch of xsd which describe a document with some iterable elements. I would like to generate an sample xml document with at least 2 iteration of each iterable element and all namespace prefixes I tried with xmlspy, it worked, but it did…
Eric
  • 375
  • 7
  • 19
0
votes
2 answers

How to send Notification from Kernel to user space application using SYSFS

I'm working in an USB ACM driver, "where i need to send notification from kernel space to user space application for invoking a call back function". I'm not much aware of using kernel to user interfaces in code. how well can sysfs help for this…
0
votes
1 answer

Modelling a sampling with replacement, given probabilities

I would like to model a sampling with replacement in R (like the urn model). That is, I have three different events (say: 1,2 and 3 (in fact they a categorical but I think this is not important at the moment)) and I know the probability of each…
KikiRiki
  • 47
  • 6
0
votes
1 answer

Bootstrap Sampling on Large Data

I have a large dataset and I am trying to estimate function f(x) for all instances in that dataset. Which of the following approach is better? Approach 1: Sampling N instances from the dataset and use bootstrapping for these N instances to estimate…
Soroosh
  • 477
  • 2
  • 7
  • 18
0
votes
1 answer

Where can I find older versions of the iPhone sample code

I'm trying to find some of the old iphone sample code, becuase it seems like apple will only let you download the most recent versions (compatable with iphone 3.2 +). Is there an archive of these someplace, is there a reason that they remove the…
user379468
  • 3,989
  • 10
  • 50
  • 68
0
votes
1 answer

R: how to sample

I have a question on how to sample I have a dataframe called 'inventory' that looks like this (1000 rows) inventory_date number_purchases 1 1/1/1986 20 2 2/4/1992 15 3 12/13/2001 10 I want…
James Rodriguez
  • 119
  • 3
  • 10
0
votes
1 answer

Creating multiple new resampled series based on observed data

I've got 7 years of temperature data split into 4 seasonal variables (Spring, Summer, Autumn, Winter) each of which look like this (Spring example) Day Month Year maxtp Season.Year Season 1 3 2008 13.6 2008 SP 2 3 2008 …
Pad
  • 841
  • 2
  • 17
  • 45
0
votes
1 answer

python average of random sample many times

I am working with pandas and I wish to sample 2 stocks from each trade date and store as part of the dataset the average "Stock_Change" and the average "Vol_Change" for the given day in question based on the sample taken (in this case, 2 stocks per…
John
  • 531
  • 1
  • 8
  • 23
0
votes
3 answers

How to select a sub-sample in r?

I need to backtest a predictive model in R by using cross-validation methodology. So, I should select 4 out of 5 of the total observations in the dataset for training purposes and use the remaining one for testing. Now, let's assume x is the total…
QuantumGorilla
  • 583
  • 2
  • 10
  • 25