instruction stringlengths 9 38.7k |
|---|
Is the average of multiple positive-definite matrices necessarily positive-definite or positive semi-definite? The average is element-wise average.
|
Is there any reasons not to use MAE as cost function in logistic regression?
Yes, I know about problems with optimization, I know that this estimation won't be max-likelihood estimation.
But is there something else? Another pitfalls?
|
Assume there's a time series where peaks have been identified by some means as shown in the graph below. These could be voltage spikes recorded from some machine on an assembly line.
Visually one can look at the graph and see that the higher and lower amplitude peaks each repeat with some regularity.
What would be the... |
I was reading the standard/famous word2vec model and according to standord's notes for cs224n the objective function changes from:
$$J_{original} = -\sum^{2m}_{j=0,j\neq m} u^\top_{c-m+j} v_c + 2m log \left( \sum^{|V|}_{k=1} exp(u^{\top}_k v_c) \right)$$
to:
$$J_{NS1} = -log \sigma( u^\top_{c-m+j} v_c ) - \sum^{K}_{k... |
I am trying to parametrically model an unobserved variable $z$. (Does this even make sense?) It has one predictor $x$, which is nonnegative. If the predictor's value is 0, $z$ should be 0. If the predictor's value is greater than 0, it should lie between 0 and 1. If future values of the predictor are less than the aver... |
When training a neural net on a (somewhat balanced) dataset, the neural network will occasionally (1/3 of the time) get locked in predicting only one class. I've reduced the size of the layers as much as I can, so I'm looking for some suggestions as to
The type of optimizer and learning rate (I've tried SGD, Adam, Ada... |
My data is as follows:
X1 Y2 Y3 Y4 Y5 Y6
0 1 1 1 1 1
1 1.33333 - 1.22222 - 1.2
2 - 1.90909 2 - 1.8
3 - - 2.6 - 2.2
4 2 - 3.51111 2.1 3.2
5 ... |
I have fitted my model, checked the diagnostics, and it looks good.
From wiki, I now understand that "cross validation" can be used to check the predictive accuracy of my model.
How exactly does this work in practice?
Say my original data is 1000 data lines. So I split it into 5 groups. Then I fit a model on each gro... |
Q1: The main question is that can I say my own coded SGD algorithm converged based on the convergence plot below?
In the SGD code, the data is randomly shuffled in each epoch before calculating the gradient at each point in the order, the Robbins-Monro rule for step size is chosen, and the exponentially weighted movin... |
I have data with 3 columns: y represents dependent continuous variable, xcont represents independent continuous variable, xcat represents independent categorical variable with 3 levels: xcat1, xcat2, and xcat3.
I am doing simple model with interaction:
y = xcont + xcat + xcon*xcat
The statistical software I am using (... |
How does one actually apply SGD to word to vec?
My question are:
What entails a mini-batch?
Do we (at least conceptually) take derivatives wrt to all model params?
How does changing the objective function affect how do this? (negative sampling for example)
Its not clear to me what is the “data examples”. My guess is... |
I am reading about Box-Cox, Yeo-Johnson transformations.
I am looking at different choices of the power $\lambda$ for my models, and I just look at the qq-plot and pick the one that fits the best. Why? Because the reason I use these transformations in the first place is so my normality assumptions are met.
However, lit... |
I have run a poisson regression with two categorical predictors (treatment and disease severity) and their interaction, controlling for a number of relevant covariates. Treatment has two levels (control = 0, intervention = 1) and disease severity has three levels (none = 0, mild = 1, moderate = 2). My output shows a... |
I have a relatively large data set of 9M rows that is almost 1GB in size. The data looks like:
t e p acs acc v correct_p
t1 e11 p11 acs11 acc11 v11 0
t1 e12 p12 acs12 acc12 v12 1
t1 e13 p13 acs13 acc13 v13 0
...
t2 e21 p21 acs21 acc21 v21 0
t2 e22 p22 acs22 acc22 v22 0
t2 ... |
I am modelling on an univariate time series in a form as shown. Suppose the time interval in the series is daily base, namely every y was collected every day.
I wanna use sliding window method to model this but a key point is that my task is to predict a future y in a 120-day time window, i.e. given all historical dat... |
You draw two balls from one of three possible large urns, labelled A,
B, and C. Urn A has 1/2 blue balls, 1/3 green balls, and 1/6 red
balls. Urn B has 1/6 blue balls, 1/2 green balls, and 1/3 red balls.
Urn C has 1/3 blue balls, 1/6 green balls, and 1/2 red balls. With no
prior information about which urn you... |
I need to calculate the expected outputs (Yj) from a large non-linear simulation model (Mj) which takes 2^N possible input strings (Bi), each with known probability fi (simple binomial). N is typically 12 or more, e.g.,
Yj = E(Mj(Bi))
where Bi are
000000000000,
000000000001,
000000000010,
...,
111111111111
The calculat... |
I am trying to understand how XGBoost works. I already understand how gradient boosted trees work on Python sklearn. What is not clear to me is if XGBoost works the same way, but faster, or if there are fundamental differences between it and the python implementation.
When I read this paper
http://learningsys.org/pa... |
I am estimating a regression model with time-varying parameters with Kalman filter assuming that the coefficients follow a random walk. Then, I use OLS on expanding window, a.k.a. recursive least squares (RLS) to compare the results. I find that the confidence intervals around the KF estimates are much wider than those... |
Let's say I have a $k$-vector of numeric data $X \in \mathbb{R}^k$, and I want to plot a frequency distribution of all the data points in the vector.
I've tried searching high and low for a method (explained from the first principles) to determine the number of bins (or equivalently, the optimal bin size) to use for pl... |
My data set is about user creating files during one year. Frequencies are
number of files / freq
0 49
1 36
2 42
3 26
4 22
5 22
6 8
7 12
8 2
9 4
10 7
11 0
12 1
13 1
14 1
15 1
16 2
17 1
18 0
19 1
20 0
What is most suitable distribution for this data set.... |
In Wikipedia EM algorithm section of Gaussian Mixture examples , there are two likelihood functions:
incomplete-data likelihood function $L(\theta;\mathbf{x})$
complete-data likelihood function $L(\theta; \mathbf{x},\mathbf{z})$
which do we optimize when performing EM algorithm, why?
I was told by the tutor we optim... |
I am working on a classification problem where I try to predict for each individual to which of two classes (0 or 1) they belong. The data set I have shows about 99% of individuals are in class 0, and 1% in class 1. The model I use is obtained by logistic regression, with a cut-off probability determined by ROC analysi... |
I would like to know the best way, and ideally also less optimal ways, to predict, for "next week", the health index (outc_health_index) of subjects (subject_id), based on daily data (date) on whether they have gone jogging or not (pred_went_jogging) and on whether they did meditation or not (pred_did_meditation)
I am ... |
I want to know that how conditioning will affect the CDF of dependent random variables. More specifically, let's suppose,
$\Gamma_R={g\over A}$ and $\Gamma_D={g\cdot h\over B}$, where $g$ and $h$ are exponential random variables and $A$ and $B$ are some constant values. I want to find
$$\Pr \{min(\Gamma_R,\Gamma_D)<\ga... |
Is there a function to estimate the gain in predictive validity with the decrease of the standard error of measurement?
E.g. If the short version of a test has predictive validity of 0.35 and standard error of measurement of 0.4 what can we expect the predictive validity of the long version (with some new items added) ... |
I'm measuring a person's heart rate based on their position (gradually from laying down to standing up): I tried 8 positions.
Now, I recorded the heart rate of 15 people and I measured them twice.
Two questions I'd like to answer:
Is there a difference/trend between the 8 positions?
Is the first measurement the same a... |
I have a matrix of N gene-based observations (between 0 and 1) from 2 experiments like the following (The actual matrix is much bigger).
\begin{array} {|r|r|r|}
\hline
GeneName & Exp1 & Exp2 \\
\hline
Gene1 & 0.721& 0.733 \\
\hline
Gene2 & 0.072& 0.325 \\
\hline
Gene3& 0.66& 0.16 \\
\hline
Gene4& 0.244& 0.279 \\
\... |
If you'll look up for the definition of a (discrete) white noise process on the web, you'll find some sources that say:
"white noise is defined by zero mean, finite and constant variance, zero autocorrelation"
and roughly the same amount of them that say:
"white noise is defined by zero mean, finite variance, zero auto... |
I'm currently conducting a meta-analysis of pharmacist-led health interventions and their effect on levels of medication adherence. One of my studies has a phased intervention design. This means that Group A of participants received the intervention first, and three months later Group B of participants received the sam... |
For the sake of this question, I will consider a linear model as a statistical model such that $\mathbb{E}[y|\mathbf{x}]=\mathbf{x}\boldsymbol{\beta}$. I know that usually some more assumptions go in the definition of the linear model. However, the other properties are mostly needed for OLS estimation of the linear mod... |
I have measurements the protein level of ~1000 proteins in 10 biological tissues, and have thus performed 10.000 t-tests.
I am now doing a meta analysis, and thus using Fishers method to combine the 10x1000 P-values, into 1000 P-values.
Obviously I need to correct for multiple hypothesis comparison... but how:
you hav... |
I've been looking up the problem of deciding appropriate binwidths for histograms and here's my broad-level understanding so far:
If we have $n$ data points, we assume that they're realizations of $n$ random variables following an unknown distribution $f$. Histograms are essentially density estimators that attempt to d... |
Suppose we want to fit a logistic regression on a binary outcome y and we have limited set of continuous independent variables x1, x2 .. xn. And none of these independent variables in their raw form have clearly linear relationship with respect to the outcome probability, yet there might be some polynomial f(x) that co... |
Bayes Theorem:
$$Pr(A|B) = \frac{Pr(A)Pr(B|A)}{Pr(B)} \tag{0}$$
Furthermore:
$$Pr(A) = Pr(A|B)Pr(B) + Pr(A|\neg B)Pr(|\neg B) \tag{1}$$
Scenario:
Suppose we are not given that an event $B$ has occurred. Assuming we are given a base Probability of $A$: $(Pr(A_1)$ (this is our prior probability), subsequently, we are no... |
Let's say I have two vectors of $1$ and $-1$, and I want to know how similar these two vectors are. Is the use of the cosine similarity coefficient, justifed in this case?
|
I have the following data:
type distance
0 X 12572
1 X 11229
2 Y 14144
3 A 15781
4 A 15486
5 B 461
6 X 328
7 X 23
8 X 50
9 A 45
10 A 231
11 A 10779
12 X 11433
... .....
type refe... |
I am doing Microarray dataset analysis of Leukemia Cancer dataset.
The dataset has following details
Training :- 38 Samples, 7130 Attributes.
Testing :- 34 Samples, 7130 Attributes.
Dataset is real valued with two classes(Binary dataset).
Here, dimension of the dataset is too huge compared to no of sample. So I did P... |
I'm running a prospective cohort study in which I'm examining depression and dementia outcomes in nursing home residents from three facilities -- one experimental and the other two controls, with residents across facilities matched on demographic and clinical factors at baseline. Their depression and dementia outcomes ... |
I have two independent normal distributions with different mean and variance, such that.
$$f_1(x_1 \; | \; \mu_1, \sigma_1) = \frac{1}{\sigma_1\sqrt{2\pi} } \; \exp({ -\frac{(x-\mu_1)^2}{2\sigma_1^2} })$$
$$f_2(x_2 \; | \; \mu_2, \sigma_2) = \frac{1}{\sigma_2\sqrt{2\pi} } \; \exp({ -\frac{(x-\mu_2)^2}{2\sigma_2^2} })$$... |
My colleague took exception to this sentence in a genetics paper we are drafting together:
"For each genetic locus in which we identified significantly associated variants, ..."
He feels that "significantly associated" is an abuse of terminology, an (incorrect) shorthand for something like "achieving p-values below o... |
I am in a bit of a pickle with some data that I have obtained in a collaboration. This is a crossover trial in which 8 elite cyclists were assigned to two experimental conditions at different timepoints. I am unsure as to how to carry out the analyses. The study can be summarized in the following points:
All particip... |
I have my2pl as ltm data and my3pl as tpm data.
anova(my2pl,my3pl)
Likelihood Ratio Table
AIC BIC log.Lik LRT df p.value
my2pl 16317.52 16630.39 -8078.76
my3pl 16299.71 16769.00 -8029.85 97.81 40 <0.001
Shall I use ltm or tpm model based on this anova?
|
Some automated sampling is done (by a computer) on a collection of $N$ identical items. The sampling process consists in keeping each item with a constant probability $\alpha$ and discarding it with a probability $1-\alpha$. Call $X$ the number of items that have been kept at the end of the process.
The expected value ... |
I've an AR(1) model: $y_t = a_0 +a_1y_{t-1}+\epsilon_t$.
How can I demonstrate that the following form is equivalent?
$y_t$ = $\dfrac{a_0}{(1-a_1)} + \mu_t$
where $\mu_t = a_1\mu_{t-1} + \epsilon_t$
|
I'm performing a number of single-factor parametric statistical tests (in my particular case, random-effects meta-analytic linear models, but I guess the problem would be just as relevant with for example one-way ANOVAs) with different amount of levels.
For some of these tests, I have highly unbalanced designs, where o... |
I was reading about learning rate change in a machine learning course. The following statement and image appear:
Turning down the learning rate reduces the random fluctuations in the error due to the different gradients on different mini-batches.
So why if we reduce the learning rate, the error is quickly reduced afte... |
I was reviewing the answer to the question about the "Gradient of Hinge Loss" here: and noticed that one of the answers proposed returning of averaged weights in function:
def grad_descent():
...
return np.sum(ws,1)/np.size(ws,1)
I m curious if there is any special reason for averaging weights? Why not to find best w... |
Should I detrend data when doing a hypothesis test? It's daily sales data. One group with days of rain, one with days without. Taken from a group of about 100 days from the same time period ie Feb 2-may 5. I'm very new to this. Any help is greatly appreciated.
|
I'm a software engineer working on Deep Learning, but mostly for NLP. I have a Raspberry Pi 3 and some cameras and wanted to play around a bit with target tracking (implementing models from scratch in TensorFlow, not using OpenCV or similar), i.e. actually understand the techniques. What are currently the most importan... |
I'm trying to derive the MLEs and likelihood ratio rest statistic for the following hypothesis test: that the two means are equal against a two sided alternative. I need the MLE for u, σ1^2 and σ2^2. I'm struggling to find the MLE for two normal distributions with unequal variances.
Let X1 . . . Xm be a random sample f... |
Question: What is an appropriate extension of Tukey's method to proportions?
Normal situation
In one-way ANOVA problems
$$
y_{ij} = \mu_i + \epsilon_{ij}, \quad i=1,\ldots,m
$$
Tukey's studentized range statistic is often applied to pairwise differences $\mu_l - \mu_k$ is applied to correct for the multiple testing of ... |
Can a decrease in mean absolute percentage error (MAPE) be correlated with an increase in standard deviation of the error? Is that counter-intuitive? What about MAPE vs. mean absolute error (MAE)? I'm wondering if those metrics should follow a trend, or not necessarily.
Update
The general concern is as follows: when pe... |
I have implemented the tree building part of CART, but I'm wondering if it can be optimized. According to this quora answer, the complexity should be $\mathcal O(v \cdot n \log n)$ where $v$ is the number of features and $n$ the number of records.
Now my implementation looks as follows (in python, with some implementat... |
I was hoping you could help me interpret the following cross-correlation plot of U.S. and China short-term interest rate time series(1997-2015). I am a beginner to statistics, so I apologize if I am making simple mistakes.
Would it be correct to say that since a lag of 4-5 months will yield a correlation of just shy of... |
In a course on Machine Learning, in the chapter about a Perceptron, there is this statement:
If a generously feasible region exists, then the distance between the current weight vector and a weight vector in the generously feasible region will monotonically decrease as the learning proceeds.
Why is this the case?
|
I am seeing this plot (side 5) here a lot in machine learning literature. But how to read it? In general I know $\lambda$ is increasing from left to right, and we are getting larger coefficients. But
What are the x and y axis? and two scales of each axis?
|
I have a dataset related to work-safety that covers over 100,000 worksites over a course of 15 years. I would like to experiment with machine learning models to predict the number of injuries that will occur the next year. The objective is to create a tool that takes as input an identifier for the site and returns a pr... |
I'm arguing with a friend and he doesn't have a solid argument for his statement.
I claim that if a random variable is asymptotically unbiased then it is consistent, and that implies convergence in probability:
Example: Suppose i have a estimator $\hat{\theta}$ for a parameter $\theta$.
Suppose that $E(\hat{\theta}) = ... |
My research suggests that when an LMER/GLMER fails to converge due to a too-large deviance gradient...
e.g., Model failed to converge with max|grad| = 0.00297196 (tol = 0.001, component 1)
You should be worried.
Everything possible should be done to examine the data for problems and question your assumptions (i.e., ... |
In a given (including convolutional) network, suppose I have a pair of consecutive layers, the first with $x$ units, and the second with $y$ units, where $x\gt y$.
Will it be a problem if $(x-y)$ is large? For example, say, if $x\approx1000$, and $y\approx5$. To me, it intuitively seems so because it feels like a large... |
This is the situation: I observed 12 classes (4 elementary, 4 intermediate and 4 advanced) without any intervention or treatment. Each class was taught by a different teacher. Then I counted the number of uses of irony used by each teacher in each class. I came up with these numbers:
Elementary level Intermediate le... |
I am currently writing on my master thesis, therefore i have to find out if a specific moment had an impact on a time series.
By just looking at the plot I would say that after the prize reached his maximum at observation 831, there was a shift in the trend... in other words i would say there is a structual break. I w... |
Both this post and original paper, suggest R glmnet does not regularize the intercept.
But why I am observing the intercept shrink to $0$ in following experiment?
library(glmnet)
n=1e4
p=1e2
x=matrix(runif(n*p),nrow=n)-100
y=sample(0:1,n,replace = T)
fit=glmnet(x,y, alpha=0, family="binomial")
plot(fit$lambda,fit$a0)
... |
I have an odd question concerning the way one could assess that a value collected on a single individual differs from values collected on a group of people N (clinical research). This is a lot like assessing that an individual is considered as an outlier I guess.
I was just thinking of two ways of doing it:
firstly on... |
How should accuracy for a multiclass problem be calculated?
a) Overall accuracy: All_True_Positives/All_classes
b) Average of all the accuracies from each class. (Sum each accuracy and divide by the number of classes).
Thank you
|
I'm reading through Leeb and Pötscher's Model Selection and inference: facts and fiction (2005) (Link)
On page 28 they perform a calculation, but I'm not sure how they derived the result. The state:
Furthermore, we can also calculate, for given $\beta \not = 0$, how many
data points are needed such that the probabil... |
I hope I can phrase my question intelligibly
three groups of sample for a total of 192 individuals - group 1: 40 individuals; group 2: 82 individuals; group 3: 70 individuals.
the 95% CI range of disease-free period after treatment - group 1: 9-14.7 months (median: 12.8); group 2: 5.3-7.6 months (median: 5.7); group 3... |
As a result of some previous experiments at 5 different temperatures, I have 5 simple linear regression slopes describing the effect of body mass (independent variable) on water loss rates (dependent variable) of frogs. For a new set of experiments at that the same 5 temperatures, I used the predicted values from slope... |
I am little confused regarding finding expectation of vector multiplied matrix. X is vector having mean $m_x \in \mathbb{R}^{N\times 1}$ and variance vector $s_x \in \mathbb{R}^{N\times N}$. $\phi$ is a vector with mean $\mu_\phi \in \mathbb{R}^{N\times 1}$ and $\Sigma_\phi \in \mathbb{R}^{N\times N}$. Now I want to fi... |
Let us consider first case. I have logistic regression with one categorical variables with 3 distinct values. I can code as
Value A -> (0,0)
Value B -> (1,0)
Value C -> (0,1)
And with intercept my variables would look like
Value A -> (1,0,0)
Value B -> (1,1,0)
Value C -> (1,0,1)
Now once I have regression done, it i... |
I am trying to get an intuitive idea of RBMs out of curiosity, and using a simple example on youtube based on preferences for different sports, which denote profiles roughly corresponding to outdoor and indoor predilections. The idea is to target ads. Here is the model:
The examples in the sample are:
Example Football... |
I am trying to build an LSTM neural network to do sentiment analysis on twitter feeds. The dataset I use contains ~1.5M twitter feeds with either positive or negative sentiment (the tweets were ranked by the emojis they use). Additionally the tweets are made uppercase to simplify learning.
The reason I use LSTM is that... |
I need to do a statistical test for one of my study but I’m not sure which test is appropriate.
This is my experiment:
I measured performance of 30 tools (F1 scores) on classifying a pair of documents as similar or not. Then, I applied an enhancement process to every tool and measured the tools performance again (they... |
I am looking for any papers or suggestions of how one may perform training and inference for cloze tasks (fill in the blanks) with multiple blanks in the sentence.
In the case of just 1 blank, using an LSTM from both directions would be a good idea, but what about cases with multiple blanks?
After a brief pursuit, the ... |
I am comparing the consumption of algae given a treatment (5 levels) each at a unique site (N = 20). I deployed the same amount of algae at each site and assessed algal consumption by recording the amount of algae remaining at the end of the trial. Thus, the response is censored at the minimum consumption (0) and the m... |
I'm working at a project that would like to do topic extraction / classification from data, consisting of various NL sources (tweets, social network updates, pastebin). Data are very diverse in content and lenght, and extremely noisy.
The aim is to predict:
a) pertinence to a given set of categories
b) distinguish betw... |
Let $y:=\frac1n\sum_{i=1}^n x_i$, where $\{x_i\}_{i=1}^n$ is a set of i.i.d. random variables, and every $x_i$ has a lognormal distribution $x_i \sim\text{Lognormal}(\mu,\sigma^2)$. Let $\text{Med}[y]$ be the median of $y$. Is the following inequality true $\forall (n,\mu,\sigma)$?
$$\text{Med}[y]<\mathbf E[y]$$
|
If we have the linear model $Y_i-\bar{Y} =b(X_i - \bar{X}) + \varepsilon_i,\ i=1,..., n$ , then we can find easily an unbiased estimator $b^*$ for $b$ with the least squares method. If $c=(Y_n - \bar{Y})/(X_n - \bar{X})$ is another unbiased estimator, then which one is better to choose? I believe that the least square... |
What are the minimum details that i need to know in order to find the limit in probability of a specific random variable (such as the sum of several random variables)?
For example, suppose i have a sequence of random variables: $X_{1}, X_{2},...,X_{n}$ and i know that: $E(X_{i}) = \mu$ and $Var(X_{i}) = \sigma$ but i d... |
Point Forecast Lo 80 Hi 80 Lo 95 Hi 95
2017 Q1 230627.8 227619.2 233636.3 226026.6 235228.9
2017 Q2 230552.6 226719.9 234385.3 224691.0 236414.3
2017 Q3 236782.3 232580.2 240984.3 230355.8 243208.7
2017 Q4 242080.8 237454.1 246707.5 235004.8 249156.7
2018 Q1 243504.0 23... |
Assume I have a program that executes the following pseudocode
x = 1
for 0 to n
y = random real in [0,1)
if y < x
x = y
return x
What is the expected value of the return of this function wrt to n?
In english, set X to 1000. Choose a random real in the half-open interval [0,1) n times, setting the mini... |
Question:
Is there a rule of thumb for setting a non-diagonal covariance matrix for your Metropolis-Hastings proposal distribution? References are appreciated.
Background:
Say I have some posterior distribution I am interested in obtaining samples from $p(\theta|y)$. I choose an initial proposal distribution for a Metr... |
If the VC dimension of a fixed hypothesis class is $d$, then showing the gap between the sample and generalization error for any hypothesis in the usual agnostic computational learning problem is $O(\sqrt{d/m}\log^{1/2}\frac{d}{m})$ with high probability is a common problem addressed by elementary statistical learning ... |
VC complexity bounds are generally well-known for common hypothesis classes based on supervised learning ERM algorithms. However, VC bounds are independent of the distribution from which the data is assumed to be generated in an iid manner. This weak assumption suffices to prove that the gap between training and genera... |
I read that this is because the mean and variance completely specify a normal distribution. However, e.g. for a Poisson distribution the mean, variance and third moment can all be expressed with the same parameter lambda. Is this not what it means to 'completely specify' a distribution?
What is an example of two Poisso... |
I am doing a regression that involves many countries. One independent variable is revenues of sampled companies in each country. But the data I have use the reference countries' currencies (so I have multiple currencies).
The model requires me to scale the independent variables such as revenues using lagged assets (e.... |
I am assessing the economic impact of High-Speed Rail (HSR) between two cities using Difference-in-Differences. To do so I have a set of treated and control regions (indexed by i). I am assuming that treatment starts at the year t=2007, and I have data from 2000 all the way to the year 2016. My query is as follows:
I a... |
This is my first endeavor into linear mixed models, and I haven't found an example that uses a fully repeated measures design, so I was hoping that I could get some help.
I have a dataset that looks like this:
Mydata <- data.frame(
Subject = c(1,2,3,4,5),
Condition =c(rep(c("High", "Low"), each=50)),
Size =c(rep(c(8, ... |
I have a dependent variable dv and an independent variable iv in a timeseries dataset.
The iv varies independently from time. Instead, the dv varies not only in a cumulative way but is also equal to zero for a long period. I want to estimate the association between the two variables (and other control variables). I wo... |
In ARMA model, the error term is assumed to be white noise, i.e. independent and identically distributed. In ARCH model, we relaxed the assumption and let the error term to be uncorrelated but dependent. Then, we specify a structure for the error term. Is my understanding correct? Thanks.
|
I have been working through John Kruschke's excellent book on Bayesian Data Analysis but now have found myself in experimental-design territory not covered in the book: a longitudinal linear mixed-effects model.
I would like to test the difference in linear trend over time between two groups. There is a two-level betwe... |
There were many similar questions on this site , related to this but none were exactly to the point I wanted to ask
So the question is relates to ridge regression and This link where there is a statement(in bold) that
In a least squares fit where coefficient estimate given by
has no unique solution when is not invert... |
I want to perform two sample test on large dataset (in my case, each sample size is around one billion, and each data point is single real number). Which statistical test should I choose?
The null hypothesis is that two samples are from the same distribution, and alternative is that two samples are from different dist... |
I realize I can't invert the $X'X$ matrix but I can use gradient descent on the quadratic loss function and get a solution. I can then use those estimates to calculate standard errors and residuals. Am I going to encounter any problems doing this?
|
Setup:
I have data that seems to follow a lognormal distribution. By logging every data point, I can also generate a corresponding normal distribution. I wrote a python script to use maximum likelihood estimation to find the optimized parameters mu and sigma. This script is also used to generate a contour plot of an er... |
Suppose I have a high dimensional non-stationary non-linear time series,
then is it advisable to center the data on the mean when performing laplacian eigenmap?
I've heard somewhere that when performing machine learning, the performance and accuracy increases if the data is centered on the mean.
If it makes any diffe... |
I am trying to run a simulation in logistic regression but got trapped. Why I am only get ~71% accuracy even using ground truth of coefficients for prediction?
set.seed(0)
n <- 1e5
p <- 5
X <- matrix(rnorm(n*p), ncol=p)
beta <- runif(p)
y <- rbinom(n,1,prob = plogis(X %*% beta))
Note we can get the estimation of beta ... |
I am trying to interpret, for model 2, the betas for Success (Dummy 1/0). What is the probability females have success in technical fields and how do I calculate it with the betas.
m5 <- glm(success ~ female + technical + female*technical, data = subset(dt.data, company==0), family = binomial(link = "logit"))
m6 <- g... |
I checked my PCA code many times, and I can't find anything wrong. I do PCA with eigen-decomposition, by using the eigen function in R. My data is 2-dimensional, I want to reduce it to one dimension. I center my data. I don't understand why the distances in the image I send don't match relatively. I even compared my so... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.