instruction stringlengths 9 38.7k |
|---|
I have 2 time series - one is for scores of people in a survey and the other for the sales of a product for 10 distinct countries. The survey data is categorized into 3 categories for each country. So, we have 10 * 3, i.e. 30 pairs. The data for the former is from April 2018 till Mar 2023 whereas for the latter, we hav... |
An illustration
David Blei in his lecture notes considers a collapsed Gibbs sampler for a Gaussian mixture model. In this case $B = (\mu_1, \dotsc, \mu_K)$ is a latent vector of means and $A = (Z_1, \dotsc, Z_P)$ is the vector of latent indicators, assigning the $p$th point to cluster $Z_P\in \{1, \dotsc, K\}$.
Collaps... |
I am stuck on understanding the best way to approach this problem from a purely statistical/mathematical way.
Say that I have this data in the table below. It shows the comparison of prices for one hotel between two years with a breakdown of the board type and room type.
Hotel
Board
Room
2023 Price
2024 Price
1... |
I've begun working with the Gumbel distribution and started with the example in the package documentation at https://cran.r-project.org/web/packages/fitdistrplus/fitdistrplus.pdf. For the Gumbel distribution fitdist() requires start parameters (template is fitdist(data, distr, method = c(...), start=NULL,...)), where i... |
Binary cross entropy is written as follows:
\begin{equation}
\mathcal{L} = -y\log\left(\hat{y}\right)-(1-y)\log\left(1-\hat{y}\right)
\end{equation}
In every reference that I read, when using binary cross entropy, they use labels 0 and 1, with activation the output layer is sigmoid. I wonder if it is possible to use cr... |
In Bishop's Pattern Recognition and Machine Learning book(page440), it talks about the M-step in EM algorithm of Gaussian Mixture Model. I am confused about the likelihood function of M-step. By likelihood, it is usually $p(X|\theta)$, right? But when involving this latent variable in the maximum likelihood function, ... |
I'm reading this paper about a genetic disease. In the paper, there's the following table
where $DD$ means developmental delay and $ID$ means intellectual disability.
From the table (last column) we know that
$$
P(ID \& DD) = 0.82 \\
P(ID) = 0.43 \\
P(DD) = 0.52 \\
$$
Now, imagine that we have already observed that a ... |
I have a large dataset and I want to check if there is any difference between the whole sample and the subsample.
For example, I'm checking the difference in the age of patients in the whole sample and the age of patients with cancer (subsample).
|
I'm reporting odds ratios for a logistic regression. I'm including p-values but it doesn't include R-squared as elsewhere, it says that "Odds Ratios and Log(Odds Ratios) are like R-Squared".
Is this correct, should you add e.g. McFadden R^2^ to odds ratio results?
|
I have developed different kinds of RNNs (such as LSTM,GRU etc.)to predict future values of thermocouple measurements. The residual errors look like they do not follow normal distribution, so I wanted to explore their skewness and kurtosis values.
Can I somehow correlate the values of skewness and kurtosis (for example... |
My master's thesis involves modelling fMRI data. Each of $M$ participants has a total of $N$ voxels being measured. All these measurements represent an activation amplitude. Aside from this, I have data on participant characteristics (e.g. age, gender, etc.). My aim is to get posterior distributions across the assignme... |
Assume $Y_{ij} \sim N(\mu_i,\sigma^2)$, $\mu_i \sim N(\eta,\tau^2)$ for $i=1,2$ $j=1,\cdots,n_i$ and prior $\pi(\eta,\tau^2,\sigma^2) \propto Ca^+(\tau^2,0,b_{\tau}) \times Ca^+(\sigma^2,0,b_{\sigma})$
where $Ca^+(x; 0, b)$ is the truncated Cauchy distribution with pdf $$f(x|b)=\frac{2}{\pi}\times \frac{1}{b[1+(x/b)^2]... |
I have two very large independent groups (n=30,000 and 12,000). Each data point is an individual’s UK Deprivation Index decile (the Deprivation Index itself is a ranking from 1 to 32,844 of an area’s relative deprivation where 1 is most deprived). My hypothesis is that one group is more deprived than the other, i.e. ha... |
I have datasets from two bivariate poisson distributions, $BVP_x(\lambda_1, \lambda_2, \lambda_{12})$, and $BVP_y(\lambda_3, \lambda_4, \lambda_{34})$ respectively.
Now we know the correlation coefficient for these two distributions can be defined as $\rho_x = \frac{\lambda_{12}}{\sqrt{(\lambda_1 + \lambda_{12})(\lambd... |
Say we have $N$ independent Gaussian variables $X_i$, each drawn from a mean-zero Gaussian with variance $\sigma_i^2$, where in this case I assume I know the $\sigma_i^2$. Define the weighted average as
$$
\bar{X} = w \sum_i^N X_i / \sigma_i^2, \ \ w = \left(\sum_i^N \sigma^{-2}_i\right)^{-1}.
$$
Then define the weig... |
I have a data that contains demographic information and primary variables (A,B,X,Y,Z) that extracted from past 20 years literature review. All those literature reviews are about case study, so in the data that we collected, each row is a person that selected from different case studies. Therefore, the data is like the ... |
I started working with the Gumbel distribution and fit it to the lung dataset to try it out. I then compared it with the survival curve using the Weibull distribution, which provides the best fit per goodness-of-fit tests and also hews closely to the Kaplan-Meier plot as shown below.
When averaging the death rate in th... |
In A General Metric for Riemannian Manifold Hamiltonian Monte Carlo (Betancourt, 2013), the author writes:
The first [5] and still most common choice of the conditional density, $\pi(p|q)$, is a standard gaussian, [...]. This choice, however, ultimately limits the effectiveness of HMC when applied to intricate target ... |
Let $X_i$ be a binary random variable where $P(X_i = 1) = p$.
I want to find the MLE estimator for $\theta = p(1-p)$.
The likelihood function should be
$$
L(\theta) = \prod_{i=1}^n p^{x_i} (1-p)^{1-x_i} = p^{\sum_{i=1}^nx_i}(1-p)^{n- \sum_{i=1}^nx_i},
$$
How should I proceed?
Seems like I can not just take the derivati... |
I am looking for advice on the best practice to determine hyperparameters for my LSTM model. I have time series data that I have divided into train and test sets. I was planning to use an expanding walk forward cross validation scheme on my train set to determine the hyperparameters and then use the test to obtain a fi... |
Let’s say we want to check the effect of the interaction of education level and gender of the salesperson on number of units sold by them. We have thousands of sales people in the data, but they only come from 10 companies: 4 of them hire (almost) only men, 4 hire almost only women, and 2 companies hire both men and wo... |
Let's say I am working with a state $X$ split into three parts $U$, $V$, and $W$.
I can efficiently sample from $W|U,V$, $U|V$, and $V|U$. My initial intuition was to do a variable-at-a-time Metropolis Hastings algorithm to sample $X$.
However, I then realized that the candidate density defined by the following mixture... |
I am building a model that predicts a target variable using daily weather data. I am trying to understand which weather lags influence my target variable the most. The issue is some weather lags are highly correlated - for example, if I use monthly weather aggregates, January and October for some bizarre reason have hi... |
I am training a regression machine learning model to predict an airplane's maximum take-off weight based on some pre-project features. The airplane weights in the dataset I'm working with are registered in kilograms. The model is not expected to be highly precise; it is intended to provide a robust estimation of the we... |
I am running the following code:
Patient1 <- Patient1 %>%
group_by(PAXDAY, cumsum(PAXINTEN != 0)) %>%
mutate(Group_Label = "Active") %>%
mutate(Group_Label = replace(Group_Label, cumsum(PAXINTEN == 0) >= 20 & cumsum(PAXINTEN == 0) <= 180, "Inactive")) %>%
mutate(Group_Label = replace(Group_Label, cumsum(PAXINTE... |
I am reading this article here and trying to regenerate their simulation study. Here is this scenario here, among others, but if I can figure out one, the rest follow. That is,
Simulation set-up
we assume the hazard function of subject $i$ is
\begin{equation}
h_i(t|Z_i(t)) = h_0(t) \exp(\alpha Z_i(t)),
\end{equation}
w... |
I am having trouble understanding the following steps in the Bayesian approach to predicting the probability of tossing a head H given some data D
\begin{aligned}
p(H \mid D) & =\int_0^1 p(H, w \mid D) d w \\
& =\int_0^1 p(H \mid w, D) p(w \mid D) d w
\end{aligned}
I understand the first step is the sum rule and the se... |
Suppose I have an ARMA (p,q) (let it be ARMA (2,2)) fitted to my original returns series and have the residuals of said ARMA model extracted.
Next, it is my understanding that I need to fit a GARCH model to the residuals of the ARMA model.
Suppose I wanted to fit only a GARCH (1,1) to the residuals. In practice, for so... |
I have made the following model in DAGitty:
Where $X_2$ is controlled for.
DAGitty says:
The total effect cannot be estimated due to adjustment for an intermediate or a descendant of an intermediate.
I asked here whether it would be possible to obtain the treatment effect after controlling for $x_2$.
But I guess my ... |
Im am doing some modelling with the mgcv package, specifically the gam function
glm.mod1 <- gam(imp1 ~ s(pH1, bs = 're') + s(ZnAc, bs = 're') + s(filter.age1, bs = 're'),
family = quasi(link = 'inverse', variance = 'mu^2'), method = 'REML')
When I want to extract the variance components, the last comp... |
I did a classification of review text data using the ANN model. As we know, text data must be converted into numeric first before entering the classification stage. To change this I used the TF-IDF method. I am confused whether the data scale of TF-IDF results is a ratio or interval scale.
Here's the example of TF-IDF ... |
I am pretty new to mediation in multilevel models.
I want to run a 2-1-1 (and maybe a 2-2-1) mediation model in R.
The dataset consists of 110 participants with three assessments per day.
covariates = sex ; age ; financial status and beep. sex ; age ; financial status are all level 2), beep is level 1.
Mediators = st... |
I am trying to use t_family(link="log") distribution from the glmmTMB package. The package allows fixing the shape parameter using start = list(psi = log(fixed_df)), map = list(psi = factor(NA)). In practice when I try to fix or not to fix, I get a very different result. My question is that what will be the effect of f... |
I am wondering what should happen when trying to compute leave-one-out cross-validation error when there are multiple 1-nearest-neighbours that is equidistant to the training point.
As an example, will the Leave-one-out cross-validation performed on the points below have an error of have an error of
Approach 1. 2/8 si... |
As part of a mini meta analysis where I want to test 2 moderators, I have used the following code:
output <- rma(yi, vi, mods = ~ factor(discipline) : factor(gender), data=interact_emm, method = "FE")
Both gender and discipline have two levels. When I run the analysis, the model output only shows 4 lines:
Model Result... |
I'm doing binary classification in Python with an SVM classifier, and I implemented stratified repeated cross validation to have more robust results.
I would like to calculate confidence intervals for the mean accuracy, but using normal distribution assumption (if my code is correct) I obtain unrealistically narrow CIs... |
I have some hierarchical data and I'm struggling to figure out how to code it in my model. The data was taken on 20 individuals from 18 total sites: 9 sites in year 1 and 9 sites in year 2 and each site is in one of three treatments. So site is nested in year and in treatment, but year and treatment are crossed. I want... |
I am reading the Introduction to Linear Algebra 5th edition, section 7.3: Principal Component Analysis. The section contains the following sentence
The first eigenvector $u_1$ of $S$ points in the most significant direction of the data.
What does the "direction of data" mean over here? I am guessing it implies a subs... |
I wonder if case-control matching will bring a new confounding bias into the matched design. In the following figure, $L$ is a confounder, $E$ is the exposure, D is the disease outcome. In the matched design, $L$ can be correlated with $D$ through 1) $L\rightarrow E\rightarrow D$; 2) $L\rightarrow D$ (initial confoundi... |
My task is to run a logistic regression that models the probability that revenue is non-zero (in the
logistic regression parlance, a positive revenue is a success). Revenue variable is numeric and expressed in thousands of euro.
My code looks like this:
my_data <- dataset
my_data$success <- ifelse(my_data$revenue > 0, ... |
Let's say I want to compare the correlation of BMI and blood pressure in two independent groups and see, whether there is a difference between the correlations (whether the correlation is stronger in one group than in another). This can be readily analysed with the 'cocor' package (and Fisher's z) in R.
But what if, i... |
I have conducted a randomized 2x2 cross-over trial of 8 participants measuring the effect of a specific diet (intervention) vs normal diet (control) on the number of sleep hours.
The study design includes one week periods: run-in, intervention/control, washout, intervention/control, and then washout. Thus in total 5 we... |
I am trying to train a NN model in MATLAB to predict the amount of overflow for flooded junctions in an urban runoff system and I have 45 samples and 15 features. The issue is, I don't think 45 samples are quite enough for predictive modeling. Is there anything I can do to have a have good model without the need to aug... |
I am using PCA to do the data inspection. First 3 PCs explain nearly 82% of the total variance. Suppose the number of features is $n$. And I found 4 of the features have similar PCA feature importances for first 3 PCs. Say in the attached figure:
evap_c_5, evap_c_7, w_s_5, w_s_7 have similar feature importance for pc_... |
I am trying, without success, to calculate the log-likelihood of the most basic logistic regression model - a constant probability model (i.e. only $\beta_0 \ne 0$).
For the simplest model with 1 coefficient (i.e. constant probability):
$$
E(y) = \pi = \frac{1}{1 + e^{-\beta_0}}
$$
The maximum likelihood estimate of $\... |
This is a question seeking to follow up on this post.
I have a multigroup SEM with a mix of observed and latent variables.
In the measurement model to inspect latent variables, metric invariance holds (loadings), but scalar invariance (intercepts) does not hold.
The regression is one manifest variable (Std_LC) and one ... |
I'm building a search engine of technical documents based on Word2Vec, using cosine similarity metric. This search engine is very specific because it is meant to work with technical writings written in both French and English, to be used by end-users who don't necessarily know the exact technical words to look for. Usi... |
There are 197,058 record holders (population) with an average of K shares each. I don’t know K, and the sample collected so far of ~24,000 observations appear to be non-normal (inverse gauss). I’m wondering how big the sample size would need to be such that the sample mean would be approximately equal to the population... |
Given a bivariate joint distribution of random variable X and Y, $P(X,Y)$, consider the expectation value $E[(X-Y)^n]$ for different n values.
If one observes that while the variance becomes smaller as $n$ is increased within even and odd $n$ series, the even values are hierarchically larger than odd, what does this sa... |
In regression models such as linear and multiple regression models, there are several conditions that must be met such as normality, non-autocorrelation, heteroscedasticity etc. does ANN also have conditions that must be met as well? If there are, what are the conditions?
|
Question
Suppose there are two groups on treatments and an individual follows a Weibull distribution with the following probability density function.
\begin{align}
f(x; \alpha, \lambda) = \alpha \lambda x^{\alpha - 1}e^{-\lambda x^{\alpha}}, \quad \text{where } x \geq \alpha \; \text{and } \lambda > 0
\end{align}
It is... |
I am trying to implement a variational extension of some kind of Bayesian network estimation method. The main goal is to improve speed, since the current method is pretty slow due to MCMC.
My question should be pretty simple for veterans in the field: "How to obtain the optimal variational density?" "Is it fixed a prio... |
The code below gets a: error in mean(abs((y_true - y_pred)/y_true)) :
argument "y_true" is missing, with no default
I've seen MAPE used on forecasts. Can one use this and similar methods on models? Or is there some other R package that would work?
Edit 1: Seems lke MAPE wants a forecast. While my arima:
> class(arima)
... |
I have a series (sensor readings) with different events and I'm trying to segment/detect those events for further analysis using change point detection in python.
In general, the series consists of a mean with a fairly small standard deviation. Occasionally, an outlier reading will occur for one, maybe two points, and ... |
I'm a newbie to the world of deep learning. I know that in practice what a lot of people do while training these models is to decay the learning rate as the number of iterations increases.
In a similar fashion, when we are trying to minimize a function via Newtons Method we use the inverse of the second derivative as t... |
Is there any reference about backpropagation of the Transformer's multi-head layer or multi-head attention (MHA)? I have searched various journals but have not found one yet.
|
I have similar recurring use case at work whereby we are wanting to understand attributes/features of a datasets such as 'how many customers talk about this', 'how many customers do that' and generally the only knowns that I think are relevant are the populatation sizes.
In this current example what we have is a datase... |
when we compute self-attention in a decoder model, we compute, for an embedding $x$, the tensors $Q = W_Q x, K = W_K x, V = W_V x$.
However, in the next step, we compute a dot product on the embedding dimension:
$(Q|K) = x^T W_Q^T W_K x$.
In this way, the matrices $W_Q, W_K$ only appear through the product $W_Q^T W_K$.... |
I read this post How is the minimum of a set of IID random variables distributed? where I can find how to compute the density distribution of the minimum between $N$ positive random variables. If the cumulative of these random variables is $F(x)$ the cumulative of the minimum between $N$ of these random variables is:
$... |
Sorry if the question sounds stupid. I am new to this. Consider the following dataset:
|Month | Temperature|
| -------- | -------------- |
Jan | 10
Feb | 12
Mar | ?
Apr | 16
May | ?
Jun | ?
Jul | 22
Aug | ?
Sep | 18
Oct | ?
Nov | 14
Dec | 12
Now, can we evaluate "?" for this dataset? I cannot find the documentation fo... |
Could you please help to write down the exact equation?
It is clear for Garch part but not clear how to add ARFIMA (1,0,1) or here just ARMA(1,1) in model equation specification.
Should we also type formula for our distrubution type that follows normal here?
How change the equation for same model but with Student-t dis... |
A spline of order $r$ (with $K$ knots) can be written as:
$$f(x) = \sum_{i=0}^{r-1}\beta_i x^{i} + \sum_{j=1}^K b_j(x-\kappa_{j})^{r-1}_+$$
A natural spline is defined as a spline that has order $2r$ inside $\left[ x_{(1)}, x_{(n)} \right]$, and is a polynomial of order $r$ outside of $\left[ x_{(1)}, x_{(n)} \right]$.... |
Suppose I have the Bayesian network in the figure and the corresponding conditional probability table for each node, where A and B are the hidden variables, and C and D are the observed variables. What probabilistic inference algorithm can I use to get all the conditional probabilities in Table - 1? can I use likelihoo... |
I am a bit confused about how people calculate p-value when calculating odds-ratios.
The log-odds ratio (LOR) for a contingency table with two entries is $L = \log \frac{p_{1}}{p_{0}}$ and has an unbiased estimator using sampled frequencies: $\hat{L} = \log \frac{n_{1}}{n_{0}}$. This estimator has asymptotic variance $... |
I have this exercise where is the answer. Using this annex(text at the top means tenths of the x), the value becomes . What I don't understand is how it becomes 2,58. Our first answer is 0,495, so I'm looking on the left searching the 0,4 table. After that, I'm looking at the tenths of our answer, but there is no num... |
In the first derivation of dL/dW, I use the rule for the derivative of a constant with respect to a matrix and then apply the chain rule.
\begin{gather*}
Y\ =\ XW\ +\ B\\
X=\begin{bmatrix}
x_{0} & x_{1} & x_{2}
\end{bmatrix} ,\ Y=\begin{bmatrix}
y_{0} & y_{1}
\end{bmatrix} ,\ W=\begin{bmatrix}
w_{00} & w_{01}\\
w_{10} ... |
Long story short, I'm seeing in the literature that linear instrumental variables models are identifiable, even in the presence of unobserved confounders. The unobserved confounding aspect befuddles me, since it is not clear where this insight came from.
Briefly, given a linear instrumental variables setup where
$X = ... |
I am doing some research on a provider's network geographical distribution. If my data looks like this:
Country
Quantity
Continent
Ireland
5
Europe
Singapore
9
Asia
Canada
25
North America
UK
43
Europe
USA
50
North America
but for 70 countries and 2,000 servers. How could I best visually display thi... |
After making a neural network using ReLU as the activation function throughout, I had a look at the input layer activations and noticed that about 10% of the neurons are dead on initialization (never activated). At first I assumed it was caused by the large magnitude of my inputs and/or large input layer weights, but s... |
In semi-supervised learning, when a portion of unlabelled data is combined with labelled data during the training process, I'm wondering how one can perform inference specifically on the unlabelled data used for training. What are the recommended strategies or techniques for conducting inference on this subset of unlab... |
I am trying to combine GNN and CNN in my model.
Every node of my graph has 2d space coordinates, so as a whole it's like an irregular 2d mesh.
I think we can't use deep GNNs due to oversmoothing. So I am thinking of sampling this 2d mesh into a regular one so that I can use CNNs.
So the first part of the model is a GNN... |
I have a dataset with 96 records in the following format:
State Period WHC WVC
Aguascalientes 2010-2011 79,333 118,192
Aguascalientes 2015-2016 79,802 60,427
Aguascalientes 2020-2021 89,301 73,652
Baja California 2010-2011 178,822 247,565
Baja California 2015-2016 169,765 101,350
Baja... |
I am having difficulty understanding how the skip connections occur in resnet50 when the input and output layers are different in shape.
For example, in the first residual block, a 56*56*64 size matrix needs to be added with 56*56*256 size matrix. In the paper they mentioned when input output size are different, they d... |
I am using SAS PROC Reg to develop an OLS regression equation for a random sample of 190 observations. These observations contain the Old_Area of_oF_Polygons (var X) and the true area of GIS polygons (var Y). The REG equation is then used to score a larger dataset with PROC Score. In cases where there is no real dep... |
Im currently working on specifying a seasonal ARIMA model with an exogenous variable. I'm using the forecast package developed by Hyndman for this. I have specified the following:
Arima(endogenous, order = c(1,1,0), seasonal = c(0,1,0), xreg = exogenous)
Q: I was wondering if the seasonal differencing is also applied ... |
I have a control variable firm size in my regression model. I want to examine the moderating role of the firm size. I added the firm type that is 1 for small-sized companies, 2 for medium-sized companies and 3 for large-sized companies. Now in this situation, should I remove firm size as the control variable and then r... |
I understand that with multiple components, the result will be coefficients that lead to maximally independent series.
When requesting only one component I'm unclear if it actually does optimization and what that optimization is. Since there is only one component, there is nothing to measure an independence against? My... |
Let's assume that I have two groups that I would like to compare in terms of death rates. One group (group A) got a specific treatment and the other group (group B) did not get any treatment. I matched the groups using full propensity score matching because the groups differed systematically from one another. Now I wou... |
Statisticians and Data Analysts sometimes draw conclusions from surveys given to people.
Often times, there is a question, and there are 2 to 5 options to choose from if you are a survey respondent.
One of the mistakes people make when writing these surveys is asking survey respondents to choose exactly one option at t... |
I am new to working with time series and have tried several methods on my data including SARIMAX, Croston and forecastHybrid. The most accurcate result I've gotten so far is with stlf(), based on Explain the croston method of R. and https://laurentlsantos.github.io/forecasting/seasonal-and-trend-decomposition-with-loes... |
Suppose $\mathbf{X}$ is a vector of iid Bernoulli variables with the fixed success probability of $p$. The variance of X is $np(1-p)$.
Now, suppose, I am interested in the conditional probability of $s$ successes given the weighted sum of Bernoulli RV, formally, $P(1^TX=s|w^TX = w^Tx)$. How would that pmf look like?
Pa... |
I know that random variables can take negative values, so can independent and identically distributed random variables be negative?
|
Question
Suppose two groups on treatment and can be modelled by a Weibull distribution with a normal probability density function
\begin{align}
f(x; \alpha, \lambda) = \alpha \lambda x^{\alpha - 1}e^{-\lambda x^{\alpha}}, \quad \text{where } x \geq \alpha \; \text{and } \lambda > 0
\end{align}
Where in the study $n... |
I'm really newbie about neural network and optimization. When I read the references, I found this journal Wang et al 2018.
The journal stated:
One disadvantage of SGD
is that it scales the gradient uniformly in all directions;
this can be particularly detrimental for ill-scaled
problems. This also makes the process of... |
I am using SGD & Adam optimizer in a simple NN for a binary classification problem.
The model converges every time, but when I run the same model for 100 times, I notice that I won't get the same coefficients every time. There is a deviation in coefficient values from benchmark coefficients (that I obtained from Statsm... |
Q: If $X_t$ is an AR(2) process, what is $Y_t := X_t - X_{t-1}$?
Attempted solution:
$X_t = \phi_1 X_{t-1} + \phi_2 X_{t-2} + W_t$, where $W_t$ is white noise.
\begin{equation} \begin{split} Y_t &:= X_t - X_{t-1} = \phi_1 X_{t-1} + \phi_2 X_{t-2} + W_t - \phi_1 X_{t-2} - \phi_2 X_{t-3} - W_{t-1} \\
\end{split} \end{equ... |
In my textbook $p$-values are defined as follows:
$$p\text{-value} = P(T \text{ is at least as extreme as } t \text{ given } H_0 \text{ is true}) $$
where $T$ is the test statistic. It goes on to say that
The smaller the $p$-value, the stronger the evidence against $H_0$.
Here is my issue. Surely if the probability t... |
Given that that correlation coefficient can only be between -1 and 1, it can never increase the steepness of the slope when calculating the steepness of a slope in a regression line.
Say correlation coefficient r = 0.946, standard deviation along the x-axis Sx = 0.816, and standard deviation along y-axis is Yx = 2.160 ... |
I was reading about normal distributions and the Central Limit Theorem (CLT) and I came up with a question.
Why do we bother ourselves to use machine learning techniques when the CLT gives us the permission to assume that the mean of our data has a normal distribution? I can understand the usage of deep learning when w... |
I wondered if anyone could help with the following issue…
Rather than just assessing whether there is a difference between two means (considering the variance of each sample), I would like to be able to assess the difference between multiple samples’ variances, or coeeficients of variation (i.e. answering the question ... |
I'm conducting a survival analysis using Cox proportional hazards model. The failure in the analysis is crime.
I have a binary covariate (1 = yes, 0 = no) for which I get huge hazard ratio – usually between 2,000-4,000 (depends on the specific model).
I checked and it turns out that around 90% of observations who have ... |
Let $X_{1},X_{2},X_{3}$ be i.i.d samples from $N(\mu,\sigma^2)$.
Let $u$ denote
$$u=\frac{X_{(3)}-X_{(1)}}{S_{3}}\,,$$
where $X_{(i)}$ denotes the $i$th order statistic, and$$S_{3}=\sqrt{\frac{\sum_{i=1}^3(X_i-\bar{X})^2}{2}}$$
Now I know the density function of u is$$f(u)=\frac{3}{\pi}\left(1-\frac{u^2}{4}\right)^{-\f... |
I am asked to test a hypothesis that a manufacturing line makes p% faulty parts in a month, it's assumed that the p% is independent of the month. My approach is as simple as it gets, take a random sample from this month and get the proportion and proceed with my test normally. However i am only provided with daily data... |
I am currently looking at the effect of the introduction of Carbon Tax/ETS on corporate investment behavior. I do have a cross-sectional panel-data from the period 2000-2022 and grouped the firms by industry and whether they are in a country that has introduced such a policy or not. I have found 5 industries where ther... |
I have a number of embeddings (300-dimensional FastText vectors for each instance of each class) that I apply a classifier to (Logistic Regression for now). I want to visualize the embeddings as well as the decision boundary as part of model debugging so I can see which classes are not linearly separable, which instanc... |
Suppose that we are in a Bayesian context, we we have the following matrix $n,$ $K\times K,$ as parameter, and we assume that
$$n_{ij}\sim Pois(w*w_{ij})$$
where $w\sim Gamma(N+1,1)$ and $w_{ij}$ is another parameter which follows a dirichlet distribution. Can the following be seen as a different parametrization for $n... |
I need to compute the posterior distribution of a parameter $\theta$ conditionally on signal $t$. $\theta$ is uniformly distributed in $[0,1]$, while $t=\theta+\eta$ where $\eta$ represents a noise, distributed uniformly in $[-0.5,0.5]$. I know Bayes' rule but I don't know how to apply it when distributions, instead of... |
model = flexsurvreg(Surv(START,STOP,EVENT) ~ predictor1+predictor2,data= infection,dist="gamma")
p=ggflexsurvplot(model, xlab = "Time (Months)", censor = F, conf.int = T,
fun = "survival")
I am trying to do visual predictive checks such as KM curve overlaid with model prediction and prediction interv... |
A common prior for the unknown variance of a normal distribution (with given mean $\mu$) is the scaled inverse $\chi-$squared distribution. It turns out this is a conjugate prior! A simple proof can be found here https://real-statistics.com/bayesian-statistics/bayesian-statistics-normal-data/conjugate-priors-normal-dis... |
In the study of tweets pre- and post- metoo (set as Nov 2017), we are looking at whether there is gender differences in the use of masculine language in tweets for male and female social media users.
We have tweets collected for the period 2008-23 for 400 users. Some of these users were only active on Twitter before me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.