instruction
stringlengths
9
38.7k
I'm building a keras model for a binary classification. model <- keras_model_sequential() model %>% layer_dense(units=32,activation="relu",input_shape=10) %>% layer_dense(units=16,activation="relu") %>% layer_dense(units = 1, activation = 'sigmoid') Since my input matrix consists of 10 columns, I chose the...
Let us consider a signal assumed as in the paper by Rosso et al., i.e. given by the sampled values $S=\left\{s_0(n), n=1, \ldots, M\right\}$, corresponding to a uniform time grid with sampling time $t_{\mathrm{s}}$. For simplicity, the sampling rate is taken as $t_{\mathrm{s}}=1$. The wavelet expansion will be: $$S(t)=...
When the characteristic polynomial of a moving average s model is given as $(1 − 1.4x + 0.3x^2 )(1 + 0.5x^{12})$, how to obtain the MA model and then calculate the ACF of this model? I am expecting an explanation of how to solve this type of problem.
I have clinical data which lacks a golden standard for diagnosis. instead multiple indices are used with different accuracy. I have transformed the results from these indices to binary for with patient having and not having the disease. This is then used for latent classification analysis. I want to know if i should us...
I am considering methods of selecting an optimal K Nearest Neighbors model for classifying a pixel as representing a refugee's blue tarp or not. See https://www.kaggle.com/datasets/billbasener/pixel-values-from-images-over-haiti . The data set has 63,241 observations. I have normalized intensities of red, green, and bl...
I want to fit a model to some data using structural time series modeling and Kalman filtering. The hyperparameters need to be tuned using maximum likelihood estimation. I am using the Python package statsmodels that does this for me, but nowhere I need to put in which distribution I assume my model follows. Does it aut...
I have to manually create basis functions for a variable but SAS doesn't seem to have a procedure to do it. I am using Frank Harrell's macro RCSPLINE but the basis variables are not identical to those created by SAS. It seems like SAS is dividing the second basis by 4 and the last one by 4.5. Not sure where these nu...
I have a dataset which is a electronic bus charger station, data include: voltage current and power consumption. There is no time rule in the use of charging piles, but I want to predict the power consumption of charging piles. Traditional transformer is based on time series, and the data needs to have obvious time cha...
I'm trying to conduct a meta-analysis on correlation using Spearman's disattenuation formula: rx'y' = rxy/sqrt(rxx*ryy). Can composite reliability (CR) instead of Cronbach's α be used in this formula? Since some studies only reported CR instead of Cronbach's α. Or can CR be transferred to Cronbach's α? I searched it on...
We consider the residuals $\varepsilon_i$ as random variables drawn independently from some distribution with mean zero. In other words, for each value of $x$, the corresponding value of $y$ is generated as a mean response $\alpha + \beta x$ plus an additional random variable $\varepsilon$ called the error term, equal...
If I have n participants in a two-player-game league, whose initial ratings are unknown, is there a good heuristic for how many games/comparisons/pair-faceoffs are required to achieve an accurate rating with the Elo rating system? How does it scale with tens, hundreds or even thousands of participants?
for my master thesis work I have to analyze some brain PETs of patients affected by gliomas. Basically the problem is: I have a 3D scale of gray image of the brain. The tumor zone is an high-intensity one and so is white. I would like to segmentate the tumor region. The problem is that also another anatomical region is...
We're trying to see the effects of treatments on the download speed of mobile data in 4 locations, with three variables: SIMs, Locations, and Time. SIMs has 2 factor levels, Locations has 4 factor levels, and Time has 2 factor levels. SIMs' factor levels are the network providers' SIM cards we used: Globe and Smart. F...
Let $T_i$ and $c_i$ be a test statistic and critical value, respectively, for testing hypothesis $H_i$, $i = 1,2,\dots, n$. Assume a Type-1 error rate of $\alpha$ for each test. The family-wise error rate is given by $$\textit{FWER} :=P\left(\bigcup_{i=1}^n\{T_i>c_i\}\right).$$ If the events $\{T_i\leq c_i\}$, $i=1,2,\...
A rare bird recently turned up in the UK. The length of the bird's beak was measured (41.9mm). I want to check that the bird is likely to derive from the North American population of the species. To do this, I calculated the mean and standard deviation beak length of 30 North American individuals of the species. To che...
Suppose we are building a CNN model. After we do 5-fold cross-validation and examine the accuracies and other statistical tests, how do we choose the final weights of the model? Should we choose the one with the highest test accuracy? Or should we combine them somehow? Or just re-run the model once again with our test ...
It is mentioned here that qnorm(k (in decimal form), mean = μ, sd = σ, lower.tail=TRUE) finds the x-value that separates the bottom k% of the values from a distribution with mean μ and standard deviation σ. So does that bottom k% also include the probability value associated with the x-value given by the qnorm() functi...
Assume that $y=(y_1 ,\ldots ,y_n)$, $y_i >0$. The Box-Cox transformation is $$y(\lambda ) :=\begin{cases}\frac{y^\lambda-1}{\lambda}&\lambda \neq 0\cr \ln y&\lambda =0\end{cases}.$$ In Box-Cox transformation, it is assumed that $y(\lambda )\sim N(X\beta ,\sigma^2 I_n)$, where $X$ is the design matrix, $y$ is the raw da...
say i measured the same subjects, in two different times: I measured for PB variable: which is binary: "yes", "no". and measured their willingness to save money: which is "continuous" (Likert-scale 1 to 5, actually not continues but I will regard it as like that). what model can i use, to predict willingness to save mo...
I ran a psychology experiment where participants categorized a target word into one of two categories (living thing or non-living thing?) by pressing one of two buttons, where the outcome of interest is the time it takes them to respond correctly. The target was preceded by a prime word that was either an English word ...
Suppose that we have an $i.i.d$ sample, $\{Y_i,X_i\}_{i=1}^N$, and a correctly specified conditional density of $Y$ given $X$, $f(Y|X; \theta)$, where $\theta$ is the parameters of the density. Then, the MLE theory show that the true value of the parameters, $\theta_0$, maximize the expected value, $\mathbb{E}\left[f(Y...
I am trying to include the weight derived from Inverse Probability of Treatment Weighting (IPTW) into a structural equation model (SEM). However, it is unclear how it should be incorporated into the model and how lavaan's sem() function will compute the outcome.
[Closed, see comments] I was reading through this paper on recent advances in diff-in-diff and got stuck with a (probably very simple) issue when trying to derive the final population estimand. In more detail, I'm trying to go step-by-step from this expression: To the population estimand: I've made a few steps, becau...
We have a dataset in the form of a time series $Y_n$. We assume it follows an underlying parametric distribution $f(n,\beta)$, $\beta$ being the parameters. From the observed dataset, we get an estimator $\tilde{\beta}$ for the parameters (say from an MLE). I am interested in the uncertainty of this estimator. Of cours...
Cross posted from Mathoverflow Let $X$ and $Y$ be two random variables such that $X\sim Exp(\lambda)$ and $Y$ have positive support and (strictly) increasing hazard rate $h_Y$. $X$ and $Y$ are independent. Let $Z=X+Y$. We observe $Z$ and want to infer the hazard rate of $X$ conditional on $Z$; $h_{X|Z}$. The interpreta...
I am dealing with a variation of a standard problem. Given an objective function $O := E_{a \sim P_\theta(A)} [f(a)]$, we can calculate its gradient $\nabla_\theta O$ as follows: $$\nabla_\theta O = E_{a \sim P_\theta(A)} [\nabla_\theta \log P_\theta(A=a) f(a)],$$ which can be approximated using samples from $A$. Howev...
Gradient descent involves significant computational effort, whereas the method of least squares enables direct and accurate calculation. Does gradient descent offer any advantages over least squares estimation? The only potential advantage of gradient descent that I can identify is that it allows us to use other loss f...
I actually work on medical datas to predict outcome after treatment on patients with metastasis lesions of carcinomas. Each patient have different number of lesions with some with like 30 lesions and others, only 3, and, among these lesions, some will be classified as "0" (stability or response), and others as "1" (pro...
Let's say I have a population of 1M objects. I want to make a binary classifier to use on that data, but I can't manually classify all the 1M to create training data because that would take too long, so I: Take a small sample of that population Lable that sample manually Train a classifier Calculating the model's rec...
If there are two groups of people A and B which are both normally distributed around the same mean, and 80% of the total group is of type A and 20% is of type B, I know that if I randomly sample from the overall group that my random sample would have the same 80/20 breakdown. However, if I select from only the top .3%,...
I understand that it works best for image generation to add white noise and no drift because is simpler. My question is, theoretically speaking, can the noise follow a certain distribution and the drift can be any function of state and time (signal), and the neural networks can learn to distinguish it from noise? A lot...
I would like to know how to algebraically construct cardinal spline bases, as I would like to make a prediction with a natural cubic spline model which uses them; however, the only source I have found is Simon Wood (2017), which I do not have access to. I am familiar with the construction of truncated power series base...
I have data from a cohort of 10,000 people who were followed for ten years to analyze the relationship between stress and the risk of dementia. The stress levels were independent variables, and the dementia incidence was response variable. I used the cox model to calculate the hazard ratios for dementia incidence accor...
I have a time series that I'm using for forecasting and I'm facing an issue with a flat period. In my time series, I have the following dynamic: In the past the quantity was stationary (red part), almost intermittent but there's some data; however after some time the series started to pick up and behave like a regular ...
Is it okay if my outcome for time series linear regression and linear regression is the same? I have time series data with 756 observations and for each year there are 252 observations. The time series data is from 2015-2021. It is an individual data type. All my independent variables are categorical and I categorized ...
I have two models: Black Box: Fedformer https://github.com/Zero-coder/FEDformer White Box: A linear function I want to predict home load, I use Black box predic time-series got a pth file. Then I use White box to calculate load base on linear math function either. I want to add weight for these two models to get a bett...
The Bernoulli product measure $\mu$ can be defined for each $p\in (0,1)$ on $\Omega = \{0,1\}^\mathbb N=\{\omega=(\omega_i)|\omega_i\in\{0,1\}, i\in\mathbb N\}=\Pi_{i=1}^\infty \{0,1\}$. The measure $\mu$ is essentially defined by a collection of Bernoulli random variables $X_i:\Omega\to\{0,1\}$ which take the value $...
I want to find out if 2 proportions are different or not. For one, sample size is <30. For the other, it's much >30. Can I use the Z test since one size is large? Or do i have to use the t test? Or can I not compare since the numbers are very different? I'd be grateful for any help. Thanks.
We want to test the effect of dietary supplement on two groups of cows (randomized and controlled for starting weight and age). Group 1 (6 cattle) receives supplement 1 and group 2 (6 cattle) receives supplement 2. They are housed in the same pen but groups are isolated from each other. Animals are weighted once a mont...
My question is about situations where I analyse data from a survey (eg. service satisfaction) where some of the questions are presented only to a specific sub-group of respondets (eg. only respondents of age 65+ were asked about service options available only for them). I want to use this data in a prediction model (eg...
I think I see a contradiction between two blog posts, please help me decide if there's an error somewhere or how do these align: lilian weng claims this: while wouter van heeswijk claims this: [ who is right?
Can I and if so, how can I, use the output of a MCMC method as the input for an independent Metropolis-Hastings algorithm? Maybe this question reduces to: How can I get (independent? or at least "almost uncorrelated") samples from a distribution which I only have access to through sampling from a Markov chain which has...
I am trying to perform spatial panel data analysis using the splm package in R. However, I encountered an error when applying the Moran test and LM tests to the entire panel data. I have generated random data over 10 time periods, including variables for income and crime. I created a spatial weights matrix using the ma...
I have ran a latent basis analysis and got the results below. S BY AE1 0.000 0.000 999.000 999.000 AE2 0.714 0.185 3.867 0.000 AE3 0.734 0.219 3.348 0.001 AE4 1.024 0.300 3.414 0.001 AE5 ...
I've read that Adaptive Gaussian-Hermite quadrature is better for binomial distributions than Laplace estimation is, but would like to understand how it works/why it’s better. My particular situation: I have a mixed model with a two-way interaction and random intercepts for participant. When I tried it with Laplace, th...
I certainly should read Jakob Bernoulli's Ars Conjectandi again but let me share my concerns. I'm just wondering when and how the Bernoulli distribution $Be(p)$ (and related distributions like the binomial $B(n,p)$) with real binomial proportion $p$ was introduced. Indeed, classical probability theory defines probabili...
tslm(Life_expectancy ~ Age + Gender + Race + trend, data=ts_df) Can I do something like this? I actually tried using this as a model and I got a different outcome but the p-value of trend variable was insignificant. Does that mean that there is no trend in my data? I did the vif test.
I'm reading about Actor-Critic in lilianweng, and I'm wondering about why is this the action-value function update? what function are we taking the gradient of here?
My objective is to see if there is a significant difference in BHB concentration between age categories in farm animals. Farm should be a random effect in the model. The issue is that BHB concentration is left-truncated (lower detection limit at 96). I have 94 data rows, of which 63 are at the lower limit of detection....
Assume one is given two series of binomially distributed data: $$X_{1k} \sim Binom(n_{1k}, p_{1k})$$ $$X_{2k} \sim Binom(n_{2k}, p_{2k})$$ $$k\in \{1\ldots K\}$$ The goal is to estimate $p_2 - p_1$ along with it's credible interval, given some priors on $p_1$ and $p_2$. Similarly to the paired $t$-test, I'd expect the ...
I have a no-trial question: I want to soft cluster the apps from Google Store. Most of the parameters are numbers, so no big clue. There are also "tags" but this is like using categorical features. I can use a one-hot encoding. The pain is about the titles, which still contain a lot of useful info. To keep the feature-...
I'm currently trying to understand graph neural networks and got stuck with comparing MPNN and GCN. In my understanding, MPNN is more of a "general framework", while GCN is a specific "instantiation" of that framework. Accordingly, a GCN can be seen as a type of MPNN. Now, a MPNN always consists of a message function, ...
Say we are fitting a penalized model, such as a linear regression with lasso regularization. We expect to obtain a model with the most significant covariables. The method starts with many covariables and ends up with just a few, as we use to do with backwards stepwise methods, but the result is obtained in a single ste...
What statistical test should i use for comparing samples with different sizes? I am using a public dataset from DataSUS, I want to see if there are differences between the mean/median for the same type of surgery in different hospitals. The number of surgeries is distributed along the years: For surgery type 1, hospita...
For my research I am looking for a stochastic process that fulfills the following conditions. The process takes values between 0 and 1, $X(t) \in [0,1]$ for all $t \in \mathbb{R}$. The process ends if it hits either 1 or 0. Denote this time by $T^*$. If $X(t) = p$, then the probability that the process hits 1 (instead...
Normally, I am testing the calibration of a probability of default model with the binomial test. The ECB is suggesting the Jeffreys Test. Are they related in any way? Is the Jeffreys test superior to the simple binomial test in any way? The goal is to compare forecast rate of success (defaults) with actual success. Se...
I have a model which predicts a binary outcome (default/no default). The discriminatory power of the model is normally quantified with Somers' D which is the same as Gini in the binary context. $Gini = 2 \times AUC -1$ AUC is also nicely explained here: https://developers.google.com/machine-learning/crash-course/class...
Let's say that a random variable $X$ takes the values $(x_1, x_2, \dots, x_n)$ over the sample space $\Omega$. As far as my understanding goes, the entropy of a given variable is meant to give an idea of how small are the probabilities of the same variable taking the values that it takes, and thus knowledge of a varia...
I'm working in PyTorch and I would like to use a Temporal Convolutional Neural Network (TCN) to perform binary classification for each timestep of an input sequence, therefore a Sequence-to-Sequence (Seq2Seq) TCN. I'm considering the TCN PyTorch implementation defined here and here which is used in this MNIST example t...
A method to handle missing data is with multivariate imputation by chained equations. During this process, we create many datasets (as many as you specify) with imputed values for the missing data. Then, models are fitted for each of the datasets and the estimated coefficients across all the fitted models are pooled to...
I recently discovered TLS for a bio-statistical (ecological) problem I am working on. However, I was not able to find a lot of (ecological) literature that uses TLS in their analysis. From other disciplines I mainly found papers that focus on image recognition, that look at calibrating instruments for measurement error...
How do I improve the accuracy of the following data. It is from the following Kaggle competition which I am doing (despite it being closed for a school project). afinn <- get_sentiments("afinn") %>% mutate(value = case_when(value > 0 ~ 1, value < 0 ~ -1)) nrc <- get_sentiments("nrc") %>% ...
In a previous question (Entropy of an image) and in various sources on the web, the Shannon entropy of an image is considered to be the entropy of the frequency distribution of the grayscale values. In this way a random image where the pixels take the values 0 or 1 with the same probability has an entropy equal to a si...
From Wikipedia, the Weibull distribution is defined with the exceedance distribution function (aka survival function) $\exp[-(x/\lambda)^k]$. If I transform the random variable $x$ using $x'=ax^b$ then $x'$ is also Weibull, with new parameters $\lambda'=a \lambda^b$ and $k'=k/b$. And it seems that any Weibull can be co...
This is about a joint project with a subject matter expert, and I'm the statistician. I will not explain the background and simplify the statistics problem as the background is rather complicated. The model that we actually fit is a negative binomial mixed effects GLM, but the problem can be explained using a Poisson r...
I have dataset with a (unique) ID, a date (yyyy-mm-dd format) and an arbitrary measuring value x. The dataset is sorted by date (first) and, multiple IDs have the same date, by ID (second). If I plot the data in a scatterplot everything is fine, until I intruduce a moving average for my data. As some dates can appear m...
There is a distribution $D(\theta)$, where $\theta$ represents the parameters of the distribution. To sample from the distribution, a bunch of people are called to give their samples $x_1, \ldots, x_n$. Given those samples, one can estimate $\theta$, and we'll all be on our merry way. However, a lot rides on what $\the...
The survival package function survfit() calculates a confidence interval for the estimated median survival time. It seems clear that this interval is calculated as the set of timepoints for which the 95% CI for S_hat(t) contains 0.5, and as such the interval will vary depending on which transformation is used to const...
I was studying mathematical statistics written by Joe Blitzstein when I encountered the derivation of the PDF of Cauchy distribution. I cannot understand why the distribution is the same between X/Y and X/|Y| (that is, why P(X/Y < t) = P(X/|Y| < t)). I know that since X and Y are iid Normal(0,1), they each have symmet...
I have the following data: Seven substances (hereafter S1–S7); Inside each substance, I have 30 scores (10 for each of three layers (let's call them A, B, and C)). The scores (1–5) are also ordinal. An example: S1 A - 10; B - 10; C - 10; S2 A - 10; B - 10; C - 10; And so on. So, I have two questions: Compare the effec...
I want to sample uniformly from the area bounded by $y=0$, $x=3$, and $y=\sqrt{x}$: If I draw $x$ from $U[0, 3]$ and $y$ from $U[0, \sqrt{x}]$, the density will be higher in the bottom left corner: I tried to fix this by making the number of points on a region bounded by $x=a \in [0, 3]$ on the right, the square root...
I have sales data (quantity sold (tons) and the prices that those forest products were sold ($/ton)) of three forest products (e.g., sawtimber, chip-and-saw and pulpwood) and sales of these products were done by individual forest owners. Considering the fact that these three forest products can come from a single tree ...
I am looking for the method that estimates a parameter to maximise the correlation between two distributions. I am measuring the speed of a rowing boat that goes up and down a river. The crew goes at different speeds - doing fast 500m and then goes slower again, for example. Because of the river flow going downstream t...
I'm trying to create an example of a distribution with all positive values, standard deviation > mean, and skewness =0 (third moment). I cannot. Is that possible? Can you prove it mathematically? Thanks.
My experimental design is similar to that from a classic study of metal alloy hardness. The classic example: A researcher designs an experiment to study the hardness of a metal alloy. A three-stage nested design was conducted that included: Two alloy chemistry compositions. Three ovens for each alloy chemistry composi...
I am trying to see which predictors in my dataset are interacting with each other to see if their inclusion can improve model prediction. I followed these steps to do my analysis: First I used lm on all predictors. Then I used backward regression to select predictors. Then I ran lm on the selected predictors. Then I r...
I'm using IPUMS CPS data for my analysis of various subgroups. IPUMS CPS is a weighted data set. My initial sample with 33 variables has 152,732 observations. My subgroups have gotten significantly smaller as I control for more characteristics, gender, race/ethnicity, age, etc., which is what I assumed would happen, bu...
Every animal farm needs to be verified by its city council in a regular time frequency, which could be every six months or 12 months. We report how many farms nationwide which fail the verification each month. If I want to compare one city's failure rate against the nationwide rate (excluding that city) monthly, what t...
I am a bit confused about the terminology used in the context of sampling of populations. The Horvitz-Thompson estimator, as well as the Hansen-Hurwitz estimator, for example, are examples of estimators introduced to deal with various sampling methods. However, I don't understand why they are considered to be estimator...
I understand the Shannon diversity index being used in spatial analysis when comparing multiple sites of measurement, but can it be used to measure abundances, richness, diversity, etc. on a temporal level? I haven't found much literature looking at data series of community ecology using it.
I am trying to replicate the results from a GEE I have done with SPSS in R. The dataset I am using can be found here SPSS Script GENLIN Lying BY Week Day (ORDER=DESCENDING) WITH Temperature Humidity Wind_Speed C_Rain /MODEL Week Day Temperature Humidity Wind_Speed C_Rain Week*Day INTERCEPT=YES DISTRIBUTION=POISSON LINK...
I wuold like to do a mediation analysis with exposure as A and outcome as Y (binary value). However, there are two mediators, M1 and M2 (both continuous values), and I wuold like to obtain an estimate of the indirect effect via M1, an estimate of the indirect effect via M2, and an estimate of the direct effect via neit...
I have done a observational study testing a hypothesis something like this "Days alive and out of hospital for one year after surgery is more than one year before surgery". My data looks something like below. The actual sample size of the study is small ($n = 90$) for testing a hypothesis such as I have. library (data....
I was reviewing the derivation for the variance of ordinary least squares estimators and experienced some confusion. $$ \Large Var(\hat{\beta}) = \frac{\sigma^2}{\Sigma^n_{i=1}(X_i-\bar{X})^2} $$ From this article, there was this formula, which said in an OLS model where $y_i = \alpha + \beta x_i + \epsilon$, and $\eps...
I'm doing time series forecasting using Prophet. My forecasting model returns not only a prediction y_hat, but also an uncertainty interval y_hat_lower and y_hat_upper. I wanted to calculate some metrics, like RMSE, MAE, etc. to evaluate the model's performance but don't know how to incorporate the interval in the calc...
I refer to this seminal paper (Matching Methods for Causal Inference with Time-Series Cross-Sectional Data) by Kosuke, In Song and Erik. Context In the paper, the authors propose the use of a two-layer adjustment to the typical DiD estimator - (1) treatment history matching and (2) refinement methods such as PS weights...
I'm using fastai to run some experiment models. I've downloaded the Kaggle fingers dataset and with that ran the code below. What I don't understand is why, although train_loss & valid_loss are going down as epochs are applied, the error_rate keeps still at 1.0. What could explain that? import fastai ... fingers = Data...
Say if I have a input feature with length 50 and the ground truth bounding box is [10, 20]. If I pad the input to fixed-length 100 and mask the padding in the model, then in the output, should I make the model to predict the raw bounding box [0.1, 0.2] (relative to the padded length 100) or the scaled box [0.2, 0.4] (r...
Suppose $X$ is a random variable $\in (0,1]$ $f(x)$ is the CDF of this random variable $g(t)=\operatorname{mgf}(-t)$ where "mgf" is the moment generating function. Can we infer the behavior of $g(t)$ at $t=t_0$ from behavior of $f(x)$ for $x\approx 2/t_0$? Theorem 2.3 in Coqueret's "Approximation of probabilistic Lap...
I am trying to better understand the importance of "Cure Models". Reading some introductory materials on this topic, its mentioned that traditional Survival Models rely on the assumption that all observations being modelled are expected to eventually experience the "event". Cure Models are apparently intended to be use...
I am building a recommender system, in which for one system there will be only one user. So we cannot use something like user-user data. Recommendation is an item which contains 10-15 attributes ie categorical values. And user can like/dislike the item. Dataset looks like below table, only it has 10-15 attributes. Som...
I am reading this article: https://www.datacamp.com/tutorial/pca-analysis-r The article says: We need to center/scale the numeric variables, compute the correlation/covariance matrix and then invoke princomp with that correlation/covariance matrix as the first argument. The help page for princomp says: ## Default ...
I am trying to see which predictors in my dataset are interacting with each other and their inclusion can improve model prediction. I followed these steps to do my analysis: First used lm on all predictors: Then use backward regression to select predictors. Then run lm on the selected predictors. Then run lm on the sel...
I am evaluating an intervention that reduces seclusion in mental health care wards. So, I will be using negative binomial regression to determine if there is a significant difference between intervention and comparison sites in reducing seclusion events. My outcome variable will be seclusion events (SEC) and the predic...
I am working on a synthetic tracking problem in a two-dimensional space, where the start and end positions are known and noisy measurements of the state variables are given at discrete time steps. As a first filtering step, I am using the Kalman Filter initialized with a very small P and my known start state. Subsequen...
If you assume a Gaussian distribution for the "errors" of your regression model, you can express the maximum likelihood, so the coefficients giving the highest likelihood for the observed data, with the sum of squared "errors" of your regression model. I am trying to calculate the AIC for my quantile regression models,...
This is partially a coding question so I hope I'm on the right platform for this. I am fitting a dynamic factor model using the state space framework. I don't know the initial distribution of the state, since I don't know anything about it. (I hope this is the right train of thought). I have read in this paper by Durbi...
I run Pearson correlation for 2 variables and the results say that r = .16, signifying a negligible correlation. However, the p-value is significant p = .05 Do the 2 variables have a significant relationship?
I have 3 linear regressions with differently scaled dependent variables and the same independent varibales. I standardized the dependent variables for comparison reasons. The other regression includes a binary dependent variable. I want to run an OLS and not logit/probit so I can compare the results. But can I standard...
I am implementing Logistic Regression via Iteratively Re-weighted Least Squares (in Rust for what its worth). The iterative procedure is: $$ \mathbf{w}_{k+1} = (\mathbf{X}^T \mathbf{S}_k \mathbf{X})^{-1} \mathbf{X}^T (\mathbf{S}_k \mathbf{X} \mathbf{w}_k + \mathbf{y} - \mathbf{\mu}_k) $$ I am running into the problem o...