instruction
stringlengths
9
38.7k
I'm reading through Fan's SCAD paper and I feel like I'm not getting a simple step. On page 1354 where he is talking about quadratic approximations to a penalty function he has $$\left[\rho_\lambda(|\beta_j|)\right]' = \rho'_\lambda(|\beta_j|)\text{sgn}(\beta_j) \approx \left\{\rho'_\lambda(|\beta_{j0}|)/\beta_{j0}\rig...
How can I simulate a bimodal biased IV estimator? The common unimodal heavy-tailed biased estimator would be something like this: IV_data <- function(beta=10, lambda=-20, theta=0.5, n=50, mu=100, sd=2){ z = rnorm(n,mu, sd) u = rnorm(n, 0, sd) x = theta*z + u y = beta*x + lambda*u + rnorm(n, mu, sd) data.fram...
If the answer is "it depends", what does it depend on? Does convergence depend on the ratio of predictor variables to sample size, or the size of $R^2$, or something else? I am mainly interested in CIs on Unadjusted $R^2$, but would also be interested to hear the answer to this question in relation to CIs on Adjusted $...
Hi all, I am an undergraduate student who is currently doing an assignment. I am now facing a few problems which are:- 1) Age is usually a positive return to wage, but in my regression output, that's not the case. How should I interpret the signs and its coefficient then? And regarding the age^2, which is to test the ...
This is the standard technique that I have used to calculate the parameter of a single linear regression problem with one independent variable. How does the parameter estimation problem differ in multiple linear regression with 'k' independent variables. I assume I'd treat each independent variable in a multiple linear...
I was reading this wikipedia article and it states that MSE of a predictor is equivalent to variance of the error. To test it I did something like this a = randn(10,1); b=randn(10,1); sqrt(mse(a,b)) std(a-b) But the outputs are different, I get 1.3430 and 1.4292. I am not sure what's going on here. Any suggestions g...
I'm trying to do predict using multiple linear regression in R. I have been able to do the multiple regression bit, by converting raw data to data table. However, when i'm trying to use predict function, i'm unable to do it at multiple variable level, for each SKU ... as given below. SKU Sales Week AP Discount...
I have a dataset of 306967 rows and 23 columns, and I am building a regression model for predicting a factor based upon 6 other iid variables. Doing this I encountered an issue of large no of levels present in one of the iid variables, so to sort out it I used combine.levels in Hmisc package. The syntax of the general ...
$X $ follows $ Po(80)$. I used a normal approximation to get $P(55\leq X\leq 75)$ which I got correct. I need to find $P(X=80)$. I tried the Poisson distribution directly; however, my calculator shows an error when calculating $80^{80}$. The correct answer is 0.0446. Do we need to use normal distribution? Thanks.
Let $X_1,\dots X_n$ be i.i.d. and $N(\mu,\sigma^2)$ distributed. Let $$\overline{X} = \frac{1}{n}\sum_{i=1}^n X_i$$ and $$S^2=\frac{1}{n-1}\sum_{i=1}^n (X_i -\overline{X})^2$$ Then I know that through the distribution of $S^2$ one can very easily find its variance to be $$\mathbf{Var} (S^2)=\sigma^4 \cdot \frac{2}{n...
I'm coding an app, a part of which is graphing values from a database. The graph plots the average value of every 10% of the values up to 100% so there are ten points along the x-axis. The graph shows a trend of the lifetime of the stats. Hopefully this makes sense. I need to decide on a scale for the y-axis of the gra...
Similar questions have been asked but have not managed to get a conclusion from them. I am comparing two sets of samples, where ratios have been obtained for several analytes per sample. So the values are restricted to be in the [0,1] interval. One set of samples has been used as reference to set the limits for each an...
I want to analyse the effects of percentage mortality from two sources (a predator and a disease) on the population abundance of a host measured at 12 sites for 8 years, with the main aim being to look for any delayed density-dependent effects of the predator or disease on the host population. I plan to use GLMMs/GAMMs...
I am running a factor analysis and have a couple of questions. I have 10 variables, all of them come from a survey, with each answer is in the scale of 1 to 7. I have calculated a correlation matrix between the 10 variables, and looked for correlations of 0.5 or higher. These made me notice of 4 groups of correlated va...
This question is a follow up for this one: Feature selection and cross-validation If I do cross-validation of a process that includes model (features) selection (so I re-do model selection for each fold), can I use the results of this cross-validation to inform the final model selection on the whole training set? For ...
I have read that $\chi_n^2 / n \to 1$ as $n \to \infty$. Is this true? If so how could I go about proving it?
I am trying to figure out how to get odds based on a few factors and running into a few problems since I am a developer that is terrible at statistics/probability. My problem seems to be much like how the McDonalds Monopoly game functions with a few other variables. Here is what I am working with: 32 day contest 50 av...
I have been wondering about the F test that is provided by many statistical packages along with the standard regression output. As I understand it, F can be computed by $$ F_{df_{reg},df_{res}} = \frac{R^2/df_{reg}}{(1-R^2)/df_{res}}. $$ The hypothesis tested by this test can be formulated in two different ways: $H_{0}...
For my research on Mental health problems and correlates, child-parent relationship have identified as a correlate. Child-parent relationship is planned to measure with 6 questions and each question have five point scale of answers Example- question Strongly agree Agree Neither agree/disagree disagree St...
I have a three samples of data where each has a non-normal distribution: I want to determine whether the samples differ. Therefore I apply the KW test and it gives me a significant value, i.e. the samples come from different populations? This however, doesn't tell you anything about which are different. Therefore to c...
I have two classes (say 1 and 0), and want to build a classifier. It is possible to use artificial neural networks (ANN) or any "real" classifying method such as SVM or Random Forest. In case of ANN, one can easily estimates confidence level of classification. For example, if we have binary task (with outputs as 0 or 1...
I have a large set of tweets to which i plan to use cosine similarity to cluster the tweets. I found NLTK's GAAC to be good but how do i convert the tweets into vectors? In nltk.cluster.gaac.demo() the data was passed as a vector [array([ 0.70710678, 0.70710678]), array([ 0.4472136 , 0.89442719]), array([ 0.89442719...
I am trying to do a study of deaths due to malaria in order to find the best way to predict how dangerous this disease is. I don't have a strong background in statistics, I am an auto-learner building my knowledge using online courses. First, I collected the data this way : Statistics(gender, age, ..) | Number_De...
I need a rather a prior on the parameters of a Beta distribution (i.e. $\alpha$ and $\beta$). I have an external constraint that requires me to use univariate priors, one for $\alpha$ and one $\beta$. Ideally I would like to use two univariate priors that together are as close as possible to something like $p(\alpha,...
Assume that I have ten measurements of a physical quantity that must be non-negative (e.g., mass). Because of measurement error, some of the results are nevertheless negative. Can someone suggest a way to calculate the mean of the 10 measurements so as to incorporate the constraint that the true measurements and theref...
I have a question about a quit sophisticated model for a time series. Suppose $ \{X_t:0\le t\le T\}$ is a time series. The plot of autocorrelation function and partialcorrelation function suggest and ARMA model. However, I also want to model the volatility, hence I use a ARMA(p,q)-GARCH(1,1) model, say. This means $$ X...
I have a vector of gene expression values, across 20 patients. Each patient also has a glucose measure (a continuous numeric vector). I want to find how significant the real correlation value is compared to randomly distributed correlation values. Real Pearson calculated by: real<-cor(gene1, glucose) I generate a ...
I understand the AR(p) model: its input is the time series being modelled. I'm completely stuck when reading about the MA(q) model: its input is innovation or random shock as it's often formulated. The problem is I can't imagine how to get an innovation component having no model of the (perfect) time series already (i....
I am trying to understand (by reverse engineer) the method a program is using to calculate an average value over a population. The program displays a (very very large) image consisting of tiles. Each tile has some overlap with it's neighbors, expressed in pixels. In total there are 8625 tiles, hence 8625 overlap values...
I am trying to learn about Bayesian Model Averaging using Bayesian Logistic Regression (Genkin, A., Lewis, D. D., & Madigan, D. (2007). Large-scale Bayesian logistic regression for text categorization. Technometrics, 49(3), 291-304.), as found in the Weka data mining tool. I have two questions— What are the ways in wh...
Is the claim that functions of independent random variables are themselves independent, true? I have seen that result often used implicitly in some proofs, for example in the proof of independence between the sample mean and the sample variance of a normal distribution, but I have not been able to find justification f...
I get it, cross validation works. I'm wondering if there is an literature out there giving any theoretical justification for cross validation. My thought is that there should be, at least, something like the central limit theorem. Any pointers to literature, or comments are most welcome. Thanks.
Question: A single-pump petrol station is running low on petrol. The total volume of petrol remaining for sale is $100$ litres. Suppose cars arrive to the station according to a Poisson process with rate $\lambda$, and that each car fills independently of all other cars and of the arrival process, an amount of ...
Suppose I have a survival model like this: set.seed(123) require(survival) df<-data.frame(time=as.integer(rnorm(100,50,5)), status=rbinom(100,1,0.7), age=rnorm(100,60, 5), gender=rbinom(100,1,0.5)) df$time<-ifelse(df$time>=50,50,df$time) fit<-survreg(Surv(time, status)~a...
I'm looking to model land cover change using a variety of environmental predictors (e.g. elevation, rainfall, etc.) stored as raster layers. In most similar studies I've found in the literature the authors sample the raster layers at some subset of the cells before performing the regression. I'm trying to understand if...
I am studying classification and regression trees, and one of the measures for the split location is the GINI score. Now I am used to determining best split location when the log of the likelihood ratio of the same data between two distributions is zero, meaning the likelihood of membership is equally likely. My intu...
I'm analysing some behavioural data using lme4 in R, mostly following Bodo Winter's excellent tutorials, but I don't understand if I'm handling interactions properly. Worse, no-one else involved in this research uses mixed models, so I'm a bit adrift when it comes to making sure things are right. Rather than just post ...
I am trying to model the time until some event occurs for individuals observed over a 24 month period. For about 75% of people, no event occurs. For 15% of people, we know exact time of the event. For the other 10%, we only know a time window in which it occurs. So some sample "survival times" might be: >24 2.5 >24...
Let's say there are $N$ balls, $l$ of them have unique colours, $N-l$ of them are black. $D$ people uniformly randomly sample $n$ balls without replacement. Each person's sampling is independent of the others'. So they take $n$ balls, make copies of them, and then put the originals back for the next person. Now I want ...
I am building an item-based collaborative filter recommendation system. I have a matrix of users and items, which in this case, are products that were either bought or not (i.e., binary: 1 or 0). I can build an item-based CF out of this co-occurrence/association matrix (note: this is not a matrix of product ratings (...
I am not a statistician or mathematician but am trying to learn. My question: In Bayes Theorem, $p(C|X)=p(X|C)p(C)/p(X)$, what are the English terms for $p(X|C)$ and $p(C)/p(X)$? In other words, is $p(C)$ the prior probability? What is the comparable word for $p(C)/p(X)$? Is the likelihood part of the right side of th...
I'm having trouble understanding why calculating the standard error of the mean: $$ \widehat{SE} = \frac{\widehat{SD}}{\sqrt{n}} $$ gives me a different SE estimate than the SE estimate of a coefficient from a Gaussian GLM (identity link function) in R. Can someone explain why the maximum-likelihood estimators of the ...
I have two samples $ X_1,\cdots,X_n $ and $ Y_1, \cdots, Y_n $, and would like to re-order them so that they have a pre-specified value of rank correlation such as Kendall's tau. I do know that there are many ways to generate two samples that have a specific Pearson's correlation coefficient, but don't know whether the...
I am building a model and I think that geographic location is likely to be very good at predicting my target variable. I have the zip code of each of my users. I am not entirely sure about the best way to include zip code as a predictor feature in my model though. Although zip code is a number, it doesn't mean anythi...
From a large sample of triples $(X, Y, U)$ I need to estimate a function $(x, y, u) \mapsto f(x, y, u)$, such that for each fixed $x, y$, the function $u \mapsto f(x, y, u)$ is a density function; namely, the marginal density function of $U$, given $X = x$ and $Y=y$. Is there a standard way of doing this? My initial th...
I'm comparing two groups A, B after cross tabulating them with cases and controls. I get a table as such: Control Cases A 8 0 B 14 0 Obviously, I can't do an odds ratio because of the 0's. Doing a Fisher's exact test gives me a p-value of 0.5152 but the confidence interval goes from 0.16 to Infi...
I have data from a cluster randomized trial, that is, each subject in the same cluster has received the same treatment. Do chi square test and t-test need some adjustments? More precisely, which analysis have I to carry out in Spss to compare frequency in contingency tables and to compare means for quantitative variabl...
I looked at robust regression for the first time today and I am a bit confused, comparing it to something like ordinary least squares and I am not sure if I am on the right track. I read a few articles and they say that with robust regression you don't need to worry too much about outliers and heteroscedasticy and the ...
Suppose we can choose from two different catalysers. 10 observations are taken from the first one and 12 from the other one. If $s_1 = 14$ and $s_2 = 28$, can we reject at $\alpha = 5\%$ the hypothesis that the variances are equal? Here is what the teacher did : The ratio is : $s_1/s_2 = 0.5.$ Then $$P(F_{n=9, m=11} \...
I'd like to use a regression discontinuity design to evaluate a program where the discontinuity/assignment to treatment occurs at the group level. However, I'd like to measure the outcome at the individual level (as opposed to measuring the outcome as an average at the group level). I have three questions (feel free to...
Below I'm using a negative binomial because it is more flexible than a simple poisson model. The data are counts $y$ of events for 16 individuals $x$. There are 14 counts (i.e. counting periods) for each individual. The likelihood function is dnegbin($p_x , r_x)$ with a separate $p$ and $r$ for each individual $x$ draw...
Consider a two-stage sampling scheme: First, use weighted random selection from a list to obtain a set of N unique elements. Next, use uniform random selection to pick one of those elements. How can I counter the skew caused by the uniqueness condition when obtaining the first weighted set, so that the output selection...
In the linear SVM model, one may have the following equation to describe how to achieve a maximal margin while still classifying the data into 2 groups: \begin{equation} L(w, \epsilon) = w\cdot w + \lambda\sum\limits_{i=1}^R \epsilon_i \end{equation} In the above, $w$ is the weight vector and the $\epsilon_i$ are t...
I want to calculate the 95% confidence interval for a combination of binary data and continuous data. Lets say I want to estimate the production of a certain item from all factories of a given country. I know the size of the population (1000) and take a sample of size 50 for example. Out of the 50, say 10 produce item ...
Part A: Suppose I have 2 groups (pre-treatment, post-treatment) and for each subject I record 3 variables. So my rows look like: pre post var1 var2 var3 | var1 var2 var3 I'd like to examine whether the treatment affects var1, var2 and var3. Can I simply do 3 paired t-tests ? Like: paired-t-test(var1-...
There is a random vector $X=(X_1,\ldots,X_p)$, with $p$ large, $E[X]=0$ and $V[X_j]=1\ \forall \, j=1,\ldots,p$, but the correlations are different from zero. We cannot assume multivariate normality for $X$ (the marginal distributions are slightly skewed and heavy-tailed, as common in financial data). Say we have a tra...
Scenario I am inspecting the Soybean data set, which has a quite a number of missing values for various categorical variables. Plan My plan is to eventually perform data imputation. However, currently I am trying to understand the mechanism behind these missing values (MAR, MNAR) using graphs, as will be presented belo...
I have modified the original question. Does beta distribution function $$f(x,\alpha) = \frac{[x^a(1-x)^b]^\alpha}{B(a\alpha+1,b\alpha+1)}$$ where $B$ is the beta function, approach delta function $\delta(x-a)$ on $[0,1]$ as $\alpha\rightarrow\infty$, in distribution, for fixed positive $(a,b) \ni a+b=1$?
I sucessfully find the standard error of difference, but can't get the t value right. According to this calculator , I am supposed to get a sd of 0.092, which I do. But for some reason, when I do $t = \bar{d} / (sd / \sqrt{11} $ I get 11 instead of 3.xxx Here is the answer, but I can't figure what I've done wrong abou...
I have a dataset in which I have measured a dependent variable (let's call it $Y$) along with several independent variables $(X_1, X_2, X_3)$. The independent variables are correlated with one another to some extent. I would like to understand how $Y$ varies with $X_2$ when $X_1$ and $X_3$ are held constant. What appro...
I am trying to find the area with thickest density. I have newborn numbers by day for which I am trying to find the series of 7 consecutive days that would produce the highest frequency. So the start and end dates are not tied to any particular day of the week the period can start on any day but would end in 7 days fr...
I'm optimizing 5 parameters for an option pricing model. Now I want to asses whether these parameters are stable over time (i.e., a year). For this I create about 12 subsamples and estimate the optimal parameters for each subsample (I do this by minimizing a cost function, i.e., chi-squared, under a certain threshold)....
Let $X$ be an $m\times n$ ($m$: number of records, and $n$: number of attributes) dataset. When the number of attributes $n$ is large and the dataset $X$ is noisy, classification gets more complicated and the classification accuracy decreases. One way to over come this problem is to use linear transformation, i.e., pe...
I have the following table: From here I want to answer the following question: P(CHILD CAN RECOG BEG SOUNDS OF WORDS – YES | CHILD RECOGNIZES LETTERS - Most of them). From my understanding of this I am saying 81.1%, am I reading this correctly? Child Can Recog (Recognize) Beg (Begining) Sounds of Words. So what I am ...
I have two experimental groups. Then I test their normality respectively. Result shows that one is positively skewed and the other is negatively skewed. In this case, how should I do the data transformation? Can I log transform one group and reversed-log transform the other group?
Using the simple linear regression model: $ {y_i}= {\beta_0} + {\beta_1}x_i + \epsilon_i$, where E[$\epsilon_i$]=0 and var[$\epsilon_i] = \sigma^2$... If $ \hat{y_i}= \hat{\beta_0} + \hat{\beta_1}x_i$ and $ \hat{y_i^*}= \hat{\beta_0} + \hat{\beta_1}x_i^*$ (where $\hat{\beta_0}$ and $\hat{\beta_1}$ are ordinary least s...
I had a discussion with a statistician back in 2009 where he stated that the exact value of a p-value is irrelevant: the only thing that is important is whether it is significant or not. I.e. one result cannot be more significant than another; your samples for example, either come from the same population or don't. I h...
I am trying to find which factors in Ques 6 are strongly related to company being rated high as compared to others in Ques 4 and similarly factors related to company being rated low.
I am employing EFA to 56 items. However, there were cross-loadings occurred and, therefore decision to drop the items is made. The question: The rotated components matrix showed there were a few items with no-significant loadings in any of the components, so, should I remove/drop the non-loading items and re-run the EF...
Suppose we've ran a logistic regression on some data where all predictors are nominal. With dummy coding the coefficients are ratios of log odds to the reference levels. A colleague claims that we can "solve for $p$" or "apply the inverse logit to the estimated parameters" interpret the result as relative probabilities...
I am trying to cluster a bunch of executable files, and I want to use NCD ( normalized compression distance) as the distance metric. Is there any software package which lets me do that? Update: I'm using a python script which produces a distance matrix for example for 4 instances like: [[1.0004239875837764, 1.000458740...
I am using a panel of 2249 schools with data from 2002-2008. Some of the schools are single sex schools whilst others are mixed sex. Some background on my regression: Consider the determinants of school performance (as measured by the percentage of pupils in the school who get 5 A*-C grades at GCSE: sch5ac). Start by u...
I'm new with AB testing and i want to do this with R (free and easy to learn software). Can anyone help with sample code in R for AB testing? Thanks Ariel
I am using the script allfitdist to find which distribution best fits my data according to the tests included (BIC, AIK etc...) - these all stem from the script using the fitdist function in the statistics toolbox. I manage to do this and get a nice historgram with the various distributions superimposed on my data. Thi...
I have a regression model and I want to determine the relative importance of the predictors. I used the package relaimpo in r. The package says that 98.84% of the variance is explained by the model Response variable: C Total response variance: 115.4857 Analysis based on 161187 observations 10 Regressors: I(VPT^(-0...
If $X$ and $Y$ are two random variables with probability density functions which are symmetric around their respective means, their sum, $X+Y$, has a probability density function which is symmetric around its mean as well. Could someone offer a proof outline? Thanks. Edit: whuber's example (see comments) shows that th...
Why was not mean included in the five-number summary, when it was first conceived? What was the motivation of choosing sample minimum & maximum, lower & upper quartile and median?
I have pooled data for 3 years, and I have come across the problem of serial correlation. Some books mention the problem of serial correlation when pooling the data. My question is: is it possible to test for serial correlation with pooled data? Also, when using Fixed effects model and random effects model is serial co...
I have a correlation matrix of 8,854 * 8,854 size. These are Pearson correlation coefficient values in the matrix. I want to perform Hierarchical clustering and create good resolution images like I have attached. A step by step explanation would be a great help.
first time questioner, so please be gentle :) I have two distributions of data from a simulation. By eye, one looks like it might be bimodal, one not. I copy them below A: parameter value 1 : by eye possibly bi / multi modal B: parameter value 2 : by eye unimodal I thought I would use Hartigans' dip test to test H1...
I've been reading Hoekstra et al's 2014 paper on "Robust misinterpretation of confidence intervals", which I downloaded from Wagenmakers's website. On the penultimate page the following image appears. According to the authors, False is the correct answer to all these statements. I am not very sure why the statements a...
This is data cleaning and preparation stage question for me. I apologize if the question is basic, but I am a beginner. I have a dataset of a bit less than 4500 records. This is a survey and year of birth is an important field. Now 670 records do not have this information. I am inclined to think that I should treat thi...
Take this example: data <-matrix(c(227,751,193,541), ncol=2) column1 <- c(227, 751) probabilities <- c( 193/(193+541), 541/(193+541) ) chisq.test(data) chisq.test(column1, p= probabilities) when i apply the chi-squared test providing a matrix the results says that this is a Pearson's Chi-squared test with Yates' con...
Suppose I have a linear model predicting class-membership from a set of predictors. Now, I am going to classify a new observation which has, however, some predictor values missing. How can I deal with such situation? I know there are methods for imputing the missing values but I would like to avoid this and to use only...
I'm looking at the influence of pollen type on whether a flower sets fruit (i.e., yes or no = 1 or 0). Then looking at number of seeds per fruit (1-6 possible). I was told I should use lmer, however it gave me an error: calling lmer with 'family' is deprecated; please use glmer() instead I've used glmer(FruitYesNo~...
I have constant time series (yearly from 1950 to 2010) of the abundance of several species that were captured by different groups. These series are somewhat related because the quantity of all species captured is dependent on the same effort (which is not always the same each year, but evolves differently per group). A...
I've been told by my stats prof that running an ANCOVA relies on a series of assumptions, including that the the dependent variable and the covariate are linearly related. So, in SPSS the first thing to do before running ANCOVA is to check for bivariate correlation between them. The question is, if that correlation is ...
Here is a quote from Bishop's "Pattern Recognition and Machine Learning" book, section 12.2.4 "Factor analysis": According to the highlighted part, factor analysis captures the covariance between variables in the matrix $W$. I wonder HOW? Here is how I understand it. Say $x$ is the observed $p$-dimensional variable, $...
Here is some sample data: structure(list( y.t2 = c(NaN, 0.05, 0.02, 0.02, 0.02, 0.04, 0.06, 0.05, 0.07, 0.1), n.t2 = c(0, 231, 228, 219, 210, 175, 250, 255, 270, 257), y.t3 = c(0.07, 0.11, 0.2, 0.19, 0.17, 0.12, 0.18, 0.23, 0.18, NaN), n.t3 = c(226, 224, 223, 208, 206, 224, 228, 246, 233, 0), x = c(-6, 0, 2.7, -0.1...
While it's easy to compute the p-value of Krsukal-Wallis non-parametric test using the kruskal.test() function, I don't know how to compute the mean ranks and standard errors for each group. For instance suppose the following example: x <- data.frame(group=rep(1:2,each=10),height=runif(20)) kruskal.test(x$height, g=x$g...
I would like to get a p-value and an effect size of an independent categorical variable (with several levels) -- that is "overall" and not for each level separately, as is the normal output from lme4 in R. It is just like the thing people report when running an ANOVA. How can I get this?
I have two classes (say 1 and 0), and want to build a classifier. It is possible to use artificial neural networks (ANN) or any "real" classifying method such as SVM or Random Forest. In case of ANN, one can easily estimates confidence level of classification. For example, if we have binary task (with outputs as 0 or ...
I've seen a reasonable amount of literature about how to choose kernels and bandwidths when computing a kernel density estimate, but I am currently interested in how to improve the time it takes to evaluate the resulting KDE at an arbitrary number of points. In my case, I'm using a multidimensional (2D or 3D) Gaussian ...
I have a large set of tweets to which i plan to use cosine similarity to cluster the tweets. I found NLTK's GAAC to be good but how do i convert the tweets into vectors? In nltk.cluster.gaac.demo() the data was passed as a vector [array([ 0.70710678, 0.70710678]), array([ 0.4472136 , 0.89442719]), array([ 0.8944271...
Suppose my two marginal bases are given by (for variable $p$ and $t$ the degree is equal to $1$ and $5$ inner knots are used). > bp p.1 p.2 p.3 p.4 p.5 p.6 [1,] 1 0.00 0.00 0.00 0.00 0 [2,] 0 0.75 0.25 0.00 0.00 0 [3,] 0 0.00 0.50 0.50 0.00 0 [4,] 0 0.00 0.00 0.25 0.75 0 [5,] 0 0.00 0.00 0.00...
For a project, I've collected some basic information on weather, and some basic information on births. Both data sets are focused on a single state, Massachusetts. The weather set contains very basic information: the weather event (hail, winter storm, etc.), and the month it occurred in. Not very granular. Similarl...
Is there any way to construct an expected conditional probability distribution of the form p(x|(y,z)) if I am starting with p(x|y) and p(x|z)? All variables are categorical. My specific problem deals with a DNA multiple-sequence alignment. Abstractly, I have a two-dimensional dataset, where each position can hold one o...
I wonder how the output $var.pred returned by ar.ols() in R is defined? It is not the variance of a prediction value, is it? I guess no, because the variances of $n$-step ahead forecasts may be different for different $n$, correct? Does it equal the covariance matrix of the forecast error? Does it equal the residual co...
Let $X_1, X_2, ..., X_n$ be a random sample from discrete uniform distribution on $(1,2,\ldots,N)$, where $N$ is an unknown positive integer. Find MLE of $N$ and also find the distribution of the MLE. I have been able to find the MLE. Fairly obvious, it is $X_{(n)}$, the $n^{th}$ order statistic, if I am not mistaken. ...
I am writing a research report for my final university project. For my analysis I have used logistic regression. I have provided research questions which have been answered. So, how important would it be to include a hypothesis'? Is it ok to leave these out? Many thanks