instruction
stringlengths
9
38.7k
I'm using a Cox model with 100k subjects and 1624 events to model the effects of a treatment with respect to 49 covariates, 127df. Due to proportional hazard violation of some continuous variables, I've added restricted cubic splines using rcs(). Based on the p-values provided by cox.zph (which I've decided at 0.01 due...
I am fitting a GLMM to powerline collision data for a bird species- using distance to seasonal water, habitat and the presence/absence of line markers as predictors. Incident is a binary response (50 presences vs. 1282 absences). To get the model to converge I had to scale and center the only continuous variable (dista...
I have the following Bernoulli process: Initial state: H = 0, T = 0 I launch a coin where probability of head is p. If I get head, then H = H + 1. If I get tails, then T = T + 1. I repeat the experiment until T = t_0. Given that, I want to know how many times I have to keep this Bernoulli process going until getting ...
My problem is this: I have a set of sequences as input for the model, each sequence contains vectors of length n (constant length for all sequences). Different sequences can have different lengths. Can anyone please suggest any paper or blog that describes model appropriate for processing this kind of data? My guess is...
I wondered about the relationship between a confidence interval for Cramer's V (I used the rcompanion package and the command cramerV(table, ci = TRUE)) and the result of the chi-squared test (I used chisq.test(data$x, data$z, correct = FALSE)) with the same data. My initial thought was, that IF the 95% CI of Cramer's ...
I seems to me that this cannot be such an uncommon situation but I find I cannot come up with the answer myself and I also cannot come up with the correct search terms to find it, either here on Cross Validated or on on the internet more general. The (toy version of the) problem statement is this: I want to take a repr...
Let $(S, \mathcal{S}, \Pr)$ be a probability space. Let $(\mathcal{X}, \mathcal{B})$ be a standard Borel space and a measurable map $X : S \to \mathcal{X}$. Let $(\Omega, \tau)$ be a standard Borel space and a measurable map $\Theta : S \to \Omega$. Then $$ \mu_{\Theta \mid X}(A \mid x) = \int_A \frac{f_{X \mid \Thet...
If I do univariate analyses to select variables that I will include in a multivariate analysis* (I know this is not advised), and for a given categorical variable, in the univariate analysis, category 0 has a p-value = 0.005 but category 2 has a p-value = 0.5 for example (reference category being category 1). Should I ...
Let $X_1, X_2, ... X_n$ be independently drawn from different normal distributions, such that $ X_i \sim N(\mu_i, \sigma^2_i) $ For any $j$ what is the probability that $X_j$ is the greater than all other $X$? E.g. for $j=1$ what is $P(X_1 > X_2 \land X_1 > X_3\land ...\land X_1 > X_{n})?$ E.g. when $n=3$, what is $P(...
suppose I have the following array of t-distribution values from a permutation test (e.g., linear model which tests, for example, the influence of an adhd score and alcohol consumption on a stress (high stress =1, low stress=0) group label. With python statsmodels, it looks like this: formul = 'stress ~ alcohol' model ...
I've posted this question on the Bioconductor support site but haven't received any responses so I figured I'd try here. The post was quite detailed so I'm copying it over mainly as-written. Please let me know if there's anything I can add or clarify that would help! I'm working on analyzing a proteomic dataset in whic...
I need help understanding this probability from the Monty Hall problem. Why does this integral give the probability of winning by switching if the Car is behind 1, Monty shows goat behind 3 and Player picked 2. The equation (4) can be viewed in full here: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.734.2...
In the proof of Schwartz's Theorem, the author makes the following statement By Markov’s inequality, the assumption $P_0^{(n)}(\phi_n) \leq e^{-Cn}$ implies that $\sum_{n\geq 1} P_0^{(n)}(\phi_n > e^{-Cn}) <\infty, $ where $$ P_0^{(n)}(\phi_n) := \int \phi_n \, d P_0^{(n)}, $$ $\phi_n$ is a test function and $P_0^{(n)...
I am carrying out some research, and I realised that my DV is going to be categorical. I originally planned on carrying out an ANCOVA; I have 1 IV with three levels, 1 DV and 4 covariates. After doing some revision, I realised that my DV will need to be categorial( yes, no)- but I am not sure what test to run- any idea...
I am trying to get my head around the difference between a fixed effect versus a random effect. To do this, I am looking at the Student GPA example seen here (from m-clark.github). This example is "assessing the factors that predict college grade point average (GPA). Each of 200 students are assessed for six occasions ...
I have observations made at different times from a normally distributed real random variable whose mean and standard deviation both vary linearly with time. How can I estimate these two linear functions? More precisely: assume I have a dataset containing $N$ samples $(t_i,y_i)$, where each $y$ is drawn independently f...
What does F-statistic tell us in regression analysis? also, can someone explain to me the logic behind its formula, please?
In a lme4::lmer model, the anova function returns an sequential analysis of variance table. As explained on page 34 of http://cran.nexr.com/web/packages/lme4/vignettes/lmer.pdf the numerator sum of squares for each F statistic is calculated by the following: $$ \mathit{SS}_i = \hat{\beta}^\top \mathbf{R}_i^\top \mathbf...
I am publishing a paper and one of the reviewers requested that I provide a statistical method to show the difference between peak values (peak value = tallest bin in a histogram) of two populations. I am referring to the figure below, where "TfR" is one population (shown in black) and "hSTf" is the other (shown in pin...
Question: Given $X\sim N(\mu_X, \sigma_X^2)$ and $Y\sim N(\mu_Y, \sigma_Y^2)$ are independent, and you know $X+Y=s$. What is the expected value of $X$? I encountered this during an interview. My thoughts were to use conditional expectation $E(X|Z=s)$ where $Z\sim N(\mu_X+\mu_Y, \sigma_X^2+\sigma_Y^2)$. However, it invo...
I have a dataset structured something like this - obviously the numbers are exaggerated and I actually have hundreds of observations in each group. Group 1: Observation Number of specific items Total items Proportion of specific to total Obs1 10 100 .10 Obs2 20 190 .11 Obs3 15 160 .09 Group 2: Obser...
Let me clarify that with vanishing gradient i don't mean the gradient to become zero (like for DNN with multiple sigmoidal layers) but learning long term dependencies.. So, LSTM are well known that they overcome the "long term dependency", and that stacking RNN also really helps and it's become a sort of industry stand...
I want to create random time series that follow a given auto-correlation function. For this I am using an AR(n) model approach: $$X_t = \sum_{i=1}^n\alpha_i X_{t-i} + \epsilon_t$$ where $\epsilon$ is a random white noise of mean 0 and $\alpha$ are my model coefficients computed from a known covariance matrix. See for ...
From another Cross Validated question Given $X\sim N(\mu_X, \sigma_X^2)$ and $Y\sim N(\mu_Y, \sigma_Y^2)$ are independent, and you know $X+Y=s$. What is the expected value of $X$? The question makes it sound like $Y=s-X$ yet $X$ and $Y$ are independent. How can this be? $$cov(X,Y)\\=cov(X,s-X)\\=-var(X)\ne 0$$ Nonzer...
Suppose we draw a sample of n individuals – X₁, X₂...Xₙ – each a random variable. Can we use X̄ₙ to represent the expected value of the nth X, or can this notation only be used to represent the sample mean of n individuals?
Not sure my idea makes sense but here goes. Financial markets are notoriously hard to model. Is this perhaps there does not exist a stationary distribution for any Markov chain stochastic process modelling any given financial security's prices, and hence we cannot reasonably compute statistics that are adequate for fut...
Hi is there anyone that can help me with this calculation? So, I don’t know the exact way to differentiate the fraction of vector function. I tried to use the formal way but the components of the numerator had different size of dimension. Btw I actually solved the question by Cauchy-Schwarts inequality but am just cur...
On this webage concerning the likelihood function of the Kalman filtering, the following lines of equations can be found: \begin{align} P[y_2\mid y_1]&=\int P[y_2,x_2\mid y_1]dx_2\\ &= \int P[y_2 \mid x_2]P[x_2 \mid y_1]dx_2 \end{align} For some reason, I cannot replicate the second line - i.e.,transition from $P[y_2,x...
I spent so many hours trying to create bargraph for lmer in R but I cant find a way to get each condition group mean to vary. I want to plot the following model ratings_long <- lmerTest::lmer(value ~ rating + (1+rating | group) + (1 | responseid), data=mydatalong, REML=F) #control for diff btw summary(ratings_long)...
Sorry if the question seems basic. I understand that non stationary data is a big issue for traditional time series forecasting methods like ARIMA and VAR but is it the same for machine learning methods like XGBoost and neural networks? Meaning to say, do I have to do differencing on the y variable for machine learning...
Say I am trying to predict house prices (y variable) using population growth and GDP (x variables) using XGBoost or Neural Networks. All 3 are time series. I understand that I have to feature engineer lags and also a rolling average of house prices and include them as additional features for better prediction. My quest...
I have 4 variables A,B,C,D over {-1,1} (Rademacher variables) and know that E[A]=E[B]=E[C]=E[D]=0. I also know E[AB], E[BC], E[CD], and E[AD] (but not E[AC], E[BD]), which are all positive. Is there any way to compute E[ABCD]? If not, is there any way to bound it or its magnitude?
I am trying to figure out how to run a multinomial logistic regression model with random effects in R. I am assuming I have to use mlogit. my data: data <- structure(list(Spawn_ID2 = c(1, 1, 1, 2, 2, 3, 3, 3, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 1, 1, 1, 2, 2, 3, 3, 3, 1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 1, 1, 1, 2, 2, 3, ...
A random variable X is said to have a exponential distribution with parameter lamda > 0. if its pdf is given by f(x,lamda)=(lamda * exp(-lamda * x)). A random variable X is said to have a gamma distribution with parameter lamda > 0. if its pdf is given by f(x) = (exp(-lamda) * x^(lamda -1))/gamma(lamda). How to find th...
Let's say the logistics regression is log(p)= -300+ 0.5xAge + 80xGender given Age=3; Gender = unknown how can I solve this logistics regression? The answer is -300?-298.5(simply sum the first two parameters)? 0?or it can't be calculated? Does it mean that we should include all the parameter to calculate the equation?
A client has 3 different ads (A, B, C) for their new campaign. Whenever a user comes onto a webpage that hosts our ads, I have to choose which ad to display. I choose the ad to display with uniform probability, so each ad has a ~33% chance to be displayed. The user clicks on the ad depending on which ad is displayed wi...
Suppose that I have a dataset $D$ of cars and a classifier $C$ which, given two cars characteristics, predicts which car is "better". (It's a binary classification, the definition of better is not important). My problem is to find (create?) an observation $x^*$ such that for any $x$ in $D$, the probability that classif...
In the case of the ridge estimator, we can interpret the shrinkage induced by the ridge estimator to be at its most extreme when a predictor has low variance. High-variance predictors provide the most information/signal about our response, and low-variance ones contribute to "noise" which should be shrunk down - remini...
This may be a stupid question but: can a mixed effect model include a random effect factor (grouping factor) that has some missing values? I guess it would bias the variance estimates but could the model still be "useful"? Alternatively, what would be the proper way to handle such a case (e.g. delete rows with missing ...
I have a question concerning the possibility of the train-test-validation split in a staged experiment setup. The data I used is split up into 3 parts: train, test and validation data. Then I try to run a two-staged experiment setup: In the first stage I examine several data preparation steps. In the second stage I use...
I am currently using the scikit-learn package in python to setup PLS models (sklearn.cross_decomposition.PLSRegression) to predict the concentration of different substances based on IR spectra. In this regard I would be interested if it also possible to go the other way round. Like to predict the concentration of a cer...
I have count data (microbiology lab work) in which I have a serial 10-fold dilution of cells, and then grow the dilutions in 2 different conditions. For each dilution, I have 24 wells that could 'grow' or 'not grow' after some time (same amount of time for both conditions). The count data at the "extinction dilutions" ...
I am training a supervised machine learning model. The training data contains 2 independent groups of people. The dataset contains independent continuous variables and 1 dependent binary variable. I want to select the optimal number of bins to use for each independent variable. I define the optimal number of bins as th...
I am constrained for compute/memory and need to reduce the cardinality of my covariates. Are correlation-based methods the proper way to tackle such problem? Further, I am unable to apply PCA to my dataset as interpretability is one of the non-functional requirements of my project. It is either correlation or picking K...
Supposed I have two groups of patients' response to different treatment A and B, with sample size of B greatly larger than A. To control for same age distribution of patients and also equal sample size, I repeatedly resample from B to construct B'. What statistical test should I use to demonstrate treatment B is better...
I have 10 years time series of daily precipitation and temperature data (3652 records) as given below: Date Precipitation(mm) Temperature (°C) 01.01.2010 20 12 02.01.2010 5 6 03.01.2010 0 9 ... ... ... 01.01.2011 32 15 02.01.2011 0 02 ... ... ... so on. These timeseries data will have autocorrel...
I am using the statsmodels python package to perform multivariate linear regression. I want to produce 80% prediction interval bands as part of my result. The statsmodels package can produce prediction intervals for a given alpha and new predictor(s). Fortunately my residuals are normally distributed so the conventiona...
I have 400 data points, daily data for past year for population A and population B. When I conducted a t-test in excel, it gave me an absolute value of 0. However, graphically I can clearly see a difference in distributions between the 2 samples (Image attached). Can someone please explain. I used the following formula...
Can someone explain why different ways of doing autoregression give different estimates? For example, I can use regression with a lag, or I can use arima(), or gls() in package nlme: x <- 1:100 e <- 25*arima.sim(model=list(ar=0.3),n=100) y <- 1 + 2*x + e # 1st way: y.lm <- lm(y[-1] ~ y[-length(y)] + x[-1]) summary(y....
I'm working on count data preparation which will be used in Poisson/GLM. Specifically for year 2002 both males and females rows are missing as no event has been recorded (0 counts). Therefore should I complete the data with missing combinations filled with 0 counts or I can leave it as it is? What would happen to Poiss...
I am looking at this article on theoretical q-q plots and am trying to understand it in its entirety. The part where I get lost is when the author writes: We first find the f-values for alto What do the f-values represent here? I see that these are f-values for each alto singer's height value, but I don't really unde...
Below I have fitted a covariate-adjusted ROC curve (AROC) using a semiparametric Bayesian normal linear regression model available in the R package “AROC”. However, I am not clear on how to interpret/report the results of the fitting process. library(AROC) data(psa) # Select the last measurement newpsa <- psa[!duplicat...
I am running a difference-in-differences (DiD) regression with a time and treatment interaction and I have a continuous outcome variable. However, I hypothesize that the DiD estimator can be moderated by another variable, in this case a dummy which indicates political inclusion/exclusion. However, I do not fully grasp ...
I have a dataset with men and women (independent variable) and want to know if the job spectrum (dependent variable) of the men is broader than the job spectrum of the women. Their jobs are categorized according to a reliable multinominal categorisation system (ISCO). Some men and women have a job in the same category....
I have been searching a lot for this, in SO I have found some similar answers (1, 2) but they don't answer my question. I'm trying to understand the math behind AB testing significance to answer some questions I have, but I don't have found any step-by-step computation. I know how to do a hypothesis test, the only prob...
I believe that the reprex below is self-explanatory. I would like to extend a monthly time series by forecasting the next 3 data points. The series is rather volatile and it spikes during the last couple of years. By naked eye, its monthly returns fluctuate around a constant value. I am learning the ropes of time serie...
I have a relatively simple question which is just that if I run a random forest regression model and then use partial dependency plots to understand the influence the features have on prediction of the independent variable, are the results of the partial dependency less valid if the model has worse predictive accuracy?...
I have a graph showing a continuous variable plotted against a discrete variable: I'm looking to identify the point of diminishing returns or the point at which the slopes from two points on the x-axis are significantly different from one another. For example,it looks like the slope betwen points 3-4 is different from...
Let $B_t$ be Brownian motion, and $X_t$ satisfies the following Ito SDE: $$ d X_t = \mu\, dt + \sigma\, d B_t, $$ and $f$ is a function over $X_T$. I want to calculate $\mathbb{E}[f(X_t)dB_t]$. It seems that the result is $\mathbb{E}[f(X_t)dB_t] = 0$, but I fail to prove it. I know the following equations hold $$ \mat...
I am trying to fit a propensity score weighted Cox regression model in R. However, one of the treatment groups has zero events, so I also need to use an adjustment method (Firth's penalized likelihood). I have been using the coxphf package just fine to run unweighted models, but there is not an argument that allows for...
Hi I am looking at the case where I have estimated a simple regression model like so: $$ y_{i} = \beta_{0} + \beta_{1} \times T + \epsilon_{i} $$ I assume that $T\in \{0,1\}$, think of a binary treatment, and that $y_{i}$ is a continuous outcome. Suppose I am interested in inference regarding $\beta_{1}/\beta_{0}$. My ...
I'm working with intensive longitudinal data with observations nested within persons via glmmTMB with a random effect of person. My outcome is negative emotion, which was computed by taking the mean of four discrete emotions (e.g., mad, sad) at the observation level, all of which were reported on a 0-100 sliding scale....
Note: the title is adapted from my Philosophy.SE question Epistemic value of multiple eyewitness accounts: single event vs. multiple events given a fixed number of eyewitnesses?. See meta discussion here. Intuitively speaking, multiple independent eyewitness accounts of a single event are more convincing than a single...
I need to run Out-Of-Time predicts in LASSO regression. In Out-Of-Time sample, what should I use to standardize variables? The mean and SD of the Out-Of-Time sample or the mean and SD of the insample data?
I'm dealing with Kalnins (2018) work about multicollinearity. I can't comprehend one thing - how can I get variables that share a common latent factor? (not only correlate with each other). I can generate any set of data with fixed correlation values between random variables, but despite the high correlation I do not g...
The answer is $\frac{19}{24}$ but I don't know where is my mistake. The question is this. Let $$f_{X,Y}(x,y) = \begin{cases} x+y, \quad 0<x<1, 0<y<1 \\ 0, \quad \quad \quad \text{elsewhere}\end{cases},$$ What is the probability of $\Pr(X<2Y)$? Let $V = X$ and $W = X - 2Y$. Hence we have Jacobi matrix $$J = \begin{bmatr...
I have a dataset consisting of repated cross sections spaced out every two years (e.g, 2008, 2010, 2012...). I am running a DiD specification to identify the causal effect of treated individuals after the treatment kicks in in 2012. To check for pre-trends, my idea was to run an event study framework in which I run the...
I'm not sure whether the right approach here is to transform to Normal or if there's another distribution that perfectly fits the data. What I'm trying to analyze is payroll data each pay period for a commissioned set of employees with identical job descriptions and commission rate. If they choose to take on no work du...
Let $(\Omega, \mathcal{A}, P)$ be a sample space and $X: (\Omega, \mathcal{A}) \rightarrow (\mathbb{R}, \mathcal{B})$ is a random variable. The conditional probability is given by $$\frac{1}{P(X\in B)}\int_{\{X\in B\}} P(A|X)(\omega)dP(\omega)=P(A\mid X\in B)$$ for $P( X\in B)>0$. I have seen the above equation in seve...
It's my first question, so please be patient with me. I'm working on the comparison of multiple datasets of different lengths (60 to ~10000). They share a set of 9 features which I would like to use for comparison. I'm interested in the question whether they are sampled from the same distribution. My approach is, to pa...
I’m creating a hierarchical model to predict student course grades in a given term based on a combination of student, course, and instructor characteristics. I'd also like to make inferences about relative importance of student academic background, instructor, and course on course grades. In my data, which is observati...
I have a quadratic term in a GLM and I am interested in the vertex value (+ the standard error and confidence interval of the vertex) of the quadratic term. To my knowledge, there is no automatic function for this purpose in R, and I am unable to calculate this manually, as I do not have sufficient knowledge of statist...
Short Description. I am doing PCA on an image at a time, and for each eig operation I store the 1st eigenvector. After each is found, I then average the 1st of eigenvectors that I stored for each of the images. The eigenvectors have real and complex component. Consistent Eig direction Trick Now, I know the sign of th...
I am predicting a 4 category variable using a multinomial regression and allowing intercepts to vary by country. Is there a way to calculate odds ratios and their confidence intervals for each variable (var 1, var 2 and var 3) using the brm package (or another package)? Model: model = brm(outcome ~ var1 + var2 + var3 +...
I have an 18-scale item - Self-Monitoring score, with 10 items loading into Factor A and 5 items into Factor B based on previously established literature. Given that the two factors are already known, using R, how do I calculate the values of Factor A and B by doing factor rotation on the 2 eigenvector values? I'd like...
I am analyzing time series showing the average delay of vehicles based on simulation time in traffic microsimulation. 5 simulation runs were performed, so there are 5 time series in the figure. I intend to compare different regions specified in this figure. I was wondering if there is a method to compare the characteri...
How to determine if a change in (traffic or user behavior) has had a negative impact on the overall system? For ex: if we introduce a new line of shoes, the older ones will might see a decline in sales. But how do we know if it is purely due to cannibalization? Similarly, in an ecomm company, if there is a change in us...
Let's base my question on an example. Let's say we toss a weighted coin with probability of tails = 0,05. We do it 100 times and we observed exactly 0 tails. What I am trying to estimate is the smallest probability, that on certain confidence level the amount of tails will be greater than currently observed tails (in t...
Which loss works the best for pixel-wise RGB image (3, width, height)reconstruction loss? It seems there are several options Regression way. The input image has dimension (3, width, height) with values [0,1]. Apply sigmoid to the last layer in the generative (CNN) layer such that the output image has pixel values [0,1...
It's my first question here and I'm french-speaking so bear with me, I'll try to make this as clear as possible =). I am unsure how to construct my database and how write my syntax (in SPSS) to test a factorial design (3 repeated measures and three group factors) using a mixed model. I have around 20 animals, belonging...
I'm trying to build a simple linear regression model $y=ax+b$ using pytorch, where $y$ is the number of cells increased on Day $n$ and $x$ is the number of cells increased on Day $n-1$. Both $x$ and $y$ range from 10000 up to 250000 but I did standardize the data before training. The time series of $x$ and $y$ are roug...
I was tasked with developing an ML algorithm to predict machine failure based on vibration analysis. To do so, I must do the following: Detect different frequencies from an input signal Input can be any sample frequency from 1hz to 100 kHz Train an ML algorithm to detect the faulty frequencies My current approac...
From this slide: slides page 39, it says: In probabilistic machine learning prediction time: compute the likelihood given parameters, each parameter configuration of which is weighted by the posterior: $$ p(y|x, D)=\int p(y|\theta, x) p(\theta|D) d\theta $$ where $x, y, \theta, D$ is input, output prediction, network p...
A fleet of electric vehicles are to be investigated for the mileage performance per charge. Four vehicles have been chosen randomly from the fleet and four observations of miles were made for each vehicle. The data obtained from the experiment are below. vehicle obs 1 obs 2 obs 3 obs 4 charging time 1 98 97 99 ...
I ran a study to compare 2 different computer interfaces (say A and B) meant to be used in an unfamiliar environment. I want to compare: How much effort participants took to complete a certain task when using the interface for the first time. How much easier or harder it is for participants to complete the same task t...
I am trying to compute the effect sizes for the pre-post control design studies. Here is what I found in Morris (2018) and I quote "For the PPC design, three effect size estimates have been recommended in the literature. Becker (1988) suggested a measure of effect size using separate estimates of the pretest standard d...
Im working on a classification class, where I want to predict the occurrence of a specific event. That is, does the event occur in the next 6 hours, 12 hours or 24 hours? Using softmax here seems not fully meaningful, as a high probability of first class (6 hours) also implies that the condition occur in 12 hours and...
I have a complex stochastic model, and I want to (among other things) determine whether the output is over-dispersed, compared to what we would expect under a simpler model. Which means that it would be really nice to have a clear and well-defined "simpler model" that corresponds to the full model, in some meaningful s...
I believe there is a misconcept in my mind about the $\chi^2$ and/or standard normal distribution. Hence, I would like you to help me to understand what does it means that the $\chi_k^2$ distribution is a sum of $k$ independent, squared, standard, normal distributions. In fact, according with many online sources, such ...
I have a panel dataset from a survey before and after an intervention. One question is a Q-method-style question where students have been sorting statements about the type of teaching they receive. In Q-method, you do an exploratory factor analysis where the respondents are considered the items (they are the ones who a...
I do backward elimination, by iteratively removing the biggest p-values until the biggest p-value is < 0.157. Then, I have a model, which confidence intervals displayed are not wide enough: "The method yields confidence intervals for effects and predicted values that are falsely narrow; see Altman and Andersen (1989)."...
I am trying to the learn the following pattern of count time series of vehicle demand every hour. The count time series is generated from a negative binomial distribution with parameters n = 9 and p = 0.5 every 4 hours. The interval in-between has magnitude = 0. I would like to know if I can use this paper, Deep Autor...
From the geometric distribution pmf, $f(x_i |\theta) = (1-\theta)^{x_i -1} \theta; x_i = 1, 2, \cdots$, I have obtained the 1-parameter exponential family as $$exp \left\{\log \frac{\theta}{1-\theta} + x_i \log (1- \theta) \right\} $$How can I show that the posterior mean can be written a a weighted average of the prio...
I am reading a report where they used Lasso and penalty term $\lambda$. Below is a table presented: I have a question about the DF. The original model had 16 variables and no intercept, i.e without the penalty term it would have 16 DF. In the table we see that as lambda increase, the DF decrease -> it's penalizing and...
I'm having a dataset where I measured the growth of a given molecule over 7 timepoints. The growth can be described by the formula: $(P_{0} - plateau) * e^{-k t} + plateau$ , where k is the growth constant and $t$ the time. I want to estimate $P_{0}$, $plateau$ and $k$ All values are normalized to be between 0 and 1. D...
Given a Poisson distribution Poisson(n│λ) with expected value λ, which integer n is the most probable one? Prove that, if is integer, there are two most probable values for .
Basically, predicting future values step by step using past values and some covariates as a feature, using some LSTM, Conv layers from tensorflow. I started by using mean absolute percentage error as a loss function, but even when it seems fairly low (<10%) it seems the shape tracking could get a lot better. Consider t...
I am very new to experimental setup and have recently started to learn about designing experiments and analyzing the results. In the papers that I read there are notations that I am unfamiliar with. I am particularly talking about t(), p, ds, dz, F(,), and ƞnotations. In the following I provide some examples of how the...
My ANN model produces classic overfitting characteristics, producing high R2 values (90-99%) but low accuracy scores (10-40%). I'm currently inputting 28655 data entries, using 8 input features to predict solar radiation. My model is as follows: df = pd.read_csv (r'D:\ABC Masters Diss\Penarth 1 year.csv') print (df) df...
I'm reading a paper (https://scholar.google.com.br/scholar?oi=bibs&cluster=986729284887040990&btnI=1&hl=en), and there's this derivation in the article which I'm not sure is correct, so I want to check. Consider a linear regression $$ Y = D\tau + X \beta +\epsilon $$ By the FWL theorem, $$\hat{\tau} =\frac{ cov(D^{\pe...