instruction stringlengths 9 38.7k |
|---|
In non-linear panel models, such as in a panel logit model, the incidental parameters problem may occur if T is small. From Cameron and Trivedi (2005), the incidental parameters problem may be addressed using a conditional maximum likelihood estimator, and is eliminated by conditioning that:
My question is that whet... |
I understand that when fitting a Linear Model you might want to model a random effect which is violating the independent residuals between samples rule.
For example looking at the survival rate of patients 2000 who go to a clinic by looking at the age, height, weight, sex. Another factor will be the doctor that they ar... |
It's a lot of time that I don't do probability stuff, so probably this is a very naive question for most of you. Anyway..
For the linear (fisher) discriminant we have an inpu $X$ and an output $Y$ and, in particular, we assume that
$$ Y\sim Bernoulli(\pi)$$
$$ X|Y=k \sim N(x|\mu_k,\Sigma)$$
Then, when I want to obtain... |
The following is yielding a score of 0.0! I must be doing something wrong:
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import LeaveOneOut
from sklearn.model_selection import cross_val_score
from sklearn.datasets import load_boston
boston = load_boston()
score = cross_val_score(Rando... |
I have a dataset with 10 independent variables and one response variable. They are all in integer types. V1 - V10 are numeric values rounded to closest integer values which are always in range of [1, 11], Response is a categorical data represented by integers 0, 1, 2, 3, like such:
'data.frame': 2997 obs. of 11 var... |
I'm navigating my way through the plethora of regression models to find some form of standardized residuals that could help "score" the observations in proportion to their "outlyingness" for the purpose of anomaly detection.
The data is a (weekly) seasonal time-series of (over-dispersed) hourly call-counts, thus advoca... |
I have ran a logistic regression on my data in SAS.
I get in the results a "Type 3 Analysis of Effects" which gives me a probability for my variables including a categorical variable. The probability of the results being greater than Chi-Square is less than 0.0001%, so this independent variable seems to be correlated w... |
I am working through an example of Add-1 smoothing in the context of NLP
Say that there is the following corpus (start and end tokens included)
+ I am sam -
+ sam I am -
+ I do not like green eggs and ham -
I want to check the probability that the following sentence is in that small corpus, using bigrams
+ I am sam gr... |
Let $\hat p$ be the sample proportion of successes. Is $\hat p$ squared, an unbiased estimator for $p^2$? [hint: For any rv $Y$, $E(Y^2)=V(Y)+[E(Y)^2]$]
If I replace $Y$ by $p$, I will have:
$E(p^2)$ not equal $p^2+p^2$
$\hat p$ square not equal $2 p^2$
However, if I replace $V(Y)$ by $E(X^2)- [E(X)]^2$ then
$$e(Y^2... |
Problem
I have a binary time series with a binary dependent variable and several independent variables. What are some appropriate and easy to understand approaches using R that I haven't thought of?
I have provided an example to illustrate the issues I am having in analyzing this kind of problem. Please read below in ... |
I'm attempting to implement the forward-backward algorithm. I have my observations and I am attempting to estimate $A$ and $B$. Looking at the algorithm, one thing I'm having trouble figuring out, is whether there are rows for the non-emitting start ($S_0$) and end states ($S_F$) in $A$ and $B$. For example, assuming t... |
How do I interpret means, standard deviations and standard errors in my research work? for example, I generated a table from SPSS that showed that I had mean 1.60, N=103, Standard deviation of 1.123 and standard error mean of 0.111. what do the values mean?
|
I have the following question:
Assume I am given a function $f(x)$ that I want to do neural network regression on (for some subset of $x$), and further assume that I can get as many $(x,f(x))$ pairs as I want for training. Given that I train $N$ neural networks ($NN_i(x)$, $i=1,...,N$) independently using random initia... |
I know that one of the basic assumptions of a t-test is that the data is drawn from a Gaussian distribution.
Using an Anderson-Darling test, I've found that the datasets I am working with are either drawn from a logistic distribution or a Gumbel distribution (both centered around 0, and both closely resemble a Gaussian... |
I am concerned about the way "response" to certain experimental manipulations in psychology is defined and then used to claim that a specific subject did or did not "respond" to justify exclusion of "non-reponders" from the statistical analysis.
More specifically, I'm talking about studies testing both Pavlovian fear ... |
I am trying to analyze data which there were two groups, control and treatment. Both groups were given a pre-test and post-test. The control group received differentiated instruction and the control group received teacher directed instruction. Trying to find out if there is a difference in student achievement. I am ... |
I am wanting to estimate the median age of menarche. I have the age of girls and whether or not they were currently menstruating.
From the literature review, I see that a probit analysis is used for this 'status quo' technique. But I have not been able to find a clear example of how to use probit analysis to obtain a m... |
Figuring out how to simulate something is often the best way to understand the underlying principles. I am a bit at a loss on exactly how to simulate the following.
Suppose that $Y \sim N(\mu, \sigma^{2})$ and that $\mu$ has a prior distribution that is $N(\gamma, \tau^{2})$. Based on a sample of $n$ observations $Y_... |
The average American woman has a height of 168.1cm, with a standard deviation of 5.3cm. A girl is 178.1 cm tall, we have 354 girls at our faculty. What is the chance/probablity that exactly 2 girls are smaller than her?
|
I'm training a special neural network for Natural Language Processing which has an embedding layer (this layer takes a one-hot vector of each word and output it's embedding vector through an embedding matrix). So, what I want to use is two embedding matrix for the same input. Formally, if we have $x \in \mathbb{R}^{1 \... |
My thought is that by checking once or multiple times, you are potentially catching noise rather than signal - for example, you might have luckily/unluckily gotten 100 death events (an abnormally large effect size), but in the long run, those probabilities are going to settle to what they expect. I recall asking this q... |
I have a data with 20k samples. It includes 6 categorical and 2 continuous variables. When I performed multiple linear regression and ANOVA to test the variables significance, it shows p-values 1e-16 for all variables. I suppose it is because of data size and has to do something with power. However, I am quite sure tha... |
I have a list of 'scores' that are associated with locations (lat/lon). I would like to determine whether the score correlates somehow with the location. E.g. perhaps there are regions where the score is higher, or perhaps there is a linear relationship between 'lat' and score. Is there some way to test this? I'm looki... |
We have good discussions on hypothesis testing in large data: With large amount of data, even tinny difference between two samples can be detected, and we are almost certain to reject NULL hypothesis.
Effect size is one "fix", but I am interested in other fix, where, in addition to say they are different, but say how m... |
I am reviewing some notes on binary data analysis and encountered the following problem Let $y=(1, 1, 1, 1, 0, 0, 0)$ and $x=(0.9, 1.2, 0.5, 1, -0.3, -1.5, -2)$. I make the assumption that $y_i$ ~ $Bin(1, \pi_i)$ and $logit(\pi_i)=x_i\beta$.
How do I draw the join log likelihood function of $y$ (as a function of $\bet... |
While training a medium-sized neural network (3 layers and approx. 2000 parameters) that I use for function approximation, I developed a new optimization algorithm that seems more effective than those implemented in standard packages (e.g., the various flavors of gradient descent implemented in Keras). In particular, i... |
I have data resulting from 3 (fixed) judges observing 15 medical students performing physical exam maneuvers. I'm trying to decide the correct correlation statistic to use. The results can be: done and done correctly (1), attempted (2), or did not attempt (3). I initially thought to use ICC, but I got really screwy res... |
I've got a question about errors in variables. So, if I run a standard linear regression to estimate b in y = a + bx, but my independent variable x is measured with error, x = x' + x" where x' is the true value, then my estimate of b will be wrong:
$E\hat{b} = b (1 - \frac{var(x^")}{var(x') + var(x^")})$
I hope I have... |
I know this is an extremely basic topic for most of you, but I am wondering why we need to assume an underlying distribution to tell whether two sets of paired values are significantly different or not. Why not just get the ratios of the two sets (I think this is called fold enrichment)?
I'd really appreciate if someo... |
Let $Z_i \sim \mathcal{N}(0,1)$ be independent normal distributions. Consider the following correlated variables, defined by
$$ X_1 = \frac{Z_1 + Z_2}{\sqrt{2}},\;\;\;X_2= \frac{Z_2 + Z_3}{\sqrt{2}},\;\;\;X_3= \frac{Z_3 + Z_4}{\sqrt{2}},\ldots$$
Thus each $X_i$ by itself is also a standard normal distribution but is co... |
If $X$ and $Y$ are independent random variables, both having the standard normal distribution, then are $X+Y$ and $X-Y$ also independent?
To show this, I was trying to get the joint CDF of $X+Y$ and $X-Y$ but didn't get far. I know they are individually normally distributed.
|
We have a system that takes some input and process the input. It often takes more than 10 hours to finish processing. If it takes more than 24 hours, the processing often gets cancelled. During the whole process, failures (either due to the system itself or the input) may occur, and requires human to fix them and resum... |
I am trying to find the distribution of the maximum of a set of four continuous independent random variables that have a general distribution.
I have found resources that discuss how to find such a distribution when the probability density function is known, but I am curious to know the generalized solution.
|
When performing machine learning, the performance of the machine learning method is dependent on the original function $f$ that we are trying to learn (let's forget for a moment the non-deterministic error and focus on the properties of $f$).
I have a conceptual question. What would make a function easy to learn? For i... |
I measured the odds ratio of transaction by comparing the usage of one marketing channel as opposed to not using that channel. My odds ratio is 2.56. Now I found the odds of having transaction is
about 2.56 times greater for those who use this marketing channel than those who do not use this channel. But I have diff... |
I have trained a neural network to model a system and I want to use that neural network to optimize a cost function with only a subset of features. My hypothesis function is parameterized by one subset of the features and the other subset of features is the feature set for the hypothesis function. In order to find the... |
I've been asked to see if there's a meaningful relationship in the 5yrs of data we have that is worth putting more research effort into. Particularly, does a relatively small investment in x (<1,000/yr) decrease impact of a much larger possible cost in y (>10,000/yr)?
We have 1,000s of entries. Some entries were invest... |
I just have a question about if chi square test for the association say between two variables (I think both are discrete in this case) in a 2 by 2 table says anything about what "model" is used in the analysis.
I know that for example if you have a continuous response variable (say BMI index), and say another continuou... |
I know there are several questions on specifying random effects with lmer. I looked at perhaps 20 of them, and they all seemed to be basic questions or questions about nesting in 3-level structures.
I need to know how the proper syntax for a full HLM model that uses multiple level 1 variables. By "full HLM" I just mean... |
I have six treatment means I am testing (including one control), each with three replicates. I used a Levene's test to verify equal variance, and this did not yield a significant result. My treatment group #2 though has an outlier that makes the variance much higher in this group even if it is not 'significantly' diffe... |
We are given a big collection of strings, and an intensity associated with each string in the collection. In a sense, a 'distribution' on the dictionary. We are given that the intensity of each string is the sum of intensities of the features the string possesses, and that the collection of features that contribute sig... |
Suppose I have a time series y which I want to do a forecast on.
Someoneelse with regression information x which is not available and is unwilling to share with me produces a forecast z of y
Is there anyway I can incorporate z into my forecast of y ?
|
So I saw a correlation matrix between variables and components like below:
comp1&2 comp1 comp2 comp3 comp4 comp5
var1 0.93 0.87 -0.34 0.16 -0.29 0.14
var2 0.91 -0.90 0.10 -0.35 -0.12 0.11
var3 0.46 -0.02 0.46 -0.43 0.04 0.56
var4 0.97 0.80 0.55... |
I want to do support vector regression using repeated k-fold cross-validation on a large dataset of 30k points. Because I do need to do a lot of those regressions I want to downsample the data first to 1000 points to make the regression faster.
Now, I am not sure what the best way to do the repeats.
Should I select t... |
I'm trying to work out how to test if there is a significant difference between years when looking at crime data. The data file has no numerical values, only states the neighborhood, month and year of each crime, so I have created a table to count the number of crimes in each year using t() and data.frame in R.
2003 ... |
A sample from a multivariate normal distribution $X$ can be constructed to have a covariance $C$ even for positive semi-definite covariances according to this technique involving an SVD. Furthermore, $C$ can be constructed from a correlation matrix $R$ and a diagonal matrix with the corresponding standard deviations in... |
I'm a little bit confused with the interpretation/meaning of indirect effect.
What I observe in my study is:
association between exposure (E) and health outcome (H1) - by logistic regression, with OR=1.5 and p-val<0.01
association between exposure (E) and health outcome (H2) - by logistic regression, with OR=1.03 and... |
What is a Characteristic Function?
Why is it needed?
Can you explain it in layman's terms and along with a simple & easy example?
Please, limit using formal math notations as far as possible.
|
Consider this dataset:
Where the x-axis is some sort of "time" measure, and the y-axis is some sort of "value" measure.
E.g. "time taken for website to respond" vs. "time of day", hypothetically speaking, of course ;)
It is very clear to the human eye that there was a period where the behaviour of the value measure wa... |
I'm doing a pre-test and post-test comparison of sexual health knowledge using paired sample t-test.So I measure participants knowledge before camp and after a camp. My t test showed pre and post test are significantly different but it does not meet the assumption of correlation. My pre-test and post-test are not corre... |
Let's say I have a histogram with counts $y$ high enough to use $\Delta y = \sqrt{y}$ as error bar. If I transform this histogram in (natural) logarithmic scale, I receive as error bars:
$$ z = \log(y) \Rightarrow \Delta z = \frac{1}{y} \Delta y = \frac{1}{y} \sqrt{y} = \frac{1}{\sqrt{y}} $$
Now what I don't understand... |
I'm asked to determine whether the Fisher information is well defined for a number of distributions. I think I understand how to actually compute the fisher information, at least for the standard distributions, but I'm not sure exactly what "well defined" means or how to test for it?
|
A marginal effect is the effect one independent variable on the dependent variable has when it is changed by one unit and the other independent variables constant. In the simple OLS regression correspond to the marginal effects the values of the regression coefficients (beta-values).
How do I calculate these for other ... |
At first i have to say that i'm a statistics rookie having a hard time to comprehend all the concepts and interrelations. So please cut me some slack ;)
I conducted a survey that collects data about energy knowledge. So far 465 students filled out the corresponding questionnaire with 60 items. The constructs i like to ... |
The Cholesky decomposition can be used to obtain $A$ from $X = AA^{T}$ (lower triangular version) but also $B$ from $Y = B^{T}B$ (upper triangular version). The SVD can be used to do something similar to the lower triangular Cholesky decompositionas as described here; e.g. obtaining $\mathbb{V}\mathbb{D}$ from $\mathbb... |
I am reading about bayes estimator and it is given that
How to derive bayes estimator
And the answer is:
Answer
However, I know that the integration of an exponent will still have an exponent. How is it derived?
|
In Spike and slab variable selection (equation 4) there is a model setup of the form
$\beta_k | \lambda_k, \tau_k \sim \text{Normal} (0, \lambda_k \tau_k^2)$
$\lambda_k | \nu_0, w \sim (1-w)\delta_{\nu_0}(\lambda_k) + w \delta_1(\lambda_k)$
where $\beta_k$ is the $k^{th}$ regression coefficient and $\delta_x$ is the di... |
I am struggling to understand what "number of samples" for correlation tests refers to.
Let's say you run a correlation test between weight and age.
You take 12 measurements of weight, and 12 of age, and find a positive correlation.
You decide to report the results as "Weight and age showed a positive correlation (r c... |
I have the following blot that represents a time series of sensor's readings (1 reading per hour) and then I have the plot of the PACF and ACF functions. How can I make use of these plots according to Box-Jenkins methodology to select an ARIMA i.e. How can I know the grades of the ARIMA model I should use regarding the... |
Let $G_X$ is a Probability Generating Function of $X$.
What does it mean by
$G_X(0)=\mathbb P(X=0)$ ?
$G_X(1)=1$ ?
Why are these identities important?
|
I have a question about mediation using process analysis.
In Baron and Kenny's (1986) mediation, the 4 steps (below) have to be met to show mediator mediates the IV and DV relationship, right?
Step 1: Significant total effect: IV affects DV
Step 2: Significant causal relationship between IV and mediator.
Step 3: Si... |
signal = randn(100,1);
noise = randn(100,6);
net_signal = signal+noise(:,1);
w = regress(net_signal,[noise(:,1) ones(100,1)]);
denoise_signal = net_signal - noise*w;
Hi, I am trying to understand MATLAB function 'regress'. I generated a signal and a noise. I added one of the noise component to this signal. My questi... |
I have simulated the behavior of two variables over the course of three weeks:
var_1 <- ts(c(25.1,21.8,15.6,28.0,25.8,26.2,29.9,30.6,28.3,22.1,20.2,20.5,18.4,12.0,8.1,8.6,8.2,9.17,8.8,9.7,10.4))
var_2<-ts(c(-13.1,-7.5,0.1,-3.4,-6.0,-4.6,-0.1,4.8,4.3,-1.1,-6.5,-10.0,-9.2,-7.8,-7.6,-7.1,-11.4,-14.2,-19.6,-22.9,-23.5))
... |
I am doing a student project and have to analyse the western blot results. I have a control group and 6 different test groups. The null hypothesis being, that the protein expression is same in all the groups. So I run 7 lanes at once.
Technically, the blot's to be repeated 3 times but I've managed to run it just once. ... |
My work looks at reproductive stages of an organism over two years, using bi-monthly sampling at 6 different locations. Using R, I did a multinomial logistic regression to analyze the data, and built a model using the following dataset (truncated for this example). Packages needed: nnet, ggplot2
SED<-structure(list(Dat... |
I have this algorithm to compute the RBF kernel and it seems to work just fine. But I would like to understand what kind of operations are involved, for example:
What are the trnorms vectors? What are they for?
What is the meaning of creating the matrices k1 and k2?
Is this algorithm any different from the sklearn imp... |
Variance and interquartile range (IQR) are both measures of variability.
But IQR is robust to outliers, whereas variance can be hugely affected by a single observation.
Since variance (or standard deviation) is a more complicated measure to understand, what should I tell my students is the advantage that variance has o... |
I've been trying to develop an intuition based understanding of Bayes' theorem in terms of the prior, posterior, likelihood and marginal probability. For that I use the following equation:
$$P(B|A) = \frac{P(A|B)P(B)}{P(A)}$$
where $A$ represents a hypothesis or belief and $B$ represents data or evidence.
I've understo... |
I have this cross-subjects correlation between scores on two different tests, which is at significant (r=.43, p=.02):
One of the subjects does appear as an outlier given his score on test1 (x axis). Sure enough, it can be said it was he who was driving the correlation, as when I compute the correlation without him, si... |
The question is "how do we determine the (hyper)parameters in deep learning models, usch as CNN, RNN?"
This is a difficult question that so far I am not aware of a solid solution and I want to bring this up in a more specific manner.
(Similar question has been asked before 2 years ago, and I think it is a good time to ... |
I'm currently experimenting with sklearns transformer classes in combination with pandas. During my application on a kaggle data set and being picky on not choosing information of the test data, I realized the following:
Typically, in those challenges you have a training data set and a test data set. We perform preproc... |
Let $X$ be a discrete RV with PGF $G_X(s) = \frac{s \cdot (2 + 3s^2)}{5}$ . Find the distribution of $X$.
Here, if we continue to differentiate and set $s=0$ in $G_X$, we obtain $P(X=0,1,2,… … …)$.
But, what happens when we set any value in between $0$ and $1$ or $2.5$, $3$ and so on?
What would we obtain?
What would... |
The question says to "let A, B, and C be arbitrary events in S." I know arbitrary means I can assign any value to it, but when choosing values for events A, B, and C can they be the same or do they have to be different values, since I'm assuming A, B, and C are different values because they're different letters?
|
I want to get a "score" which measures the efficiency of truck planners at a site which despatches boxes of identical size to multiple destinations. This is measured by how full each truck is, on average, when despatched - a figure which is called "loadfill". A team of planners decide how to allocate boxes to trucks, ... |
There seem to be a few answers for normally distributed models, but after some searching I could only come across this page for Poisson mixed models. I want to be certain I am interpreting the random effects properly.
I'll paste my output and provide the reproducible code at the bottom. Let's pretend we are counting sp... |
Say you want to build a predictive model to classify two groups, Yellow cars VS Silver cars. There are over 1 million silver cars, but only 30,000 Yellow cars. Would a model be biased if you randomly sample 10,000 Silver cars and 10,000 yellow cars to build a training dataset? Would you need equal proportions of yellow... |
I have been using GAM (mgcv's gam()) to perform a fairly complex and computationally intensive analysis - I have millions of observations and dozens of terms including 2-D tensor product splines. It gets excellent results for the most part, but some predictions differ an excessive amount from prior expectations. (I hav... |
I shall start with an example so it's clear what I'd like to explore:
I have to decide how many sigarettes to smoke in a day.
One person tells me they will me kill should it rain. his credibility
is alfa.
Another person tells me they will kill
should it snow. his credibility is beta.
Another person tells me th... |
Let's say we have the following setup:
There are $n$ participants doing a simple task: They watch a video. At random times, a symbol is shown somewhere on the screen. The total number of times the symbol is displayed, say $N$, is fixed and the same for all participants. At the end, the participants have to provide thei... |
Random variable $X$ is defined as a measurable function from one $\sigma$-algebra $(\Omega_1, \mathcal F_1)$ with the underlying measure $P$ to another $\sigma$-algebra $(\Omega_2, \mathcal F_2)$.
How do we talk about a sample $X^n$ of this random variable? Do we treat it as an element from $\Omega_2$? Or as the same m... |
I was given the following question a on an assignment.
The bad debt ratio for a financial institution is defined to be the dollar value of loans defaulted divided by the total dollar value of all loans made. A random sample of seven Ohio banks is selected. The bad debt ratios (written in percentages) for these banks a... |
What is an Indicator function?
What is the intuition behind an Indicator function?
Why is the indicator function $I_A$ needed in the following example?
Can the following example be rewritten without using the indicator function?
Let $A$ be any event. We can write $\Bbb P(A)$ as an expectation, as
follows:
Define t... |
So I'm confused about reporting RMSE (root mean squared error) as a metric of model accuracy when using glmnet.
Specifically, do I report the RMSE of the model itself (i.e., how it performs with the training data used to create it) or do I report the RMSE of the model's performance with new data (aka test data)? ...Or... |
I am aware of Cosine Similarity which measure the angle between "two" vectors. Prototype for cosine similarity would look something like this:
float cosine_similarity(vector<float> a, vector<float> b);
Are there any similarity measures that measure the similarity between "n" vectors? Prototype of this function would l... |
I was a bit confused regarding the interpretation of bptest in R (library(lmtest)). The null hypothesis of bptest is that the residuals have constant variance. So, a p-value less than 0.05 would mean that the homoscedasticity assumption would have to be rejected. However on this website:
http://rstatistics.net/how-to-t... |
I'd like to understand if the K-Medoids algorithm requires to be used with a distance metric that respects the triangle inequality. In particular I'd like to try to apply the K-Medoids algorithm with the CIEDE2000 color distance which I don't know if satisfies the triangle inequality.
|
I'm getting a set of 20-dimensional feature vectors. I'm getting a 100 vectors per second. These feature vectors are occuring in a sequence, where one feature vector depends on the one that came before it.
Feature vector: $(x_{1}, x_{2}, ... , x_{20})$, where $x_{i} \in \mathbb{R}$
For every such vector, I have a 2-dim... |
Background
Say you're implementing basic importance sampling. To approximate a distribution $p(x)$, you utilize an importance density $q(x)$ that you can sample from. Also, assume that you can only evaluate $p_u(x) = C_p p(x)$, the target density up to a constant of proportionality.
So you sample $X^i \sim q(x)$ for ... |
Let $A$ a be an $n$ x $p$ matrix and let $B$ be the transformed data set of $A$ under $Q$:
$$ B = A Q $$
where Q is a $p$ x $p$ orthogonal matrix:
$$ Q Q^T = I $$
$n$ is the number of samples (rows) and $p$ is the number of features (columns).
$A$ and $B$ are centred (zero mean for each feature).
Now suppose we perfo... |
I'm working on one project trying to reconstruct a sequence of multivariate signal data from another sequence of multivariate signal data. That is let $\{S_t\}_{t=1}^n$ be the first sequence of signals, where each $S_t$ is a m-by-1 vector and $\{r_t\}_{t=1}^n$ be the second sequence of signals, where each $r_t$ is a n-... |
After reviewing the many wonderful posts on Cross-Validated regarding understanding PCA, I was doing some of my own experiments, and I am a bit confused.
Consider a multivariate Gaussian in 3 dimensions, according to the Matlab code below:
P = 3;
Mu=zeros(1,P);
Sigma = eye(P)*500;
gm0 = gmdistribution(Mu,Sigma);
N=... |
I have a couple of questions that are confusing me regarding the CNN.
1) The features extracted using CNN are scale and rotation invariant?
2) The Kernels we use to convolution with our data are already defined in the literature? what kind of these kernels are? is it different for every application?
|
I'm wondering how to approach properly training and testing a LASSO model using glmnet in R?
Specifically, I'm wondering how to do so if a lack of an external test data set necessitates I use cross-validation (or other similar approach) to test my LASSO model.
Let me break down my scenario:
I only have one data-se... |
I tried to figure out how to to solve the following expression for the parameter $\theta$ using maximum likelihood method:
I solve the problem (very huge so I omitted it) and then got this:
$$ -\frac{1}{\theta+1} - \log(uv)
- \frac{1}{\theta^2} \log\left(u^{-\theta}+v^{-\theta}-1\right) - \left(2+\frac{1}{\theta}\righ... |
I'm working in Python statsmodels, and trying to find the distribution of the data in a numpy array. From the histogram, it looked like the data might be log-normally distributed. So, I took the logarithm of the data and plotted normal pp- and qq-plots:
fig, ax = plt.subplots(1, 2, figsize=(10, 4))
probplot = sm.ProbPl... |
For example, when I compared a student population split into four year groups and compiled a bar graph, I could see that the 2nd year students were vastly overrepresented in their responses to that particular question.
Seperately, I performed a Kruskal Wallis test to see if there were any statistically significant dif... |
If you cannot acquire a workable test data-set to test a model, you can use cross validation as an alternative to validate the model.
However, I'm unsure of the true end purpose of cross validation...
Is CV useful for simply generating a performance metric by providing a way to test your model? Or is it a means to cre... |
Suppose I have some data $(x_i,y_i)$. If we perform ordinary least squares, we can get standard errors of the slope and intercept using estimates like $\hat{Var}(\hat{\beta}) = \hat{\sigma}^2 (X^\top X)^{-1}$ (see here and here).
However, suppose each $y_i$ came with a standard error $s_i$, possibly from some previous ... |
I have historical sales data and used ARIMA for volume forecast. For Market Size (Value), can I use ARIMA or any other technique where I can use forecastd volume as Input which I had from ARIMA output?
|
Suppose we have 4 positive independent random variables, $a_1, a_2, b_1$, and $b_2$. Moreover, $a_1, a_2$ are identically distributed and have a PDF denoted by $f_A(a)$. Similarly, $b_1, b_2$ have a PDF denoted by $f_B(b)$. I need to find the joint distribution of these two random variables:
Z=max($a_1 b_1, a_2 b_2$);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.