instruction
stringlengths
9
38.7k
Testing for heteroscedasticity I get these results: Breusch–Pagan / Cook–Weisberg test for heteroskedasticity $H_0$: Constant variance $H_a$: Heteroskedasticity Variables: fitted values of log_expdu chi2(1) = 21.41 Prob > chi2 = 0.0000 White's test $H_0$: homoskedasticity against $H_a$: unrestr...
I would like to combine trend indices (gained with different methods referring to the same subject, assuming they do not differ significantly) of two different time series and to derive the combined annual rate of change and standard error. To combine annual indices ($Y$) and standard errors ($S$) in the overlapping pe...
What is a stationary VAR (vector autoregression)? Can a VAR with non-stationary variables be stationary? How do you test whether a VAR is stationary or non-stationary? (Example in R language if possible/applicable).
I am creating a GLMM based on a experiment where each subject has 2 repeats. In some instances though there is only data for one of a given subjects repeats for most there is data for both. Can I still justify having subject as a random effect? Thanks, Jonathan
I want to compare two distributions, to see if they are significantly different. They represent task time completions (so they range from 1 to around 1000 seconds) in two different months. They are not normally distributed. I want to see if their central tendencies are significantly different (at a first glance the mod...
When creating a Glmm with Gamma distribution do I need to transform my response variable data to be between 0 and 1?
In order to get more fundamental in my understanding of probability I watched mathematicalmonk's lectures involving $\sigma$-algebras etc. - good. One of my main concerns was to better understand the basis for conditional probability: $P[A|B] = P[AB]/P[B]$. My question is simple How do we know that this quotient is i...
I have a "distance matrix". let's say a 6x6 distance matrix, each cell is the Mahalanobis distance of two "clusters" (or sets/groups of things in a multidimensional space), I want to "count" the number of actual clusters (significantly separated clusters) using this distance matrix, My question is if I only know the...
Background In a small online study I asked people (n=100) which products they would purchase. The choice set contained 20 products for which they had to indicate whether they would buy a product or not (= DV, yes/no format). Respondents could indicate yes for any number of products. The IVs were product and presentatio...
I am doing a multinomial regression and trying to interpret the results: In the basic model there is only one binary predictor variable (0 = high risk scenario, 1 = low risk scenario), the dependent variable has 3 categories (strategy 1,2 or 3). The output shows that the model is significant and most of the logits as w...
Background I have a time series of structural loads, which are measured forces on a moored ocean buoy, and I need to obtain the return period value so that the structure can be designed to withstand the max load expected in a storm. The return period is estimated from the measured time series in the following way: Firs...
I came across this article about the data mining team in Obama's reelection campaign. Unfortunately, the article is very fuzzy about the actual machinery of the statistical algorithms. However, it sounded as if the general techniques are known in social and political sciences. Since this is not my area of expertise, ca...
Multiple Kernel Learning methods aim to construct a kernel model where the kernel is a linear combination of fixed base kernels. Learning the kernel then consists of learning the weighting coefficients for each base kernel, rather than optimising the kernel parameters of a single kernel. The disadvantages of multiple ...
I would like to estimate a regression model of the type: $ load_t = seasonality_t + trend_t + \beta * temperature_t, $ and I have load data and temperature on high frequency (hourly data). My impression is that the temperature does not influence load at the same frequency as I measure load (i.e. a change in temperatur...
If I want to compare the goodness-of-fit of two regression models, with and without intercept, is it valid to compare the squared correlation coefficient between the fitted values and the data? Since the squared correlation would get back the $R^2$ for the model with intercept, it seems to make sense to compute the squ...
I have been running a linear regression, and one of the variables was a discrete variable (3 categories), decoded into three binary variables. I ran the regression in Stata. The first of those three variables was omitted, the other two were tested for significance (a ttest I assume); the resulting p-values were strikin...
I have two questions in using LIBSVM The decision function for C-support vector classification is $$\text{sgn}\left(w^T\phi(x)+b\right)=\text{sgn}\left(\sum_{i=1}^ly_i\alpha_iK(x_i,x)+b\right)$$ How can I understand the physical meaning of $b$? How can I enable LIBSVM to output these two types of information, $w$ and...
I had to compute the F-test in my ANOVA question and use interpolation if necassary. The first time, I had to work out the values of $F_{4,90}(5\%)$ which I said was approximatley $F_{4, 60}(5 \%)$ and then did my test and got the right answer. In the second bit, in my 3-way ANOVA table, when I'm checking to see if t...
I have done a factor analysis on different attributes of different cigarette brands (e.g. how expensive consumers find it, etc.). Three factors were calculated out of the many attributes after reduction. Now I would like to do a cluster analysis (euclidean distance and Ward method) on factor scores calculated for each ...
I first divide the dataset into training (75%) and test (25%). Then fit a logistic regression model on training data set. When fitting the model, I did some modification on independent variable, such as normalization, transformation stuff. Now I have the model and ready to test it using test data set. But do I need to ...
My current model is: $$y_i = a_0 +a_1x_i + a_2x_i^2 + \epsilon_i $$ With $E[\epsilon_i] = 0, Var[\epsilon_i] = \sigma^2$. I have the information: $$\begin{matrix} i & \mathrm{Response} \, y_i & \mathrm{Covariate} \, x_i \\ 1 & -1 & -0.5 \\ 2 & -0.25 &-0.25 \\ 3 & 1 & 0 \\ 4 & 1.2 & 0.25 \\ 5 & 2.6 & 0.5 \end{matrix}...
I am looking for an empirical paper that perform a difference-in-difference regression where the whole did regression (treated+post+post*treated) is interacted with a continuous variable (or a categorical one)... Do you have an idea of such a paper ?
Suppose one has a deck of cards. If one reshuffles it using a discrete probability model (based on combinatorics) one will still have the same probability of getting a particular card on each draw. This seems to be a little bit naïve for real cards, since reshuffling is somewhat non-random. Suppose you know the orderin...
While drawing graphs that compare the silhouette measure of different clustering algorithms, what unit should I specify for the silhouette width?
A child must learn a poem by heart. The poem has 200 lines. To test the child, the teacher asks the child to complete ten lines of the poem given the first half of the sentence. If the child gets, say, seven lines correct, the teacher assumes that the child knows 140 lines of the poem correctly. What is the uncertainty...
Can one one suggest any suitable plot that shows the observed values, their fitted values and 95% confidence intervals for the fitted values?
I always get confused by "probabilities and weighted probabilities" type of questions as I can't differentiate between the two of them. Consider following example. Urn 1 contains 5 white balls and 7 black balls. Urn 2 contains 3 whites and 12 black. A fair coin is flipped; if it is Heads, a ball is drawn from Urn 1, a...
I came across this forum as I am trying to get a convincing answer. Apologies for speaking 'plain English' as I am not a statistical genius! Basically I am implementing a pre- and post- questionnaire to be asked to young people (aged 12-17), and aimed at demonstrating the impact of a day intervention (educational progr...
In a homogeneous Poisson process with rate $\lambda$, what is the probability of observing an event in an "instant," that is, an infinitesimally small interval of length dt? I have read that the Poisson rate function $\lambda(t)$ can be defined as the "instantaneous probability of observing a spike at each point in tim...
Suppose we have a continuous-time stochastic process $X(t)$, which consists of a sequence of delta functions that, at each time $t$, have a probability $p(t)$ of taking a non-zero value. $p(t)$ lies in $[0,1]$ for all $t$ and just a scaled survival function of an exponential distribution, so $p(t)$ is decreasing in tim...
My dataset consists of 4 variable: values, dil, exp and sample. There are 170 values obtained for variable values; there are 5 levels for the variable dil, 10 levels for the variable exp and 5 levels for the variable sample. I fitted a mixed model in SAS to find the variance component estimates: proc mixed; by sample; ...
I'm writing a computer program to automatically detect black noisy borders on scanned images and crop them off. My algorithm is based on 2 variables: gray mean value (of the pixels in a rows/columns) and position (of a row/column in the image). Gray Mean Value Images are in gray scale: this means that any pixel has a g...
I have never taken part in an official or structured data analysis or machine learning course (other than recent online offerings) and have learned most of what I know from reading and trying things out. I know I am far away from being able to get a job. My question isn't what is better (like this question) but rather,...
Suppose in group 1 there are $n$ people and in group 2 there are $n$ people. If we conduct a 2 sample t test versus a paired t test, would we use $2n$ for power calculations in the two sample t test and $n$ as the sample size for the paired t test?
I'm working on a concept for a game that requires some statistical inference and I'm not sure how to go about it. My issue is I'm trying to come up with a way to calculate if a city (in the game) could evolve into a thriving city. I have a bunch of rules that rate different factors of the city like health quality, dis...
I tried to train a deep belief network to recognize digits from the MNIST dataset. Everything works OK, I can train even quite a large network. The problem is that the best DBN is worse than a simple multilayer perceptron with less neurons (trained to the moment of stabilization). Is this normal behaviour or did I miss...
I have just heard, that it's a good idea to choose initial weights of a neural network from the range $(\frac{-1}{\sqrt d} , \frac{1}{\sqrt d})$, where $d$ is the number of inputs to a given neuron. It is assumed, that the sets are normalized - mean 0, variance 1 (don't know if this matters). Why is this a good idea?
Does it make any sense to have two (or more) neurons in a neural network with the same weights? (intuitively it makes no sense, since all the neurons would behave the same way). Please consider both the input and hidden layers. What if the weights are equal 0?
I'm trying to do an OLS regression with several independent variables, and want to better understand how to interpret the p-values from doing the t-tests on the independent variables within my regression. For example, here is my result: OLS Regression Results ====...
I want to predict the probability of rain based on the measured weather parameters like temperature, humidity, etc. Let's not get into why I want to do that despite the fact that weather websites already publish the probability of rain. I want to implement this using logistic regression. I have weather data for 2012, e...
If I wondered about the probability of getting: Only one heads in two tosses - 2/4 Only one head in three tosses = 3/8 or 37.5% But I just counted on my fingers, how do you do it for big numbers?
I asked this question on https://stackoverflow.com/, but I couldn't get what I want. So, I am asking it here. I am running winbugs from R and I need to use some variables in R output. When I type schools.sim\$mean\$theta[1] in R, I get 10.2. However, when I type schools.sim\$2.5%\$theta[1]an error message come up. Any ...
I am learning individual differences scaling (AKA three-way multidimensional scaling) and I want to know what different ways there are to state that my results are reliable. I had to perform individual differences scaling in 2 dimensions on the data, and give the group object space. I work in R, with the smacof package...
We know that Ljung-Box test can be used to test for the residuals of a fitted model. But to test for the serial correlation of a time series itself, is there a way to do that?
I'm reviewing for a test, and I am not sure if I am getting the right solution. Let $X$ and $Y$ be iid $\mathcal{N}(0, \sigma^2)$ random variables. a. Find the distribution of $U = X^2 + Y^2$, $V = \frac{X}{\sqrt{X^2 + Y^2}}$, b. are $U,V$ independent? c. Suppose $\sin(\theta) = V$. Find distribution of $\theta$ when ...
Is the following correct? My friend tells me i need to (add up the binomial probabilities of 2 wins in 2 sets, 2 wins in 3 sets and 2 wins in 4 sets THEN multiply the sum obtained by p) P(3) = 5C3 x 0.5^3 x 0.5^2
Possible Duplicate: ANCOVA and its disturbing assumptions I am testing whether prenatal smoking affects intelligence, while controlling for social economic status. I want to use an ANCOVA (Intelligence - DV, Prenatal smoking - IV and SES -covariate) but I carried out a preliminary homogenity of regression slopes bu...
Let's say I'm trying to cluster $n$ points in $\mathbb{R}^p$, and I know in advance that only $s$ many of these $p$ dimensions determine the differences between the clusters. Of course, I don't know which of these dimensions are the important ones. All in all, I have an unsupervised learning problem (clustering) and I'...
How does one calculate the derivative of a multivariate normal CDF with respect to a given correlation coefficient? I have started with the bivariate case but couldn't work it out.
I have read the excellent slides "Assessing the precision of estimates of variance components" from Douglas Bates. I'm looking for some references about these profiled deviance components (for instance I'd like to understand why [what does it mean that] ldL2 measures the complexity of the model and why [what does it ...
My interest lies in finding the "right" correlation between a continuous IV ($x$) and a continuous DV ($y$). At first I ran a simple linear regression: $$ y=a+b_1 x $$ However, lots of other factors influence $y$ besides $x$. One of them is a categorical variable $c$, with $n+1$ categories. Using dummy coding, I ran...
From "Generalized Additive Models: an introduction with R" by Simon N. Wood, page 55, Exercise 1.9, Question 1: 4 car journeys in London of length 1, 3, 4 and 5 kilometres took 0.1, 0.4, 0.5 and 0.6 hours respectively. Find a least squares estimate of the mean journey speed. Hint: use a simple one parameter linear...
I've been trying to teach myself some of the fundamentals of statistics and would like to see if I'm in the right direction. Here's the problem: Construct the most powerful critical region of size $\alpha$ to test the null hypothesis $H_0: \theta=\theta_0$, where $\theta$ is the parameter of a binomial distribution $b(...
Assume I want to generate a sample of n-dimensional vector $z$ with a given correlation matrix $Corr(z)=R$. Some of the margins of its distribution are not normal (if you're interested here's the motivation behind my question), i.e. $z$ doesn't follow the multivariate normal distribution. Let's assume that I have some ...
Studying for a test. Couldn't answer this one. Let $X_{1,i},X_{2,i},X_{3,i}, i=1,\ldots,n$ be iid $\mathcal{N}(0,1)$ random variables. Define $W_i = (X_{1,i} + X_{2,i}X_{3,i})/\sqrt{1 + X_{3,i}^2}, i = 1, \ldots, n$, and $\overline{W}_n = n^{-1}\sum_{i=1}^nW_i$, $S_n^2 = (n-1)^{-1}\sum_{i=1}^n(W_i - \overline{W}_n)...
I am currently playing around with Gaussian Mixture Models in order to model stock returns. Part of all this is using the EM algorithm to obtain MLE of parameters. I have found a package in R (mixtools) that provides the functions normalmixEM and mvnormalmixEM. I have tried it but I don't understand the output for mvn...
Does it make sense and what is the correct approach to residualize a binary variable? For a continuous variable y, I simply run a regression that predicts y as a function of x and subtract y_hat=xb (the predicted valable of y from the regression) from y. Can I use the same procedure for a binary variable y so that y_ha...
I have set of time series data tuples: {$(1,22), (2, 25), (3, 18), (4, 26), ...$ so on} I want to estimate $Y_{t+1}$ using support vector machine regression technique. I have found numerous publications that mostly refer to Smola's paper. I want to understand the technique to implement it in my programming. There are ...
I have accuracy vectors of two classifiers. How can I make a t-test for them on Matlab and is there a good plot type to show it?
I am interested in the following sampling problem, which I will try to describe by a motivating example. Suppose we want to estimate how many people in a certain area, has blue eyes, how many have them has brown eyes etc.(think of a color scale) We do have an estimate on total number eye colors that the population con...
Take two problems: Andrew is 35, and the probability he will be alive in 10 years is .72. Ellen is 35, for her, .92. Assuming these are independent, what is the probability they both will be alive in 10 years? Answer: .66, Method: Use the multiplication rule .72*.92 = .66 Suppose your street has two traffic lights. T...
I am working with a dataset of repeated (x4) observations on 100 subjects. The outcome is zero-inflated and the data appears to be modelled well by a mixed effects zero-inflated negative binomial model with random intercepts for subjects. However, approximately 20% of the outcome variable is missing, so I am investigat...
I am using random hot-deck imputation on a repeated measures dataset. I am tempted to use Rubin's rules for pooling the results of multiple imputation, in particular for regression coefficients. Intuitively it seems the average of the coefficient estimates could be used, but I really don't have any insight about poolin...
Assume you've use a accelerated failure time model to find that the transition of subjects from State A to State B is log-normally distributed with parameters $\mu$ = X and $\sigma$ = Y. This now needs to be used in a differential equation model as the rate at which subjects move from State A to State B. However, just ...
To compare two Bayesian models for the same data, I plotted the fitted values of the first model versus the fitted values of the second model. The plot indicates a perfect similarity. Relying on this plot, I said there is no significant difference between these two models. However, the difference between the Deviance i...
I m trying to replicate a paper's simulation results, but am not having much success. The equation is: $$ P_t = \beta_{PD}*X_t + \varepsilon_{PD,t} $$ $P_t$ (by assumption) is described as standard normal. $\beta_{PD}$ is a constant $0\leq\beta_{PD}\leq1$. $\varepsilon_{PD,t}$ - is a residual term. More pr...
I've read in the news that the last month five pedestrians died from a population of 500,000 Remembering that it is a poisson problem (the famous prussian horse kicks by Ladislaus Bortewicz). I fired up R to understand the probability ppois(5*12, 3, lower.tail=F) since in a month died 5, I multiplied it by 12 months a...
Could someone please explain what "$J$" consists of in this paper, equation 1.5. $$ J \sim N(\beta, \sigma^2 I/k) $$ What's $\beta$ here? What's $N$? Also, why are they putting that much effort in deriving $k$ with complicated formulas instead of just saying "use CV to find the best $k$"?
I am currently working with Markov chains and calculated the Maximum Likelihood Estimate using transition probabilities as suggested by several sources (i.e., number of transitions from a to b divided by number of overall transitions from a to other nodes). I now want to calculate the log-likelihood of the MLE.
I have two functions $f_x$ = $\frac{1}{2}\delta(x-5) + 1/4$ where the 1/4 corresponds to a uniform distribution from 5 to 7. I also have $f_{y|x}$ = $\frac {1}{2}\delta(y-x-4) + 1/4$ which is 1/4 in the range of x+4 to x+6. I am trying to find $f_y$ using the equation: $$ f_y = \int f_x f_{y|x} \,\mathrm dx \>. $$ My...
I have a run an unbalanced 2x2x2x2 Type II ANOVA in R and am having trouble following up on the results. Here is the output: Effect DFn DFd F p p<.05 ges 2 cond 1 127 3.2359349424 0.074414031 0.0110769653158 3 sf 1 127 1.6981345415 0.194889782 ...
I am reading Machine Learning - A probabilistic Perspective by Kevin Murphy and in chapter 6.5 the author discusses Empirical Risk Minimization, and provides the following definition: $p_*(\mathbf{x}, y) \approx p_{\text{emp}} (\mathbf{x}, y) = \frac{1}{N} \sum^N_i \delta_{\mathbf{x}_i}(\mathbf{x})\delta_{y_i}(y)$ and ...
Suppose we have $100$ people and we obtain the average blood pressure $x$. Now suppose we have another group of $40$ people and they have an average blood pressure $\approx x$. How do we quantify the fact that the second experiment is more "efficient" than the first experiment? Would we do a power analysis? What would ...
I have a set of data that contains cases and controls. I would like to divide the cases by a particular phenotype before running my tests, to see how these groups differ (but not necessarily to directly compare them). My feeling is that I must also randomly divide the controls between these two groups of cases before I...
I am beginner in R. I had found in the literature that prior to performing kriging on the data, the distribution has to be investigated to check if it is Gaussian. So, in order to check if the data follows Gaussian I plotted the quantile-quantile plot of rainfall for all days using data from 50 stations. So, inorder t...
We have a data-point x and many classes. Let $P(c|x)$ the probability that $x$ is of class $c$. We note $c_1$ the most probable class for $x$ (i.e. $P_1=P(c_1|x)$ is the highest probability), $c_2$ the second most probable class for $x$ (i.e. $P_2=P(c_2|x)$ is the second highest probability ($P_1> P_2$)). Obviously, wh...
In the AR(1) model $y_{t}=\beta_{0}+\beta_{1}y_{t-1}+u_{t}$, assuming $E(u_{t-1}|y_{t-1},y_{t-2}...)=0$, how does the law of iterated expectations ensure that the errors must be uncorrelated: $E(u_{t}u_{s}|x_{t},x_{s})=0$?
I collect a bunch of questions from Twitter's stream by using a regular expression to pick out any tweet that contains a text that starts with a question type: who, what, when, where etc and ends with a question mark. As such, I end up getting several non-useful questions in my database like: 'who cares?', 'what's this...
I tend to use histograms of continuous variables adding estimated density curves in order to compare several charts easily. However, I find difficulties when I try to explain what density is and the interpretation of the curve's height to non-statisticians. The stalwart Wikipedia provide us a good definition: In ...
I have 3 integer valued time series $a_t$, $b_t$ and $y_t$ with $k$ observations. I want to fit $y_t$ with the 2 first, and for that purpose I use a regression tree like this: test all combinations of $a_t,\ldots a_{t-k}$, $b_t,\ldots b_{t-k}$, for each value between 0 and $N$. For each combination, take $\bar{y}_s$ t...
I have a very basic question concerning how to compare the responses of two groups of subjects, group = A and group = B, to a same test. The responses are stored in x. My starting dataset is in the following form: id group x 1 A 15 2 A 17 3 A 22 ... 50 B 22 51 B ...
I'm very new to this--I took a class last quarter and got hooked--now I'm in this competition and I don't know where to start (kind of). My problem is that I got this data that looks like a bunch of relational database tables and I don't know how to shape them into something I can try to feed into some kind of model. F...
I have a question about the analysis of a unequal sample size repeated measures data with categorical response variable. This experiment looks at 5 young and aged persons and for each of the individual we have a few data-points measuring their responses to a stimulus. The responses are categorical with four factors sa...
I learned that a statistic is an attribute you can obtain from samples.Taking many samples of same size, calculating this attribute for all of them and plotting the pdf, we get the distribution of the corresponding attribute or the distribution of the corresponding statistics. I also heard that statistics are made to b...
I'm currently using R to predict a time series with these instructions: X <- ts(datas, frequency=24) X.arima <- Arima(X, order=c(2,1,0), seasonal=c(1,1,1)) pred <- predict(X.arima, n.ahead=24) plot.ts(pred$pred) As you can see I've data each hour, and I chose the seasonal period of 24 (one day). I would like to improv...
I wish to run the Kolmogorov-Smirnov test on my data to determine how well it conforms to a specific continuous distribution function I have in mind. If my understanding is correct, the Kolmogorov-Smirnov test can be performed in R with something along the lines of: ks.test(my_data, "pweibull", shape=2, scale=1) where...
Suppose I want to answer the following question: Rank the explanatory variables from most important to least important. I want to do the following: Pick lambda from largest to small, and report in a table : when lambda is 100, 80, 60, 40, 20, 10, the explanatory variables are such and such and their loading are such an...
Consider the following example long data.frame with two dependent measures, "Score" and "NewVariable", 1 between subjects variable "Prep" (3 levels), 2 within subjects variables "Day" (3 levels) and "Experiment" (2 levels), and a subject identifier "SID". example <- structure(list(SID = structure(c(1L, 8L, 12L, 13L, 5L...
I am not sure if i should be asking this on the Mathematics of Physics Stack Exchange site. I am taking data for a physics research application and have a question about using median vs. mean averaging. I am concerned with the amount it takes to acquire each data point (location). For each point I currently take multip...
I have data where a rater predicts quality on a continuous scale, and quality is then validated in buckets. For example, one rater might give scores of 0.2, 0.4, 0.7, and 0.6 for cases with outcomes of LOW, MEDIUM, HIGH, LOW (respectively). This would be an overall decent rater aside from the fact that the fourth case ...
If I difference a time series and take out trend and seasonality ... does it mean we are left with only irregularity on which we plot the acf and pacf to arrive at the MA and AR order? Do 1st difference, 2nd difference always detrend the series, or do we need to detrend separately?
Possible Duplicate: Difference between logit and probit models I have data in which the response variable is binary. So, I fitted logit and probit models and obtained the results. How can I compare them to see which fit is better?
I am performing a non-inferiority test on two binomial trials. I want to determine if my test proportion, pT, is not worse than my control, pC, by more than an amount d. Assuming nT trials of my test and nC trials of my control, the standard statistic for such a test is given by (da Silva 2009) $$ z = \frac{pT - pC + d...
One can calculate the probability of a correct score of a football match by Poisson(Number of Team1 goals, Mean average Team1 goals) x Poisson(Number of Team2 goals, Mean average Team2 goals) So for 0:0 scoreline, Poisson(0, 1.05) x Poisson(0, 2.5) if mean Team1 is 1.05 and mean Team2 is 2.5. But how does one calcu...
I have a training set used to train an SVM classifier, the model found is used to predict a dataset of several unlabeled examples. I would like to know how to extract an index of the goodness of the prediction. I found some papers to estimate the prediction probability using the distance from the SVM hyperplane, but a...
It is a very usual procedure to subtract the mean and divide by the standard deviation in a set of data. If we deal with non-negative data, i.e. image, (in [0,1] or [0,255]), does this procedure make sense? Violating the non-negative constraint, what happens? I add some further considerations. Suppose you have an image...
In a planned study where I am supposed to assist, the goal is to measure the agreement between on one hand the results from an activity measurement device and on the other self-reported values. Both instruments are meant to measure physical activity in minutes. The instruments could not be expected to be particularly ...
I was thinking about this today so I decided to ask it here. I know the rule of adding probabilities. As I was taught in grade school "OR" typically means add and "AND" typically means multiply. Suppose there is a jar with a red, blue, green, and yellow ball. The probability of picking a red ball is 25%. The probab...
My question is about fitting GAMs with a random effect in mgcv, using s(x, bs="re"). I understand that determining the random effects structure should occur before determining the fixed effects structure in model selection, so I begin with a GAM with all possible smoothers and parametric terms: SBall.gam2 <- gam(coun...
Researching bivariate Poisson over the web is no easy task unless you can make sense of the Greek symbols. I am familiar with Poisson and have a deep understanding of it. So could someone explain bivariate Poisson with its formula so that I can fathom it. My whole model it seems should be based on bivariate Poisson and...