instruction
stringlengths
9
38.7k
Consider the following OLS output. My question is: If you have to define a linear equation from the regression, do you then only include significant variables? If so, the equation according to the SPSS output (DV = stockVol0LN) would be: stockVol0LN = 0.632 * StockVol1LN + 0.278 * StockVol2LN + 0.152 * hbVol0LN - ...
My thesis coach wants me to perform a predictive analysis based on OLS. What I understand is the following: divide the dataset into a training set and a holdout set, for instance 50-50 perform OLS on the training set construct linear equation based on regression output create a new variable (DV2) in the holdout set, a...
I'm estimating several inverse covariance matrices of a set of measurements across different subpopulations using an wishart prior in jags/rjags/R. Instead of specifying a scale matrix and degrees of freedom on the inverse covariance matrix prior (the wishart distribution), I would like to use a hyperprior on the scal...
I have often read that there is a huge connection between the normal distribution and several other distributions. But these were only mathematical explanations. What's the "real" connection between these 3 distributions (normal, $\chi^2$, and F)?
I'm using R and the library TraMineR to do sequence analysis on social science data. I have computed an optimal matching (OM) distance matrix. [,1] [,2] [,3] [,4] [1,] 0.00000 94.80628 110.00000 107.46826 [2,] 94.80628 0.00000 53.71086 78.02520 [3,] 110.00000 53.71086 0.00000 47.88362 [4,] ...
If you have a matrix with $n$ rows and $m$ columns, you can use SVD or other methods to calculate a low-rank approximation of the given matrix. However, the low-rank approximation will still have $n$ rows and $m$ columns. How can low-rank-approximations be useful for machine learning and natural language processing, gi...
The algorithm mentioned on Wikipedia has a line $$s_t = \alpha \frac{x_t}{c_{t-L}} + (1-\alpha) (s_{t-1} + b_{t-1})$$. For $1 < t < L$ how should we interpret $c_{t-L}$? On that interval, should we replace it with $c_t$?
Basically what I want to achieve is to take loads of data from a certain game's tournaments and compare it to chance, i.e., I want to see whether a "coin flipping tournament" would have similar results. Or in other words, whether any given player has ~50% chance to win against any other given player, and at the start a...
I'm trying to plot a QQ-plot with two data sets of about 1.2 million points, in R (using qqplot, and feeding the data into ggplot2). The calculation is easy enough, but the resulting graph is painfully slow to load, because there's so many points. I've tried linear approximation to reduce the number of points to 10000 ...
I would like to perform discriminant analysis in R language. Please let me know the code and related packages for it.
I have been trying to understand the methodology and application of conditional distributions in a multivariate normal setting as outlined in this Wikipedia page. In the context of that page, if we know the exact value of $x_2=a$, we can derive the conditional variance covariance matrix for $x_1$. Now, e.g., if I hav...
Suppose I run a bidirectional stepwise in R with the model: step(glm(y ~ a + b + c + d, poisson)) And the result may be: y ~ d + c null deviance: 263.6 100 residual degrees of freedom residual deviance: 132.9 AIC: 648.3 I read that if you run the line: 1-pchisq(residual deviance, residual df) and the result is "sign...
Suppose we have a hierarchical model regression model (pupils nested in schools) with random intercept for schools. We run a model with data covering a particular period, and observe the variance of the random intercept. Now we run the same model (same model formulation: ie, same outcome and predictors etc) on a datase...
I have a data set containing only categorical variables (both nominal and ordinal in nature). The dependent variable is also ordinal (with 4 categories). I was planning to run a categorical regression with optimal scaling instead of ordinal logistic regression aiming at obtaining a single beta coefficient for each inde...
With the Data Analysis command in Excel I made a plot, which I can't post, because this is my first post ever. X - abortions, Y - maternal deaths. SUMMARY OUTPUT is this: Regression Statistics Multiple R 0.796827692 R Square 0.634934371 ...
I will state the problem in a simplified manner first. Suppose I have two objects, that can be in one of two states. We count the number times when the object is in the second state. The distribution of number of such counts in a time period of length $\Delta t$ is Poisson with intensity $\Delta t\lambda$. The pro...
I have a directed graph, S, where each vertex stores several integers of attributes. I think it might be called a "attribute relational graph" or just an old fashioned "attributed graph". The networkx Python package allows any attributes to be added to each vertex, but I can't figure out how to pair these attributes wi...
I'm looking for a set of weak classifiers that work with Adaboost to test on popular datasets. Most of the examples on the web use some kind of random weak learners which work on their own randomly generated dataset. Could you point me to any usable weak learners?
The high dimensional variable selection problem is really popular now. But I have a question: If I do simple linear regression regressing one response variable on 1 covariate at a time first and then control the FDR to select the significant feature variables, what's the disadvantage of this comparing to the lasso or g...
I'm using the function adk.test (AD test, adk package) to estimate if a data sample follows a distribution family. My question is I have datawith 100 values, should I simulate the distribution with 100 values or with as many as I want? rnorm(100) or rnorm(1000000) EDIT: using fitdist and gofstat functions of fitdistrpl...
So, this question is somewhat involved but I have painstakingly tried to make it as straight-forward as possible. Goal: Long story short, there is a derivation of negentropy that does not involve higher order cumulants, and I am trying to understand how it was derived. Background: (I understand all this) I am self-...
I have a lot of address strings: 1600 Pennsylvania Ave, Washington, DC 20500 USA I want to parse them into their components: street: 1600 Pennsylvania Ave city: Washington province: DC postcode: 20500 country: USA But of course the data is dirty: it comes from many countries in many languages, written in different wa...
If I have a regression or classification problem y ~ x1 + x2 + ... + xn I might call the xi the regressors or the predictors. But what do you call y? The terms regressand and predictand are clunky, don't seem particularly standard, and have the disadvantage that they're very similar to the words for the right-hand-sid...
Bootstrapping works well to access the uncertainty in the mean estimate, however I remember reading somewhere the bootstrap does not do a good job in assessing the uncertainty in quantile estimates (particularly the median). I don't remember where I read this, and I couldn't find much with a quick Google search. Tho...
I am not a trained statistician but I am trying to improve on my own MBA thesis which was essentially regression analysis of the factors affecting opening cinema box-office in the UK. I am now trying to look at the mix of marketing channels used by distributors, specifically TV, Press, Outdoor, Radio and Web. My the...
(Let me preface this by stating that I am somewhat of an R newb and also a LMM newb.) I have a very, very simple research question. I have a continuous outcome variable ("HAPPY"). I have two factors that divide my sample into 4 cells (Factor1, Factor2), and I want to assess whether there are any main effects or an inte...
I'm using R to test some distribution families to my data. I've done KS, AD tests and determined the loglike. For one of the data the indications given by KS and AD do not agree with the ones given by the loglike: Table: p-values Test Normal Log-normal Gamma Logistic Weibull Gumbel KS 0,16 0,00 ...
I'm playing the iPhone/Steam game Hero Academy. It's a bit like Chess, except there's some randomness, and at the beginning of a game players choose what team they'll use, each with different strengths and weaknesses. Both players can pick the same team. About 400 of us play in an unofficial league, where we record our...
Let $(x_1, \ldots, x_n)$ be an i.i.d. random sampling from a conditional normal distribution ${\cal N}(\mu,\sigma^2)$ distribution given some event $A$ possibly parameter-dependent: for instance when we sample ${\cal N}(\mu,\sigma^2)$ but we only retain $x_i$ when $x_i \in [\mu-3\sigma, \mu+3\sigma]$. Are there some kn...
My dataset is small (120 samples), however the number of features are large varies from (1000-200,000). Although I'm doing feature selection to pick a subset of features, it might still overfit. My first question is, how does SVM handle overfitting, if at all. Secondly, as I study more about overfitting in case of cl...
I'm trying to do what I thought was a basic problem but doesn't seem to be working out properly. I'm looking at disproving a claim that tides cause earthquakes, where the main mechanism that people claim is that it happens during a new or full moon, and especially during a perigee moon (when it's closest to Earth). Pe...
Sites such as Survey Monkey allow a layperson to easily create and administer a questionnaire. However, the only thing I know about polling is that you can't just create a questionnaire, let anyone answer it, and get valid results from it. Is there a layperson-accessible guide to the problems and (hopefully) solutions...
Short question: Why is this true?? Long question: Very simply, I am trying to figure out what justifies this first equation. The author of the book I am reading, (context here if you want it, but not necessary), claims the following: Due to the assumption of near-gaussianity, we can write: $$ p_0(\xi) = A \; \phi(\xi...
I have done an experiment in which the same people have been measured in two conditions, the same room with and without plants. I know they performed significantly better on a reverse digit span task in plant condition (it was relatively normally distributed data so I used a paired t-test), but want to see if the incre...
I'm interested in using the spectral density to determine the period of a time series $x_t$. According to Wikipedia, we can use the periodogram to estimate the spectral density. Going down the chain, Wikipedia says the periodogram is implemented using the FFT, but the details are not given. Is it literally the FFT o...
I'm trying to work my way through a text on robotics and specifically trying to make sense of Kalman filters. I've used them before but I'd like to be able to understand and make my own for new systems. The question I have asks for the minimal state vector for a car with position X and velocity V at time t. The acc...
Does anyone know of an implementation (other than the SAS macro) of the doubly robust estimation method found in: Funk, M.J., Westreich, D. et al (2011). Doubly robust estimation of causal effects. American Journal of Epidemiology, 173 (7): 761-767.[DOI]?
I am trying to standardize dataset columns for linear regression. One of the columns have standard deviation = 0. def standardize(X): return (X - mean(X)) / std(X) So this code doesn't work. Are there any tricks to solve this problem? I have tried two things Throw aways the column with standard deviation 0 be...
In Shane's answer to this question he suggests that Hidden Markov Models can be used more successfully than wavelets for anomaly / change detection (it was a bit unclear -the topic he was addressing is anomaly detection, although he uses the words "change detection") I am not very familiar with Hidden Markov Models, b...
I am running multiple regression analysis and my dependent variable is not normally distributed (skewness=-1.794 and kurtosis: 4.643). In order to correct this, I applied log transformation but because it is negatively skewed I used this formula: $log(1+max value of DV - DV)$. The inversely and log transformed DV was c...
I am looking for someone with experience in how to handle the anisotropy-parameters in the likfit() function which is part of the GeoR package in R. I am using likfit() to generate the obj.m-parameter for the function krige.conv(). The data I use consists of scattered points (5 to 30) on a ~50*50 grid. In likfit(), I w...
I am new to Independent Component Analysis (ICA) and have just a rudimentary understanding of the the method. It seems to me that ICA is similar to Factor Analysis (FA) with one exception: ICA assumes that the observed random variables are a linear combination of independent components/factors that are non-gaussian whe...
I don't really understand how the columns "xerror" and "rel error" are calculated. I found out that the printcp() function "gives cross-validation estimates of misclassication error (xerror), standard errors (xstd) of those estimates and the training (resubstitution) estimates (error)". Here is an example: car <- read...
I have a fairly long time-series of annual abundances ($N_t$) of a wildlife species (73 years of abundances). To forecast the population’s trajectory, I have used ARIMA modeling. Examination of the ACF and PACF of the first-order differenced time-series suggested a 10-year cycle exists. So I used a span 10 seasonal ...
I am using a permutation test to verify the statistical significance of an improvement in multi-class classification performance. What citation would be appropriate? Would it be fine to cite "Permutation tests: ..." by Philip Good, 2000?
Let's say I have panel data (i.e. time-series data and cross-sectional). Factors drive the bulk of the data as well as some noise. Naturally I can express this factor structure using a covariance matrix - or a set of eigenvectors and corresponding eigenvalues. I would like to create a new panel dataset that has some pa...
Can I use probit if my dependent variable has data that looks something like this, 1 case is equal to 0, and 12 cases are equal to 1? Thanks
I am working on a magnetic-resonance imaging dataset which includes about 100 observations (= subjects) and 20000 predictors (=voxels). I would like to conduct classification in R using methods like support-vector machines or random-forests. I believe that analysis of large datasets will require special setup & would ...
I have the following data: Month-year number of people with back/neck problem number of people using surgery (lumbar fusion) as a treatment The goal is to compute usage rate of surgery (=number of surgeries / number of people with back/neck problem) for each month and hence come up with monthly forecast. What is the...
This question contains a relatively long prelude, since I want to explain as clearly as possible the motivation for the question. It may well be the case that I am asking the wrong question (i.e. there is a better way of solving the problem than what I am attempting) and I would welcome any good answers along those lin...
In the context of a statistical signal processing problem, I have a signal model of the form $x[n]=s[n;\theta]+w[n]$ where $w[n]\sim{\cal N}(0,\sigma^2)$ and $s[n;\theta]$ depends nonlinearly on $\theta$. $n=0,\ldots,N-1$ is the time sample index. I compute the Maximum Likelihood estimate of $\theta$ as $\theta_{\rm ML...
I'm a PhD student and doing a research on regression analysis. My question is how to determine whether the data is slightly, moderately or extremely non-normally distributed? TQ to all responses of my question. But, may be my question is not so clear. Ok, let say i have some different values of skewness and kurtosis (...
Based on this very good post How can I calculate margin of error in a NPS (Net Promoter Score) result? I've pulled together the detailed calculations to perform the test for the generalised NPS problem. I suspect that this question is lower order than generally posted here but my last true stats course was 20 years ago...
I have some questions about the AIC and hope you can help me. I applied model selection (backward, or forward) based on the AIC on my data. And some of the selected variables ended up with a p-values > 0.05. I know that people are saying we should select models based on the AIC instead of the p-value, so seems that the...
I have discussed this issue several times in this site, but I am asking it again for a final justification from the experts of our community. I wanted to extract four factors (I should call dimensions here I think) from a CATPCA along with the factor scores (note that, factor scores are not available if I use polychori...
I have 2 real and 1 discrete input variable whereas the output variable takes either of the 2 nominal values (i.e. 2 class problem). First I used Weka to train C 4.5 decision tree in a 10-fold cross validation setup. As a result I get a single decision tree whose True positive, False positive rates don't change much wi...
Possible Duplicate: Probability distribution value exceeding 1 is OK? I followed the machine learning course by Andrew Ng and decided to implement an anomaly detection system for one of my problems. This is how I have proceeded so far: I have about ($m=$)100k feature vectors which represent the normal behavior The ...
I would like to know if anyone knows how to apply the arima results to calculate missing values in the observation period. I am looking for something similar to forecast.arima(), that forecasts values based on arima results. Does anyone has experiences in using data from other sources that are complete but with less a...
I have a time series with observations that were collected quasi fortnightly over several years. However, there are between 23 and 26 observations per year. The time series is not equidistant, due to bad weather or holidays where no sampling occurred. Is it legitimate to average these observations to obtain a frequency...
I'd like to do some analysis of shooting efficiency in basketball when a team is leading (AHEAD) or trailing (BEHIND) by less than 8 points and whether they are HOME or AWAY. Here are a few examples of the data: Ray Allen HOME BEHIND 59.4% 134 Ray Allen HOME AHEAD 57.13% 132 Ray Allen AWAY BEHIND ...
I am doing a regression analysis where several of my independent variables are categorical measures of severity. I code them as dummies and exclude the least severe variable. The more severe the category the lower the dependent variable with y always equal (or nearly equal) to zero when the most severe category is in p...
I would like to compare two measurements of a variable (anxiety) on the same subjects at different times. I was planning on using the paired samples t-test in SPSS, but I believe the variables are ordinal, since the questions were scaled 0,1,2,3. How can I compare them?
I have a set of count data that I have fitted both a linear model to and a Poisson generalized linear model. The mean of the raw data is 233.375 and the standard deviation 279.983. I have been surprised when I fit a Poisson glm in R that the intercept = 5.53865. A negative bionomial glm in R gives an intercept of 5....
Suppose I have a study of 3031 people that obtains responses to various questions (95% CL). One of the questions (Q1a) gets a yes response from 616 of the people. Of those 616, only 34 have a QualityB (the remaining 582 don't) that is dependent on a yes answer to (Q1a). When determining the margin of error for Quality...
I have some measured datapoints. Each of the points has attached an error, depending on how precise the measurement was done. Now I'm using the squared weighted mean with the inverse of the errors as weights so that I emphasize more on the preciser values and less on the values where the error is large. What I'm wonder...
My question is triggered by a question that was asked on stackoverflow: https://stackoverflow.com/questions/12198115/using-different-metric-for-hclust-linkage. The thing is this: I can formulate an algorithm for hierarchical clustering with some kind of distance between original objects, and I'll also need a distance ...
I'm working with baseball statistics and I have a list of the players' batting percentages. I want a formula that will tell me what percentage of the data is represented from a player's score compared against the others as a percentage. For example, I have PlayerA, he has the highest batting average in the sample, s...
I'm trying to add a random perturbation term to my response variable (to estimate the impact of multicolinnearity in the beta estimates), but I am not sure on how to accomplish it when the response variable is transformed using a 1/4 power, in R. Without any transformation in the response variable, according to Farawa...
Hellow I need to know what the difference between a pairwise t-test and a pairwise ANOVA is. Preferably explained in laymen terms.
I'm currently running a perception experiment: DV: error (this in degrees- how much an observer was away from the real answer) IV: the time bin (5 levels) in which the unique stimulus appeared IV2: True/False- whether the unique stimulus occurred before or after stimulus2. Covariate: Distance from the fixation poin...
I'm interested in hearing about what statistics problems other data teams are trying to tackle. For me, I have data on energy usage in the United States, and we are trying to figure out ways to forecast energy demand as well as figure out ways to balance heavy loads on the power grid. The statistical challenges are i...
I just wanted to do this small experiment to make sure I understand PCA correctly. My dataset contains 8 columns. The first two columns are randomly generated in excel => randbetween(4, 5) and the other 6 columns are also generated in the same way but the formula used is => randbetween(1,3) When I do PCA on this I am ...
I've got a data set consisting of a series of "broken stick" monthly case counts from a handful of sites. I'm trying to get a single summary estimate from two different techniques: Technique 1: Fit a "broken stick" with a Poisson GLM with a 0/1 indicator variable, and using a time and time^2 variable to control for tre...
I have a problem that consists of finding the optimal solution based on the following criteria: Logic for identifying that event A has occurred (i.e. "find" logic that most accurately categorises an A type event) Logic for identifying that event B has occurred (i.e. "find" logic that most accurately categorises a B t...
I want to tell something about predictability of health improvement results after a specific surgical procedure. I asume that the smaller the SD around the mean, the more predictable the results are. If I want to compare two subgroups, for example males and females, I find two different means and also two different sta...
I have developed a scoring system using logistic regression. The score ranges between 0 and 6 (using integers) and predicts death. It does not use a conventional regression formula and thus I am not able to calculate a precise value of the predicted risk of dying. An example of the score could look like this: Score    ...
I have a 12-level factor variable (month) in my dataset and I wanted to fit a CART tree with rpart(). Would you split the 12-level factor variable into 12 dummy variables? If I fit the model with one 12 level factor variable I get better predictions (in comparison to the 12 dummy-variable alternative) but then I have p...
We know that the least square method is equivalent to the MLE for Gaussian distributed errors. What is the relationship (if any) between regularized (Tichonov regularization) least squares and MLE?
CrossValidated Community, I must mention that I am a first-time poster (and relatively new to both modelling and R), so please excuse any norms I may violate in my post and politely inform me. I have been attempting to determine if a treatment variable is significant in R and to find a package that will both 1) model m...
Is it possible to do model selection in this way? Suppose I need to select a good (logistic) model among three variables (var1, var2, var3). The deviance D* (-2*log-likelihood) of this full model would be the minimum among all possible models. Then I could try all 6 combination of sub-models(1,2,3,12,13,23) and compute...
I need to perform a two-step calibration and I need you to tell me if I am doing that correctly. First I want to calibrate a force sensor with masses. I measure several weights and perform a linear regression of my data such as: $$ F_1 = a_1 s_1+b_1 $$ with $F_1$ the applied force in N, $s_1$ the sensor value and $a_1...
If you analyze the same data with a t test and the nonparametric Mann-Whitney test, which do you expect to have the lower P value?
I am trying to do a multi-scale analysis and I've stumbled upon, either by personal research or recommendations (as in this Q), with the concept of Space-scale analysis. Do you know how can I plot things like this in R?: (source: Supplementary Fig. 15 from this article)
Possible Duplicate: How to find percentiles of a Normal distribution? The weight of a given Africander breed is said to follow a normal distribution with mean 200 kg and standard deviation of 10. Calculate a) The probability that the weight of the Africander is less than 215 kg. b) The probability that the weight li...
I am trying to find a way to do Nested Logistic Regression in R that fits my needs. I have a very large data set with almost 200 variables available. I have found my "best" model and it contains 12 of these variables. I am aware of the problems of using 12 variables in logistic regression and don't want to cover tho...
My data set is small, with roughly 12 in each group (two groups). In addition, the distribution of the data is not normal. As a result, I ran a Mann-Whitney U test. However, I also ran a one-way ANOVA and got the exact same results. Which test should I report and it is okay to say that I ran both with equal results ...
I have the following data in R x <- c(0.1,0.2,0.3,0.6,0.8,0.9,1) y <- c(90,96,97.7,99.3,99.65,99.95,100) I'm trying to find a logarithmic equation that best fits these points. I'm not sure what the equation would look like, but probably something like one of these a*log(x)+b (a*log(x)+b)/(log(x)+c) a*log(b*x)+c etc ...
If I have a population of vectors in R$^n$ and some special subset has a different distribution, I could try and use PCA to describe the main axes of these distributions and, if they are aligned differently, that would give me a quick way to describe the difference in orientation between the two. However PCA is depende...
A parameter of an object is normally distributed with a mean m and a std. dev. s. If r such objects are randomly selected, what is the maximum expected value M of the parameter in the selection? Cross-posted from: https://mathoverflow.net/questions/105903/what-is-the-maximum-expected-value-in-a-finite-selection-an-obje...
Is there any way to run an OLS difference in differences model when the dependent variable (investment) has lots of observations which are truly zero? I don´t know how to add clarifications. My problem is indeed the normality assumption. I am using firm level panel data. Many firms (around 60%) do not invest each year....
I am comparing the size distribution of trees in six pairs of plots where one plot received a treatment and the other a control. Using a Kolmogorov-Smirnov test on each pair of plots I find that $p$ ranges from $0.0003707$ to $0.75$. Are there any appropriate methods for dealing with all of the replicates together, s...
Suppose an invigilator suspects one student of copying answers off another student's paper during a multiple-choice exam. She later checks their answers and finds some similarities—but on the other hand, there are bound to be similarities given the nature of the exam. How should she go about determining whether her sus...
I have conducted repeated measures ANOVA, with 2 factors: One within factor (time, pre-post intervention) and one between factor (treatment, two groups). I have measured different dependent variables. I find in all the cases an effect of the within factor, an effect of the between factor, and only in some cases an inte...
Forgive me if this answer is already somewhere on this site, but after extensive searching I have found nothing to help me. Here is a brief overview of the experiment: I have 18 tanks, each of which are split into 4 sections, each section has a different specie of wetland plant. Tank is my whole plot factor. Variety, ...
Given a p.s.d kernel $Q$, can minimization/maximization of $Tr(X^TQX)$ over X be represented within a reproducing kernel Hilbert space (RKHS) framework? If there is a primary concern with the trace function being unbounded(for maximization) or trivial zero-solution(minimization); you may consider constraints over $X$;...
This is more of a theoretical question. Super large sample sizes will almost always show a significance when a $\chi^2$ test is done. Is there any other statistical test of significance (an alternative to $\chi^2$) which is good for testing independence when the sample size is very large? This is the context of my prob...
I noticed while tinkering with a multivariate regression model there was a small but noticeable multicollinearity effect, as measured by variance inflation factors, within the categories of a categorical variable (after excluding the reference category, of course). For example, say we have a dataset with continuous var...
I got this example and I was wondering about a certain statement: $$ \begin{aligned} (I) \ y_1 &= \alpha_{12}y_2 + \alpha_{13}y_3 + \beta_{11}z_1 + u_1 \\ (II) \ y_2 &= \alpha_{21}y_1 + \beta_{21}z_1 + \beta_{22}z_2 + \beta_{23}z_3 u_2 \\ (III) \ y_3 &= \alpha_{32}y_2 + \beta_{31}z_1 + \beta_{32}z_2 + \beta_{33}z_3 +...
I have some data with predictor variables, A and B and response variable C. I have a grouping factor SITE. df <- data.frame(A = c(0.4, 0.4, 0.2, 0.2, 0.2, 0.2, 0.2), B = c(0.3, 0.3, 0.1, 0.1, 0.1, 0.1, 0.1), C = c(4.4, 4.3, 5.6, 4.7, 5.1, 4.5, 4.9), SITE = c("south","south","east","east", "east", "north", "north")) Th...
I'm looking for some kind of distribution over the simplex in which components are correlated in an ordinal way. That is, if $p = (p_1, ..., p_J)$ is drawn from our distribution on the simplex, I would like $p_i$ to be positively correlated with its neighbours $p_{i + 1}$ and $p_{i - 1}$, say. A vanilla Dirichlet clear...