instruction
stringlengths
9
38.7k
I'm really struggling to select the correct statistical test. Basically, I have 2 groups and each group contains 10 people. People in group 1 are treated with a drug and people in group 2 are given a placebo. Both groups are trained on a memory test across 10 days. As both groups are trained in the memory test, their s...
I have a problem of text classification with only one text description column as predictor. The classes runs into 1500+ categories. Can someone suggest which algorithm will work best for this text classification problem with so many classes.
I am trying to assess If fish structure and composition differs significantly between two beaches with different levels of habitat complexity. As I only have one replicate of each type of beach, I adjusted my design in Permanova to account for pseudoreplication. However, reviewers of my work are asking me to test if my...
I have the question "Examine if the transactions are evenly distributed over the two years." The data-set i have got shows some sale over 2 years. I't might be a simple question i have got, but sometimes i make everything sound harder in my head and then don't know what to do :/ Question: What should the first thing i ...
Say I have a treatment variable x that takes the following values for four individuals i1, i2, i3, i4 over two time periods t1, t2: x: t1 t2 i1 0 1 i2 1 0 i3 0 0 i4 1 1 It could be a treatment variable denoting when patients get a medication for example. Some patients get the medication onc...
I have a binary dependent variable whose probability depends on a continuous independent variable, i.e., age. I have fit these into a logistic regression model and have the coefficients for the same. The problem is that I have 3 such curves (for 3 different groups - categorical) and I need to show that these three are...
Is there an example of dependent random variables $X$ and $Y$ such that $${\bf E}(X|Y)=0\ \mbox{ and }\ {\bf E}(Y|X)=0\ \mbox{ almost surely?} $$
I am comparing two test using different cut-off values with golden standart test . How is it to be reported. Is it sufficent to report sensitivity, specivity, PPV and NPV with 95 CI or should I evalute it with statistical test such as Mcnemar test or ROC. In some of papers, only the first one was reported whereas in ...
What is the use of the ntrees paramater in the predict function for gbm models in R ? When we fit a gbm model, we have already specified the number of trees and the model has been produced accordingly. Is it that the predict function can choose in the model produced at which level of number of trees it should be used ?...
We know that mean deviation and standard deviation are two different things but why are both of them equal to Range/2? Range ($R$) = Highest value - lowest value Mean deviation ($\text{MD}$) = average absolute distance from the mean Standard deviation ($\text{SD}$,$s_n$) $=\sqrt{\frac{\sum_{i=1}^n (x_i-\bar{x})^2}{n}}...
Suppose we have the following mixture model: $$\pi \sim Dirichlet(\alpha)$$ $$\theta_1 ,\ldots ,\theta_K \overset{iid}{\sim} N(0,1)$$ $$Z_1 , \ldots , Z_n \mid \pi \overset{iid}{\sim} Categorical(\pi)$$ $$y_1 , \ldots , y_n \mid Z_1, \ldots, Z_n, \theta_1 , \ldots ,\theta_K \overset{indep}{\sim} N(\theta_{Z_i},1)$$. W...
I want to solve the integral $$I =\int_{0}^{3} \frac{\exp(-s)}{1+\frac {1}{s}} \text{d}s $$ using importance sampling. I'm unsure as to how implement it. I have sampled random variables from an exponential distribution. $$ x = -\log(1-U)\ \text{with}\ U \sim \mathcal{U}(0,1) $$ Am I right in thinking that $$ \hat{I...
Say we are making maximum likelihood estimation of parameter $\theta$ observed data $y_1,\dots,y_n$ which are iid, a known density $f_X(\cdot; \theta)$ where $X_i = g(Y_i)$ where $g$ is a bijektiv monotone increasing or decreasing function. In this case, we can apply the change of variable to get $$ f_Y (y;\theta) = f...
I have a number $M$ of populations. From each population, I sample $R$ vectors, where each vector has $N$ real components. The entire dataset consists of $M\times R\times N$ real numbers. In this dataset I would like to identify groups of components (among the $N$ components) that exhibit similar variations among the $...
I'd like to try deep learning on about 200 CTs of cancer patients and I gave a lot of meta information about these people that I'd like to make use of in the classification (age, body mass index, chemotherapy response, etc). If I start augmenting the image data set using rotations and such, how do I deal with the fact ...
Q1. I want to test if my data are the result of a Poisson process. I need to check if: (1) The number of arrivals N(t) in a subinterval of length t obeys the Poisson(λt) distribution or (2) The inter-arrival times obey the Exponential(λ) distribution. Let's suppose I go for the 2nd option: I would implement a Goodness...
Why is Binomial data called Binary Data with repetitions? This is in context of Logistic Regression, where the response variable has a binomial distribution.
A class survey in a large class for first-year college students asked, "About how many hours do you study during a typical week?" The mean response of the 499 students was x = 15.3 hours. Suppose that we know that the study time follows a Normal distribution with standard deviation σ = 8.5 hours in the population o...
I believe that the default is sig. level = 95%, how can I customize that? Say, 85%? I read through the documentation but it didn't help much
I have two Variables containing hourly mean temperatures in SPSS. I'd like to compare the means for each hour (not the mean of the variable) for statistically significant differences, but I don't know what statistical test is appropriate. The data is not normally distributed. There are lots of duplicate cases here as a...
Suppose I have three sets of means and standard deviations or errors from separate studies that ask the same research question. M1 +/- SD1 M2 +/- SD2 M3 +/- SD3 How can I combine these separate values to produce one "average" confidence interval, like a meta-analysis would do, to produce an M_new +/- SD_new? Furthermo...
Consider two infinite sequences of indicators of events, $s_1$ and $s_2$, with respective relative frequencies $l_1$ and $l_2$, where $l_1\neq l_2$. Let $A$ be the indicator of an event not an element of $s_1$ or $s_2$. Consider new sequences $s^\prime_1 = (A, s_1 )$ and $s^\prime_2 = (A, s_2 )$. These sequenc...
I have been thinking through an analysis that asks the question: how do young versus old consumers purchasing differ in response to media coverage of a firm's product. I have a large random set of data of consumer good purchases for individuals in Ireland. I then collected information about news coverage for each firm ...
Like the title says, my residuals keep indicating an AR(3) model. My original model was AR(14), but the residuals' acf and pacf indicated an AR(3) and so did the ar function and auto.arima. So then I fit an AR(17), and then the residuals indicated AR(3) again. What could be going on here?
This might be a relatively simple question but I have not taken a course in econometrics in awhile and currently do not have access to my handy textbook that will explain. For example, I am trying to run a regression with NBA game attendance as my dependent variable, and ticket prices, all stars (amount of all-stars on...
I have a dataset whose response is binary(Yes/No) and the predictors are categorical(Department, Job role, marital status) as well as continuous (Salary, hours of work). So, can we use LDA for such dataset? Will similar logic apply to KNN?
Kaggle defines the log loss function as: https://www.kaggle.com/wiki/LogarithmicLoss $$f(w) = \log \Pr(y_t|y_p) = y_t \log(y_p) + (1 - y_t) \log(1 - y_p)$$ Let $y_t \in {0, 1}$, and $y_p$ is given by the sigmoid function $y_p = \sigma(w \cdot x) \in (0,1)$, where $\sigma$ is defined by $$\sigma(w \cdot x) = \dfrac{1}{(...
Sorry if this is a simple question, I couldn't find satisfactory answers easily on Google, but I'm trying to create a model that predicts whether an input belongs in 1 of X categories. So multiple numeric explanatory -> non-binary categorical response variable I've only learnt about linear and logistic regression in cl...
Context: I'm testing a hypothesis for a paper I have to write. I suspect that higher trait authoritarianism (sca) will positively predict greater support for US Supreme Court Justice Roberts (data gathered post affordable care act ruling) on its own, but will increase the negative effects of conspiratorial ideation (CI...
Beginner here, apologies if this is something very simple. I am trying to do a gradient ascent to estimate means for a Mixture of Gaussian model. I am using $(x-µ)/σ^3(2π)^{(1/2)} * e^{-((x-µ)/σ)^2)/2}$ for the first derivative of the gaussian distribution. My question here is, for the gradient ascent should I sum the ...
I have seven columns which represent some sample that has treated with some drug over a time-series (24 hours time-series i.e 0hr , 6hr , 9hr ...24hrs). The table below is a snippet of data that I am describing above: col1_0hr col2_6hr col3_9hr col4_12hr col5_15hr col6_18hr col7_24hr 0...
I was tweaking the Tensorflow MNIST Tutorial, and I am not clear why the weights are initialized using tf.zeros. If I switch to using tf.random_normal, or tf.truncated_normal, I see a very significant drop in accuracy. Any intuition why tf.zeros is better initial value of the weight and biases (even tf.ones perform the...
I read on wikipedia about the exponential family (https://en.wikipedia.org/wiki/Exponential_family) that: , but later on in the same article I read that: Some distributions are exponential families only if some of their parameters are held fixed. The family of Pareto distributions with a fixed minimum bound xm form a...
If I have two samples of spatial distribution (tweets), how do I test if they're from the same distribution? What are model is usually used to represent distribution of tweets? The data I have are scraped from a specific hashtag, containing user id, caption, location, time. It's tourists' data so it's very random, con...
Apologies, if the question has some error since my knowledge of statistics is limited. I am trying to predict DV using 9 IV. Using curve fit option in SPSS, I am finding that 6 of my IV have higher $R^2$ when a logarithmic or cubic curve is used over linear one. I am confused, in such scenario. should I be transformin...
I'm trying to fit a CES production function by running grid search over nonlinear parameters of capital share and elasticity. When I change units of measurement or normalise data, I get different estimates. How is that possible if elasticity of substitution is measure-free and should, in principle, be the same for what...
I have a data set (2003 rows and 2 columns) containing: years (2011 and 2013) and contact with hospital (yes/no). The persons answering the question are independent between 2011 and 2013. What test should I use to check if there is a statistical difference between the years? What test should be used if contact with h...
I have a number of measurements of values across time, each of these measurements belong to a process which either remains constant or goes down discontinuously (step down), never up. Now I have 4 such processes and 25 measurements of each of them, each process produced between 300 and 15000 measurements and I'm intere...
I have a trivial problem but I do not understand fully the k-armed bandit theorem from chapter 2. My question is based on Sutton's "Reinforcement Learning: An introduction, second edition". The exercise is as such: Consider a k-armed bandit problem with k = 4 actions, denoted 1, 2, 3, and 4. Consider applying to thi...
i try to find an algorithm that meets my expectations. Following Scenario: I want to predict the delivery of natural ressources (ores). So i have data with composition of the ressources from a delivery (with date and supplier). Now i want to predict the composition of the ressources, that the supplier x will send me at...
In R I am trying to run an ARIMA model rsi_model_2 <- arima(dlog_seasonal_RSI_ts, order=c(0,0,1), seasonal=c(0,0,1)) How do I make sure it uses Newey-West standard errors? Or should it make use of them automatically?
For the analysis of my experiment I used 2 one-way ANOVA tests. Both datasets were acquired from the exact same samples (and therefore population). They are merely two different parameters acquired. In one ANOVAs the Brown-Forsythe test was statistically insignificant. However, in the other ANOVA analysis the control g...
I have a question relating to use of Random Forests: My dataset's output are integers (0 to 19), and is unbalanced. The histogram below shows the distribution of the data. I am open to using either Random Forests regression or classification, however, I am uncertain how to evaluate the results. Regression produces cont...
I compare two countries (Germany and Sweden) and have 30 variables over 15 (2001-2016) years. Unfortunately, the first years (2001-2007) for Sewden and (2001-2006) for Germany have NaN (missing values). That is about 45% of my dataset. Here is a part of my dataset government_support_and_policies taxes_and...
This question is closely related to this question, but I do not fully understand the answer of @Taylor. Suppose I have $N$-x-$1$ random variables $\mathbf{a}$ and $M$-x-$1$ $\mathbf{b}$ which are independent of each other with known covariances matrices $A$ and $B$ and non-zero means $E(\mathbf a)$ and $E(\mathbf b)$...
My question is exactly similar to an earlier question Conditional on Gaussian, need clarification But I wasn't satisfied with the answer. I'll copy the problem statement : I'm reading Andrew Ng's notes on machine learning, and on page 12 of this document, he makes a step in his proof that I'm trying to decipher: Let ...
I am doing a project assessing whether participating in the rural land rental market helps to increase rural household's income in China. Hence this topic is relevant to development economics. In the past the rural land rental market is early none-exist in China but the situation is improving in recent years. I am wond...
Let us assume I sell a product that I have modified recently and I want to check if the old or the new version sells better. Therefore, I conduct an experiment in which a hundred people are offered the old version (group A) while another hundred people are offered the new one (group B). In the end, I have four numbers:...
I'm evaluating the effect of a policy change on a count outcome across a number of units over time. I have panel data for 300 units over 20 time periods, with roughly 20% of units exposed to the policy change at different points in time. I want to include unexposed units in order to better control for time trends. I'm...
I have a dataset which I ran the lm() below. fit <- lm(a~x+y+z,data = data) summary(fit) Call: lm(formula = a ~ x + y + z, data = mdata) Residuals: Min 1Q Median 3Q Max -100431 -1321 -829 70 51321 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 5157.4 ...
I have a data set where some binary features divide the sample space roughly in half, whereas other features are much less frequent and occur only for 0.0001 - 0.01 of the sample space. However, those rare features are much more precise and can approach the level of sufficient conditions for the corresponding class. I'...
I'm looking to start with an assumed true parameter $\theta$, and taking the normal distribution of the estimate $\hat{\theta}$ with mean $\theta$ and a known standard deviation (suppose it's $0.10$), and compute $E ( |\hat{\theta}|$, given $|\hat{\theta}| > 0.20)$, i.e. the expected magnitude of the estimate when sele...
In “Model selection and estimation in regression with grouped variables (2005)” , the authors (Yuan and Lin) claim that “It is easy to see that this is identical to the solution path of group LARS when X is orthonormal”. The piecewise linear solution path of group lasso is identical to the path of group lars if the des...
I have about 15000 observations on long term care centers per year, for a period of 10 years. My independent variable is binary and the outcome variable is continuous. I have performed ID and year level fixed effects in the past (by using i.year, fe). I was exploring the possibility of using a propensity score method a...
When implementing a neural net (or other learning algorithm) often we want to regularize our parameters $\theta_i$ via L2 regularization. We do this usually by adding a regularization term to the cost function like so: $$\text{cost}=\frac{1}{m}\sum_{i=0}^m\text{loss}_m +\frac{\lambda}{2m}\sum_{i=1}^n (\theta_i)^2$$ We...
The code below generates a set of test data consisting of a series of "signal" probabilities with binomial noise around it. The code then uses 5000 sets of random numbers as "explanatory" series and calculates the logistic regression p-value for each. I find that the random explanatory series are statistically signifi...
I'm new to modeling GLMMs and I'm having trouble to create a model for analyze my data. I'm doing a leaf damage analysis (response variable) depending on the group (with ants and without ants) and leaf age (three analyzes over the time). I analyzed three leaves per plant, which is a nested factor. I have: herbi - herb...
I wanted to verify that the standard error of the sampling distribution = $\sigma/\sqrt{n}$ USAccDeaths I used this above dataset from R Datasets Package population parameters mean(USAccDeaths) sd(USAccDeaths) Creating a Sampling Distribution n=40 #Sample size. nruns=10000 # Number of samples to draw. s...
I am running some experiments using word embedding features with Multinomial and Gaussian Naive Bayes in Scikit learn. As far as I know, Multinomial Naive Bayes works on features with distribution like word frequencies, it may work with tf-idf as well (according to Scikit learn documentation). On the other hand in Gau...
I have a document retrieval question that concerns collection of keywords. Some keywords occur as 1 word while some occur as multiple words. How do I penalize such documents? So, let's say I have a library of books and am working on a search engine. When a user searches for cookbook with reference to food, how do I not...
I have a bivariate data with A=log-logistic B=weibull distribution; A <- c(12.05, 9.91, 9.31, 1.4, 1.02, 3, 1.58, 3.08, 1.14, 2.09, 16.33, 2.62, 3.36, 1.08, 4.92, 1.53, 7.33, 1.38, 3.9, 4.87, 1.56, 2.38, 1.33, 1.55, 1.8, 5.61, 6.11, 1.57, 1.56, 5.07, 3.36, 2.48, 1.14, 3.21, 1.06, 1.07, 10.81, 1.12, ...
I have data on the mean assembly costs for the first n=36 days of production. It is assumed that the following data follows a Normal distribution: AC <- c(345.35, 346.25, 351.65, 341.75, 347.00, 288.95, 342.50, 330.35, 326.85, 341.25, 329.55, 327.85, 329.00, 363.50, 341.25, 329.90, 324.50, 338.90, 331.60, 333.8...
I am working on a linear regression project where I first removed insignificant variables, then looked at a possible transform of the data. I performed the variable selection smoothly, however am having trouble interpreting an effective transform for the data to fit the assumptions of a linear model. I after identifyin...
I am not from the field of statistics but would like to inquire about a certain factor that pertains to the level of confidence of a certain pile grade. For example: In mining, extraction can be determined by looking at the deposit as ore blocks, 5m x 5m x 3m. A row of blocks constitutes to a bench. Face samples were o...
Need to determine similarity of sentences in some body of text. The sentences are not exactly human language (internal technical terms and abbreviations), so word2vec and similar approach is not useful. Trying to line up all the sentences in 1-dimensional space and apply clustering. For that purpose I'm thinking of us...
I'm running regressions on an unbalanced panel dataset. I've ran panel regressions in other software, but this is my first time in R. I have a question about the "between" model in the PLM regression library. Just to walk you through my process so far: I've used plmtest() to determine there are significant effects wit...
I am unable to understand the practical use of Covariance and Variance. In my understanding, Covariance and Correlation are both measures of how one variable changes with respect to another. The only difference I see is that Correlation is scaled down to [-1, 1] Similarly Variance and Standard Deviation of how spread o...
I know that for sample proportions close to $0.5$, the normal approximation $\hat{p} \sim N(\hat{p}, \sqrt{\hat{p}*(1-\hat{p}) / n}$ can be used to estimate the distribution of this sample proportion. However, if I have a sample proportion of $0$ and a fairly large sample size of $n=90$, what would be the proper way to...
In Machine Learning, for linear regression we plot a graph for coefficient and cost function to look at the global minimum. How to plot the same graph in case of multivariate linear regression with multiple coefficient and cost? Is it possible to visualise for multiple features?
My goal is to predict electricity consumption given historic data for a time horizon of 36 hours. I understand how I can predict using GPs and historical consumption data; however, I also have access to temperature forecasts which is naturally highly correlated with electricity consumption. What I would like to do is ...
I'm trying to test if there are systematic differences in a balanced data.frame composed by 25 observations of 3 variables: 'data.frame': 25 obs. of 3 variables: $ sum: num 0 5228 7715 7715 7780 ... $ time: int 2012 2013 2014 2015 2016 2012 2013 2014 2015 2016 ... $ categories: Factor w/ 5 levels "I","II",..: 5...
I've already read this question, however I found it too theoretical for me, since I haven't studied time series yet. I have a time series that I have gathered from some measurements. At the current point in time, this is all the data I have: $(1, 1.5, 1.7, 0.5, 2, 2.3, 1.6, 1.7, 0.8, 0.4, 1.7, 2, 2.1, 2.5, 1)$ as time ...
So I have no calculus experience what so ever and I've been tasked to build a neural network so finding the derivatives is proving quite problematic with my limited calculus experience. I've got the feed forward part working but for the back prop part I need to work out how to calculate the derivatives so far I've come...
I analyzed my count data with Poisson GLM, before I fit a model, I check my original response data, there were no obvious outliers. However, there were some quite weird values in the diagnose model plots. Are there some methods I can go back to check my original dataset, or some other ways can make my GLM model better...
Let $X_1, X_2, \dots$ be i.i.d. with $X_i \sim 1-1/x$. It's well known that $$ \mathbb{P} \left[ \frac{X}{t} \leq a \: \middle| \: X \geq t \right] = \mathbb{P}\left[X \leq a \right]. $$ Let $X_{1,n} \leq X_{2,n} \leq \cdots \leq X_{n,n}$ be the order statistics of the first $n$ random variables $X_i$. Is it true that ...
We have a bivariate random variable $(X,Y)$ for which sampling is challenging. If we were to know how to sample from the conditionals $(X|Y)$ and $(Y|X)$, we could get samples from the joint using Gibbs sampling by iterating: $$x_{t+1} \sim (X|y_t)$$ $$y_{t+1} \sim (Y|x_t).$$ Assume however that we do not know how to s...
I analyse clinical data of rare diseases and an associated test which is an indicator for the disease. N(case,test=positive) = 5 N(control,test=positive) = 1 N(case,test=negative) = 49 N(control,test=negative) = 51 Note: Positive tests are rare but an accepted indicator A Fisher-Exact-Test Pvalue is not significant...
I was reading about deep Q-learning and came across this statement Neural networks are exceptionally good at coming up with good features for highly structured data from this blog. I want to why that happens and proof for that ?
My dataset ($N \approx 10,000$) has a dependent variable (DV), five independent "baseline" variables (P1, P2, P3, P4, P5) and one independent variable of interest (Q). I have run OLS linear regressions for the following two models: DV ~ 1 + P1 + P2 + P3 + P4 + P5 -> R-squared = 0.125 ...
Investigating how sound the fit was from R lme4::glmer.nb(), I tried plotting the response variable against prediction plus residual. I found they didn't exactly match. Can you explain why there is a mismatch? Am I omitting some other component from the sum (e.g. random Effects)? How worried should I be about this? Als...
Let us have a $k$-d tree in a unit cube in ${\mathbb R}^k$. Let the points of the tree in the cube be i.i.d. with some density bounded away from 0. How can I estimate the volumes of partition rectangles near a fixed point of the cube? To be more precise. Let $t$ be a fixed point of the cube. Let a $k$-d tree be built b...
Specifically, suppose you're considering outcomes on a roulette wheel. Roulette is a game of independent trials meaning that "the wheel has no memory" and past outcomes are no predictor of future outcomes (because in the case of roulette, draws are "with replacement" so each bet has the same probability of winning on e...
The definition of the min_child_weight parameter in xgboost is given as the: minimum sum of instance weight (hessian) needed in a child. If the tree partition step results in a leaf node with the sum of instance weight less than min_child_weight, then the building process will give up further partitioning. In li...
I'm toying around with autoencoders and tried the tutorial from the Keras blog (first section "Let's build the simplest possible autoencoder" only). For the encoding layer they use ReLus, while sigmoids are used for the decoding layer. I wondered why that is and changed encoded = Dense(encoding_dim, activation='relu')...
I am facing a prediction task where I have to predict the same information from the same process for a number of customers (on the order of thousands). The customers have a varying number of possible endpoints unique for every customer, which I should predict in addition. Is it better to build a single huge prediction...
Say I am running a regression to predict race time in an upcoming race. For each runner, I have a demographic information and one past race performance. For some subset of runners, I have another race performance. My model would therefore look like: Future Race ~ Demographic Info + Past Race1 + Past Race2 However, for...
I am running an OLS regression on panel data. The dependent variable is the governement yield of several countries. The independent variables are several macroeconmic variables (i.e. inflation, unemployment, etc.). My data consists of 10 years of data for several countries (100 observations in total). I am using the LS...
I have two groups of subjects ('intervention' and 'control'), I am observing how many times people attend a hospital over a period of time and basically just want to know if the groups differ from each other. What makes it complicated: The groups are of different size The subjects entered the study at different points...
I am trying to write a Named Entity Recognition model using Keras and Tensorflow. I am training on a data that is has (Person,Products,Location,Others). Amongst these entities, the dataset is imbalanced with "Others" entity being a majority class. As a result when I run predictions on my neural network with I am get...
Let $X_1,\dots,X_n \sim U(0,1)$ be independent and identicallly distributed standard uniform random variables. $$\text{Let }\quad Y_n=\sum_i^nX_i^2 \quad \quad \text{I seek: } \quad \mathbb{E}\big[\sqrt{Y_n } \big]$$ The expectation of $Y_n$ is easy: $$\begin{align} \mathbb{E}\left[X^2\right] &=\int_0^1\frac{y}{2\sqr...
Essentially, I have a statistical standardization method that I am running on data to show that the data is more significantly similar to the linear model Y=X AFTER standardization. I have a p value of .1 before standardization, and a p-value of .6 after standardization. Although the p-value before standardization is >...
I am fairly new to statistics, and during practice, i used this link between Chi-squared and F-statistics where F equals to ration between 2 Chi squared distributions. Can someone elaborate more on this relationship so that I can intuitively understand it?
I have a savings variable that I'm regressing on the real interest rate. I want to test for endogeneity but I don't have any instrumental variable, so I can't use the Hausman test. Why is it not sufficient to just regress the standard errors on the independent variable? Shouldn't that prove whether there is a correlati...
I am trying to perform a linear regression toa data with known x and y errors. The method I am using is called York linear regression. How do I fix the origin for this method, so it only fits the slope?
For example, say I have an input vector [0, 10, 0, 10, 20] representing 0 of item 1, 10 of item 2, etc. If I want to train on this data, is there some intuitive difference between the normalized vector: [ 0, 0.40824829, 0, 0.40824829, 0.81649658 ] versus a vector that's just the percentages of each relative to the numb...
I have data that I analyzed using a stratified PWP-GT extension of the Cox PH model and I am having trouble figuring out what I need to report in the upcome manuscript and how to interpret the stratified components. Briefly, the data contains information about how long it took individual insects to reach certain develo...
I would like to plot some graphs with the general form $f(x)=ax^3+bx^2+cx+d$ on the domain $[0.5,1]$. The parameters $(a,b,c,d)$ are dependent on some other variables $(p,q,r)$ and they satisfy all of the followings: $f'(0.5)=0.75a+b+c=p$ $f'(1)=3a+2b+c=q$ $f(1)=a+b+c+d=r$ $f(0.5)=0.125a+0.25b+0.5c+d=0.5$ where all $...
I am interested in estimating a model of the following form: $y_t = \beta x_t + \gamma y_{t-1} + \epsilon_t$ where $x_t$ represents several independent variables. The problem is that I am worried about autocorrelation, and I know that with a lagged dependent variable, Cochrane-Orcutt estimates might be inconsistent. ...
I understand the concept of identifiability in the context of distributions. This is $f$ is identifiable if $f(x;\theta) = f(x;\theta')$ for all $x$, if and only if $\theta=\theta'$. However, in the context of linear regression, I do not understand how to prove identifiability. In Wikipedia, it is stated that if the de...
I am fitting a two-step Tobit model through PROC QLIM in SAS. The first step of the model is a probit model for whether someone "responds" (e.g. makes a donation). The second step of the model is linear for the amount (e.g. amount of the donation, given that someone made a donation). I am using a two-step Tobit model r...