# Questions tagged [discrete-data]

Refers to data generated from a distribution that has a countable sample space. The discrete data tag may encompass categorical data, whether nominal (e.g. the distribution of race in a sample of individuals) or ordinal (e.g. socio-economic status), or an actual discrete random variate, such as a set of event counts (e.g. the number of errors on a page of text). Discrete data need not necessarily be integer, however.

562 questions
Filter by
Sorted by
Tagged with
1 vote
1 answer
22 views

### Can you create continuous data from discrete data?

I am trying to understand the difference between discrete data and continuous data in a real world application. My example is this: Once a day I do pushups until my body is tired. I am counting how ...
3 votes
1 answer
334 views

### Conjoint analysis or discrete choice analysis ? And which software?

Suppose I would like to model the light-bulb preference of respondents. I would like to ask their preferences between existing bulbs on the market. And when you choose a bulb in a shop you usually see ...
3 votes
1 answer
58 views

0 votes
0 answers
6 views

### Replicating a study with a discrete dependent variable in linear mixed effects model (1-4 scores) [duplicate]

As the title says, I want to replicate a study that runs linear mixed effects models with a dependent variable that is discrete, with scores from 1 to 4. So, I have two main questions about that. 1 ) ...
1 vote
1 answer
47 views

### Fitting discrete data to continuous distributions

I'm creating a simulation model, in which some stochastic factors are included. On of my stochastic factors is the amount of containers arriving daily for a specific delivery location. A plot of this ...
2 votes
1 answer
123 views

### Salary of a group of people is continuous or discrete

