instruction
stringlengths
9
38.7k
Consider the following example: t = 1/24:1/24:365; x = cos((2*pi)/12*t)+randn(size(t)); % if you have the signal processing toolbox [Pxx,F] = periodogram(x,rectwin(length(x)),length(x),1); plot(F,10*log10(Pxx)); xlabel('Cycles/hour'); ylabel('dB/(Cycles/hour'); This demonstrates the dominant periodicity in the data se...
I am working with a set of genes for which I have both methylation values $\beta$ (continuous on unit interval) and gene expression $E$ (non-negative continuous) that I want to test for correlation $\hat\rho(log_2E,\beta)=R$. To filter out only the significant correlations I perform a permutation test where for each si...
I have the rank percentages of students in 38 exams as the dependent variable in my study. A rank percentage is calculated by (a student's rank / number of students in an exam). This dependent variable has nearly uniform distribution and I want to estimate the effects of some variables on the dependent variable. Whic...
I asked a related question before here on the difference between GEE method with exchangeable varcov structure v. Robust standard errors known as Huber White method in group randomized trials. As Macro pointed out Freedman in his 2006 paper The American Statistician called On The So-Called “Huber Sandwich Estimator” an...
I want to fit a negative binomial model for my count data. I am wondering what the differences for the computation of these three PROCs are in SAS.
I need to do some simple mean comparisons between groups (basic ANOVA F-tests) on data with missing values. I use the mice package in R for multiple imputation, but I can only pool results for the linear model coefficients, or the $R^2$. Does anyone know how to combine to pool multiple F-statistics from each linear mod...
I have a timeseries dataset holding stock data for a large set of companies. Assume the following subset, where obsDay is the observation day (148 days in reality) and weekDay the day of the week (1 = monday, 2 = tuesday, ...): company sector obsDay weekDay stockPrice ------------------------------------------- 1 ...
This might be a strange case, but I'm sure that somebody in here can help me and that I'm perhaps not the only one who wants to pool RSDs correctly. Consider this: The mean weight of a powder bed is W mg with a relative standard deviation (RSD) of Wrsd %. For each weighted powder bed a precise counting of the particle...
If I have a data set with many values repeated (example below) how would it be divided into quartiles? I assumed at first that the quartiles would be uneven, but every single definition I've read makes it sound like they must be equal. Example: { 1, 1, 4, 4, 4, 4, 8, 8}
I have two continuous predictor variables to predict a dichotomous variable. In addition i have constructed two (interaction) models, based on domain knowledge which use both variables to predict the third. So now i want to compare these predictors, using R. I get these result on the wilcox test: W = 36655, p-value = 3...
Let's say I have the following data and am running a regression model: df=data.frame(income=c(5,3,47,8,6,5), won=c(0,0,1,1,1,0), age=c(18,18,23,50,19,39), home=c(0,0,1,0,0,1)) On one hand, I run a linear model to predict on income: md1 = lm(income ~ age + home + home, data=df)...
EDIT: I have solved this problem myself. The problem with the simulation below is that the omitted variable should not be included in the 'true model'. I have written a blog post with a more detailed analysis here. I am trying to calculate the Average Structural Function (ASF) for a binary response regression model wit...
I am looking at a situation where I have a population of about 150-170. I am testing for the absence or presence of a particular property. Given the population, I can easily figure out the sample size needed for various confidence levels. However, I have read in a number of places (e.g., wikipedia) that that a higher ...
I have count data passenger as Y. The data look like this, as many of the values are 1 (about 18%.) Does it make sense that I take a log of it, and take it as a dependent variable in a generalized linear model with Poisson distribution : I know the link function is log for Poisson distribution. Did I have a proble...
Could you recommend an R package for estimating a (frequentist) multilevel Weibull regression model? I need to model random intercepts, random slopes, as well as a cross-classified structure. UPDATE: It seems like there is currently no "easy" solution for that. I decided to leave it for now by estimating a multilevel...
I am trying to calculate sensitivity, specificity, and odds ratio of a data set, they are numerical values of percentages from 0% to 100%. How should I do the calculation? Wikipedia has the formula: $$sensitivity = \frac{true~positives}{{true~positives + false~negatives}}$$ How should I use this formula in my case? F...
Edited to restrict one of the gamma distributions to be an exponential distribution, and to force both means to 1.0, and to add wolfram alpha links: I have two distributions, both with mean 1, and I want to compare their cdfs when $0 \lt x \lt 1$. One of the distributions is exponential, and the other distribution is ...
I have a multivariate dataset that changes over time. I have extracted (and normalised) some features and used k-means to generate clusters over the entire span of the dataset. Now I want to see whether the clusters change significantly over time. So, working backwards, and thus reducing the dataset by x-months, can I ...
I have a question about the joint distribution of the mid p-value and p-value. We know that, for right tailed test with discrete test statistic $X$ with distribution $F$, the p-value is defined as $P=Pr(X \geq observed~X)$ and the mid p-value is defined as $mid~P=Pr(X \gt observed~X)+\frac{1}{2}*P(X=Observed)$. I w...
How can I apply the likelihood ratio test when I have the following hypothesis for collocation discovery: $$H_{1}: P(w^{2}|w^{1}) = p = P(w^{2}| \neg w^{1})$$ $$H_{2}: P(w^{2}|w^{1}) = p_1 \neq p_{2} = P(w^{2}| \neg w^{1})$$ Basically, $H_{1}$ describes the hypothesis that the second word ($w^{2}$) in a possible colloc...
I am trying to forecast with an arimax model including the xtransf argument. I used the example given in chapter 11 of the book Time Series Analysis With Applications in R, Jonathan D. Cryer & Kung-Sik Chan, 2nd ed. So this is basically an intervention Model. I just did not include the xreg argument, so the Additive ou...
I have been summoned for jury duty. I am conscious of the relevance of statistics to some jury trials. For example, the concept of "base rate" and its application to probability calculations is sometimes - perhaps always - relevant. What statistical topics might a person in my situation usefully study, and what mater...
I have 3PL model parameters (guessing, difficulty and discrimination item parameters). Is there any function with which I can estimate individual ability from item response data? I tried the function factor.score in the package ltm, but it seems to require the whole data from which the parameters were estimated, which...
I have conducted a repeated measures ANOVA, with 2 factors: One between factor (Ex_control: exercise intervention versus control) One within factor (time: pre/post intervention). Questions Should I first refer to the table labelled within-subject effect and specifically the box labelled time*Ex_control? Does thi...
I saw a famous review paper about intelligence, and the authors introduced a way to adjust the regression coefficient for predictor error. As many of you might know, if the predictor has a measurement error or if it has reliability less than 1, the regression coefficient estimate(OLS) is biased towards 0.(less than the...
I am just learning R, and am aware that the package e1071 has a naiveBayes method that takes in predictor and class membership, and estimates the class prior using the relative frequency (ML estimate). I would like to see the impact of having a sample that is not balanced across classes (let's say male, female are rep...
I do not know if it is totally off-topic, but I thought it might be useful to have opinions and an aggregate answer about why volatility is an important topic in financial econometrics. I think it started with portfolio theory and the need to understand the properties of the underlying second moment of the asset return...
Came across an article on the web on "evaluation of training effectiveness". The author suggests that the "t-value" obtained from a "Paired t-test" conducted using pre-test and post test scores can be used to quantify the effectiveness of training. The t-value was termed as the "Index of Learning" and the author clai...
I want to simulate a data set with similar covariance structure as my observed data (which is a SNP by gene p-value matrix, dim ~600k*8368), and have calculated a covariance matrix (dimensions 8368*8368). So far I've tried two approaches to simulating data (all in R): rmvnorm from the mvtnorm package, and by using the ...
I am using an ARIMA model to create a model for correlated errors from my regression model. I am using the auto.arima function from the forecast package in R. I am able to get more data at some frequent interval after the regression model is created, so I get more values for the correlated errors. My question is how d...
My ultimate aim is to obtain a model and data for a single univariate time series for the unobservable true price of an item (with minimum error). Instead of directly observing this true price, I can observe data with the interpretation of this true price by different entities, each of these making up a timeseries. The...
Suppose you have $n$ objects labeled $1, 2, ..., n$ and $m$ of these objects are chosen with equal probability without replacement. The labels for each of the samples are denoted by $X_1, ..., X_m$. What are some effective ways to estimate $m$ if all you observe are $\min X_i$ and $\max X_i$?
I have a regression model with two significant main effects and a significant interaction. I'd like to calculate an effect size for one of the main effects. I'm using the package compute.es in R. I'm not sure whether I should use the empirical means and standard deviations or the t-value from the regression model to c...
Is it possible to obtain a positive correlation between a regressor and a response (+0,43) and, after that, obtain a negative coefficient in the fitted regression model for this regressor? I'm not talking about changes in the sign of the regressor among some models. The coefficient sign always remains. Could the remai...
I know how to calculate genetic similarity between genotypes, but I do not know how to calculate genetic similarity between groups. From cluster analysis, I found seven groups. Now, I need to calculate genetic similarity between these groups. How should I go about doing this?
Let $\Lambda \sim \mathcal W_D(\nu, \Psi)$, i.e. distributed according to a $D \times D$ dimensional Wishart distribution with mean $\nu \Psi$ and degrees of freedom $\nu$. I would like an expression for $E(\log |\Lambda|)$ where $|\Lambda|$ is the determinant. I've google'd a bit for the answer to this and have gotte...
I'm a beginner in statistics and would like to understand one of the requirements for the chi-square test to work. It is that the random variable being measured has to follow a normal distribution. My question then is, what other models should I use if the random variables I'm measuring do not follow a normal distribut...
I have to analyze a data set having both ordinal and scale variables. What I was trying to do was to factor analyze the data. The data was in SPSS. But I think SPSS factor analyzes the data by calculating Pearson's correlation by default which might be misleading as my data set contains mixed types of variables. I coul...
Cross-post from MathOverflow where it was suggested that I might get better results here. I am in the early stages of a problem that involves parsing a large number ($\approx 5 \times 10^9$) of documents (web pages) and estimating values from them. In particular I need to identify pages that offer downloads of pirated ...
I have observed an experiment where 500 individuals (one after another) touch surfaces in a room and then leave. So I have a data set of recorded number of surface contacts $n$ for each person. I need to make a pdf of this but not sure how best to do it: This is a histogram converted to pdf: Would you recommend using ...
I have a question on the differences-in-differences approach with the following standard equation: $$ y= a + b_1\text{treat}+ b_2\text{post} + b_3\text{treat}\cdot\text{post} + u $$ where treat is a dummy variable for the treated group and post. Now, my question is simple: Why do most papers still use additional con...
This is probably a very simple question for anyone using R, but I am fairly new to it (and stats in general) and I can't figure this simple computation out. I have 3 varieties of plants (A, B, C) tested with 2 different nutrient supplies, and the weights of the plants are measured. The data is balanced. (Here is an exa...
I was trying to solve a problem and I got stuck at the penultimate step (I think). I could show that Var(X) = Var(Y) = Cov(X,Y), where X and Y are random variables with finite means and variances. Based on above statement, can I say that X and Y are the same? or P(X=Y) = 1?
Every week, my $m-1$ friends and I enter a pub quiz which has $n$ points available. In any given week only some of us are there. Record the presence/absence of member $i$ in week $t$ in the matrix $x_{ti}$. I'd like to build a predictive model for the number of points we score in any given week, depending on who's ther...
I've seen different error metrics used in the Kaggle competitions: RMS, mean-square, AUC, amongst others. What's the general rule of thumb on choosing an error metric, i.e. how do you know which error metric to use for a given problem? Are there any guidelines?
I'm running an experiment with an e-learning system using a repeated measures with crossover design. Subjects are shown two videos on a web page. In one session, a feature (a table of contents) is enabled, while the other session is a control: C=Control F=Feature subject pretest1 video 1 posttest1 pretest2 ...
I'm estimating a GLM with a continuous variable $X_1$, a dummy variable $X_2$ and the interaction term $X_1*X_2$. After my understanding, when interpreting the coefficient of $X_1$ you should assume the value of zero for $X_2$, i.e. also for the interaction term. Now a colleague suggested that if I skipped one of the...
I have a set of data that I gathered doing some tests. I plotted it and created a scatter chart. I would like to find the equation of the mean line that goes through these points. How can I do this? I remember going over this in my college stats class but have forgotten. Also it would be great if you could refer me...
I am trying to make sense of the spearman test I am getting as a result of using cor.test on R package. This page seemed to me to inform that I should care not only for p-values and rho values from the output but as well its relation with the t tests. Sometimes I get as result p value of 0 and rho value of 1 and the va...
I’m working on a project where I need to test a machine learning system which has a lot of hyper-parameters. Further, in order to gauge the performance of system, I’m planning to use several datasets. Firstly, I divided first dataset into three sub-sets (i.e. training, cross validation and testing). Cross validating d...
I came across several publications dealing with overdispersed zero-inflated count data that "simply" modelled presence absence in one model and then postive counts in a second model. This led to two models with two different outcomes. The authors stated they were using "hurdle models". In my opinion hurdle models do n...
I'd like to use the exact binomial test to analyze some data, but the exact binomial test takes too much computation and is unnecessary when the sample size is larger because it can be approximated by the chi-squared test when the sample size is large. So what's a practical threshold for choosing between the chi-squar...
My questionnaire is on Likert Scale and is divided into 7 sections say A, B, C, D, E, F, and G. In each section there are a number of questions which the respondent has to fill in accordance with the likert scale (0=No to 5=very high). To make it simpler my questionnaire looks like: Sec: A Q1 Q2 Sec: B Q1 Q2 Q3 Q4...
I have a problem with a multiple regression I performed: model without constant term; one dependent continuous variable; first set of dummies: derived from 2 continuous variables, I used the median value of them as a threshold to derive two binary variables; from these two binaries, I derived 4 dummies, one for each c...
Consider G-Causality on two stationary time series vectors (call these variables $X$ and $Y$), each with 100+ observations. It's daily financial market time series data. I have reason to believe that there's reverse causality between these two variables (i.e., $X$ causes $Y$ as well as $Y$ causes $X$). I want to know t...
I have a time series of hourly measurements for a duration of one year: time <- 1:(365*24)/24 set.seed(1) x <- rnorm(length(time)) The measurements are taken at hourly intervals. The main periodicity for the time series is that of a diurnal cycle i.e. the temperature follows a daily pattern. However, I would like to s...
I have two random variables, $\alpha_i\sim \text{iid }U(0,1),\;\;i=1,2$ where $U(0,1)$ is the uniform 0-1 distribution. Then, these yield a process, say: $$P(x)=\alpha_1\sin(x)+\alpha_2\cos(x), \;\;\;x\in (0,2\pi)$$ Now, i was wondering whether there is a closed form expression for $F^{-1}(P(x);0.75)$ the theoretical...
Suppose we have constructed a model of some stochastic system; we are also able to perform Monte Carlo simulations of this system. Now, we have two sets of samples: one from our model and one from the MC-based approach, and we would like to assess the accuracy of our technique. The first two accuracy measures, which c...
For a statistics assignment, I've been given a data set (regarding drug prevention) and a few questions. One of the questions is to check whether or not the choice of treatment, treatment A or treatment B, impacts the odds of staying drug-free. We're told to be cautious about possible confounds, like a having history o...
I am trying to figure out the best way to test my data for differences in R. The data I have look like this: domain variable lifecycle 162 CSP1 5 162 old Species 10 162 BD 16 162 DBH 14 162 ...
I'm using a STL decomposition to make forecasts in R (using the forecast package), but I'm not sure how to incorporate my regressors into the model. I'm using the forecast function: f = forecast(stl(my.data, s.window = 'periodic'), h = 12, method = 'arima') The function above accepts the xreg parameter, but how do I s...
Since we can not fit ARIMA model when the constant variance assumption is violated, what model can be used to fit univariate time series?
I have via the ISO standard 16269 found the solution to a problem that I've been working on. Based on a couple of independent samples from a normally distributed population, I would like to determine a limit above which all the remaining samples in the population will fall with a given confidence level. The standard do...
I am looking for the name of a fitting method that will work even if points from multiple dataseries are meshed together. As far as I understand there are two major methods, least squares and least absolute error; the method I am looking for would be the next step in the direction from LS to LAE: Least Squares fitting...
Data Structure > str(data) 'data.frame': 6138 obs. of 10 variables: $ RT : int 484 391 422 516 563 531 406 500 516 578 ... $ ASCORE : num 5.1 4 3.8 2.6 2.7 6.5 4.9 2.9 2.6 7.2 ... $ HSCORE : num 6 2.1 7.9 1 6.9 8.9 8.2 3.6 1.7 8.6 ... $ MVMNT : Factor w/ 2 levels "_Withd","Appr": 2 2 1 1 2 1 2 1 1 2 ......
I am a student of MBA-Business Intelligence and Data Analytics. I would like to know names of some good books on regression analysis written from the perspective of making business decisions.
I'm trying to estimate the statistical properties of a 3D vector field (the magnetic field vector in the solar atmosphere) over a 2D field of view from observations. I will neglect for the moment that the problem is complex because I cannot measure directly the vector field but only some quantities (the Stokes profiles...
I am trying to intelligently bin a sorted collection. I have a collection of $n$ pieces of data. But I know that this data fits into $m$ unequally sized bins. I don't know how to intelligently choose the endpoints to properly fit the data. for example: Say I have 12 items in my collection, and I know the data will fit ...
When assessing model performance, one would like to separate prediction errors due to limitations of the model from those errors due to intrinsic noise. For example, in noisy data, AUC in an ROC curve can be less than 1.0 even when using the "true" model. What are some approaches to get a quantitative estimate of a m...
I'm studying an online course with about 3000 students who each took several quizzes and I'm trying to apply Item Response Theory (using the ltm package in R) to model the questions, determine which items are most or least important to retain and what new items may be required, and to provide an alternate way to score...
I'm reading a paper which claims that $$\hat{X}_k=\frac{1}{\sqrt{N}}\sum_{j=0}^{N-1}X_je^{-i2\pi kj/N},$$ (i.e. the Discrete Fourier Transform, DFT) by the C.L.T. tends to a (complex) gaussian random variable. However, I know this isn't true in general. After reading this (fallacious) argument, I searched over the net ...
I have problem understanding following example in parentheses. Maybe you can help me. Ideally, researchers know the full extent of the population they want to study, and they can select a sample from this population at random. Statisticians can calculate the probability that such random samples represent the population...
I ran a simple online survey to ask 249 people which of three donation requests they found most compelling. This survey was slightly improved by randomizing the order of the answers. Message A received 116 votes, message B received 49, and message C received 85. My first guess would be to identify the 95% confidence in...
Last month I asked this question here. After thinking about it recently, I was wondering if it makes sense to think about logit probabilities in that regards. Since the predictor of a coefficient shows the log odds change in the response variable independent of all other predictors, we would expect that plotting bid vs...
I would like to estimate bounds on the false positive rates of a binary classifier. In my sample data I have 50% positive data points, and 50% negative data points. However, in the real data, which I don't have access to, I can estimate that there are going to be $N$ positive samples and $N^2$ negative samples, where $...
Someone is conducting the following hypothetical experiment and they've told me that a repeated measures ANOVA is required. I'm having trouble framing it like I've been taught in the texts. That is, identifying my factors, levels, indep/dep variables, etc etc. Multiple participants are asked to look at a red square, b...
I am trying to fit a GLM model to my data (7 million rows, 153 variables) using R. More precisely I am using the Revoscaler package, but I suppose my issue would apply to other software as well. The calculation results in an error, saying that the GLM model is singular. I tried to find an explanation, without success. ...
It seems when I glance around here at the fashionable learning algorithms, things like neural networks, boosted trees, support vector machines, random forests, and friends are promoted for supervised learning problems. Dirichlet processes and their ilk seem to be mentioned mostly in unsupervised learning problems, such...
I conducted a survey research where I have used two delivery modes for the questionnaire - online and offline (hardcopy mode). The survey questions measure perceptions of employees on certain organisational behavior variables such as - organisational commitment, organisational justice, perceived organisational support...
I'd like to compare some Jazz tunes. Jazz tunes are characterized by a succession of chords. The interval between each succeeding chord (number of tones) and the order in which they appear matter. At first, I thought of a Mann-Whitney test that could compare two tunes with a different number of chords using the ranks o...
I'm interested in estimating a linear model with random parameters (RP) and some endogenous regressors in stata. The main issue is to obtain estimates of parameters variances and not the parameters by themself (a two stage method provides unbiased parameter estimates). Is there any specific setup within SEM or GLLAMM m...
I conducted an experiment to compare two computer reversi programs, namely $A$ and $B$, in which I had them play with each other 50 times and $A$ won $B$ 31 times. Now I would like to test if $A$ is stronger than $B$, i.e., the probability $p$ of $A$ winning $B$ (neither drawing or losing) is greater than 1/2, with sig...
I conducted a paired samples t-test to analyse the effect of an exercise intervention on blood pressure measurements. The test demonstrated a significant p-value. However, when I have calculated 95% confidence intervals for the mean difference between pre and post measures the result suggested there to be no significan...
This question is regarding the role of regularizer in an objective function. Given a loss function $f(x)$, a regularizer function $r(x)$, and $\lambda$ being a trade-off function, our aim is to $\min f(x) + \lambda*r(x)$. I'm able to understand that as the value of $\lambda$ increases our training error increases. I...
I'm running a Metropolis sampler (C++) and want to use the previous samples to estimate the convergence rate. One easy to implement diagnostic I found is the Geweke diagnostic, which computes the difference between the two sample means divided by itsestimated standard error. The standard error is estimated from the spe...
In my attempt to forecast sales demand by month utilizing the last 3 years of history to predict balance of the year, ets() from forecast() package yields an answer for some time series but not others. I'm following Dr Hyndman's presentation on best fist ets() function. I understand while the flat forecast (average o...
Would you consider the HBM vs EB to be two alternatives in which the hyperparameters are "in the game" of being sampled/estimated/etc.? There is clearly a connection between these two. Would you consider HBM more "fully Bayesian" than EB? Is there some place where I can see what are the differences between being "fully...
(See note**) I am attempting to put together an infograph and am almost done collecting all the data I need. In addition to the base raw data collected, I'd like to add something I'm calling parallel stability and differential volatility. Here's what I mean: First, take a look at these graphs: While interesting, I...
How do I generate random nos based on say k moments? (no other constraints on support) When k = 2, we generate random nos. from a normal distribution defined by the 2 moments. Can we generalize this idea to an arbitrary k. A related question: Is normal distribution the only (known) distribution which is defined by just...
I am trying to check the significance of counselling in the technique for inhaler usage (rotahaler only) at different points of time in same subjects. The subjects' baseline technique will be assessed using a checklist scoring : zero for incorrect/ missed step and 1 for correct step. The total score is 8 (i.e., the ch...
I read online that it is only necessary to use adjusted-$R^2$ when you are working with a sample rather than the entire population. The data I'm working with is information on a series of live educational seminars. Each datapoint represents a single seminar that was held in the past, and contains various information on...
Is anyone aware of a re-parameterization of any asymmetric s-shaped function (like, but not necessarily the 5 parameter logistic curve), where one of the parameters is the first inflection point of the first derivative (i.e. the maximum of the second derivative). I mean point 1 in the upper figure: (The picture shows ...
Let's say I have the following logistic regression models: df=data.frame(income=c(5,5,3,3,6,5), won=c(0,0,1,1,1,0), age=c(18,18,23,50,19,39), home=c(0,0,1,0,0,1)) > md1 = glm(factor(won) ~ income + age + home, + data=df, family=binomial(link="logit")) >...
I would like to fit a linear model (lm) where the residuals variance is clearly dependent on the explanatory variable. The way I know to do this is by using glm with the Gamma family to model the variance, and then put its inverse into the weights in the lm function (example: http://nitro.biosci.arizona.edu/r/chapter31...
I have an ecological experiment for which I need to analyze bird count data. Here is the set up: 2 treatments (open/control), 3 regions. Not quite a full 3x2 factorial because in 2 regions there are 3 plots (250m x 250m) for both open & control (6 plots). For “reference” region there are just 3 plots (more similar to o...
We've been using the old formula to produce a product for years. We take a sample every quarter or so and run it through 8 different quality tests (every quarter because it takes that long for the tests to complete). Currently 53 samples of the old formulation have been put through these tests. One of the components of...
We are doing a survey regarding what members of a club think about the club. Say we have roughly 1000 members, who will be divided into five groups of 200 in each. Then each group will be given a survey at different times of the year (one group March, one April, and so on). Besides the fact that people may think differ...
I am doing a principal components analysis on a 4 item psychological scale (response format is a 0-10 point Likert scale for each item). As I hoped, an exploratory factor analysis yielded one factor. The result are looking good, one factor explains 83% of variance, the correlation coefficients are high but not too high...
Does anyone know of a reference for an expression for the Kullback-Leibler divergence between two Lomax (Pareto II) distributions? Not really worried which way the Lomax is parameterized.
Given two independently constructed Brownian bridges (from their marginal means and variances), is there a way to correlate the sample paths?