instruction
stringlengths
9
38.7k
I am using the NIST randomness test suite which checks whether a bit sequence is random over 15 different tests. I have problems in verifying if this suite works fine. The situation is that if I input, for example, 10000 sequences of the same length (e.g., 1000) and generated by rand function of MATLAB, sometimes it pa...
In my research I have 3 domains of IV, 4 of MV and 8 of DV. To run mediation analysis I made possible chains from the results of stepwise regression and only one chain fulfilled the assumptions of mediation. Then I made the possible chains from the results of correlation and 12 possible chains fulfilled the mediation. ...
I need to generate random numbers based on already existing partial correlation data (not correlation or covariance data). Specifically, a 168*12 matrix based on a 12*12 partial correlation matrix. The idea is to simulate a data matrix that can be used for testing a few components of a project. Any help in this regard ...
As a follow on from here: Correlation between vegetation and erosion, I am having some trouble with the type of data that I have. I am confused as to whether my four categories are ordered. Specifically, my four groups within my categorical variable are: vegetation loss, no change non vegetated areas, no change in veg...
I'm expecting Groups 1 & 2 to be very similar and Group 3 to be different. I'm using a very large data set and feel that power won't be an issue. Initially I felt that I'd then be expecting a significant ANOVA, and then in planned comparisons I'd expect 1 vs 2 to be non-significant while 1 vs 3 and 2 vs 3 should be sig...
I have a database of patients with their heart rate before and after surgery. I would like to do a few analyses: Define a threshold value for an optimal heart rate (i.e., above which there is a significant risk of post operative complications). Test this hypothesis: Does increasing heart rate increase chances of pos...
I stumbled on to these following two slides (slides 21 & 22 on a machine learning tutorial found here): The first is obviously an $x,y$ scatterplot of height and weight. But what is the second? Looks like two component parts representing the original data, but I can really tease out what is going on. Any insight (or...
A group of raters (about 20) will be watching a series of videos and will be classifying them into 4 categories. I will be running a Fleiss' kappa to measure the agreement. How does one compute for the sample size to arrive at 0.8 power, 0.05 alpha? Also, will that sample size be the number of videos to be evaluated?
If $X = \begin{pmatrix} X_{1} \\ X_{2} \end{pmatrix}$ (with $X_{1},X_{2} \in \mathbb{R}^{n}$) follows a gaussian distribution $\mathcal{N}(\mu,\Sigma)$. What is the distribution of $\Vert X_{1} \Vert^{2}$ (where $\Vert \cdot \Vert$ denotes the euclidean norm on $\mathbb{R}^{n}$). If $\Pi=\left( \begin{array}{c|c} I_{n...
After using ezANOVA as my primary way of specifying mixed ANOVAs, I've hit a stumbling block when it come to adding a covariate to the model. I am using an ANCOVA in order to determine if there is a developmental trajectory in my data; namely, I need to be able to see the F-statistic and p-values for interactions with ...
I am comparing three distributions of values. Let's say A, B and C. If I find that the p-value of the Wilcoxon rank sum test between A and B is 1e-08 and between A and C is 1e-10, can I say that distribution A is more similar to B than it is to C?
I have a data set with 20 K variables. I have tried to select some features via Boruta and FSelector but I could not achieve because of lack of memory. I also tried to use bigmemory but I could not do it. Now, I am thinking to divide my data set's columns to k-fold, e.g. 20-fold, then I will select features for each fo...
Given $X$ has density function $$f(x)= \frac{e^{x}}{(1+e^{x})^2},\quad -\infty<x<\infty$$ How to show $\mathbb{E}(X)$ is finite. Thanks for your help. I am able to answer it now after getting help on stackexchange!
More specifically, why do the likelihood ratio tests have asymptotically a $\chi^2$ distribution if the models are nested, but this is no longer the case for the not-nested models? I understand that this follows from the Wilks' theorem, but unfortunately, I don't understand its proof.
Given $X$ is a continuous random variable whose density is symmetric about a point $a$. Show that $V=X-a$ and $U=a-X$ have same distribution. $$F_U(u) = P(U \leq u) = P(X-a \leq u) = F_X(a+u)$$ and similarly $$F_W(w) = 1 - F_X(a-w) \longrightarrow f_U(w) = f_X(a+w) = f_X(a-w)$$ by symmetry. Therefore, $f_U(u) = f_...
I have overdispersed count data where the outcome is events (occurrence of a rare disease) and the covariate of interest is season. The unit of analysis is the number of events occurring in a country-season combination. We have 16 countries and 4 seasons repeated across each country, thus 64 data points: Since I was s...
I have read the wonderful thread entitled Free resources for learning R. The question asks for resources to learn R "on the cheap". I have a similar question: What is the best and quickest way to learn R, regardless of cost? I am thinking of a week-long intensive course, or similar (could even be much longer). The cou...
I am trying to find a method or a formula to forecast meals per day, which have ̀5 meals to upload on flights, sales, wastage and passengers are what I have to consider, the old template is not completed yet, and its not so good to forecast, and I can't think of other formulas or methods to forecast , I have the sales ...
Assuming we have a sample (some observables) from a population of unknown distribution, can I assume that the right way to estimate the sample size (for estimating means, medians, etc.) is using the formula: $$n = 4s^2 / d^2$$ where $s$ is the sample standard deviation, $d$ is the margin of error (precision), and $n$ ...
In the context of a linear factor model, Bayesian Model Averaging (BMA) is used to obtain the posterior probability of all possible combinations of predictors. A final model is obtained as a weighted average of all models, where the weight of each model is its posterior probability. In the case of a large number of fac...
I have done linear regression and plotted the data, the regression line and also the confidence interval (for 95% confidence). However it seems that most of the data points fall outside the confidence interval. So how am I supposed to interpret the confidence interval. It cannot be I am 95% confident that the data p...
Given $X_t=\sin(2\pi Ut)$ with $U$ uniformly distributed over $(0,1)$ and $t$ integer, how can I prove that $X_t$ is weakly stationary? (I didn't manage to calculate the correlation because I didn't have the joint distribution of $(X_t,X_s)$.) How can I prove that $X_t$ is not strictly stationary?
I have traffic data for a website that simply shows total visitor each month over 12 months. I'm trying to establish if there's a general trend upwards or downwards. I seem to remember from high school maths that it would be whether or not there's a positive $m$ value in the equation $y = mx + c$ but I have no idea on ...
I have data on 44 firms that have all been ranked by an expert. The "best" firm has rank 1, the second best has rank 2, ..., the last one has rank 44. I have a bunch of explanatory variables and would like to explain the rank of the firm on the basis of these variables. My inclination is to use a regression model, but...
I have difficulty understanding the Structural Vector Autoregression (SVAR). I have some books about it, and have read them, but still cannot grasp the idea behind that concept. Can someone explain me the distinctiveness of SVAR compared to a VAR in simple words? In which situations is a SVAR more appropriate than a si...
So I am given the following question Data set sample5.txt has a 20-dimensional input $x$ in $\mathbb{R}^{20}$ but we suspect that many of these are actually irrelevant. Could you model the function $y = f(x)$ while - at the same time - figuring which dimensions contribute to the output? So it is a feature selec...
I'm using R to calculate the median absolute deviation for a few distributions, but some of the values I'm calculating do not seem realistic at all. I have the following distribution: x <- [1] NA NA NA -0.003 -0.009 0.004 -0.001 -0.001 -0.003 0.001 -0.002 0.000 -0.003 0.000 0.006 -0.011 -0.003 [18]...
So, it seems to me that the weights function in lm gives observations more weight the larger the associated observation's 'weight' value, while the lme function in lme does precisely the opposite. This can be verified with a simple simulation. #make 3 vectors- c is used as an uninformative random effect for the lme mo...
Okay, I have created a Random Forest, I get a very good prediction of response. What's next? How can I improve it further? I ask this because I often see competitions in Kaggle, where RF is used as a benchmark, and many people manage to obtain scores much higher than that of the RF based solution. In some cases, the da...
Lets say that I have a time series data $Y_{t}$. I'm trying to forecast using am moving average MA(1) model using Box Jenkins methodology. The following is the equation for an MA(1) obtained from a textbook. $$ Y_{t} = \theta_{0} + e_{t} + \theta_{1} e_{t-1} $$ I assume we would use some type of nonlinear optimization ...
Suppose that I have a regression model \begin{align} Y = X\beta_X + Z_1 \beta_{Z_1} + Z_2 \beta_{Z_2} + \varepsilon \end{align} where $X$ are some controls, and $Z_1$ and $Z_2$ are two sets of dummy ($\{0,1\}$-valued) variables. I assume that $Z_2$ does not depend upon $Z_1$, but $Z_1$ might depend upon $Z_2$ in the se...
I want to run a regularized logistic regression on a dataset with 25 million observations and about a 1000 mostly non-sparse columns with non-ignorable weights. My first choice would be BayesGLM, but I'm sure that isn't remotely close to computationally feasible. I was looking into the LASSO/ElasticNet implementations...
Let's say I have a collection of objects. Each object has a set of predictive attributes where the attribute may be true or false. Each attribute when true predicts "success" with a known probability, and these probabilities are not necessarily the same for different attributes. What is the probability of success fo...
I am trying to use logistic regression in SPSS. I am wondering, do I have to tell SPSS that, for example Gender, is a categorical variable? Also, I am planning to add more explanatory variables in a step-by-step manner to predict a dependent variable, in total I will have 7 models. Do I have to use the blocks option i...
When there are 3 predictor variables to consider, what is the correct procedure? Do we make box plots for all the possible 2 combinations or is there a way to compare 3 variables? Sorry if this is a basic question. The response is uranium response and there are 3 predictor variables: time, temp, and acid strength. All ...
Does anyone have a paper or other references on Bayesian group-Lasso for probit/logit model or GLM (generalized linear models) in general? I could not find any paper that explicitly deals with this.
My data: My outcome variable (Outvar) is binary (yes/no) My explanatory variable (exvar) is also binary (yes/no) I have 3 extra variables: Variable A is binary Variable B is continuous but not normally distributed Variable C is also continuous and has normal distribution I know from background that VarA, VarB and ...
I'm currently working with a dataset in R and my $B_0$ result is different when I run linear regression with & without converting the data into factors. And I want to understand what I'm doing wrong here. # IV: Time time = c(-1, -1, -1, 0, 0, 0, 1, 1, 1) time.f = factor(time, levels=c(-1, 0, 1), labels=c("low", "med", ...
Imagine that we have a family of probability disributions with p.d.f $f_{\theta}(z)$ where $\theta \in \Theta$. We also know that there is a linear dependence between parameters. As a consequence we can restrict to a nested model with p.d.f $f_{\theta}(z)$, where $\theta \in \Theta_{0} \subseteq \Theta$. Formally we ha...
I'd appreciate ideas about how to estimate the standardized mean difference (SMD) for two independent samples from each sample's size and middle three quartiles (i.e., median and 25th and 75th percentiles). This problem's context is a meta-analysis whose focal effect size is a post-intervention SMD between treatment a...
I am currently working on two marine species distribution modelling and also on their overlap distribution. For this I use a binomial logistic regression model (GLM) with response being, respectively, presence/absence species1, presence/absence species2, presence/absence overlap. My question concerns my first results c...
Usually, when we do prediction algorithms we are happy obtaining a specific classification rate on a population. My question is: Is there any way of extending that result to wider populations? In other words, if I obtain a 89% of successful classification rate on 1000 individuals, what can I say about the performance o...
Let's say I have an histogram of some continuous data with unknown and arbitrary pdf. I don't have access to the original raw data. So I don't know that 3 of my data points are 21, 25 and 27, all I know is that 3 of my data points are in the bin 20-30. How accurate is it to compute the moments of this pdf from the binn...
I have two time series of daily returns on two stock indices (S&P 500 and BOVESPA) that I would like to estimate the portfolio value at risk (VaR) for. Since these are indices from two different regions they do not naturally line up smoothly as their business days are unequal due to some country specific holidays. An...
I've just started building models in stan; to build familiarity with the tool, I'm working through some of the exercises in Bayesian Data Analysis (2nd ed.). The Waterbuck exercise supposes that the data $n \sim \text{binomial}(N, \theta)$, with $(N, \theta)$ unknown. Since Hamiltonian Monte Carlo doesn't permit discre...
I've got some ordinal variables b and a and a categorized variable c. I would like to fit a multinomial logit regression from the library car. I tried to ignore the ordinal scale. I have the following data: a<-c( 3, 4, 4, 4, 3, 4, 3, 3, 4, 2, 2, 4, 3, 3, 3, 1, 3, 2, 2, 3, 3, 1, 3, 2, 2, 3, 2, 3, 2, 2,...
I know that you can have a construct as a dependent variable: MANOVA or MANCOVA. Is it possible for me to have a construct as an independent variable? I have a construct that consists of 3 variables that I want to use as my independent variable and I have one variable that I want to use as a dependent variable.
My question concerns trying to justify a widely-used method, namely taking the expected value of Taylor Series. Assume we have a random variable $X$ with positive mean $\mu$ and variance $\sigma^2$. Additionally, we have a function, say, $\log(x)$. Doing Taylor Expansion of $\log X$ around the mean, we get $$ \log X = ...
I am exploring a time series with the aim of detecting obvious changes in variance over time (I have little experience in time series analysis). The hypothesis is that the series has become more stable over time (stable=decreased dispersion). I am wondering whether there are any strategies to visually assess how a me...
I've been learning PyMC for the last couple of days and have been trying to model the following problem: I have got a number of effectors that regulate targets with known values. For some targets the effector is known, but for others they are only partially known. The total number of effectors and targets is large, so ...
I have performed a regression in SAS and extracted the estimated correlation matrix of the parameters, which includes the intercept. One of my variable parameters has a strong correlation to the intercept parameter. I have not seen this before and want to be sure I understand what it means (if anything). Can anyone pro...
Under which conditions should we expect the difference-in-difference estimate to be equal to the equivalent panel data model? Strictly speaking, whenever we have a experiment that offers a well defined treated and control groups in two periods of time, for using difference-in-difference methods, people recommend runni...
I have a file that can be considered as a matrix with each row representing a measurement of gene expression of different samples (each column is a sample). I want to find those genes with the most interesting patterns of expression across samples. That means that several samples have a similar expression range, anothe...
I'm doing a logistic regression and I'm using a model where all included variables are dummy variables (0 or 1). Let's say we have a model with four independent variables and let the constant represent the reference category. Question: How do we calculate the marginal effect of one of the independent variables if the o...
Is it acceptable to run a logistic regression on a yes/no DV and include a predictor variable that is a count of the number of times something happened previously, but none of the cases has a zero count? It seems to me you would be testing if more than 1 event matters, but not whether the overall number matters compare...
I'm working with spatial fisheries catch data and environmental variables, and I'm correlating the abundance in the catch to some oceanographic parameters. I'm using a Generalised Additive Model (GAM) and a Generalised Additive Mixed Model (GAMM) with one and two random effects (mgcv package in R), in particular: m1 <...
would anyone please tell me the differences among the three methods? also i have a data in which the dependent variable is a count variable. is it classified as a level 1 variable? one of my classmates tried using HLM, and he clustered the DV into groups. Im not really familiar with hierarchical modeling. so i would r...
I am doing logistic regression in which I have a weighted sample data. Should I should have the weight option on or off when doing logistic regression?
I'm doing linguistics work and I'm trying to make a measure of linguistic diversity in a text. A simple calculation seems to be linguistic uniformity ( or diversity) = number of words / unique words But this must "privilege" shorter texts like poetry for diversity, since the author is less likely to repeat themselves i...
I'm trying to solve the problem below: Let $X_1,...,X_n$ be independent with PDF $f(x)=e^{-x}$ if $x>0$ and zero otherwise and define $$X_{(n)} = \mathrm{max}\{X_1,..,X_n\}$$ Find the CDF of $X_{(n)}$. Find a sequence of numbers $a_n$ so that the sequence of random variables $$X_{(n)}-a_n$$ is convergent in distributi...
I know this question was asked before: Reference book for ecological studies but it is not what I am looking for. What I am looking for is if anyone could recommend a good book (or a canonical reference) on statistical ecology? I have a very good understanding of statistics so the book could really be at any level. ...
I'm looking at changes in child obesity prevalence as well as other weight categories following an intervention. I'm trying to figure out which test to use for changes in a categorical dependent variable (I assigned values of 1-5 for children who were severely obese, obese, overweight, normal, underweight) pre and post...
I am working on an e-learning system with a friend for our final year (Computer Science) project which is part of the under-graduate programs mandatory 'courses'. I have a question about making inferences and therefore gauging the skill level of the 'subject (student) at hand' We have gathered the following data thus f...
I am analyzing a data set concerning intertidal communities. The data are percent cover (of seaweed, barnacles, mussels, etc) in quadrats. I am used to thinking about correspondence analysis (CA) in terms of species counts, and principle component analysis (PCA) as something more useful for linear environmental (not sp...
I would like to fit a general N-order polynomial of two or more variables. For example, consider (for reference) the general second-order polynomial in two variables $x$ and $y$: $$\beta_{00}+\beta_{01}y^1+\beta_{02}y^2+\beta_{10}x+\beta_{11}xy+\beta_{12}xy^2+\beta_{20}x^2+\beta_{21}x^2y+\beta_{22}x^2y^2.$$ Another exa...
What is the best way graphically to visualize a 3-D density function? As in I would like to visualize $$z=f_{X,Y}(x,y)$$? Not necessary but R code for this would be great.
Let $w$ be the decision boundary of a linear SVM trained on the dataset $D=\{(x_i, y_i)_{i=1}^N\}$. Suppose we apply a linear transformation A to examples $x_i$s and obtain a new dataset $D'=\{(z_i, y_i)_{i=1}^N\}$ where $z_i = Ax_i$. And let $w_2$ denote the decision boundary of the linear SVM trained on $D'$. Can we...
I never had the opportunity to visit a stats course from a math faculty. I am looking for a probability theory and statistics book that is complete and self-sufficient. By complete I mean that it contains all the proofs and not just states results. By self-sufficient I mean that I am not required to read another book ...
I'm studying the distributional properties of a laplace distribution, and I'm trying to get some intuition beyond plotting the distribution of what it means to have an undefined moment. In wikipedia you can see that the mgf is only defined for $|t| < 1/b$ so as the variance of the laplace distribution increases to 1, y...
I have a question in which it asks to verify whether if the Uniform distribution (${\rm Uniform}(a,b)$) is normalized. For one, what does it mean for any distribution to be normalized? And two, how do we go about verifying whether a distribution is normalized or not? I understand by computing $$ \frac{X-\text{me...
I have scoured lots of help sites and am still confused about how to specify more complicated nested terms in a mixed model as well. I am also confused as the use of : and / and | in specifying interactions and nesting with random factors using lmer() in the lme4 package in R. For the purpose of this question, let's as...
What diagnostic plots (and perhaps formal tests) do you find most informative for regressions where the outcome is a count variable? I'm especially interested in Poisson and negative binomial models, as well as zero-inflated and hurdle counterparts of each. Most of the sources I've found simply plot the residuals vs. f...
I have a sample where subjects dedicate a variable number of hours to an activity. During these hours, an event might happen. I have a contingency table such as Event happened No event happened Male 2000 30000000 Female 3400 43000000 I want to know, in this ex...
Is it make sense that time series method to be compared with non-time series method ? and if it is possible could somebody tell me which non-times series method can I apply to make comparison between time series method and others for make a decision.
I have the following dataset: urecovery time temp acid 1 86.88 -1 -1 -1 2 88.96 -1 0 0 3 93.68 -1 1 1 4 88.92 0 -1 1 5 86.96 0 0 -1 6 91.26 0 1 0 7 88.20 1 -1 0 8 93.20 1 0 1 9 88.75 1 1 -1 Where urecovery is th...
I wonder under what condition I should use Bayesian logistic regression instead of standard logistic regression, or vice verse? I have individual-level data regarding whether a person purchase a particular item online (say, 11 inch MacBook Air) or not (dependent variable y=1 if purchase, 0 otherwise), meanwhile, I hav...
I have a set of objects ${O_1, O_2, O_3, ..., O_n}$. I have calculated the pairwise distances of all possible pairs. The distances are stored in a $n\times n$ matrix $M$, with $M_{ij}$ being the distance between $O_i$ and $O_j$. Then it is natural to see $M$ is a symmetric matrix. Now I wish to perform unsupervised clu...
I'm reading a book on data-analysis and in my book I have the following picture of 3-dimensional data and its scatter plot: Could anyone help me understand how is the scatter plot interpreted? It confuses me at the moment...in other words: "How to read the 3D scatter plot?" UPDATE: I used the advices given to me by u...
I have conducted a study where I employed a two-way repeated measures design to investigate whether subjects respond to a main treatment effect. What I'm mainly interested in is whether subjects subsequently compensate for the treatment effect by returning to a control level, or whether the initial differences persist ...
I have modeled a distribution, $f$, over a r.v. $x \in \mathbb{R}^3$. At inference a set of measuring points, $X$, of the r.v. variables show up. I want to form a distribution over this sample set so that I can sample from it so that more probable points will show up more often. My idea was to evaluate $f$ for each p...
There is an experiment in which biological samples are taken for several treatments and a control. For each treatment, we have enough resources to evaluate 5 samples. Some researchers suggest (for technical reasons) that for each treatment, we should collect ten samples and pool them, such that we have five pools, each...
Does anybody know what type of chart that is? (some sort of bubble chart but with links between bubbles) http://en.wikipedia.org/wiki/File:PageRanks-Example.svg
I am working with a dataset of around 4000 variables. I decided to carry out a principal component analysis (PCA) for the data, but I am not quite sure about the suitable number of variables I should include in the test. Would feeding a big number (such as 4000) variables interfere with the PCA accuracy? As far as I c...
I don't understand the explanation in R's help file for effects(): For a linear model fitted by lm or aov, the effects are the uncorrelated single-degree-of-freedom values obtained by projecting the data onto the successive orthogonal subspaces generated by the QR decomposition during the fitting process. Can any...
Consider the scenario of making successive predictions about the outcome of a sporting event while it is taking place. I will use tennis as a concrete example because it has clearly defined moments at which it is sensible to make a new prediction (i.e. after every point is played) but I am also interested in cases such...
I'm analyzing the effect of precision error in optics experiments. One of the relevant quantities is a sum of $N$ complex numbers, each with a complex relative standard error $\epsilon$. How can I calculate the standard error of the summation? I've been thinking along the lines of a Gaussian random walk but have not ...
Given that $\mathbf{x}\in\mathbb{C}^{N\times 1}$, where $\mathbf{x}\sim\mathcal{CN}(0,\mathbf{R})$ then $\mathbf{x}\mathbf{x}^\mathrm{H}$ is complex Wishart, i.e, $\mathbf{x}\mathbf{x}^\mathrm{H}\sim\mathcal{CW}(1,\mathbf{R})$. If the PDF of $\mathbf{x}\mathbf{x}^\mathrm{H}$ is known, then what is the distribution of...
A clinical trial examines the effect of two treatments upon lung function. Patients in each group contribute data at baseline and at the end of the trial. Baseline data are provided for each group and then end of treatment data. I need to calculate the mean change (SD) over the time of the trial for each drug so tha...
I have a question regarding the interpretation of the tsboot call in R. I checked the documentation of both the Kendall and the boot package, but am no smarter than before. When I run a bootstrap using e.g. the example in the Kendall package, where the test statistic is Kendall's tau: library(Kendall) # Annual precip...
The formula for adjusted $R^2$ is: $$ 1 - \frac{(n-1)}{(n-p-1)}(1-R^2) $$ where $r^2$ is the coefficient of determination, $n$ is the number of points, and $p$ is the number of parameters the model has. If I want the adjusted $R^2$ from a holdout set, is $n$ the number of points in the data the model was trained on, o...
I am estimating an instrumental variables linear regression that has a large number of indicator (factor) variables. I don't particularly care about the coefficient estimates on those indicator variables. In Stata's ivreg2 package there is a "partial" option that applies the Frisch-Waugh-Lovell theorem to orthogonali...
@cbeleites mentions in response to the question How to determine best cutoff point and its confidence interval using ROC curve in R? that if one could specify the relationship between a false negative and false positive (e.g. a false negative is 10 x as bad as a false positive) that would give you a modification of th...
I just want to check my math on calculating the probability that a random sample will include a defective record. I have a population of 20,000,000 records. If there are 7,000 records of the 20,000,000 that have a defect, what is the probability that a 10% sample will contain 1 of the defects? A 10% sample would incl...
In multi-class classification problem, if the output neurons are activated by $tanh$ function, how do we determine the class assignment for the pattern? In case of sigmoid all output neurons would have value in $[0,1]$ and, using 1-of-C encoding of the response variable, the error is well-defined and the class determin...
This is a homework problem. I've derived the following distribution from an earlier part in the problem $$ f_{X_1,X_2}(x_1,x_2) = \dfrac{\Gamma(x_1+x_2+r)\alpha_1^{x_1}\alpha_2^{x_2}\theta^r}{\Gamma(r)x_1!x_2!(\alpha_1+\alpha_2+\theta)^{x_1+x_2+r}}$$ where $\alpha_1, \alpha_2, r, \theta>0$ and $x_1, x_2 = 0,1,...$. I ...
Suppose $a$ and $b$ are independent Poisson RV with $\lambda_a$ and $\lambda_b$ respectively. Find the pmf of $c = a - b$. Is $c$ a Poisson RV? Characteristic function of $c(w)$ would be $$E[e^{iwc}]=E[e^{iw(a-b)}]=E[e^{iwa}]*E[e^{-iwb}]=e^{-(\lambda_a - \lambda_b)(1-e^{iw})}$$ this is a Poisson RV.
I need help with a problem. Supposed x, y, and z are events in F (algebra of sets) in a probability space (universal set, F (algebra of sets), P). Define two random variables: a(omega) = {1 if omega is an element of set X {0 if omega is not an element of set X b(omega) = {2 if omega is an element of Y {1 i...
I have 42 DV's that I have individually modelled versus the same single IV - using GAMs via the mgcv package in R. This has produced a total of 42 individual models for each of my DV's and the associated p-vlaues. My question is: should I be adjusting p-values under the above circumstances? I understand that if one has...
In logistic regression, depending on the sign of the coefficient we can say, for example, that when predicting political interest, a coefficient of $1.226$ for following the news indicates that people are more likely to be interested in politics when they are following the news. However, can we say that based on this c...
I conducted a glm.nb by glm1<-glm.nb(x~factor(group)) with group being a categorial and x being a metrical variable. When I try to get the summary of the results, I get slightly different results, depending on if I use summary() or summary.glm. summary(glm1) gives me ... Coefficients: Estimat...