I have salary data of 3000 employees ranging from 3000 - 10000 dollars. Based on my understanding:(https://mathbitsnotebook.com/Algebra1/FunctionGraphs/FNGContinuousDiscrete.html) Continuous data is ...
0 votes
2 answers
354 views

### How do I make discrete predictions for discrete data that appears to have a normal distribution?

I have discrete data that comes from the distribution of a discrete random variable Y. The data appears to follow the normal distribution (ie if I make a kde plot it looks like a normal distribution). ...
7 votes
1 answer
2k views

### Appropriate tests on discrete and paired data

I am going back and forth on which tests to do. I have two paired variables, that are both positive integers (0,1,2,3...etc). $n = 559$. The variables represent the error resulting from two different ...
5 votes
2 answers
369 views

### How to measure whether a discrete distribution is uniform or not?

Say I have two vectors [1,2,1,2,2] and [1,2,1,1,1]. The number at each dimension is the frequency of one element. How do I measure whether these two vectors are close to the uniform distribution? I ...
0 votes
1 answer
284 views

### Changing only one point of a discrete distribution to maximize variance augmentation

X has a discrete distribution with support $x1, x2, ...$ in ${]}0,1{[}$. You have the right to change only one of the $xi$ to lead to the highest increase in variance (or, at least, a systematic ...
1 vote
1 answer
38 views

### Construction of statistics of a discrete distribution

I have the following problem: we consider an i.i.d sample $\mathbf{X} = (X_1,...,X_n)$ of the discrete set $\{1,...,N\}$. An agent has to infer the probability distribution of $X_i$. I wanted to use ...
0 votes
1 answer
240 views

### How to test that a subset of data is distributed no differently than original (discrete, not normal)

In the research I am doing we have initially had ~600 samples which had a certain distribution (not normal, although close). The characteristic of these samples that I am interested in is discrete (...
2 votes
1 answer
333 views

### nested logit with individual level fixed effect (panel data)

As is stated in the title, I have several questions concern the combination of nested logit and panel data. 1, Can we run nested logit with the individual fixed effect? this is useful when one has ...
1 vote
1 answer
40 views

### Two Samples Test for Discrete Variable and Different Size Groups?

Hello there and apologies for my English and lack of statistic skills! Two different groups of participants, one comprised of children and the other of adults, run once, at different times, the same ...
1 vote
1 answer
202 views

### Combine Multiple Discrete Probability Density Functions

I'm a bit stuck trying to figure out the combined probability from several discrete PDF's. Lets say I have a bunch of different classes (Truck, Sports Car, Station Wagon, etc) and a bunch of ...
1 vote
1 answer
777 views

### Fitting higher order Markov chains in R

For $n$ individuals I observe their states at fixed times. So I have $n$ observations of a data generating Markov chain. Using the markovchain-package I then can fit a time-homogeneous Markov chain ...
9 votes
1 answer
222 views

### Marginalizing out discrete response variables in Stan

There's been quite a bit of discussion and confusion about how to marginalize out discrete response variables in Stan (e.g. binary or ordinal data). See, for instance: Impute binary outcome variable ...
0 votes
0 answers
112 views

### Alternative to SimPy for continuous event simulation?

The python library, SimPy, is pretty explicit that it only handles discrete event simulation. Though it is theoretically possible to do continuous simulations with SimPy, it has no features that help ...
1 vote
1 answer
587 views

### Can we compare the difference of two specific proportions in a 3x3 contingency table?

I have a 3x3 contingency table and would like to compare the the specific proportion's relationship. For example, can we test if the proportion of people who give response A in age group 1 is higher ...
1 vote
0 answers
56 views

### Problem on Discrete Random Variable

Please kindly give a pointer to this question. Generating the discrete variables seems unlikely! Entrance to a country can be denied for a number of reasons. When someone arrives by air, and their ...
1 vote
0 answers
23 views

0 votes
1 answer
34 views

### How do I quantify the homogeneity of discrete data?

I have a subset (of some bigger set, lets say of size $N$) containing $S$ different things. Now each of these $S$ things belong to a category. The total number of categories is $<=N$. What can be a ...
0 votes
0 answers
22 views

### Which type of variable are week numbers?

I have a dataset where measurements on animals were done on multiple weeks of experiments. So I have measurements for week 1, week 2, etc. So I was wondering which type of variables are these? I ...
0 votes
1 answer
47 views

### Can an ordered logit model be used to predict points scored by an NBA player?

I am interested in getting the probabilities of a player scoring exactly 1 point, 2 points, 3 points etc. Can an ordered logit be used for this? If not what would be the best way to get the ...
0 votes
0 answers
21 views

### Bootstrapping quantiles of integers [duplicate]

Given an i.i.d. sample of 36 integers: [6, 6, 6, 6, 6, 6, 7, 6, 6, 6, 6, 7, 6, 6, 6, 6, 6, 7, 6, 6, 6, 6, 6, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6] A bootstrap resampling procedure is performed to ...
0 votes
0 answers
30 views

### Estimating a discrete distribution given expected value

I have an expected mean of a discrete variable. I would like to estimate the distribution so I can generate random samples of the value for a simulation. I have historical expected values and observed ...
0 votes
0 answers
54 views

### Quantile estimation for discrete data

For quantile estimation for data coming from a discrete distribution, do you have to use one of the quantile estimators R-1, R-2, or R-3? For example, R-3 uses the nearest even order statistic after ...
0 votes
0 answers
74 views

### How do you do a qq plot in R for a discrete Weibull distribution?

To do this, I think I need to calculate the inverse CDF, but I have learned here that the discrete Weibull (type I) as given by: $$F_{I}(x)=1-\exp\left[-\left(\frac{x+1}{\alpha}\right)^\beta \right]$$ ...
0 votes
1 answer
272 views

### Quantiles from histogram?

Is it possible to calculate quantiles from a probability histogram P(x) rather than from the data x itself? I have an unbinned histogram for discrete random variables, and I'm wondering if I can ...
7 votes
2 answers
7k views

### Can the discrete variable be a negative number?

I read in a book "An Introduction to Statistical Concepts [3 ed.] p.8): A numerical variable is a quantitative variable. Numerical variables can further be classified as either discrete or ...
0 votes
1 answer
165 views

### Generate viable sampling distributions of discrete data in R

I'm trying to simulate 2 X 2 data that would yield a relatively strong negative correlation. I'm using the R library GenOrd and ...
0 votes
1 answer
36 views

### Likelihood that observed relative frequencies match a probability distribution

For this question, please assume probability distributions are discrete. If I have $N$ data points ($x_1, x_2, ..., x_N$), and I want to know the likelihood that these samples came from a discrete ...
19 votes
4 answers
16k views

### Probability formula for a multivariate-bernoulli distribution

I need a formula for the probability of an event in a n-variate Bernoulli distribution $X\in\{0,1\}^n$ with given $P(X_i=1)=p_i$ probabilities for a single element and for pairs of elements \$P(X_i=1 \...