instruction stringlengths 9 38.7k |
|---|
I am new to forecasting and have been using the fpp3 package and Hyndman's to practice on some fabricated data I obtained online. I have a specific challenge related to handling 0 values in my dataset.
Here's the context: I have three years of daily sales data for a retail store. The store is closed on weekends (Saturd... |
In supervised machine learning, we are given a set of data
$\{x_i\}_{i=1}^N$ where each data is associated with a label $\{y_i\}_{i = 1}^N$.
We would like to create/train functions $f$ to do several things.
create a best-fit curve: $f: x_i \to y_i$ such that a metric (training error) is minimized.
regression: assign... |
I have a various files, all containing data at 1-minute interval. File structure is as follows where D/T represents Date-Time, C1 and C2 are like constants in this task.
D/T AB EF C1 C2
20100101W00:01:00 112 25 1100 1910
20100101W00:02:00 121 37 1100 1911
20100101W00:03:00 119 36 1101 1912
20100101W00:0... |
I am going through Bayesian Modelling and Computation Chapter 2 which covers Exploratory Analysis of Bayesian Models. I am having some trouble wrapping my head around Bayesian u-values:
They define the bayesian p value $p_{B}$ as the probability that simulated test statistic $T_{sim}$ is less or equal to the observed t... |
I have a non linear regression model that is based on an exponential decay function. When I try to add a confidence interval, instead of using the models in built 'confidence interval' prediction functionality, I wanted to do so manually. I get my model params and their standard errors, then calculate the prediction us... |
New here so apologies if I'm not doing this right.
I'm writing up a research paper and my advisor/statistician provided me the following data to report in this paper. He said he completed a variance weighted least squares regression on our data. With all my googling I can't figure out what any of these values mean, and... |
In an extreme (and probably impossible) example, could you not end up with all the power for the prediction being contained in the weights to the right of the embeddings layer?...and thus the matrix to the left of the embeddings(and therefore embeddings) would be useless?
|
The problem
Two different tools $M1$ and $M2$ are supposed to deliver a certain amount of volume of a liquid but in different ways. Furthermore, the efficacity of the tools to deliver this volume decreases (slightly) with the time. We want to show that the process M2 is better than or equivalent to the process M1. Ther... |
I have some data on the number of items on tree branches and want to model a regression to predict the number of items from the branch diameter and the position in the crown (in/out, top/mid/bot).
We sampled the branches so that we can use every sub-branch of each sampled branch as a separate data point with the same p... |
Please correct me if I'm wrong but as I understand it, one iteration (?) of doc2vec takes each document and predicts a series of randomly sampled context words individually, feeding the errors from the prediction of each word back in to the network to adjust the weights.
Does iteration 2 predict a second randomly samp... |
I know that if $U$ is a uniform r.v. in $(0,1)$, then $U^a\sim Beta(1/a,1)$ with $a>0$.
On the other hand, if $U_{(1)}\leq \cdots\leq U_{(n)}$ are the uniform order statistics, then, with $U_{(0)}=0$ and $U_{(n+1)}=1$, we have
$$(U_{(i+1)}-U_{(i)})_{i=0\ldots n}\sim Dir(1,\ldots,1)$$
My question is: Can we say somethin... |
Hello can you help me to analyze responses to a survey and a test? I have to measure proportion of answers correct, because some individuals were given more tests than others.
I want to compare age of the individuals to their proportion correct and was thinking of doing a chi-square test for this?
Then I have a Likert ... |
Power analyses allow one to determine the minimum sample size required to detect a certain effect (when there is one)
To calculate power, one determines the minimum effect one wants to detect
With NHST, I can set this with library(simr), and calculate the lowest sample size needed to find a significant result to rejec... |
I am using NIPALS (non-linear iterative partial least squares) to get the loadings and scores from a PCA analysis. The reason I am using NIPALS rather than singular value decomposition is because NIPALS can accommodate missing data. Since, my data is very large 50000 by 300 it takes a lot of time to compute each the lo... |
When doing the Coxph analysis with the variables selected from an excel file, it gives a numerical result indicating the HR of each one of them according to the reference one. However, when I represent it with the ggforest function, the graph I get is the following (all the categories of all the variables are shown as ... |
I'm trying to understand if/how the chi-square test relates to simultaneous confidence intervals for multinomial proportions. It doesn't relate to a practical problem to solve, so this is just a speculative/theoretical question, but please tell me if I'm on a completely wrong track.
Let's say I have a two-way continge... |
I want to predict mortality so minority class (dead=1) is important for me but my XGBoost model performing poorly for this class. In other words, the model performed the opposite of what I wanted.
the code:
df=pd.read_csv(data)
X=df.drop('label',axis=1)
y=df.label
X_train,X_test,y_train,y_test=train_test_split(X,y,test... |
I would like to compare birth weight of babies in the general population with the birth weights measured in my research sample (birth weight from babies delivered by mothers on a specific drug treatment).
The birth weight in the general population follows a normal distribution. My own research sample is small (24 babie... |
I have been working with the attached data. Using the (wonderful) metafor package I fit a random-effects model, which generates the following outcomes:
rma(yi=yi_diff,vi=vi_diff,data=tempdat)
Random-Effects Model (k = 6; tau^2 estimator: REML)
tau^2 (estimated amount of total heterogeneity): 0.3168 (SE = 0.2768)
tau... |
I am conducting a meta analysis and am looking into how to convert coefficients (with SEs) from a GEE linear estimation into a standardized mean difference, Cohen's d. Does anyone have any hints on whether and how this might be possible?
I found a similar question here but no response:
Calculating Cohen's d from standa... |
Given two (generally correlated) sources $X,Y$, Slepian-Wolf coding is a protocol that shows it's possible to encode them separately, then have $X$ send $Y$ only $n H(X\mid Y)$ bits of information, and have $Y$ still be able to fully decode the $n$ bits produced by $X$.
In other words, the goal is for $Y$ to know the s... |
I have four timeseries and one of which is a reference timeseries . My objective is to remove the influence of the reference timeseries from Series 1, 2,... and 9, respectively, by using their linear regression. In the end, I will have new Series 1, 2,... and 9 that are "free" from the influence of the reference timese... |
Let's say we are given a one dimensional FFNN $f_N: \mathbb{R} \rightarrow \mathbb{R}$ with hidden dimension $N$
$$f_N(x)=W_1\phi(W_2x+b_2)+b_1$$
with $W_2 \in \mathbb{R}^{N },b_2 \in \mathbb{R}^{N},W_1 \in \mathbb{R}^{ N},b_1 \in \mathbb{R}^{ }$. Let $f$ be continuous in $[0,1]$. If $\phi$ is not polynomial we know th... |
I'm referring to this image present on this page :
My question is, why we don't correct $R_t$ with the importance sampling ratio? At the end of the day, that return is sampled according to $\pi_{old}$, not $\pi$...
|
I'm currently going through some lecture notes in the field of Bayes optimization and I'm currently looking at a expression looking like this:
$$\mathbb{E}_{x^*} \left[\mathbb{E}_y\left[\left\{\mathbb{E}_{x}\left[f(x^*,y,x)\right]\right\}^n\right]\right]$$
Where in this problem $n$ is a very small number since we later... |
I am studying the paper "Weight Uncertainty in Neural Networks" by Blundell et al (2015, on arXiv), and there is a formula I don't get page 4, namely formula (3) in step 5:
I don't understand how they obtain formula (3). Moreover, it looks like with chainrule, I have $\partial f(w,\theta)/\partial\mu = \partial f(w,\t... |
I want to compare the distributions of two different groups to determine if they are statistically different. Here is an example:
x = [839,1186,458,465,146,79,247,379,626,64];
y = [493,252,168,162,94,93,87,77,59,44];
where such vectors represent the observed frequencies for ten different categories.
To perform the com... |
An analytic platform takes a sales data and runs it against individual external indicators ( macroeconomic, climate data etc.) to find the predictive indicators. For a given indicator, they calculate the correlation between the sales data and the indicator (with its lags), the lag which gives the highest correlation i... |
I have been going through "Sutton & Barto Book: Reinforcement Learning: An Introduction", and in "Chapter 11: Off-policy Methods with Approximation", Example 11.1 briefly discusses counter example given by Tsitsiklis and Van Roy in their paper "Feature-based methods for large scale dynamic programming" (https://link.sp... |
I am interested in finding out the graphical causal structure. Causal Discovery algorithms (e.g., DAG learning) are used to identify potential causal graphs. In score-based causal discovery methods, many model scores such as AIC, BIC, and DIC have been utilized to compare models and to pick up the best "causal" graph. ... |
I am trying to predict an average time-serie by linear combination of two average time-series using a linear-regression. To assess the quality of the fit, I'm using a 5-fold cross-validation by training the model on an average of 80% of the repetitions before testing it on the average of 20% of the left-out repetitions... |
I created three (100x100) synthetic images using values randomly drawn from a Dirichlet distribution as shown below. Each image represent the abundance values of some surface components (soil, water etc.) for a mixed pixel in remote sensing imagery.
The images are generated in order to test a spectral unmixing algorith... |
Suppose $f\mid\mu, F\sim N(\mu, F) \in \mathbb{R}^n$, where $\mu , F$ are both random (random vectors and random matrix respectively).
What is the correct way to derive $Var(f)$?
First, let $\tilde{f} = f - \mu$, I obtain:
\begin{align*}
E[ff^T] &= E[(\tilde{f} + \mu)(\tilde{f} + \mu)^T]\\
&= E[\til... |
recently I am studying PF. And I am stuck in APF for a few days, though I derived many times. Here is my question:
I followed the framework of this paper. The APF is defined in Algorithm 1:
The authors define the weight function $w_n(x_{n-1:n}) = \frac{p(y_n|x_n)p(x_n|x_{n-1})}{q(x_n, y_n|x_{n-1})} = \frac{p(y_n|x_n)p... |
I am trying to implement a sequence-to-sequence variational autoencoder that consists of two parallel sequence encoders. One of the encoders is based on a standard normal prior as in the vanilla vae (1). The other encoder uses a prior parameterised by another LSTM which is common in dynamical vae (DVAE) literature. As... |
What is the correlation of a bivariate normal distribution after truncating the tails of both variables at $\alpha$ standard deviations?
In symbols, what is $$E\left[XY\Big|X| \leq z_{\alpha/2}, |Y| \leq z_{\alpha/2}\right]\ ?$$
I’d like a formula for this; for now, here is a computation in R with $\alpha = .1$ and $\r... |
I need feedback to check whether rainfall is an appropriate instrumental variable. Before you boo me out, hear what I have to say.
There are two countries: A and B. A and B are 2000 miles apart.
My hypothesis is that industrial activity in country A is an important source of mortality for its own citizens. I worry that... |
I wish to conduct a power analysis using the bootstrap method to find the difference in means of two groups. I wonder how we can calculate the "power" if we do not know in our data, the null is indeed false. In the book, An introduction to the bootstrap Book by Bradley Efron, the probability of rejecting the null hypot... |
I am studying linear regression. I want to ask is the linear word in multiple linear regression refers to the linear relationship between the target variable and each of the regression coefficients b_0, b_1,b_2, ..., b_n? Also in multiple linear regression there is a linearity assumption does this assumption refers to ... |
I am looking into e-commerce page sales data, and I am wondering if pearson correlation analysis can be done on data set like below.
Each of the variable (e.g., conversion rate, CTR) is based on 10000+ data points. There are 10 pages to analyze. I am curious to see things like if conversion rate is related to Click thr... |
I'm trying to estimate the power of a 3X3 longitudinal mixed effects model with 3 groups, 3 measurement timepoints, and participant ID as a random intercept.
I know that using the "ANOVA repeated measures within-between interaction" design (as shown below) isn't exactly right, but I'm wondering how close it is to the p... |
I had a question about how to perform an odds ratio when the group has an exclusion criterion. Let's say I am trying to find the association between surgery and suicide. I wanted to control for people that attempted suicide prior to surgery by excluding them. For clarity, I will use the notation surgery/suicide to repr... |
Does anyone have any idea how to solve this?
Question 2:
Assume the following characteristics of the inspection process in Ex. 1 (see below). If an operator checks a bolt, the probability that an incorrectly bolt is identified is 0.95. If a checked bolt is correctly torqued, the operator's conclusion is always correct.... |
I have two different CNNs trained on the same dataset. One performs a bit better than the other but I believe each can provide different and useful information.
I use pytorch. Each model consists in convolution and pooling layers, followed by a couple of linear layers and a final linear layer that acts as classifier (o... |
Consider data generated from a directed acyclic graph (DAG) of the form X<-Z->Y. Based on d-separation of DAGs, X is independent of Y given Z: X_||_Y|Z. If X, Y and Z are multivariate normal, then the following three methods of testing for conditional independence give identical results:
test for a zero partial corr... |
I am working on a project where we are injecting mice with a virus to induce gene deletions and cause tumor formation. We developed a new gene deletion method and want to see if it causes tumors to grow faster than the standard method. Would a KM curve be ideal for this? And how can we determine if the difference in ... |
This should be a simple question but I'm having a hard time finding an answer.
Assume I have some data $y$ with covariates $X$. This set of data was obtained via a simple random sample. I want to perform OLS to get an estimate of a function for $E(y | X)$.
However, say some values in $X$ are missing for some observatio... |
I'm learning about Wright's path-tracing rules, and because they deal with covariances it seems like they make the assumption that relationships between variables are linear. If we have nonlinear relationships between variables, can we still use these path-tracing rules to help us determine which variables are good and... |
I am doing a problem from Mark Joshi's Quant Job Interview book, just to have some fun with probability.
The (paraphrased) question is as follows:
Suppose I throw a dart at a circular board of radius $R$. For the sake of the problem, we will assume that we always hit the board, but we are equally likely to hit anywher... |
I have an ML model for insurance risk with output such as
Score bin
(probability score scaled) Total records Total bad Bad rate Precision
0-100 100 2 2/100 50%
100-200 100 3 3/100 66%
200-300 100 ... |
I'm working on a moderation analysis where we have two continuous predictors and two similar continuous responses. Our theoretical view is that both predictors should have significant associations (per-specified directions) with the responses as well as their interaction.
My question is, how should I orient the hypothe... |
I am reading about the IC and IC* (Inductive Causation) algorithms for discovering DAGs from observations. The first step of the algorithm is for each pair of variables a and b, search for a set of variables S such that a and b are conditionally independent on this set S. Given these variables are scalar values and th... |
I have a 3X3 repeated measures ANOVA with 3 groups and 3 measurement timepoints. In addition to the omnibus effect, I am interested in comparing the difference in change within two timepoints between two groups. How should I calculate the sample size I need to sufficiently power that follow-up test in G*Power? Would it... |
I have a dataset with one response variable and one explanatory variable. Here is my zero-inflated Poisson model with a Bayesian approach.
bayes_mod_string = " model {
for (i in 1:length(response)) {
response[i] ~ dpois(mu[i]) # the response variable follows a Poisson distribution
... |
I'm working with this data set trying to implement a model to predict the variable normexam. I've used the following models on sklearn, adding dummies for categorical variables, and got the following training and tests accuracies and MSE:
Linear Regression
Train score: 0.4724095680342516
Test score: 0.471581452085185... |
Panel data: subjects' value are repeatedly measured over time points. Suppose the first half was the pretest (grp=0) and the second half received the intervention (grp=1).
Take this post as an example:
ID | time | grp | value |
s_1| 1 | 0 | Q_11 |
s_1| 2 | 0 | Q_12 |
s_1| 3 | 0 | Q_13 |
s_1|... |
Basically, I reduced a mixed effects linear model from 16 total factors/interactions down to 7 with most remaining factors being 'significant' (~ .05) or highly relevant to the design (and still close to .10). It looks good and it is theoretically sensible. BUT if I test at least a few of those factors by themselves, t... |
A motivated bug with poor depth perception needs to cross six square tiles placed in a line. She needs to cross the tiles in sequence from 1 to 6. After sufficient training to develop totally random crossings with complete tiles, each of the tiles now has the right margin of the tile removed in the following order fr... |
I wanted to get some ideas around how I can implement this project.
I have a dataset having 3 columns, 2 categorical columns A and B and a column Count. This data is generated every 5 mins in a different file with timestamp. I want to predict the next 5-6 iterations based on previous data for each combination of A and ... |
I have view this .
But C2f only has single output tensor.
What is the meaning of the connection between Backbone and Head in the diagram? Is it a copy of output which is also connect to the Conv below?
Those connection has label 80x80x256xw; Stride=8, 40x40x512xw; Stride=16,
What is the Stride means here, because for C... |
For a research project, I have spatio-temporal panel data with an continuous independent variable varying over time and cross-sections, i.e. countries. I have recently read this paper by Papadogeorgou et al. and I would like to apply their methods. I have limited experience in econometric coding, so I was wondering if ... |
Imagine a study in which the time until some kind of uptake of aftercare is measured; there are two treatment groups (intervention vs. control). I want to know whether the treatment has an effect on the time until uptake of aftercare, but am not particularly interested in the event probability itself (which of course h... |
For a Poisson process having rate $\lambda$. Given the number of events by time $T$ the set of event times are iid Uniform $(0,T)$ random variables. Suppose that each event are independently counted with probability $\lambda(t)/\lambda$. The times of these counted event have a common distribution, $F(s)$, where
$F(s) =... |
sample code:
set.seed(123)
n = 500
x = rnorm(n)
a = -5
b = 0.5
y = exp(a + b * x + rnorm(n))
plot(x, y, pch = 20)
m = glm(y ~ x, family = gaussian(link = "log"))
sample_coefs = MASS::mvrnorm(n = 5000, mu = m$coefficients, Sigma = vcov(m))
sample_x = seq(-4, 4, 0.05)
sample_lines = sample_coefs |> apply(1, \(pars){ex... |
For example, if I specify a z-value of 3, then I would look at both sides and know its position in the distribution (99.73%).
Would this change if I have a left or right skewed distribution? Would I have to choose a lower threshold for the positive or negative calculation of the z-value to fall into the actual range of... |
Here's a multiple choice question that was asked at an exam.
You are tuning a linear classifier that you suspect is overfitting the data. Which of the following choice is most likely to aggravate the overfitting ?
Increasing the number of features
Decreasing the number of features
Applying a stronger regularization ... |
In this question it is derived that if X, Y are correlated Gaussian variables, the mutual information between them is given by
$$ I(X;Y) = \log\left(\frac{\det(\Sigma_X)\det(\Sigma_Y)}{\det\Sigma_{XY}}\right) $$
where $\Sigma_X,\Sigma_Y,\Sigma_{XY}$ denote the covariance matrices of X, Y and X,Y jointly, respectively.
... |
I am new here so I hope this question is expressed properely. I would like to compare a summary of factorial ordinal experiments with e.g., 4 concentrations to studies using a continues vector IV. To do so, on could log the DV $log(y)$ as well as the IV ($log(x)$), as such $log(E(y|x))=\beta\cdot\log(x)$ (or log as lin... |
Possibly related to Log posterior probability in MCMC is decreasing but I do not have a MCMC process and the details there are not sufficient for me to understand fully (I'm a mathematician with basic statistical knowledge).
I am playing around with Bayesian Optimisation (in Julia) and wanted to set up a standard schem... |
I have 2x10 observations that follow a non-normal distribution. They are perfectly distributed on log-scale.
From what I've learned, the back-transformation of the mean on log-scale should be a "good enough" median on normal scale.
However, with 10 observations, these two are not exactly equal (390 vs 440). I am using ... |
Given:
$$\begin{align*}
&\epsilon \sim N(0, \sigma^2),\\\\
&\theta \sim N(0, \eta^2I), \\\\
&\text{And } y^{(i)} = \theta^T x^{(i)} + \epsilon^{(i)} \\\\
\end{align*}$$
Why:
$$y^{(i)} | x^{(i)} , \theta \sim N(\theta^T x^{(i)} , \sigma^2)$$
or
$$y | x , \theta \sim N(\theta^T x , \sigma^2)$$
In other word, why given x,... |
Given some samples that each containing thousands of data points, I want to compare which sample is drastically different from other samples. Since the sample size is big, any statistical tests will just say the differences are significant.
The five sample means are [27.5,22.3,20.2,18.9,18.4]. What I really want to mod... |
I am measuring companies' sustainability score over time, to see if it increased or decreased after the introduction of a regulation (exogenous shock) I only have one dependent variable and time as independent variable. Which regression makes more sense?
|
I have done many simulations under the null hypotheis to test the alpha level of a test which follows a normal distribution.
However, the results obtained vary by 2-3%, which seem to me a lot when trying to evaluate the alpha level. Sample size was 2000 individuals. (With 4000 individuals, results vary by 1-2%)
It seem... |
Let there be a bag with arbitrarily many balls in k colours (presume we know k). There is a set (but unknown) probability p1, p2... pk of drawing a ball of a given colour. I take a sample of g balls (replacing each ball after drawing it), and get some frequency count of each colour.
Based on this sample, how might I go... |
I am trying to create a Bayesian Optimisation code with a Gaussian Process. My input data, $\vec{X}_i$ is 8-dimensional, where each dimension corresponds to a feature of my data,
$\vec{X}_i = [\alpha_1, \alpha_2, ..., \alpha_8]$.
I plan to use the RBF kernel function to define the covariance matrix.
Is it correct that ... |
I am trying to model some (quite ugly) time series data with lagged values of the outcome variable using a non-parametric machine learning model as I do not know how to correctly specify the model. The model training errors (residuals), which are based on one-step ahead forecasts, have very low autocorrelation, which i... |
I am studying a python library that uses Bayesian inference to identify the coefficient of a linear regression.
I have two questions, one very broad and one more vertical on MCMC and numpyro.
What is the sampling trace of a Bayesian Model?
From my understanding It seems to be the mean of the distribution once I reache... |
I performed a random forest model after transforming the predictor variable using the Box-Cox transformation, and found an R2 of 0.65. But the scatterplot between the actual and predicted values showed a systematic overestimation of low values, and an underestimation of high values (figure 1 below).
In addition, I use... |
I need to evaluate the results of an experiment using a black-box ML model.
Normally, if I have a series of outcomes from the control group $ X_i $ and the test group $ Y_i $ I would just do a t-test on the sequences $ X $ and $ Y $ to decide if their means differ.
However in this case $ X $ and $ Y $ don't measure the... |
I have a 2D signal that I can measure, with a Nyquist frequency of $f_{s}$ Hz. I also have a prediction model that tries to predict a few seconds ahead what the signal value will be. I have a choice of several sensors that I can use to measure my signal, with various tradeoffs. What I want to understand, is what the re... |
I have a data set from a cohort comparing two treatmens which I want to balance via propensity score matching.
I read some literature and decided to use a variable K:1 matching because this seems to have some advantages compared to a fixed 1:1 matching, particularly less reduction in the sample size. To ensure balance ... |
I am working on a clustering analysis where my data is a mix of bool and numeric. From research it looks like one should not do a simple kmeans with mixed data types since the extreme end of scaled data will make the bools of 1/0 dominate.
The general gist of what I found online was to use a gower difference matrix whi... |
Suppose I have data from customer surveys. It is Likert-like, but individual responses are not available. Results are given as proportions of total responses to each question. The count of responses to each question is available, if needed.
I need to create a regression model with a continuous “returns rate” as the dep... |
Question edited with the correct code - apologies
I have observed a somewhat puzzling negative correlation.
In code (R) (mathematical formulation below)
set.seed(123)
N=1000
R1=vector('double',N)
R2=vector('double',N)
x=rnorm(100)
for (k in 1:N){
y1=x+rnorm(100)
y2=x+rnorm(100)
X=c(x,x)
Y=c(y1,y2)
R1[k]=cor(y... |
Using the stanford heart transplant dataset, I have seen articles on why time-varying covariates are important as an input for survival analysis models. But can't we incorporate the time at which heart transplant was done as a feature in to the normal Cox ph model instead of using time varying covariates? I didn't unde... |
I was going through this paper: https://www.mdpi.com/2227-7080/9/3/52, it compares different data scaling methods on different algorithms to see how performance is impacted.
using this database: https://archive.ics.uci.edu/dataset/45/heart+disease, splitting it into training and testing, 0.8 and 0.2 respectively and us... |
I do have a question regarding Johansen's cointegration, VAR, and VECM model estimation. I would like to analyze the relationship between two variables using these methods. My dataset consists of 4 countries and 25 years for each country. Is it possible to use these methods or should I use some replacements? Thank you ... |
I worked on implementing a simple MLP network, which should guess a numerical value based on different values. Basically it's a regression task. This was a few months ago.
Everything worked fine, the result is how I expected and the training iterations work great. I used L2-Normalization method to put the values betwee... |
I'm considering the scenario described in this question, namely:
we have IID $X_i, i = 1, ..., n$ sampled from a population with mean $\mu$, variance $\sigma^2$ unknown
the goal is to put a confidence interval on the sample mean, $\bar{X}_n$
we believe the population is not normal, say it is trimodal
set $S_n^2 = \fra... |
Suppose the objective function to be minimized is
$$F(\theta) = \|y - X \theta\|_2^2 + \sum_{i=1}^p \lambda_i |\theta_i|$$
where $\theta$ is the independent variable which is feasible in $\mathbb{R}^p$. Other quantities $y \in \mathbb{R}^{n}$, $X \in\mathbb{R}^{n \times p}$, individual penalties $\lambda_i \geq 0$ are ... |
I regressed a model in R with the following functional form/code (where sqrt, log, and squared refer to the transformations):
model<-lm(sqrt(y)~x1 + x2 + x3 + x4_squared + log_x5 + x6 + x7 + log_x8 + x9 + x10 + x11 + x12 + x13` + x14 + x15, data = data)
I got a residual standard error of 19.77 on 265 degrees of freedom... |
I have some longitudinal data that is was collected in waves. At each wave, participants either do or do not have variable of interest (yes/no). I want to look at different classes of variable (i.e., transition from no to yes; yes to no; or continuing yes/no). I want this transition class to predict various outcome var... |
In the lab on Tensorflow classification, we are trying to predict wether a coffe is well roasted or badly. A 1 is good roasted and 0 is bad. The architecture is:
Now we try to visualize the trained model. The lab says "The shading shows that each unit is responsible for a different "bad roast" region. unit 0 has large... |
I estimated the Value at Risk of a time series of log returns with different approaches and models.
Now I want to compare the models and find the model that most accurately estimated the Value at Risk.
Therefore I use different VaR-backtesting approaches (e.g. the unconditional (Kupiec) or conditional (Christoffersen) ... |
The primary purpose of selection on observables identification strategies is to adjust for confounders to estimate a causal effect (assuming ignorability somehow holds). However, researchers can adjust for covariates that are not confounders without hurting causal estimates. The best example of this that I can think of... |
Is it possible to introduce cluster probabilities into a regression?
Consider the Old Faithful Geyser data set. Most clustering algorithms find 2 clusters when analysing eruption times and waiting times. We can fit regressions to the data in each cluster to estimate waiting times as a function of eruption time. However... |
This multiple choice question was asked at an exam.
You are building a multiple linear regression model to predict hourly traffic for government websites. You have access to a large set of features, which include, but are not limited to, the number of pages per site and sets of keywords used per site. Your available w... |
I am performing a biological experiment, where I am trying to capture potential mediation effects from some genes.
I have 150 significant results, containing 30 tissues with different sample size.
For those instances, I rerun the regression analysis while adding some genes to observe if the pvalue are going up or down.... |
Saw this on an old western show.
A poker player believes the dealer is switching decks of cards.
The player has 5 cards in his hand and at the end of a hand, he smudges all of them with cigar ashes. One of them is the ace of hearts. All cards are returned to the original deck.
The dealer’s accomplice creates a divers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.