instruction stringlengths 9 38.7k |
|---|
I've been thinking about unifying some notions related to ranking, order theory, ordinal data, and graded posets. While the notion of a grade in order theory is quite general, in some sense the way we talk about ranks is more general. I would like to bring rank-based statistics and order theory together in my theory de... |
Most of the industries use a following approach to classify the demand pattern.
Smooth demand (ADI < 1.32 and CV² < 0.49).
Intermittent demand (ADI >= 1.32 and CV² < 0.49).
Erratic demand (ADI < 1.32 and CV² >= 0.49).
Lumpy demand (ADI >= 1.32 and CV² >= 0.49).
My question is, is there a proper literature or resource m... |
The following is from a research paper that I recently read:
The model includes country fixed-effects to allow any trends in voting behavior to vary from country to country (without fixed-effects, the results are unchanged).
My questions are:
Doesn't any model allow trends in voting behavior to vary? Voting behavior... |
I am doing a meta-analysis and I need to recalculate OR and 95% CIs for the reverse reference group. For instance, I am looking OR for Q3 vs Q1 where Q1 is reference group. However, some studies reported the Q1 vs. Q3. So, I need to recalculate the OR and 95% CIs.
I found that it is possible to get the 1/OR for the odd... |
I am performing an ANOVA for a research question. I want to to test whether "Grade", "Nim" and "Tim" has a significant influence on "value". My question is regarding the different types for SS.
If I use type I, "Grade" and "Tim" are significant while "Nim" is not. This was to be expected if I evaluate the differences i... |
So I know that there's a really easy way to generate a normal distribution with dice (simply add them). Is there a way to generate a Pareto distribution?
|
I need help to choose the right statistical analysis for a project.
I have subject that undergo repeated measurement
Sample size 8 (but will be larger). All measurements are conducted within 20 min for each patient.
My question is, how can I compare the flow in rest
|
I have a historical dataset of several million sales, and some of them are marked as returned. I have multiple variables, such as product, customers, creation date, etc. My goal is to determine the cause of the returned orders, such as whether it's a combination of a particular product type with a specific customer.
I... |
I am writing a very simple neural network to see whether it can be used for my scoped case of drawing a bounding box around a specific object (barcode) in an image.
The layers i am thinking of are:
One convolution to detect edges and learn features of the barcode
a few dense layers to adjust for predicting the 4 data ... |
(Note : this is a cross-post from Artificial Intelligence. As I got no answer there in two weeks, I'm trying my luck on a more popuplated SE site. I know this is against SE's policy on cross-posting and that I should "post it on the most adequate site in the first place", but I feel that here is as much as an adequate ... |
I have 2 datasets, I am creating models on the 1. one (tree,forest,lasso,stepwise OLS, all cross-validated) and then I have to predict the 'Age' variable I am training the models on for the 2. dataset (not part of the 2. set). What metrics could I use to choose a model that is the best? Do I only look at the MSE, AIC, ... |
I have followed some lectures on the internet on asymptotic relative efficiency. When I had calculated the relative efficiency $ARE(median, mean)$ than my result was $ARE(median, mean)=\frac{2}{\pi}\approx 0.637$. Thus my conclusion was that the mean is about 64 % more efficient than the median (under normal distributi... |
I have 2 continuous variables that are measured at 3 time points in a within-person repeated measures fashion (T1, T2, T3). The variables follow a non-normal distribution (N = 42).
I would like to obtain the correlation between the two variables at each time point.
Naïvely, I have calculated Spearman correlation coeffi... |
I have a data set with around 50 variables and I am applying ridge and lasso on this data set. What I´ve noticed is, that the plot for the lambda values does differ from the mean values I get when calculating the corresponding mean(lambda).
For example log(10000)=4 should have a mean of around 2100 if looking at the pl... |
I set up following chunk test in R:
restricted Model <- DV ~ IV1
unrestricted Model <- DV ~ IV1 + IV2 + IV3
anova(restricted Model, unrestricted Model)
Whereas IV1, IV2, and IV3 are all categorical variables with many levels.
I would like to analyze the power of my test. Which test/analyzing tool is the correct choice... |
A well known solution to make Neural Networks (NNs) work with varying lengths of input data is to use padding and then masking the padded inputs (padded with zero, a common approach in natural language processing). It's being said that this approach makes the NN skip the padded inputs. I want to know what's the mechani... |
I have a small sample size (5 <= N <= 10), and for each sample i, we observe independent $Y_{i}$ where $Y_{i}$ is the sum of 7 independent yes/no responses (i.e. bernoulli experiments), where each response is independent but has a different probability of success. Formally, $Y_{i} = \sum_{j=1}^{7} W_{ij}$ and $W_{ij} \... |
I am conducting a repeated measures study and comparing two experimental conditions and the control to see if they still will have an effect.
I hypothesize that VR environment will impact memory recall, and I want to compare the recall ability on the VR condition, the Desktop condition, and the control condition.
I am ... |
I want to fit a simple one-way random effect model, i.e.
\begin{equation}
y_{ij} = \mu + \alpha_i + \epsilon_{ij},
\end{equation}
where
$\mu$ denotes the mean
$\alpha_i$ the effect of the $i$-th threatment,
$\epsilon_{ij}$ the within individual variation or random error with $j = 1, \ldots ,k_i, \; i = 1, \ldots, m$.
T... |
TLDR: I am trying to compare groups of machine learning algorithms across a set of datasets. I understand the usual methodological procedure to compare the algorithms but I believe there is a different (and better?) procedure. This post discusses the standard and my new approach. I would like comments, criticisms, ide... |
It is quite some time that I am looking for a way to solve this problem theoretically.
Let $X\sim N(\mu,\sigma)$, $\mu \geq 0$ then what is the distribution of
$$
Y=\sqrt{|X|} \times \Phi(X;\mu,\sigma)
$$
it may look funny but I can estimate the mean and sd of $Y$ by a simple formula:
$$
\mu_Y=.5\times\sqrt{\frac{2\tim... |
If we build a graphical model (DAG) we (may) interpret the arrows as causal dependences.
If we build a graphical model based on the variables returned by principal component analysis (PCA) we should obtain a totally disconnected graph (assuming normality). We could interpret this as the variables given by the principal... |
If I have N subsets of the data, each with the same variables, and run logistic regressions on each subset, could I then take an average of the coefficients found to find an "average" model?
For example, a very large dataset of sensor data that could be split into subsets by machine/device ID. Then, lots of regressions... |
How would you motivate an undergraduate student to take an Introduction to Mathematical Statistics course, if they know that much of their time will be spent proving results they've already seen in Introduction to Applied Statistics? That is, much (though certainly not all!) of the course is "just" about proving mathem... |
For linear regression we have that,
$$RSS(\beta) = ||Y-X\beta||^2$$
and the gradient,
$$\nabla RSS(\beta) = \nabla (Y-X\beta)^T(Y-X\beta)$$
Why isn't it $(Y-X\beta)(Y-X\beta)$? Why is the first term transposed?
|
The Γ-minimax approach to statistics seems to offer a pretty nice way of thinking about things foundationally. It essentially views Bayesian and Frequentist statistics as two ends of a spectrum, based on how "big" the family of priors you are considering is/how well you can specify your prior. If you have a completely ... |
My data is psychological test scores of teachers and students before and after an intensive training course. The group of students is more than twice as big as the group of teachers. Several teachers and students worked together in small groups during the training. Unfortunately, information on which teacher(s) have wo... |
Is there any procedure to quickly obtain the variance that is unique to a variable among a correlated group of variables?
For example a star's temperature mass and volume are related (3 variables), bigger starts tend to have more mass and be hotter. I can perform multiple linear regression of 1 variable using the other... |
Yesterday I was wondering how I "solve" the problem that dense layers in neural networks have a ton of parameters.
So, my first idea was to use low rank matrices, which means that I can decompose the matrix without many problems.
Therefore, today, I went and wrote some TF code to test it in MNIST Digits, by implementin... |
I posted a similar question on Quantitative Finance Stack Exchange a while ago. It has not received any answers, thus I am reposting a version of it here in the hope of finding a larger pool of experts.
Suppose we are interested in testing the Capital Asset Pricing Model (CAPM) using data on $N$ assets observed for $T$... |
Suppose I have a linear regression like
$$y_i=X\boldsymbol{\beta} + \alpha_i + \epsilon_i,$$
where $\epsilon_i\sim N(0,\sigma^2)$ are i.i.d. Further, suppose that I want to add the constraint that $\alpha_i$ is orthogonal to $X$. How can I implement this constraint in an MCMC algorithm?
|
Suppose, my general user population stats are
female - 65 %
male - 25 %
unreported - 10 %
I have a cohort of users of interest who clicked on an ad campaign and the demographics proportion is
female - 60 %
male - 35 %
unreported - 10 %
What statistical test can I do to figure out if these proportions are in line with m... |
Is it possible to do Cox survival analysis with time-dependent covariates, but include the exposure variable as a continuous variable?
I have an exposure measured at two different times, and my outcome is death, so I wanted to run a Cox analysis with a time-dependent variable, but for this type of analysis I have only ... |
Suppose that $n$ people are each randomly assigned a number from $1$ to $m$ with replacement. What is the probability that exactly one number is assigned to more than one person?
What I have tried:
Defining the event $A$ to be 'exactly one number is assigned to more than one person', I can see that the probability of ... |
I am planning an AB-test for something like a call-center. We are testing a new interface for the call-center operators. It has to be tested within a small group of roughly 20 operators. The main metric is the average call processing time (CPT). The experiment is supposed to continue for 1 week, each operator will proc... |
I have trained a model on some sales data, we have separated the data into different groups of customers based on the marketing strategies of our client. We have a total of 10 groups and 31 coupons. So I trained a linear regression with client group as a factor with 10 levels and each coupon having two (assigned or u... |
I have a data set of the 2020 value of 15,000 unique objects. The value is right skewed. I have to draw a sample of 500 unique objects based on the 2020 value (range = $1-40,000). The present value of this sample (n=500) will be determined, and extrapolated to the broader population (n=14,500) to determine the value of... |
I have a graph where each node carries a feature value(s). The edges in the graph are weighted and each edge carries a single value (weight). The weight of the edge is some value calculated using the feature values of the connected nodes (some normalized difference). The graph is dynamic in the sense that the node fea... |
Let's do some classification and evaluate the prediction quality. The easiest metric to understand is the prediction accuracy, which can be reported as the proportion classified correctly to put the value in the interval $[0,1]$. Is this a reasonable analogue for classification problems of $R^2$ in regression problems?... |
I am beginner in using R.
I want to run a binary logistic regression and I guess some variables have nonlinearities. So I want to use splines method to understand affect of each range in a continuous variable. I am confused about it.
How can I do it in R ?
Knots (cut points) will determine automatically or I should det... |
Consider a random variable with characteristic function
$$
\phi(t)=\frac{3\sin(t)}{t^3}-\frac{3\cos(t)}{t^2}, \ \text{when} \ t \neq0
$$
How can I compute the $E(X)$ and $Var(X)$ by using this characteristic function? I'm stuck because if I differentiate I got $\phi'(t)=\frac{3t^2\sin(t)+9t\cos(t)-9\sin(t)}{t^4}$ which... |
I am self studying an introductory course on Designed Experiments and have come across the notion of a Completely Randomised Design (CRD) defined as follows:
Completely Randomised Design: the simplest form of a designed experiments where there is no distinction between units (ie. no blocking). Therefore, there are no ... |
I was keeping track of our team free throw percentage throughout our practice days. Sometimes we shot many sets within one day.
How can I calculate whether our Free Throw Percentage method improved over the season, and the confidence level of this method?
Was this method effective and how high is the confidence that t... |
I am new to meta-analysis. I did a quick search, and I think I can wrap my mind around generating cohen's d and its variance when there is only a single distribution for each of the control group (C) vs the experimental group (E) within each study. But my mind gets lost when each group (C or E) also has both baseline a... |
As far as I know, the Inverse Mills ratio, $\lambda(x)=\phi(x)/\Phi(x)$, is decreasing in $x$. Thus, I am curious now whether $\lambda(x)$ is in fact strictly decreasing in $x$.
To see this, I derived the derivative of the inverse Mills ratio:
\begin{align*}\lambda(x)&=\phi(x)/\Phi(x) \\[2pt]
\Rightarrow \lambda'(x)&=... |
Setup
Let us use the following model for a Completely Randomised Designed (CRD) experiment:
$$ Y_{ij}= \mu + \tau_i + \epsilon_{ij}$$
where the errors $\epsilon _{ij}$ ~ Normal ($0, \sigma ^2 $) and are independent (and uncorrelated). Here, $i$ refers to a particular treatment where $i = 1 . . .t$ and $j$ refers to the... |
In "β-VAE: LEARNING BASIC VISUAL CONCEPTS WITH A CONSTRAINED VARIATIONAL FRAMEWORK", the Introduction states that "With β > 1 the model is pushed to learn a more efficient latent representation of the data, which is disentangled ...".
In "Understanding disentangling in β-VAE", it is stated in section 4.3 that data loca... |
I'm trying to recreate this result. Which functions from statsmodels will do this?
Evan Miller Link: https://www.evanmiller.org/ab-testing/sample-size.html
I have tried the following:
import statsmodels.api as sm
from math import ceil
init_prop = 0.02
mde_prop = 0.03
effect_size = sm.stats.proportion_effectsize(
... |
I have some function that according to literature should approximate a log normal distribution. To fit it, I am using a hacky (yet legitimate) approach to fit pre binned data:
from scipy import stats
counts, bin_centers = np.array(distr), np.linspace(0, len(distr)+0, len(distr)) # where bins are bin edges on x axis
# ... |
Some background: Given a linear regression model (or any other GLM), we all know how to test the null hypothesis $\hat\beta_i=0$. The lm function in R (or any equivalent in other languages) would even conduct this test automatically. We can then relate to the contribution of the $i^{th}$ variable to the model, or in ot... |
Here is my understanding:
LightGBM by default handles missing values by putting all the values corresponding to a missing value of a feature on one side of a split, either left or right depending on which one maximizes the gain.
It seems that this approach should performa better than simple imputation with mean, median... |
This might be a dumb question !
I built a model and I'm satisfied enough with the model, given that I have a dataset with categorical variables I wanted to see the R2/RMSE for each of those categories, but I'm unsure on which set I should conduct this test should I use the training set for that ? My understanding is th... |
I want to generate random numbers from truncated multivariate normal distribution specified as follows:
$ \begin{bmatrix}
Y \\
X
\end{bmatrix} \sim N
\begin{pmatrix}
\begin{bmatrix}
\mu_Y \\
\mu_X
\end{bmatrix}, \begin{bmatrix}
\sigma_{11} & \sigma_{12} \\
\sigma_{12} & \sigma_{22}
\end{bmatrix}
\end{pmatrix}
$ where... |
I have a clinical dataset with variables measured over a number of years at various assessment time points. This data was not intended for research initially which is why there are some challenges.
Ideally, an extended Cox model would be most beneficial, however, due to the data collection for certain time-varying vari... |
I want to apply a partially least square regression on spectroscopy data to model a chemical content of my probe. So, every wavelength of the spectrum serves as one variable in the model. Doing some research, I found several scenarios how to preprocess the data: Most just use the spectrums as they are and do no preproc... |
What is (is there) the count process, which has its standard deviation proportional to its mean?
Note that I am not talking here about Poisson process, which has its variance proportional to mean. That is the process in question is overdispersed (in comparison to Poisson) for the average number of counts greater than 1... |
I have some elements in a dataframe, and for each one of them I have a z-score for some parameters that describe them.
If I wanted to "sum up" all the Z-scores into one value in order to compare each element to one other into the database, how could I do that?
Is there a way to sum Z-Scores or average them and take tha... |
I have a numerical ordinal dataset (eg. 1-10) that's very highly skewed, with >90% of the values at 10. How can I best summarise this in a table? The median/IQR gives '10 (10, 10)' (which doesn't seem particularly useful).
I'm considering using minimum and maximum, or is there another descriptive statistic I could use ... |
I have results of an experiment where each person had to estimate a share of certain types of city dwellers in two cities (A and V), and participants were assigned into one of two treatments (FIN or FIC).
I estimate a GLMM model following a beta-distribution (with a logit link) with the glmmTMB-package with random-eff... |
I have a table with information about students in three different classes. In each class there are two groups of people - those, who had prior training and those, who did not. Now, when some time passed by from start point of education, some people have been expelled. The table is following:
Class
Expelled
Active s... |
I have several datasets that I wish to analyse and summarize - and I'm starting with the basic median, and percentile/quartiles to begin with (unless there are other approaches I should be considering). The data are not normally distributed. Each dataset contains readings from a single sensor.
However, my raw dataset i... |
I am looking for an answer to the following question. Assume a random matrix $\mathbf{A}$ of dimension $n\times n$ such that each row $\mathbf{A}_i$ of the matrix $\mathbf{A}$ is a realization of a multivariate normal distribution $\mathcal{N}_n(\mathbf{0},\boldsymbol{\Sigma}^{i})$. It follows that \begin{equation}vec(... |
I was trying to use metafor to perform a meta-analysis to explore hormone concentration changes after the intervention.
The studies being included only have one intervention group without any control group. The pre and post mean_sd values were reported in each individual study.
However, based on the metafor package, it... |
I have a pipeline that finds pairwise associations between three objects that are in a relationship as follows:
B
/ \
A --- C
What I get from this pipeline is a p-value for each pairwise association: either AB, AC or BC. I need a way to combine them to get a plausible p-value-based metric to characterize the ... |
Question
What would be the intuitive explanation for the slope of Ordinary Least Squares(OLS), which is $\frac{cov(X,Y)}{var(X)}$ contributes minimizing the sum of squared residuals?
In the same sense, why the intercept is decided to make the mean of the residuals 0 (not the mean of squared residuals, but just the m... |
I'm seeking a good reference to explain the gam model output to colleague. Here is my model.
mod1 <- gam(severity ~ s(mean_rh, k = 8) + s(mean_temp, k = 10) + s(mean_ws, k =7) + s(avg_daily_rain, k = 7), family = betar(), data = dat_seasonal)
summary(mod1)
Here is the output:
Formula:
disease_severity ~ s(mean_rh, ... |
For simplicity, I'll consider classification with 3 classes.
Then, softmax outputs can be considered as the set of points in 2-simplex.
I want to measure the 'fit' of this softmax output with target Dirichlet distribution.
Can anyone give some suggestion?
|
Context
I'm designing an experiment and Bayesian analysis to interpret results. I've used Statistical Rethinking as inspiration for model structure.
Suppose I want to study the effects of a sports drink on athletes and its effect on their performance, namely, whether they won a given event. The dependent variable is bi... |
In causal graphical models, an inducing path is defined as:
[Definition Inducing Path] An inducing path relative to L is a path on which every non-endpoint node X < L is a collider on the path (i.e., both edges incident to the node are into it) and every collider is an ancestor of an endpoint of the path.
My questions ... |
If I use type = "response", the Y-axis should actually show: real value minus estimated value.
In my case, for example, the following values would be plotted on the Y-axis: 1 (real value) - 1.2 (estimated value) = 0.2 or 2 (real value) - 1.2 (estimated value) = 0.8.
With Pearson residuals, the residuals would have to b... |
Let's say we have some data X and we want to find a linear separator using soft SVM with l2 regularization, and then we want to solve the same problem after applying some rotation matrix Q to the data set. Should we expect anything to change in the accuracy over the training set?
The way I think about it, it doesn't ma... |
I'm currently trying to assess fold change when comparing two different sample types using DESeq2 package and I'm getting weird Cook's distance values which are causing major problems.
The two different samples have different amounts of replicates (6 replicates vs 5 replicates) which might be the reason for these weird... |
I would like to decide if it is reasonable to include a factor variable to the null model I.e y ~ 1 VS y ~ (1|x)
I haver read this answer https://stats.stackexchange.com/a/56157/21521 which suggest obtaining the p-value or AIC values from anova(y ~ 1, y ~ (1|x)) but I have my doubts.
First of all lme4 does not allow ... |
A coin with probability of getting head $0.6$ is tossed repeatedly till two heads appear. Let $X$ be the number of tosses needed to get exactly 2 heads. Describe the sample space. Find the mean and variance of $X$.
What I've tried so far:
Let $P(H)=p$ and $P(T)=q$ such that $p+q=1$.
$\displaystyle P(X=n)=\binom{n}{2}... |
Laplace's Rule of Succession produces an estimate for the probability $p$ of a Bernoulli distribution. It starts with a $Beta(1,1)$ prior (equivalent to a uniform distribution prior on $(0,1)$), and then obtain the Maximum A Posterior (MAP) estimator $\frac{k+1}{n+2}$, where $k$ is the number of success in $n$ trials.
... |
I'm performing a cointegration test + OLS regression on 2 assets' prices. If I check the correlogram of the model residuals (training set, but also happens with the test set residuals) it looks like there is a perfect 1-lag autocorrelation in the residuals:
And this is what my residuals look like:
What can be the ca... |
I have a dataset (not normal distribution) with repeated measures over time. As such I was planning to use the Friedman.test in R:
friedman.test(dash ~ time | nr)
this gave:
Friedman rank sum test
data: dash and time and nr Friedman chi-squared = 105.26, df = 2, p-value < 2.2e-16
To calculate the CI of the chi-squar... |
Consider a Brownian Motion with drift, $X$, on the interval $[0; T]$ given by
$$dX_t = \mu dt + \sigma dW_t.$$
Suppose that the interval is split into $n$ pieces of equal size to define $\Delta:=T/n$ at time points $t_i, \; i=0,...,n$. Assume we have observed $X$ at these points. That is, we have a sequence of observed... |
This question asks about influence functions. Probabilityislogic's answer is a bit fuzzy to me, but I can make more sense of jayk's answer, as this was the way influence function was presented to me in class. Note that I have a bachelor's in math and doing my masters, though still haven't taken functional analysis or o... |
I have a question; I have mood as a covariate in one of my projects. It's an important covariate. But I had to remove covariates due to insufficient numbers, so I proposed turning mood into an outcome measure, and I was told that that would change the study completely. Can someone explain how and why?
The idea is IV is... |
I´m trying to calculate the cumulative distribution function of the skewed generalized error distribution with the probability density function:
where u = y - m.
From Theodossiou in (https://www.mfsociety.org/modules/modDashboard/uploadFiles/journals/MJ~0~p1a4fjq38m1k2p45t6481fob7rp4.pdf). I tried some calculations bu... |
I'm unsure about the relationship between dispersion estimates (precision^-1) from beta regression models (log link) and the standard deviation.
The left panel is from a glmmTMB model ...
mod <- glmmTMB(
y ~ poly(x, 2) + (1 + poly(x, 2) || id),
data = df,
dispformula = ~ poly(x, 2),
family = beta_family(link =... |
I have received an invitation to participate in a game show where the amount I could potentially win depends on how well I perform. The game requires me to find diamonds hidden in 30 vases that are spread across two rooms, each with 15 vases.
One vase in Room A contains a diamond worth one unit, and another vase in Roo... |
Kernel regression on data $x$ is equivalent to linear regression on transformed features $\phi(x)$ where $\phi$ is determined by the kernel $K(x_i, x_j)$. For example, when $K(x_i, x_j) = (1 + x_i^T x_j)^2$ then we are performing linear regression on polynomial features of the raw data.
My question is: why is this a go... |
I'm working with multiple years of temperature data from different sites in a watershed. I'm using the 7DADM measurements i.e. one temperature reading for each site per year of monitoring.
This is what my data looks like
ggplot(use_sevdadm, aes(x = year, y = maxroll, colour = sitename)) +
geom_point(alpha = 0.5) +
... |
I am trying to design a Gaussian Process model for optimizing experimental parameters. In particular, an experiment requires n parameterizations of points on the 2D Cartesian plane. For a particular set of points, I can assign a score indicating the fitness for that set of points. The Gaussian Process takes as input th... |
I'm fairly new to statistics (I'm doing it for my bachelor thesis). I want to do a factorial mixed ANOVA in Jamovi, but not all of my data is homogenous (15 out of 126 measurements are not homogenous). I am able to transform the data with python, but I couldn't find any library that provides a factorial mixed ANOVA.
Ex... |
I have a multidimensional random variable $X \sim \mathcal{N} \left(\mu, I_d \right)$.
Ideally, I would like to know the expected value of the normalized outer product of the latent variable with itself:
$ \mathbb{E}\left( \frac{X}{\lVert X \rVert_2} \cdot \frac{X^T}{\lVert X \rVert_2} \right) $
Alternatively, as an ap... |
I asked a question in SO but was told it is more appropriate here.
I'm trying to compute the euclidean distance with vectors of different lengths.
def euclidean_distance(n):
L = np.linalg.cholesky( [[1.0, 0.60], [0.60, 1.0]])
uncorrelated = np.random.standard_normal((2, n))
correlated = np.dot(L, uncor... |
I have a split-plot experiment, with irrigation as a main-plot factor (x2, Irr1 & Irr2) and fertilizer type (x4, F1-F4) as a split-plot factor. Within each experiment, each treatment is replicated 4 times. I have been doing these experiments over two years; in year 1, I had one treatment at location A, but in year 2, I... |
Here is the problem. I deal two cards face up on the table. What are the odds they a pair? Simple? I thought so too.
Solution 1: Correct?
When considering the first card, we know that doesn't matter. There is zero chance of it being a pair! The second card is very valuable. We know that there are only 3 cards le... |
I know how the probability of the dependent variable is calculated using the regression equation:
P(1) = exp(Y')/(1 + exp(Y'))
But I do not know how it calculated in a spline binary logistic regression.
|
I have a question which should be a failry common question, but for which I can not find any reference.
For simplicity, we will assume that our variables are all i.i.d and normally distributed.
I take a sample of some incoming parts, and measure a dimension. I obtain a mean m, and a standard deviation s. I also have an... |
Suppose that we have some time series data, in what context we use rolling z-score and when do we use z-score?
|
In the context of deep learning, layer weight initialization techniques of the Glorot/He family strive to select initial random weight values in such a way that the variance of each layer's output is equal to the variance of its input. This helps avoid vanishing/exploding gradient issues and improves training stability... |
I am learning time series analysis from Forecasting: Principles and Practice by Hyndman & Athanasopoulos. In chapter 8, the ETS (Error, Trend, Seasonality - a state space implementation of Exponential Smoothing) model is written as
$$\hat{y}_{T+1|T} = \alpha y_T + \alpha(1-\alpha) y_{T-1} + \alpha(1-\alpha)^2 y_{T-2}+ ... |
We all know the formula for the probability of a or b happening. It is p(a or b ) = p(a) + p(b). We also all know (maybe) the theorem for p(a or b or c). (It's on google lol.) It is p(a or b or c) = p(a) + p(b) + p
(c) - p(a and b) - p(b and c) - p(a and c) + p(a and b and c).
A more important question that I am t... |
When browsing through literature about ROC - AUC, there seems to be a disparity.
While some plot TPR and FPR, e.g. from Wikipedia: "The ROC curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR)"
Others do it with sensitivity and specificity, e.g. in this paper https://jamanetwo... |
Given some length of time $t$ with successful events occurring in this interval at rate $\lambda$. Assume that only one successful event occurs during this interval of length $t$. Which distribution describes this location in the interval? This is definitely some kind of exponential distribution, but with what paramete... |
I am studying the following varying coefficient model from [1]:
$$
d_x(x,y) = s_x(y)x + c_x(y) + o_x(x)
$$
$$
d_y(x,y) = s_y(y)x + c_y(y) + o_y(x)
$$
where $x$ and $y$ are covariates, $d_x$ and $d_y$ are data coming from measurements and $s_{x,y}(y)$,$c_{x,y}(y)$,$o_{x,y}(x)$, are smooth functions modeled by P-spline... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.