instruction stringlengths 9 38.7k |
|---|
According to https://scikit-learn.org/stable/auto_examples/preprocessing/plot_scaling_importance.html,
Feature scaling through standardization (or Z-score normalization) can be an important preprocessing step for many machine learning algorithms. Standardization involves rescaling the features such that they have the ... |
Let $X_n$ and $Y_n$ be sequences of random variables. Show that
$X_n + Y_n \to X + Y$ (1)
$X_nY_n \to XY$ (2)
If $\mathbb{P}(X=0) = 0, \; \frac{Y_n}{X_n} \to \frac{Y}{X}$ (3)
are true for convergence in probability and and convergence almost everywhere, and (1) hold for convergence in $L^1$ aswell.
I have tried the ap... |
Related question here
I am trying to measure the uniformity of multimodal distributions and am looking into using entropy.
I would like a measure of entropy that is higher for the first distribution than the second.
However, Shannon entropy is order independent (invariant under permutations) so the above distributions... |
I have designed a couple of neural networks, one MLP dense-layers based, and one CNN, which are designed for speech separation in a 3D space. Either network can be used for the same task.
Their inputs is a 4-dimensional tensor, in the form (N, F, T, C), where N is the sample image, F the number of frequency bins, T the... |
My boss asked a senior scientist in his network for recommendations about testing whether two Poisson random variables have the same mean. The context is differences in measurements from two radioactive samples. We need to decide whether the samples come from the same source and measurement differences are due to the r... |
Summary: Is random forest naturally more robust to bad features in high vs low dimensional datasets?
I've made a number of text classifiers with Scikit's Random Forest, with thousands of features from text tokenization, and have been happy with them. They're easy to work with, even with mostly out-of-the-box hyperparam... |
I want to investigate Y ~ X1 * X2 + (1|ID on this dataset (there's a plot of these data in that post too, it's the same dataframe)
Y is a continuos outcome variable. X1 and X2 are both two 2-level categorical predictors. X1 ("CATEGORIES") accounts for "Year of testing" and X2 "test1 or test2" (MY_GROUP). All data come... |
I have a quite complicated trigonometric equation I was able massage into a parametric function that takes four parameters as inputs/arguments, say: $a$, $b$, $c$, and $d$. Regardless of the combination of the parameters, the function is always periodic so I'm able to calculate the local maxima, $x^+$, and minima $x^-$... |
I need to determine the distance between two images.
Supposing that we are dealing with images of the same size, I think that we can reduce this problem to the square root of the sum of the square of the distance between the pixel $\tt{p1[i,j]}$ of image 1 and the pixel $\tt{p2[i,j]}$ of image 2, with $\tt{i}$ and $\tt... |
I have data of the form:
judgment
confidence
variable
A
0.4
2
A
0.7
1
A
0.8
5
B
0.2
4
B
0.6
6
B
0.1
8
Outcomes:
A dichotomous variable (binary judgment)
A confidence score associated with the judgment [0-100%]
Predictors:
An experimental variable (continuous)
So far, I have been successful... |
In finding an proposal distribution function $g(x)$ for the following function:
$ f(x)= {\Large \frac{e^{x}}{(e-1)} }$ where $0 \leq x \leq 1$
Tested with $$x^2+1, 1/x+1$$ and other variations, but the simulation did not quite fit well.
How to find $g(x)$?
|
I am trying to fit and forecast water production in a well and this accounts for my end of training thesis. But I got poor prediction from ARIMA and sarima models. I tried with auto ARIMA but it didn't go better. I am trying now to modify the sarima parameters to obtain better results, but it's very tedious.
[
|
I have estimated a DCC model and now I have plot the dcc.fit of the model and now I would like to know if someone can help me to interpret this graph as I am new to this field, and I do not know what interpretation to do. Thanks!
|
In cross validation, we repeat training the model with resampled training data and measure average of the errors from the different resampled training samples. So cross validation is basically a frequentist method. It measures generalization error of the training "procedure" rather than that of the finally trained mode... |
I have a database that looks like this
Firm Event Dummy_Event Dummy_Ev16 Year Info Dummy14 Dummy15 Dummy16
1 0 0 0 2014 x 1 0 0
1 0 0 0 2015 x 0 1 0... |
I am new to decision trees, there are several things confused me a lot.
The first thing is that should we convert all categorical variables (Such as: gender, department, number of years) to a numeric variables using unclass method?
At the first time, I run the decision tree model simple using rpart(Y~.) based on the ... |
Consider the following non-nested and overlapping hypothesis testing:
$$H_0:\;\theta\in A\quad vs\quad H_1:\theta\in B$$
where $A\cap B \neq \emptyset,\;A\not\subset B,\;B\not\subset A$.
Here, we have an estimator, $\hat{\theta}$, for the parameter of interest $\theta$ that is consistent under the both hypotheses.
In m... |
I wanted to know what is the difference between running a multinomial logit regression and a logit regression on a model in which the dependent variable is a dummy with just two levels.
My database looks like this
Firm Event Year Info Dummy14 Dummy15 Dummy16
1 0 2014 ... |
I would like to calculate the integral of a scalar function as follows:
$$f(x)=\mathrm{tr}((\mathbf{A}x+\mathbf{B})^{-1}\mathbf{B}),$$
where $\mathbf{A}$ and $\mathbf{B}$ are two $n\times n$ positive-definite matrices.
Actually, it is an adjusted score (first order derivation) of the log determinant term of a multivari... |
I am currently trying to solve the following exercise in R with a random dataset:
Calculate the means and variances
of the rows of the following simulated data set, and plot the distributions
of means and variances using hist() and boxplot() functions.
set.seed(100)
#sample data matrix from normal distribution
gset=... |
I have data that is not normally distributed. I can log-transform it to be normally distributed, and then perform a t-test and get confidence intervals (CI).
But how do I interpret the results of the t-test and the CIs?
In my example, I have a skewed data and I log-transformed it.
My original data has:
median 163000.0... |
I conducted a moderated regression, but didn't specify the direction of moderation by M. that is I didnt specify whether the relationship between X and Y would be greater at lower or higher levels of M.
does that matter? in terms of sample size and power calculations?
my understanding was statistically it doesn't matte... |
I have an unbalanced dataset on which I used SMOTE to even the classes.
I'm using R and the package::function is smotefamily::SMOTE.
Now, this function required numeric variables and some of the columns of the dataset I gave as input where num but actually contained binary 0, 1 values.
In the output I get new rows with... |
I have a question regarding the modified Z-score, can I use this score in a Z-probability table, i.e. the p-value from a modified z-score?
where:
z-score = (xi - μ)/σ
(the z-score probability can be obtained from links)
modified z-score = 0.6745(xi - median(x))/median(|xi-median(x)|)
i can use modified z-score to get i... |
I work for a nonprofit and we are trying to assess utilization of our services across our service area, particularly to identify any communities to target for additional outreach. We are working with 3 year’s worth of services data organized by zip code/zcta, although we may use census tracts in the future. As the size... |
this may be a silly question, but still:
I've been told that the slope formula equals the rise/run ratio, like this:
$$
m = \frac{rise}{run} = \frac{y_2 - y_1}{x_2 - x_1}
$$
in which rise equals detaY and run equals deltaX
however, I've also seen it using Pearson's correlation coefficient, such as in many posts here... |
I'm wondering which is the likelihood function for a logit model and how I can derive it. Thanks!
|
Note: this is a different question from the one I asked here, but I'm using the same example model.
I have an R glmer (logisitc mixed-effects) model that looks something like:
mod <- glmer(choice ~ (x1+ x2)*log(x3) +x4 +(x1 + x2 | id), data = dat, family = binomial)
I can get the slopes of the interaction between x1 a... |
I am learning about the idea of correlation in statistics, and I came across the following
Statement: the best fit line of bivariate normal data passes through extrema of level sets. That is, if $(X,Y)\sim \mathcal{N}(0,\Sigma)$, then the best fit line $l$ passes through the extrema of the level sets of $f$, the PDF of... |
Suppose that I have a task of classifying a time series. I decide to use Hidden Markov Model $\lambda(A, B, \pi)$, where $A$ is a transition matrix, $B$ is an emission probability, $\pi$ is an initial distribution. An observed stochastic process looks as below
and there are two unobserved states: State 1 and State 2, ... |
I have noticed that the topic has been already treated in other questions but I am still struggling about one specific issues. In details,
FC_Feedstock <- rma.mv(yi = EF,
+ V = STDEV,
+ slab = N,
+ data = FC,
+ random = ~ 1 | Title/N,... |
$P_1$ is uniform on $[0, 0.5], ~P_2$ is uniform on $ [0, 1] $
What is the KL-divergence $(P_1 \Vert P_2)?$
Attempt:
$$ D(p\Vert q) = \sum_{x\in X} p(x) \log \frac{p(x) }{q(x) }.$$
KL$(P_1\Vert P_2) =$ integral of $\log(1/2) =$ integral of $\log(1/2)$ from $0$ to $0.5 = \log(1/2)\times 0.5 . $
KL$(P_2\Vert P_1) =$ KL$... |
Slide 8 (about 19 minutes into the video) of the Stanford Seminar - Information Theory of Deep Learning, Naftali Tishby has the following (rather informally stated) theorem.
Theorem (Information Plane) For large typical $\mathbf{X}$, the sample complexity of a DNN is completely determined by the encoder mutual informa... |
I have six values, and each value is corrupted by Additive-Zero-Mean-Gaussian Noise with var = 0.05).
Each value is range from 0 to 1. Is there anyway for me to remove these additive noise?
|
I've got a rather simple question for you, however to which I can't find a proper answer. Let's have a simple setting which is visualized in the image below. We've got one object of class A in the image and our model predicts the occurrence of said class A with its position incorrectly estimated.
My question is whether... |
Suppose we are in the realm of $M$ class classification, $M \in \mathbb{N}$. I have seen the following result stated many times, but only proven for the case $k = 1$. I would like to prove it for arbitrary fixed $k \in \mathbb{N}$ but am struggling immensely:
Theorem 1: Let $(X_i^n, Y_i^n)_{i=1}^n$ be $\mathcal{X} \t... |
This might be a newbie question, but it is from a newbie.
If there are multiple local minimums, and the function converges at various local minima, which local minima to pick for optimization? Do we keep calculating multiple local minima to find the lowest one? How do we know if there is a finite set of local minimas?
|
I work with a large unit-day (i,t) panel and want to estimate how the timing of treatment (A) affects the effectiveness of treatment (B), but I can't get my mind around how to do this correctly.
What I am after is analyzing whether the "treatment" coefficient of (B) on some outcome Y is affected when (A) is administere... |
I want to test the efficiency of two different algorithms.
I have two random samples from the same population. On one sample, I run Algorithm X; on another sample, I run Algorithm Y. There are 30 records in each. The variable type is continuous.
Which statistics test I can do to find out the best algorithm and what par... |
I have data about the occurrence of a data breach at certain companies for the period 2005-2018. Now I have a question about the model I should use. I have two options:
Probit/Logit: I set the dependent variable to 1 if there have been a data breach in a certain year. For example:
Company A does not suffer a data brea... |
I'm teaching a course in time series analysis, and using a lot of R simulation. I've come across the following situation. Consider an AR(2) process with $x_t = x_{t-1} - x_{t-2}+w_t$ where $w_t$ is Normal(0,1) noise. This process has a unit root (two, actually, namely $0.5 \pm i*\sqrt{3}/2$). The code below shows how t... |
I am doing research work on fault classification in power transmission lines. I generated fault datasets in MATLAB/Simulink and collected it in matrix format with 6 various i.e. 6 variables in 6 columns of matrix.
I have performed Principle Component Analysis to reduce dimensions to one-dimension for feature extractio... |
When running a two-way repeated measures ANOVA, should:
A) the independent varibles be normally distributed?
B) should the scores between the variables be normally distributed?
Overall: should the variables be normally distributed, the difference of scores (as such in a paired) test, anything else ?
I'm struggling wi... |
I have the following time series process $y_t $
$$\Delta y_t = \delta + \gamma t + \epsilon_t$$
where $e_t$ is white noise process with the variance of $\sigma^2$.
I guess that whereas $\Delta y_t$ is trend stationary process, $y_t$ is a random walk with a quadratic deterministic trend.
So, by using the process $y_t$ w... |
Consider the following model:
$$ y_{it}=\nu_{it}+\epsilon_{it}$$
$$\nu_{it}=\rho \nu_{it-1}+\zeta_{it}$$
Where $y_{it}$ is the income for $i$ at time $t$. $\epsilon_{it}$ is the idiosyncratic income shock. $\nu_{it}$ denotes the permanent component that follows an AR(1) process, like unobserved productivity. The only o... |
I'm trying to solve the PCA problem:
For $k\in N$ some number and $X\in R(n\times d)$ where I'm trying to find $w\in R(k\times d)$ such that:
$w = argmax( E(WXX^T))$
(I might be wrong with the formulation of the optimization goal. Please correct me).
I want to solve the optimization goal with gradient decent rather tha... |
Given data $\{(Y_i,X_{1,i},X_{2,i}\dots X_{p,i}):1\le i\le n\}$. let $\theta\in(0,1)$ and $\beta=(\beta_1,\beta_2\dots\beta_p)^T$.
Then, the quantile regression problem
$$\underset{\alpha,\beta}{\min}\sum_{i=1}^n\{|Y_i-\alpha-\beta_1X_{1,i}-\dots-\beta_pX_{p,i}|+(2\theta-1)(Y_i-\alpha-\beta_1X_{1,i}-\dots-\beta_pX_{p,i... |
How do you write down the likelihood for random vectors when each component follows a different distribution with a dependence structure?
For example, Suppose there are n-random vectors, mutually independent, $X_1,\ldots,X_n$ with 3 components of each vector, i.e. $X_i=[X_{i,1},X_{i,2},X_{i,3}],i=1,\ldots,n$. Suppose $... |
Say we have a model and some hyper-parameter with L values, and our goal is model selection. A k-fold CV outputs L accuracies (each accuracy is an average over K values). The best model corresponds to the highest accuracy.
When comparing the L accuracies in order to select the best model, why don't we do any significan... |
What is the purpose of adding an interaction with time for a variable that does not meet the proportional hazards assumption? I don't see how it solves the problem. Does it allow the hazard ratio to be estimated, or does it just allow you to keep the variable in the model? I guess if it's the latter, it is a better sub... |
I am analysing data on hourly electricity prices to try to do some forecasting, in my dataset I have mostly positive values, but some negative, around 20 per region for the two year duration. I want to do autoregressive (AR) forecast of this data, that is, trying to explain future prices based on previous prices.
I mig... |
Long time lurker but I've just created an account because its the first time one of my questions has not actually been answered.
I'm currently struggling with optimizing the hyperparameters of a Logistic Regression using GridSearchCV. My current model is severely overfitting (ROC AUC train = 0.93, ROC AUC test = 0.54).... |
I have a linear mixed model, from which I extracted the slopes for each individual participant (using coef(model)$participant). Then, out of curiosity, I ran a linear regression (equivalent in structure to the original linear mixed model) on each participant's data and saved the estimates for each participant.
Why do t... |
In cross-sectional data, the residuals are calculated along the individual observations.
But in panel data there is individual and time observation. So how are the residuals calculated?
|
I have a dataset which has some outliers and majority of the class is inliers (not anomalous). I am trying to train a OneClassSVM/IsolationForest model to identify the outliers. If I train using all data and then generate the predictions on the same data, my performance is not as good as compared to the case when I tra... |
My input data contains a response variable is_disease which is obviously a Factor(Yes,No). In order to use gbm package to perform a adaboost tree, I convert the {"yes","no"} to {1,0}. After I build a model
model1 <- gbm(train, is_disease ~ .,distribution = "adaboost",n.trees = 50),
then I make a prediction
p1 <- predic... |
My slides say that the exponent of a multivariate normal distribution, $(\mathbf{X} - \boldsymbol{\mu})^\text{T} \boldsymbol{\Sigma}^{-1} (\mathbf{X} - \boldsymbol{\mu})$, follows a chi squared distribution with degrees-of-freedom $p$ (i.e., the length of the $\mathbf{X}$ vector)
My intuitive understanding of chi squar... |
(Disclaimer: I am aware that some form of this question has been asked many times on this site, e.g. this, this and this - I was hoping to find a definitive answer to this from Google but I am still confused by reading these links and I don't have enough privilege to comment, so here goes this question.)
Mathematically... |
I know the Advantage function is related to the Value and State-Action functions. I also understand the following formula -
$$V^{\pi}(s) = \sum_{a \in \mathbb{A}}\pi(a|s)*Q^{\pi}(s,a)$$
But, I am having a hard time understanding this -
$$A(s,a) = Q(s,a) - V(s)$$
I have read the original paper and also various blog post... |
$\textbf{Problem:}$ Let $\mu$ be an absolutely continous probability distribution with distribution function $F(x)$ and density $f(x)$. For any Borel set $\Lambda$ and $a<b$, let $\nu\left(\Lambda \cap[a,b] \right) = \int_{a}^{b} I_\Lambda (x) f(x) dx$. Show that this defines a probability measure $\nu$ on the Borel se... |
I've got a rectangular region that's composed of 1024 grid cells (32x32 cells). Each of these cells has an associated value, which then builds me a 2D array.
For that 2D array, I've got 8 samples (yearly samples) and I'd like to predict 2 samples ahead. In other words, the data shape is (8, 32, 32) (8 samples of the 32... |
I am performing a hypothesis test and therefore intersted in finding the F critical value for my F statistic. Below is the anova output when I compare two models.
Analysis of Variance Table
Model 1: Y ~ X1 + X2 + X3 + X4
Model 2: Y ~ X1 + X2 + X3 + X4 + (X2 * X4) + (X3 * X4)
Res.Df RSS Df Sum of Sq F Pr(>F)
... |
In continuous probability, $\text{Pr}(X=x) = 0$ for all $x$. However, $\text{Pr}(a \leqslant X \leqslant b) >= 0$ given $b > a$. The $>$ is key here: each individual outcome has zero probability but the probability that an outcome occurs in a SET of outcomes can be non-zero.
That the probability of each element of a se... |
Definition: A sequence $\epsilon_n$ is a posterior contraction rate at the parameter $θ_0$ if $$\Pi_n(θ: d(θ, θ_0) ≥ M_n \epsilon_n| X^{(n)}) → 0$$ in $P^{(n)}_{θ_0}$-probability, for every $M_n → ∞$.
I am studying the subject of posterior consistency. While this subject seems straight forward there are few keywords us... |
I have 2 questions about analyzing data that was not randomly sampled from a population.
I work with "ecological monitoring" data that involves repeatedly taking measurements from the same location of interest, as well as from nearby locations as a reference, for the purposes of monitoring change in the ecosystem. Ther... |
Alex Graves, author of Supervised Sequence Labelling with Recurrent
Neural Networks, described how sensitivity of an output to the inputs is calculated as follows:
/*
The delta terms refer to the partial derivative of the loss with respect to variables of interest.
δtk := ∂L/∂ytk.
ytk: the k-th output at time t
*/
Firs... |
The objective of supervised learning is to induce a function $f_\theta$, where $f_\theta$ is from a family of functions $f_\theta \in F$, from a training set $D^{tr}=\{(x_0^{tr},y_0^{tr})\ldots, (x_n^{tr},y_n^{tr})\} \subseteq \mathcal{X} \times \mathcal{Y}$ where $\mathcal{X} \times \mathcal{Y}$ denote the domain o... |
I've seen a fair amount of information online regarding the loss graph of a deep learning model oscillating, but not so much about the performance graph. In general, when I "properly" train a neural network, the performance usually increase and then plateaus. However, I've noticed that in some cases the performance its... |
$AUC=0.5$ and an ROC curve of a 45-degree line often are considered the baseline performance of a model, one that gets absolutely nothing from the features.
If we predict the same (prior) probability of class membership every time, how do we wind up with a 45-degree line for the ROC curve? Either we get perfect sensiti... |
I am running a regression on Tax payment and investment. Tax payment is numerical and investment is categorical like, number of projects carried out. When I run the regression the a unstandardised beta coefficient is very very small, close to zero, but standardised coefficient is about 0.348. The p value is less than 0... |
I'm using this 2017-2018 exam paper to pre-study for a module in Bayesian Statistics. It has a question,
Assume that the waiting time, $t$, of a client in a bank can be modelled with an exponential distribution with unknown parameter $\lambda$, $$f(t\,|\,\lambda)=\lambda\exp[-\lambda t], \hspace{1em} \lambda>0,$$
and ... |
Is there a method to do a partial correlation with a nominal/categorical variable? If so: What is it called and how would you do it in R?
|
Suppose $x,y$ are I.I.D random variables in $d$ dimensions. Consider the following quantity:
$$R=\frac{(E\|x\|^2)^2}{E\langle x, y\rangle^2}$$
equivalently for empirical distribution with data matrix $X$
$$R=\frac{(\operatorname{Tr}X'X)^2}{\operatorname{Tr}X'XX'X}$$
Does this quantity come up in statistics literature?
... |
I'm looking for a way to create a matrix with a known number of signals and background error for use in PCA. The following example attempts this by combining signals of known amplitude, followed by the addition of error, also of prescribed amplitude. I'm a bit unsure as to whether I can definitively say that only X PCs... |
This is a multi-group study and my plan is
Conduct casual mediation analysis ('mediation' package)separately for 4 groups and find a final mediator which is suitable for most groups.
Apply meta-analysis('metaSEM' package) to check if this mediator is stable for all the groups to tell the group difference.
When I appl... |
If I were to try and rephrase the argument in the original Box-Cox paper in my own words, I would say something like the following: given a model
$$
y = x \beta ,
$$
if the residuals do not appear to come from a normal distribution, we can try transforming the data $y \to y^{(\lambda)}$ such that the residuals of the m... |
I have 2 sets of classifiers, both trained on 2 different feature sets extracted from the same data.
I would like to combine them using the "stacking" method, which I understand as follows:
Have the predictions from the initial classifiers
Use these predictions as input to another classifier
This final classifier pred... |
I would like to use mgcv to build a model in which the effect of a covariable is modelled using a factor smooth as varying coefficient, i.e. the model
model1 <- gam(y ~ 1 + t + id + s(t, id, bs = "fs", xt = "ps", m = c(2, 1), by = x), family = binomial(link = "logit"), data = df)
where the effect of x is time-varying ... |
I have a question about a panel data regression model in general. I have firm-level data in a single country. Is it okay to control for both time fixed effects and entity-invariant variables, such as GDP growth and interest rate (which are the same across firms but vary across years)? Ideally, I want my model to be as ... |
I have the following experimental design and I´m a bit lost:
I have subgingival samples collected from 30 patients. Two samples were taken from each patient on a first visit (V1):
A sample from a tooth that has not received any treatment (V1-C)
A sample from the treated tooth (V1-T) (In each patient sample C and T were... |
I am looking for tips, pointers, explainers, blog posts, and the like, on how to set up a monte carlo simulation for a time-series, cross-sectional / panel data generating process in R.
I would like to start with a model such as this:
$$
y_{it} = \alpha + \phi y_{it-1} + \beta_1 x_{it-1} + \beta_2 z_{it-1} + \epsilon_{... |
I try to understand the difference of +/-1 in the result of two functions using the binomial distribution.
I need to know the critical value of a situation where I have n=9 tests, the probability of success of each one is prob = 1/10 and the type I error is 0.05.
With sensR::findcr(sample.size=9, alpha=0.05, p0=1/10, t... |
In a statistical paper, I found that $\beta^T A \beta=1$, where $\beta$ and $A$ are a vector and matrix of constants, respectively.
In the paper, the author utilizes only the $\beta$ that satisfies $\beta^T A \beta=1$, so I guess that the equation stating "a quadratic form is one" has something special meaning.
Is ther... |
I have a list of 1000 songs with their bpm (beats per minute). If I were to sample 30 songs, is there a way to find the probability that the sample minimum is below a certain value like 100 bpm?
|
I would like to visualise the following scatterplot in a different way that would make it more intuitive. The X axis is trading frequency and describes how many trades were conducted whereas the Yaxis describes the return on investment achieved with the transactions.
The sample is quite large and dominated by extreme v... |
In the context of simple binary logistic regression (https://en.wikipedia.org/wiki/Logistic_regression) we have $p(x)=\frac{1}{ 1 + e^{\beta x}}$, where $p(x)$ is interpreted as the probability that the observation $x$ has $y=1$, i.e. $x$ belongs to category/class 1.
My question is: Why does the fitted model return the... |
I am trying to run a TVP-VAR on statsmodel for a big data, but seems to run in a problem when I am trying to validate the vector matrix and the vector shape. Particularly, in the start and the update parameter definition mostly on the dimension and the structure of the update parameters
My model is a TVP-PVAR in a Norm... |
Why don't we consider nonlinear estimators for the parameters of linear regression models?
says that LASSO is a non-linear estimator.
I think LASSO has a solution via matrix multiplication. I don't even think that comment from quote is true.
What is definition of non-linear estimator?
|
NOTE: This question relates to Binomial logistic regression. Thus, the $n$ in the title, refers to the parameter of the Binomial distribution.
Most real-world use cases of logistic regression introduced in statistics courses and employed in machine learning models are about binary logistic regression where $n = 1$.
Giv... |
Mathematically, it is evident that var = sd^2 (or var^0.5 = sd), but R seems to answer TRUE for the latter and FALSE for the former.
To my knowledge, both var() and sd() function use n-1 for degree of freedom.
What would be the problem?
data <- c(20, 20, 30, 20, 16, 13, 20)
var(data)^0.5 == sd(data)
var(data) == sd(da... |
I'm using rstanarm to estimate random slopes for second-order polynomial coefficients. My model has the basic form:
mod <- stan_lmer(y ~ x + I(x^2) + (x + I(x^2) | user_id))
I received warning messages about divergent transitions, increased adapt_delta, and tested the following models:
# many divergent transitions
mod_... |
Say I have a neural network which has 1,000,000 parameters built using 100 features and I wish to understand the underlying data-generating process for how the model arrived at each prediction. Simply looking at the value of the node will not provide any information. I am looking to implement a solution that will help ... |
Suppose a linear regression model:
$$y \sim Normal(\beta X, \sigma)$$
For our purposes, assume $y$ is a univariate outcome and $X$ is a design matrix containing an intercept and one additional predictor, i.e. $\beta X = \beta_0 + \beta_1 x_1$. The Bayesian equivalent adds priors to $\beta$ and $\sigma$.
Sometimes, rese... |
It is well known that Random Projection (RP) is tightly linked to Locality Sensitive Hashing (LSH). My goal is to cluster a large number of points lying in a $d$-dimensional Euclidean space, where $d$ is very large.
Questions: Does it make sense to cluster the points via LSH after having reduced the dimensionality of ... |
In the (re)insurance field, it is quite common to simulate losses via a Monte Carlo approach and a stochastic generator of both frequency and severity individually (independency between both being often assumed).
However, empirical data (on which parameters are infered) is almost often truncated (due to the deductible ... |
Is it possible and what's meaning if model residuals with mean zero on training data but non-zero mean residuals on test data?
My guess is that the model produces biased estimates.
|
I am trying to solve the following problem using Bayes' formula 'Given visitors have visited a page, what is the probability they will convert?'
I have a website with which people interact. It has 50 pages, users click on an element on the website and they are redirected to a page. I have collected some information and... |
I'm analyzing health data with case reports which contain patient information including diagnosis, age, sex, location etc. The sample sizes are not very large.
I want to explore the data for relationships between the variables, for example:
-Is there a higher frequency of diagnosis A among females than males
-Is there ... |
Do covariates correlated with residuals in generalized linear models make estimates not consistent or make other problems?
Economists raise an issue about endogenous variables in OLS and do some 2SLS with probit.
Not sure if this is related to econometrics.
|
HI supposed I have these conditions.
dt = structure(list(sunny = 21:22, shade = 3:2
, tree = c(384L, 807L), hat = c(24L, 43L))
, row.names = c("Control", "Treated" )
, class = "data.frame")
> dt
sunny shade tree hat
Control 21 3 384 24
Treated 22 2 807 43
What I'm interested is if there ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.