instruction stringlengths 9 38.7k |
|---|
The question is
A research team collected data on participants in a longitudinal study. They observed that the average extent of rebellious symptoms observed at age 12 was 10.54, with an observed standard deviation of 3.42 . They observed that the average measure of aggression at age 8 was 3.54, with an observed sta... |
Axiomatically, probability is a function $P$ that assigns a real number $P(A)$ to each event $A$ if it satisfies the three fundamental assumptions (Kolmogorov's assumptions):
$P(A) \geq 0 \ \text{for every} A$
$P(\Omega) = 1$
$\text{If} \ A_1, A_2, \cdots \text{are disjoint, then}\\
P\left(\bigcup_{i=1}^{\infty}A_i\ri... |
I am attempting to do a goodness of fit test for a several competing GLMM models.
First, it is unclear to me what the best methods are for this, as there are many different methods with positive and negative aspects. So, I came across the package "rms" which provides both the R-squared and a likelihood Ratio Test for X... |
Suppose you have a K boxes, each with associated probability $p_i$. You start putting balls in the boxes with probability of putting a ball in a box being proportional to $(n_i+1)\cdot p_i$ where $n_i$ is the number of balls already in the box. Is there a closed form for the pmf for the number of balls in each of the b... |
I have the results from qualitatively coding the contents of ~100 images, with 7 categories and 96 tags in total. It's incredibly difficult to define mutually exclusive codes for the content we're interested in. For example, we code whether a person is depicted acting as a consumer, as an employee, and/or as a family m... |
If I understood correctly weak dependence is one of the assumptions that has to be met when estimating a linear regression model for time series data by Ordinary Least Squares.
There are tests and techniques to check wether the other assumptions, such as stationarity or no perfect multicollinearity, are met. For some ... |
I am currently testing several VAR models to forecast inflation. All VAR models contain the same variables, the only thing that differs are the number of lags. Since I am forecasting, I reckon the pseudo out-sample-fit is most important (measured with MSE). Currently, VAR(4) and VAR(5) have the best pseudo out-of-sampl... |
When we are done in pre-processing the text (removing stop words, stemming, lower case) then creating a term document that has TF-IDF as weight.
How can I decide what correlation test to do between my terms and the target variable?? I want to know what terms are affecting my target. My target variable is continuous fro... |
If $X\sim\mathcal C(0,1)$, find the distribution of $Y=\frac{2X}{1-X^2}$.
We have $F_Y(y)=\mathrm{Pr}(Y\le y)$
$\qquad\qquad\qquad=\mathrm{Pr}\left(\frac{2X}{1-X^2}\le y\right)$
$\qquad\qquad=\begin{cases}
\mathrm{Pr}\left(X\in\left(-\infty,\frac{-1-\sqrt{1+y^2}}{y}\right]\right)+\mathrm{Pr}\left(X\in\left(-1,\frac{-... |
I'm running ordered probit regression models with polr in R.
This question states that for prediction, polr returns the category with the highest probability for given $x$. I would have expected that the predicted category is equal to the number of estimated thresholds ($\hat{\zeta}$) exceeded by $x' \hat{\beta}$ (what... |
as we know , in detection we have 2 loss : one is localization loss other is classification loss , in the formulation the 1th , 2th term related to localization loss and 3th term is related to classification loss ,well , what is other terms? and why square root of w,h ?
|
I have a 2x2 factorial design with factors task (a, b) and stimulus type (c, d). I'm looking at behavioral data and was wondering how to test the main effect of task. To be more specific, I want to know if $a>b$. The data I have are counts (correct button presses), so using a binomial regression would make sense here (... |
I'm working on a binary classification problem on this dataset, using the k-nn algorithm.
For the performance evaluation and the parameter tuning (i.e. the choosing of k) I'm using the nested cross validation.
I split my dataset in 5 equal sized fold, and then I performed a cross validation for every training set/fold ... |
Imagine I have a time-series. I eyeball it and it looks mostly like a trend plus a seasonal component plus noise. I take the series, subtract from it the trend and subtract from it the seasons. What's left is the residuals. So in the question we have a bunch of series: the series, series minus trend, series minus seaso... |
I have that histogram looking like this:
I need to have a distribution density of a known form like normal. Unfortunately and sadly, my data is not normal. I got a skewness here. So I had to deal with it and here's what I've done.
What I did was to take a look at a list of closed-form distributions available at Wikipe... |
I am designing a machine learning system which consists a bunch of classifiers (each output a confidence score between 0 to 1). Some classifiers consume output from other classifiers as features. Now suppose I retrained a classifier X whose output is input to some other classifier Y, with some new training data. The p... |
I am trying to build a model with binary output and when used Logistic regression, I found none of the 20 variables(with about 5 factor variables) as significant (p-value higher than alpha=0.05). But when I used the same dataset for XGBoost Model it gave 90% accuracy on test set in R.
Is this normal?. Am I doing right?... |
Based on this video, the omitted variable formula for two independent variables are:
I am wondering how do you modify the formula if you have more than two independent variables? Let's say keeping X2, X3, X4 constant, how do you determine the effect of X5 on X2, X3, X4?
|
I have a variable $X$ with a finite number of values $1,2,...k$. The parameter is simply the distribution: a vector $p\in \mathbb{R}^k$ with $k$ components where $p_i=P(X=i)$. I have a dataset with $N$ values of $X$ from independent trials.
Now I have $f$ a linear (or affine) $k$ variables function. Example $f(p)=p_1+2... |
Let $X_1, ... , X_n$ be i.i.d Bernoulli random variables with unknown parameter $p\in\left(0,1\right)$.
Let $\bar{X_n}$ be the sample average of the $X_i$'s.
Prove that $\bar{X_n}(1 - \bar{X_n})$ is a consistent estimator of p(1-p).
In order to prove this I was thinking to use the Chebyshev Inequality somehow, but I'm... |
Does there exist an implementation (EM-clustering) that allows you to specify the initial cluster positions beforehand? The datasets relevant for me are two dimensional and since just assign random cluster positions at start yield less accuracy than a clever initial setup I want to analyze 2d plots and specify my own i... |
BACKGROUND
MFCCs are coefficients which represent the most important parts of speech, and about 12 of them are used to model a one 512 points long frame (of speech). Along with them you would use delta coeffients, which track the change of MFCCs over time (adjecent frames).
I want to use these feature vectors (dimensi... |
I have the following Gamma$(2,\theta)$ distribution:
$$f_\theta(x) = \theta^2x e^{-\theta x}\mathbb{1}_{[0,+\infty[}(x) $$
I am asked the two following questions:
Show that the model belongs to the exponential family and exhibits a sufficient statistic S
Prove that S is complete.
I think that the model belongs to an... |
Almost everywhere I read
If the variables are independent, Pearson's correlation coefficient is 0
I understand that correlation gives information only for linear dependence/independence variables and, if the two values are linearly independent, then their correlation is zero.
Instead, the term independent is often use... |
After we fit an ARMA model and do all the goodness of fit tests to convince ourselves everything is as it should be, how can we use the model to make predictions? The point of my question is the moving averages part of ARMA, which says predictions depend on the errors in the past (the $\epsilon$ below)
$$y_t = \beta_0... |
I was trying to build two bayesian networks by 'bnlearn' package in R. Firstly I created models in this way:
# create an empty network and add nodes.
g = empty.graph(colnames(data))
# crate edges.
bogus = matrix(c("age", "education", "age", "marital.status", 'native.country', 'race',
'education', 'occu... |
I've already seen https://math.stackexchange.com/questions/1064995/marginal-of-dirichlet-distribution-is-beta-integral, but need to extend this to the $K$-variate case.
We have $\mathbf{x} = \begin{bmatrix}
x_1 \\
x_2 \\
\vdots \\
x_K\end{bmatrix}$ following a Dirichlet distribution with parameter vector $\mathbf{a} = ... |
I would like to make a simple regression where my dependent variable is the demand for cigarettes and my independent variable is the GDP. I have 10 sets of data. Given that the GDP values are correlated to its past values, should I adjust my model and do something more complex than just a simple regression?
|
I'm running a difference-in-differences analysis on monthly repeated cross sectional data.
I've been told to add a linear time trend to the DiD model to adjust for underlying trends:
$$Y_{it} = B_0 + B_1 treatment_i + B_2 post_t + B_3 (treatment_i \times post_t) + B_4 month_t + \epsilon_{it}$$
where
month = number of m... |
I have been trying to plot hazard ratio spline curves for two groups (treatment/nontreatment), showing HR varying over the continuous variable Age, but using the nontreatment group as the reference (HR = 1), something that I have seen quite often in large medical studies. See for instance figure 2 in this publication, ... |
Needing to describe dimension reduction, strangely, the first example that popped into my head was a moving average. E.g. a 20-period moving average, takes 20 values, and reduces them to a single value. If I put each run of 20 values as one row in a matrix, then I am reducing from 2D to 1D.
But it has been nagging at m... |
I have a small confusion about showing strong consistency:
Definition : $T_n$ is strongly consistent for $\theta$ iff $T_n \rightarrow ^{a.s.} \theta$
So how do we show that $\frac{1}{n+a} \sum_{i=1}^{n} x_i$ is a strongly consistent estimator for $\mu$ ? Where a is a fixed known constant
Say we know $\frac{1}{n} \sum_... |
I've noticed that depending on how I sample training and test samples I can get a range of model accuracies, but the mean of those accuracies is reasonable. Also for methods like random forests and neural networks there is inherent randomness in the model that can lead to different results.
What is the best way to c... |
In Statistical Rethinking, Chap. 4 - page 99, when talking about table of estimates of a linear model $\mu_i = \alpha + \beta x_i$ where the objective is to estimate the height given the weigth ($x_i$), it is written that:
Notice that α and β are almost perfectly negatively correlated. Right now, this is harmless. It ... |
In the Machine Learning literature there seems to be a term called the Hypothesis Space. As a statistician, I find this to be a bit of a awkward term, but in use it seems to imply that it is equivalent to a non-parametric parameter space (infinite dimensional). Are these two terms equivalent?
|
Would a compound poisson process result in a histogram that isn't the same as that of a regular poisson process? How would I fit such a histogram without knowing the rate?
|
I'm trying to improve a machine learning model. I've modelled a few continuous variables into discrete bins, but I want to make the bins smaller as they approach the mean as to increase sensitivity. For this purpose, I'm making a general purpose function that takes in a value (example: 10%) and returns the positions ... |
In Tensorflow's implementation of ResNet, I find they use variance scaling initializer, I also find xavier initializer is popular. I don't have too much experience on this, which is better in practice?
|
I am learning about difference-in-difference (DiD) methods and I find it similar to A/B testing.
What's the difference between these two testing methods?
|
I have been learning about PCA and SVD. And I know that to standardize the features before PCA is necessary. But I came across the book rating matrix, which makes me confused about what standardization do to the features.
So in a book rating matrix, a row is the rating a user gives to different books, and it can be ran... |
Assume a Machine Learning model has one real hyper-parameter. In many cases the hyper-parameter is chosen to be value at which the curve of a validation measure (MSE,etc) with respect the hyper-parameter has an inflection point, see this for a discussion.
Is there any mathematical intuition behind this turning method?... |
Please note that I have no background whatsoever in Fourier analysis and very little in time series.
This is exercise 2.10 in Theodoridis' Machine Learning:
Show that the autocorrelation of the output of a linear system, with impulse response $w_{n}$, $n \in \mathbb{Z}$, is related to the autocorrelation of the intput... |
Here is what I have:
Excel
Yearly energy prices by state from 2002 (generally increasing, generally peaked a couple of years ago)
Yearly energy consumption by state by industry from 2008 (about 700 state/industry combinations; various patterns, from clear trends to sawtooth)
I want to get a rough, quick and dirty est... |
I have estimated mixed logit model using data collected from 69 respondents. each respondents have faced 4 repeated choice scenario. I have 7 variables. in the model, 5 variables are assumed to be normally distributed, 1 censored normal and 1 log normal. I have estimated mixed logit model using Bayesian approach (using... |
I am working on EM algorithm (manually implemented in R). I saw that the estimation of the parameters vary from iteration to another. That is, it decreases at some iteration and then start increasing at other iteration. However, the log likelihood increases at all iteration till converges. Is that acceptable in EM algo... |
I'm looking for a good review paper or book chapter that offers an accessible introduction to the computational complexity of training neural networks for classification problems. Some time back, I found a text book that stated that training an MLP network is NP-Complete, and there is this paper - but I haven't found m... |
The following problem has been posted on Mensa International Facebook Page:
$\quad\quad\quad\quad\quad\quad\quad\quad$
The post itself received 1000+ comments but I won't go into details about the debate there since I know this is Bertrand's box paradox and the answer is $\frac23$. What make me interested here is how d... |
there is a lot of research where deep learning works so well with classification but not in regression field
SVR, tree-based approach is still good and I couldn't find good architecture about regression
well there is some scheme you have to follow when implementing deep regression but I want to know why it doesn't work... |
I came to know that various ML algorithms can be posed a matrix factorization problems with different constraints specific to that particular problem. Is there any good material that provides an overview for frequently used ML algorithms(PCA,Kmeans etc ) at one place.
|
When we search for a numerical way to find $\hat{\beta}$ in a GLM (say, a logistic regression), we could do a numerical optimization (minimization) of the negative log-likelihood.
But instead, we go one step further, and first compute the score function, to then equvialently look for the value of $\beta$ that sets $s(... |
I want to make a logistic regression with N independent variables, via cross validation (K splits). I want to use the resulting betas in order to put it in a formula to predict future cases (no yet in my data).
Provided K splits, I would get K sets of resulting $?\beta$s, so... the 'final' betas are the average of each... |
I'm a beginner in data analysis field and I wanna try to predict time series data using ARIMA model but I still don't understand some of the concept.
I've read some papers about ARIMA and this model -> ARIMA(p,d,q) seems to be the general model.
And this equation seems to be the general forecasting equation:
ŷt = ... |
I am looking at the causes of a disease in cows, both 'environmental' (ie ground-drainage, bedding type etc) and 'biological' (previous disease, sex, weight etc). Most environmental variables are the same per barn, if not per farm. Biological variables are measured per individual. I have 5 farms, containing 2 to 6 barn... |
If we have a point estimate (for example sample mean) $\hat{\theta}$ of $n$ observations , why is it that $$\frac{\hat{\theta}-\theta}{\sqrt{s^{2}}} \not \in t(n-1)$$ but instead $$\frac{\hat{\theta}-\theta}{\sqrt{s^{2}/n}} \in t(n-1)$$
Isn't $\hat{\sigma}^{2}=s^{2}$?
I've seen this in a textbook $$\frac{\hat{\theta}-... |
I have a question regarding the extreme value distribution corresponding to i.i.d. samples $X_i$ from a normal distribution, say $X_i\sim N(\mu, \sigma^2)$.
According to the theorem of Fisher-Tippett-Gnedenko, the maximum follows a Gumbel distribution: $max(X_i)\sim Gumbel(\alpha, k)$ with location $\alpha$ and scale $... |
I have profit (loss) data series with some significant skewness and kurtosis. Is there a way to transform this data to a normal distribution so that I can use the gaussian procedure for the test of hypothesized mean being zero? I am very new to data transformation - tried log with constant addition and cubic root tran... |
Suppose we want to apply a rejection rule on N tests. We may write the following table:
Decision
Actual
| Accept H0 | Reject H0 | Total
-------------------------------
H0 | N0 - a | a | N0
Non H0 | N1 - b | b | N1
Total | N - R | R | N
The false discovery pr... |
I'm doing a multicenter RCT for a PhD, where i compare learning 30 skills for staying calm (while suicidal)
ACTIVE:with an adjunct cellphone-app training the skills and
CONTROL:without cellphone app support.
I'm thinking that I'll let the primary outcome be slope of skills acquisition. Since there is 30 different s... |
Given a set of data with their frequency in a data set,
like:
$$x_1, f_{x_1}, x_2, f_{x_2}, x_3, f_{x_3}, \cdots, x_n, f_{x_n}$$, where $f_i$ is the frequency of value $x_i$ in a data set $\{x_i\}$.The definition of frequency here is:
$$f_i =\frac{n_i}{N} =\frac{n_i}{n_1+n_2+n_3+\cdots}$$
If we only know a limited n... |
Let's say I have calculated what day does an animal gives birth
if it was pregnant on 1st Oct each year. In Julian days, 1st Oct is 274.
# some sample data
years <- c(1980:1990)
pregnancy.date <- rep(274, times=11)
delivery.date <- c(360,362,363,1,5,2,345,6,7,8,9)
dat <- as.data.frame(cbind(years,pregnancy.date,del... |
I want to capture relationships between high-level concepts, as opposed to just between words, using word2vec or similar approach. What would be a promising way to achieve that? I was thinking of modifying the objective function to use something else that word co-occurrence counts, is there any better approach?
A bit o... |
I am confused whether one should exclude missing observations when adjusting p values for multiple testing. There seems to be no consensus among R function on whether to do this or not. stats::p.adjust(x) behaves different if you specify the default n = length(x) explicitly (NAs are counted) vs. if you do not specify t... |
This question is a continuation of
How should one approch Project Euler problem 213 ("Flea Circus")?
I followed the approach of Glen_b outlined in his
answer in the page referenced above. I am using Java.
So now I am at a point where I think I have correctly calculated the probabilities p[30][30]
where p[i][j] denot... |
I encountered this term in the Stanford notes about softmax regression:
we will begin by expressing the multinomial as an exponential family
distribution. To parameterize a multinomial over k possible outcomes, one could use
k parameters...
I searched online for an explanation and I could see it is a recurrent t... |
Recently I applied a mathematics test for ensino fundamental (the Brazilian elementary school) composed by 24 items previously calibrated under a 3 parameters logistic model. The calibration of these items goes back to 2008, and all items used was fit for the curriculum. The parameters (A is the discrimination, B the d... |
Can i use a Z test for 2 proportions for the following data?
I have 2 samples - male (N=33) and female (N=51)
Within the male sample no-one tested positive for a particular attribute. 33 Tested negative.
Within the female sample 1 person tested positive for the attribute and 50 tested negative.
I want to know if the... |
I have a survey question where I have asked respondents to check all that apply. There are three options. I would like to test if the percentage is significantly different between the three options. One person can appear across all three categories. So there is no assumption of independence. Is there a test I can apply... |
When l compute the SVD of my matrix x as defined in kernel_hist_to_SVD(). The resulted decomposition is not equal (approximatively) to the original matrix k. Here is my code.
def histogramIntersection(M, N):
m = M.shape[0]
n = N.shape[0]
result = np.zeros((m,n))
for i in range(m):
for j in rang... |
I'm working with the "mediation" package for simulation-based causal mediation analysis.
My question is: Why do percentile-bootstrapped CIs for the proportion mediated sometimes include impossible values?
Here is an example reproduced from the package authors' J Stat Soft paper (page 7) [1]:
library(mediation)
# mode... |
I posted this question on stack overflow here enter link description here but did not get useful feedback. So, I'll post it again here, in the hopes that this is a better venue for it.
I'm wondering if there is a way to correct for multiple comparisons using lsmeans that will allow me to correct for only a certain numb... |
In a study on a bird species, I observe 558 locations. Each location is assigned one of 4 cases:
never occupied by the species (never)
occupied in the past but abandoned now (past)
occupied in the past and now (always)
not occupied in the past, but occupied now (current)
I have a set of explanatory variables (climate... |
I have to predict time series that has unequal time steps using RNNs. Just to see if the approach is correct, I'm trying to predict (sine curve) using RNN with input as time and trying to predict f(t).
The important to notice is that time steps intervals are not equal.
0.006 0.224 0.322 0.347 0.418 0.45 0.462 0.471 0.4... |
I have come across a question on joint and conditional probability. In a shipment of 20 packages, 7 packages are damaged. The packages are randomly inspected, one at a time, without replacement, until the fourth damaged package is discovered. Calculate the probability that exactly 12 packages are inspected.
Part of Sol... |
I'm measuring genetic diversity from every individual in a sample using two different types of genetic information. These types of genetic information have different properties, and mutate independently of one another, yet will always be inherited together when an individual reproduces. Should I consider these differen... |
I am reading Identifying and attacking the saddle point problem in
high-dimensional non-convex optimization by Dauphin et. al. and the first paragraph on the second page states the following:
A typical problem for both local minima and saddle-points is that they are often surrounded by plateaus of small curvature in t... |
I am using doc2vec to generate vectors for sentences in training and testing datasets. The generated vectors are used to classify sentences using ensemble classifiers. The classifier is showing two different accuracies for the doc2vec model trained on same set of parameters.For TF-IDF the accuracy scores are consiste... |
I keep getting different out-of-bag error estimates from the caret package, depending on how the estimates are computed. I can't seem to nail down exactly where the discrepancy is coming from.
Consider a simple random forest model using the built-in mtcars dataset:
set.seed(100)
tc <- caret::trainControl( method="oob" ... |
Can someone summarize how to use Gaussian Mixture Model for outlier detection purpose. I am more interested in a general method and not so much the mathematical aspects of GMM's
|
I'm doing a two-class image segmentation problem using fully convolutional networks, and got the following loss curves and learning_rate change curves. From the loss curves, it seems the network is overfitting from the training set. I have used the weight decay and changing learning rate policy. Are there any other met... |
I have been reading about isotonic regression and it seems like a great method that will give one a monotone regression function estimator and, moreover, is free of any tuning parameters.
Why are people still using alternative approaches to such estimation (e.g. constrained splines, etc.) that require a choice of a t... |
I'm doing a forecast combination model in SAS: the first is an ARIMA (10, 0, 1)(0,1,1)s NOINT with a point intervention at t=3
And the second is a MA model with only lag 13 and simple differencing d = 1 also with a point intervention at t=3. MA(q=13) NOINT. I did this in Factored ARIMA.
What is the equation of the mod... |
I have a dataset with 46 million observations and 25 predictors. I am training my model in the python h2o package like so:
import h2o
h2o.init(nthreads = -1, max_mem_size = "110g")
df = h2o.import_file(path = "C:/user/path_to_data.csv")
#predictors
x = [col for col in df.column if 'target' not in col]
y = 'target'
... |
Suppose I have measured the activity of $N=20$ genes for 102 subjects (50 with cancer and 52 normal). Based on the available data, I compute the following table:
| 1 | 2 | ... | 20
|-0.66 | 1.02 | ... | 0.33
The first line reports just the index of the gene and the second one is the computed t-value, where:
$$
t... |
Assume that we have a 2 class data where number of samples in each class are very different (data is imbalanced) and penalty of miss-classification is equal for the two classes. For assessing the performance of a binary classifier over this data,
I like to know what is the benefit(s) of Matthews correlation coefficient... |
In Intriguing properties of neural networks (https://arxiv.org/pdf/1312.6199.pdf) they show (4.3), that the existance of adversarial examples is closely connected to the upper Lipschitz constant, namely that if the constant is small enough then it's not possible to find adversarial examples. As it turns out these Lipsc... |
I am looking through Rob J Hyndman's text of forecasting here
In line 258, I am getting this Error Message:
Error in forecast::autolayer(f.arima, PI = FALSE, series = "ets") :
object 'f.arima' not found
I get that the object is not found, is there something I am missing here?
|
I am working in R creating a GBM model using H2O and trying to use LIME to look at some local explanations to get a feel for what the model is doing. It's a binary classifier and I'm specifying 8 for n_features to the LIME package. However, I keep running into situations where all or most the 8 features are showing as ... |
I have a vector of numeric values. My hypothesis is that this vector is a mixture drawn from two Gaussian distributions (ie k = 2). However, it is possible that there is only one Gaussian underlying my data (k = 1). I am attempting to answer this question in a data-driven manner but do not know the best method?
My tho... |
Are there any generally accepted indications based upon bias, variance, accuracy, loss, or another feature that indicate that a Neural Network architecture would benefit from having a deeper structure (other than explicit testing of the deeper architecture)?
I know that a deeper architecture does not always translate i... |
I have panel data: individuals and years. Individuals can self-select in two different treatments. After the self-selection, there is a randomization and only some individuals eventually get the treatment. To compare the two treatments, I would like to use an inverse probability of treatment weights. I plan to use a mu... |
I am learning how to use Linear Mixed-Effects model instead of ANOVA. My data is investigating the effects of four different types of treatments on learning gain, which is measured at before and after the treatments. Some of the participants engaged in several types of treatments and took several types of measurements.... |
I'm very new to Bayesian and am very interested in understanding the concept that each posterior from a previous test, can be used as a prior for a current test or in Lindley's (2000) words 'Yesterday's posterior is today's prior'.
To see this in action, however, I was wondering if I could explore this concept in R as ... |
Here are my personal understandings, so feel free to correct me or add comments.
Under the classical statistical modeling framework, e.g. regression, we are often facing two questions: 1) is this a correct model to apply? for instance a linear model? is the response gaussian distributed? are these the proper predictors... |
I would like some advice on what statistical analysis to use to test my hypothesis. I am using R. My setup is as follows (in .csv format, first line is header):
id,time,group,outcome
1,t1,control,3.4
1,t2,control,3.2
2,t1,treatment,3.4
2,t2,treatment,4.2
3,t1,control,3.3
3,t2,control,3.1
4,t1,treatment,3.2
4,t2,treatme... |
For a bivariate, real, continuous function $f:\mathbb{R}^{2}$, in order to show that $f(X_{n},Y_{n}) \to^{P} f(X,Y)$ as $n\to \infty$ whenever $X_{n} \to^{P} X$ and $Y_{n} \to^{P} Y$ as $n \to \infty$, I need first to establish the following lemma:
Lemma: A sequence of vectors $\{(X_{n},Y_{n})\} \in \mathbb{R}^{2}$ co... |
Sobol method quantifies the contributions of input variance to output variance. For example, given a model with two inputs and one output, one might find that 70% of the output variance is caused by the variance in the first input, 20% by the variance in the second, and 10% due to interactions between the two.
In R pac... |
This problem has arisen in my research: suppose that $V_i \sim \text{ED}$ are iid exponential distributions (ED) with mean $1$ and let $\lambda$ be a nonnegative number. Is it true that
$$
\sum_{k=0}^{\infty} \frac{\lambda^k e^{-\lambda}V_{0} \cdots V_k}{k!} \sim \text{ED}?
$$
This passes the sanity check, as the expe... |
I was following the book "Hands-On Machine Learning with Scikit-Learn & TensorFlow" by "Aurelien Geron".
The following remark was made about feature scaling : -
As with all the transformations, it is important to fit the scalers to
the training data only, not to the full dataset (including the test
set). Only the... |
Primal $$argmin_{w} \frac{1}{2}||w||^2 + \frac{1}{N}\sum max(1-t^{(i)}(w^Tx+b),0)$$.
The dual form
$$max_{\alpha} \sum\alpha_i - \frac{1}{2}\sum t^{(i)} t^{(j)}\alpha_i\alpha_j K(x^{(i)},x^{(j)})$$
By optimizing dual form, we have $w = \sum\alpha_it^{(i)}x^{(i)}$ such that $\forall i, \alpha_i(1-(w^Tx^{(i)} + b)) = 0... |
I am reading the following section of the book Deep Learning.
Can you provide an intuitive explanation of the above section? I don't quite understand the statement "When this number is large, matrix inversion is particularly sensitive to error in the input" and "This sensitivity is an intrinsic property of the matrix... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.