instruction stringlengths 9 38.7k |
|---|
I'm working on a situation (with computations made by someone not involved anymore), where we have a linear regression
and a confidence interval (of shape given in Shape of confidence interval for predicted values in linear regression)
$$y_0 = a + b x_0 \pm t_{1-\alpha/2; n-2} \ S \ \sqrt{\frac{1}{n} + \frac{(x_0 - \... |
I would like to study which factors are associated with an outcome which has more than two categories. After considering multinomial logistic regression model (which I find is very challenging to interpret the effect measure "RRR"), I decided to use pairwise binary logistic regression models (weighted), using survey pa... |
Suppose $A$ is an $n$-sphere of unit radius and $B$ is a set of $x\in\mathbb{R}^{n+1}$ satisfying $\langle a, x\rangle=b$, how do I sample from $A\cap B$?
There's R code for $n=2$ given here but I'm interested in the approach for general $n$.
There are a few heuristic methods implemented here, but unclear how if they r... |
I have a pilot experiment that gives 2 stories (A and B) to the participants and they answer the same survey questions after each story. Importantly, each story can be competent (COMP) or incompetent (IN-COMP), and the competency level of one story can be different from the other.
Basically, it is a 2x2 design (compete... |
In the R package recommenderlab's predict function for binary data (specifically unary for market basket analysis), why does the code do the following for the weighted UBCF model?
ratings <- t(sapply(1:nrow(newdata),
FUN = function(i) {
r_neighbors <- as(model$data[neighbors[[i... |
I have two questions:
How do I interpret and report the variances of my mixed effect model in lmer?
Is this mixed model appropriate for my study?
Set up:
In my study I'm rearing fish in two different environments (one with increased water flow and one without) to see if there is a reduction in among family variance i... |
I'm conducting a study on diurnal preferences across the lifespan, with a focus on sex-specific trajectories. Before conducting sex-specific segmented regressions, I perform an initial segmented regression with the entire sample to identify breakpoints (BPs) that guide the subsequent analyses by sex.
In order to obtain... |
I m running a mixed model for 2 treatments and I run these 2 scripts which gave me different results
mixedmRV19R<-lme(RH ~ Flax*Row, random = ~ 1 | Month/Day/Hour,
data = RV19, na.action=na.exclude)
versus
mixedmRV19RR<-lme(RH ~ Flax*Row, random = ~ Month|Day|Hour,
data = RV19, na.action=na.exclude)
Can somebody hel... |
I have a general question related to the steps I'm taking with segmented regression in R. I'm relatively new to both R and segmented regression, so please forgive me if this question seems rather basic.
My study focuses on diurnal preferences across the lifespan and aims to investigate sex-specific trajectories. I have... |
Suppose we have the following DGP:
$ y = 10 x_1 + 20 x_2 + 30 x_1 x_2 $
Suppose we sample from the population, and we estimate the following models:
$ y = \alpha_1 x_1 + \beta_1 x_2 $
$ y = \alpha_2 x_1 + \beta_2 x_2 + \gamma_2 x_1 x_2$
We choose OLS as our estimator, obtaining the estimates $\hat{\alpha}_1, \hat{\beta... |
What process to use to determine whether the nth percentile of a normal distribution is closer to the k,k-1,or k+1 standard deviations above or below the mean?
|
I was trying to think of a way to show how "normal" a set of dice rolls are in a game like catan. In Catan, each turn you roll 2d6 and the sum of those 2d6 dictate game outcomes. A game can last anywhere from 20 - 50+ turns.
For examples sake, let's say we roll 36 times in a game. For a perfectly "normal" game the dice... |
I was struggling a bit with understanding what exactly the intercept factor and slope factor is in a model. I need to estimate these in an a priori power analysis I am trying to do.
My understanding is that a "high" intercept would be 1, with the slope being the rate of change (either positive or negative). I noticed y... |
I'd be most grateful for some advice about suitable statistical testing for a research project.
It's a survey questionnaire to restorative specialty trainees and alumni trainees exploring the application of a HR management model to specialty training in a University teaching hospital. Essentially the model brings toget... |
I was reading the tutorial for twangContinuous here.
I loaded their dataset dat and found that there are two treatment groups A and B and there are different levels of tss_0 which is their continuous exposure and represents a count of trauma symptoms. Both treatment groups include 0<=tss_0<=13.
0 0.1 0.2 0.88 ... |
I have this dataframe:
group1<- matrix(c(rep(1,5),rep(2,5),rep(3,5),rep(4,5)), ncol=4)
group2<- matrix(c(rep(4,5),rep(3,5),rep(2,5),rep(1,5)), ncol=4)
I would like to compare these two groups with data of the preference ranking questionnaires. To my knowledge, the comparison of these two groups could be conducting th... |
The starting point is full rank 1-dimension interpolation (using a spline or radial basis) where matching all data points. Want now to introduce some regularisation to smooth the fit to the data. A decision to make is how large the regularisation input should be. What is a good automatic way to determine the quantity o... |
I'm working on a regression problem and am struggling to figure out how to deal with the conditional heteroskedasticity present in the error terms. I will try and work through what I have done so far, but the end question is :
How do I produce valid confidence intervals from a dynamic linear regression where the model ... |
I am looking at covering circles for cartesian coordinates given by independent bivariate random variables $X, Y \sim N(0, \sigma)$.
The radius of a circle that will cover proportion p of these samples is given by the Rayleigh distribution quantile function: $R(p, \sigma) = \sigma \sqrt{-2 \ln(1-p)}$.
Interestingly, if... |
There are many methods to convert Standarized Mean Differences to Odds Ratios for meta-analysis (ln(OR) = -1.8 SMD), but none that i have found really deals with skewed summary data. Do you think i should log-transformed the summary statistics first? Should I compare this OR with OR of binary data?
by summary statisti... |
I gathered my data into a panel and ran some basic regressions. Most importantly, there is a big difference between the fixed and random effects models.
I used the Hausman test, got a very low p-value, and noted that one model was inconsistent. But which one is it? I like the one with random effects more as the coeffic... |
In simple linear regression, does the variable x represent the stochastic component, while the coefficient b represents the determination?
|
In traditional rating systems (such as Elo), a player's strength is represented by a single scalar value, which is assumed to be consistent across different opponents. However, in some games, the interaction between players can introduce complexities that aren't captured by a single number. This leads to potential scen... |
Assume we have a datasheet X, this datasheet contains many of samples with different gorup like G1, G2, G3 and could be classify as type A and type B.
A common classification method is to use a widely accepted function ES(x) to calculate the enrichment score (E-score) for all samples in X across all groups. The E-score... |
Calculation of $EX$ using the binomial expansion formula is easy:
\begin{align}
EX &= \sum_{x=0}^{n}x\frac{n!}{(n-x)!x!}p^{x}(1-p)^{n-x}\\& = np \sum_{x=1}^{n}\frac{(n-1)!}{(n-x)!(x-1)!}p^{x-1}(1-p)^{n-x}\\& = np(p+(1-p))^{n-1}\\& = np
\end{align}
How do I calculate $EX^2$ using the binomial expansion formula?
|
I posted this question before and am still confused:
If you take a person and ask him to hold his breath and measure how long he can hold his breath. Then you make him do this 2 more times (3 times in total). 3 measurements is probably too small to calculate the mean and variance for how long he can hold his breath (ex... |
You are testing the effect of a compound (X) on mammalian cell size. You have chosen HeLa cell lines to do your experiments. The experiment included growing HeLa cells in their standard culture medium (control group) and standard culture + X (Treatment group). Following is the data on average cell diameter (in um) in r... |
I am working with a dataset where I aim to test the hypothesis that a specific group behaves differently than expected across different conditions. I am assuming that if this group behaves differently, this behavior is consistent across all conditions.
For each condition, I have a separate sample. For instance, the the... |
I am attempting to integrate this function, ∫15x^(0.28) * e^(-0.21x) dx and am struggling with what techniques to apply. The lower boundary is 0 and the upper boundary is infinity. From research, I believe this is an example of an incomplete gamma function yet I am confused as how to solve this step by step. The image ... |
The regression equation goes like:
$$\text{Wage }= \text{Age}\cdot \beta_1+ \text{Age}^2 \cdot\beta_2 + e, $$
where $E(\text{wage}\times e)=0.$
Wage is in per hour and age is in years.
The question asked me to describe a test to see whether a 40 year old can earn 20$ per hour.
I have tried to use a F-test where $\beta_... |
This is the regression result and it contains the omnibus tests which is quite significant.
Multivariate Meta-Analysis Model (k = 158; method: REML)
Variance Components:
estim sqrt nlvls fixed factor
sigma^2.1 0.1465 0.3828 53 no studyID
sigma^2.2 0.1187 0.3446 153... |
Suppose we have observations $x_1, x_2, \ldots, x_n$ where $n$ is very large. Now we standardize the observations as $$y_i=\frac{x_i-\bar{x}}{\frac{s}{\sqrt{n}}},$$ where $s=\frac{\sum\limits_{i=1}^n(x_i-\bar{x})^2}{n-1}$. Can we say that for $n$ sufficiently large, $y_{i_s}$ are approximately iid Students $t$ random ... |
I have a stratified random sample, and would like to conduct complete-case analysis, assuming Missing Completely At Random. However, I find that there seem to be two ways to define survey design objects, as illustrated below:
library(survey)
library(tidyr)
library(dplyr)
data(api)
### Approach 1 ###
# a stratified ra... |
I am trying to interpret this pretty basic scatter plot but am new to this so I don't want to get it wrong. Is it fair to say that there appears to be a moderate positive relationship between the two variables, though of course the data is clustered around the lower values of the y variable?
|
Let's say I must taste and rank 4 bottles of wine by price.
The true ranking is [X,Y,Z,W]. The ranking I provide after tasting is [X,Y,W,Z], where X,Y,Z,W are different bottles of wine.
Which statistical approach, which test could I perform to get the probability that my answer is fully random vs "approaching" the true... |
Why does the DAGitty "Testable Dependencies" function only describe independencies, but not spurious correlations?
E.g, if I have B->A<-C,
DAGitty just tells me that
B ⊥ C is the only testable (in)dependency
Why shouldn't we expect also
B⊥̸C|A
(i.e, B and C may have a spurious correlation given A)?
|
I am a CS student, who is currently working on something related to the Set Covering Problem. To quickly describe it:
There is a universe set $U = \{1,2, \dots , n\}$ and a set of subsets of $U$ called $S$, with each subset in $S$ having some cost $c$. The goal is to find a selection of subsets whose Union is equal to ... |
How to get Predicted Value from a Ridge regression using closed solution?
I know that by applying the
we get the vector of coefficients, but do we do next?
|
Although I dont fully understand why ... apparently in longitudinal regression models, you can have an unequal number of measurements per subject (ex: 3 for subject1, 5 for subject2, etc). I actually posted a question about this where I was told that longitudinal regression can handle unequal number of measurements per... |
TLDR: How to quantify the H0/H1 plausibility, when there are multiple statistics available on the matter? What is a good source to learn more about frequentist decision making strategy?
Once in a while we hear about flawed studies, wasting a lot of resources on follow-up research e.g. testing a drug that turns out to n... |
I'm working on longitudinal data with repeated measures for each subject and hundreds of variables. I would like to use linear mixed model to look at the mean response of each dependent variable at each time point. However, as the number of variables is huge I would like to reduce it to most meaningful variables. Explo... |
I ran a model with 2 fixed factors that are categorial:
Ind: 10 levels
CRENEAU: 4 levels
For the parameter nu (I am running a gamlss of family BEZI), I get this summary:
Nu link function: logit
Nu Coefficients:
Estimate
(Intercept) 2.180e+00
IndF2 9.259e-01
IndF3 9... |
When do you use robust standard errors in a weighted survival analysis?
Generally in a weighted analysis or are there other reasons for this?
The survival package description of coxph says the default of robust = is TRUE if …there are case weights that are not 0 or 1…
and what is the robust SE in that case?
Thank you
|
I am currently working on my very first real life Data Science problem and I am facing a bit of a challenge in formulating the solution.
The question is to find out if conducting a campaign has an effect on the sales overall. To do this, we have the data related to customer information, sales invoices, campaigns conduc... |
I'm running a logistic regression model in R using glmer() from lme4. I only want to get the random effects estimates, so I have an intercept-only model with just the random effect. The model is of the probability of subjects (which each have one observation, and are within a location, which is the random effect) getti... |
Given a distribution function, under what conditions is it possible to represent it as a mixture over Bernoulli random variables?
For example, suppose you have a continuous random variable on an interval $[x_L,x_H]$. Pick any point in the interval, $x$, and find the conditional means $m_L(x)=E[X|X<x]$ and $m_H(x)=E[X|X... |
I would like to predict the value of some variable $x$ at time $t$ based on the evolution of the state of the system in the time interval $(t-T,t]$. The system can be in any number of states in the interval $(t-T,t]$ and the time spent in each state is variable.
Consider the following simple example. A machine can be i... |
Suppose we have data from a case-control study where for each case having had some disease or event $Y_{binary}$ a control was included that was free of $Y_{binary}$. Due to this study design we cannot estimate the probabilities of $Y_{binary}$ given some $X$, but we can compute valid odds ratios. As such, one can fit ... |
Question from Sheldon Ross's First Course in Probability, Chapter 2:
If it is assumed that all $\binom{52}{5}$ poker hands are equally likely, what is the probability of being dealt two pairs? (This occurs when the cards have denominations $a, a, b, b, c,$ where $a$, $b$, and $c$ are all distinct.)
1st approach:
Out of... |
I have a question with regard to building ARIMA with Exogenous Variables (ARIMAX) models where one of the Exogenous Variables is to be modeled using the Ornstein-Uhlenbeck process.
I recently read an academic paper which stated "Oil price is modelled by the mean-reverting Ornstein–Uhlenbeck process and serves as the ex... |
My go/nogo task was recorded in 4 blocks, each with a new set of cue images, with the learning and therefore the Q-values being reset at the beginning of each block.
I have fitted different versions of a Q-learning-based Rescorla-Wagner model on my behavior dataset, once on the whole dataset irrespective of the blocks,... |
I have data concerning, say, ice cream sales and wish to predict future sales and also, to quantify the relationship between temperature and sales. The data has daily seasonality.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pmdarima as pm
import statsmodels.api as sm
np.random.seed(1)... |
Natural Language Processing
Figures of speech classification
Is it possible to identify the figure of speech in the sentence/s provided as inputs using Natural Language Processing Machine Learning Algorithms?
Input dataset: Sentences for all figures of speech classification.
I.e.
100 sentences for Oxymoron
100 sentenc... |
The ultimate question I'm trying to answer is as follows: Given year-on-year sales change (i.e. 2023 sales minus 2022 sales), split out by a number of variables, how can I calculate the absolute contribution of each variable, so that it sums to the total change?
So for example, if total growth is £100k, then customer_t... |
I am trying to fit 4 hierarchical GAMs to my dataset and compare them to determine the best-fit model. I have been relying on Pedersen et al 2019 to help me specify these models, but I don't think I fully grasp setting m for each smooth.
My dataset has the following variables: year, region, site, and mass. Sites are n... |
I have a data set that contains tickets sold up to a certain point in time, and then presold tickets for future events. Just for demonstrative purposes, I'll use the Australian total wine sales data set.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pmdarima as pm
data = pm.datasets.loa... |
I have collected hundreds of electrophysiological indexes along with several demographic variables on about 400 healthy subjects on which the indices are collected through repeated measures at subsequent time points. I would like to see what are the variation and trends from Time0 to Time5.
Basically, I'm trying to lo... |
I'm trying to use beta regression on a data set where the response variable is in percentage (i.e. between 0 and 1), so let's say it's the unemployment rate. I'm having trouble wrapping my head around the coefficients of the model summary. If I had predictor A which has a coefficient of -0.5, should I take a similar ap... |
I have a sample where a treatment is applied at a given time on all members of the sample - there is no control group, in the traditional sense.
However, the sample has two types of members, and my test hypothesis is that the effect of treatment is different on different the types of members.
To test this, I estimate:
... |
I have two different groups of participants ("g" and "b") answering the same set of questions. Group "g" answered questions in the same order. Group "b" answered questions in a randomized order. The answers are binary Y/N (0/1).
This is my dataset:
| group | question1 | question2 | question3 | ... | qu... |
Let $x_t$ =ϕ$x_{t−1}$+$ε _t$ be the model with errors being white noise. If DGP is $X_t$=$e_t$ which is T(5) distributed. Why no misspecification?
|
I'm trying to come up with a straightforward subscription churn (survival) model and - in broad strokes - see the most important factors by size.
I know this can be a loaded topic.
It looks like doing some exploratory analysis using a Cox Survival Regression might be useful.
However, conceptually, I'm trying to underst... |
Say I want to do a meta-analysis testing different joinery methods reported from independent labs. The problem is that Lab A applied the force at 45 degrees while Lab B applied the force and 180 degrees. Though the relative force required to break the joint is the same (the same joints that were strongest in Lab A were... |
Following the tutorial https://www.youtube.com/watch?v=ujIMPpl2Tr0 from Stanford university, if the log-rank test (a popular test of Kaplan-Meier curves) does not contain report a statistically significant result but the Cox proportional hazards model test for the same variable is statistically significant, the curves ... |
Let $x_t=\varphi x_{t−1}+\varepsilon_t$ be the model with errors being white noise. If model is correctly specified and $|\varphi|<1$, why is $x_t$ not stationary and ergodic? Why cannot I use Krengel's theorem here? Do I also need to show that $\mathbb{E}(\log|\varepsilon_t|)<\infty$?
|
I have two datasets. The first dataset includes my variables of interest, as well as a large set of respondent characteristics. My second dataset includes matching respondent characteristics for a set of respondents randomly drawn from my target population.
I would like to estimate descriptive statistics around my vari... |
I am trying to train a Multi-class classification model where every K minutes I receive a set of features x and use the set to predict an outcome y, the values of the features in x change partially between to subsequent predictions while some of the features remain constant. Therefore, my in my training set I have, for... |
I have 2 independent variables with 2 categories each: 'gender' (male, female) and 'relationship status' (married, single), and one DV: 'emotional impact' measured on a 10 point scale ranging from 1 (least) to 10 (most). What test do I use? Would it be ordinal logistic regression?
|
In this article, the p-value is calculated as 0.32 for observing 55 heads in 100 coin flips.
https://netflixtechblog.com/interpreting-a-b-test-results-false-positives-and-statistical-significance-c1522d0db27a
"In the example of observing 55 heads in 100 coin flips, we calculated a p-value of 0.32. Because the p-value i... |
I am trying to evaluate a novel dimensionality reduction technique. Specifically, we start with a data set with around 1,000 features/covariates per observation. My technique maps this down to 12. Doing this causes a small drop-off in model (regularized logistic regression) performance.
My informal hypothesis is that m... |
(I am posting this question on behalf of a classmate that is currently unable to access the internet due to their situation back home).
Generalized estimating equation (GEE) is said to be used only for Marginal Models (Population Level) but MLE (RMLE) is used for Conditional Models (Individual Level). Why is this true... |
I have the following problem. I have X people that, on a weekly basis, will pick assignments out of Y different assignments. Each assignment has a different difficulty score, so at the end of each week each person has a calculated score.
Each week, the previous scores are added to the current week's.
Once an employee p... |
Suppose $X$ is a (whatever bounded or not) continuous random variable ($X$ is not constant) with an arbitrary distribution. Is it possible to construct a distribution s.t. $\text{Corr}(X, \text{sign}(X)\cdot X^2)=0$? If not, approximately what's the minimum (in terms of absolute values) of this correlation? Say, is it ... |
I am using suest to compare the results of Non linear regressions,
use NLS_min1, clear
keep if US==0
nl (LN_Q = {b0} + ln(1+ {A}*A1_min1+ {B}*B_min1)+{b1}*FirmID+{y1}*year_dummy1+{y2}*year_dummy2), variables(LN_Q A_min1 B_min1 FirmID year_dummy1 year_dummy2)
est store model1
use NLS_min1, clear
keep if US==1
nl (LN_... |
I have two questions regarding an ANCOVA analysis in SPSS in a within-subject (i.e., repeated measures) design (e.g., an experiment with 3 measurement timepoints):
when checking ANCOVA assumptions, the covariate (e.g., age) needs to be correlated with the outcome variable (e.g., cognition). Do I need to correlate the ... |
Suppose I have to create an "index of interest" for the products of an e-commerce. By index of interest I mean a $parameter$ which, based on some variables, tells me which products are the most interesting to my customers. For each product in the e-commerce I have:
number of $visualizations$;
number of $clicks$ on the... |
My dataset includes "decade founded" but not "year founded" for organizations. I need to include some "maturity" variable in the model. Decade is the best I have. The span is 130 years, so over a dozen categories.
How do I treat decade?
I've enjoyed trying to find an answer. I now know a lot more about year variables a... |
I'm building a simple weighted sum model for ranking.
$$
\text{Store Rank} = w_1 \cdot param_1 + w_2 \cdot param_2 \ldots + w_n \cdot param_n
$$
The problem here is that one of the parameters depends on the type of another entity.
Let's say $param_2$ is a number of sales per month in an online store. It can be between ... |
I have fit a gradient boosted regressor to some tabular data.
When looking at dependence plots there are some clear interaction effects e.g. effect of gender on the outcome measure reverses dependent on whether the individual is a patients or a healthy control.
These interaction effects very much visible from the SHAP ... |
I have ran three simple logistic regression models:
glm(factor(response) ~ factor(sex) + age + gene expression,
data = data_2,
family = binomial)
Now I have for all three models the Coefficient Estimate, Std. Error, z value and p-value obtained via summary(model).
Now I would like to combine all three studies ... |
We are running a live experiment where a debit card's packaging is tested across 5 group of stores (200 stores each) with 5 variants.
We would compare the card sales before the test date (around 30 days), with the card sales post the commencement of the test (30 days) in each of the test groups.
Currently, it is arbitr... |
I'm interested in conducting a meta-analysis of polychoric correlation coefficients using metafor package in R.
When performing a meta-analysis with Pearson correlations, I know that I would typically transform the raw correlations into Fisher's Z scores (and later re-transform the final results).
However, I'm uncerta... |
I have $k$ observables (e.g. questions in a questionnaire) and $n$ observational units (e.g. respondents of the questionnaire). Let's call the observation matrix $X$.
Let's assume I have performed a Factor Analysis and arrived at a latent space of dimension $m < k$.
Now, the goal is to reduce the number of observables ... |
Suppose we have the following model:
$$\log(\hat{y}_t)= \beta_2 + \beta_0 \times \log(x_{1, t}) + \beta_1 \times \log(x_{2, t})$$
We wish to choose $10$ design points where one design point can be noted as $\{x_{1, t}, x_{2, t}\}$.
I am wondering if the normal alphabetic criteria such as A,B,C,D-optimality apply to th... |
I have a sample of around 50 people, who were placed under two different conditions to perform a task.
The outcomes are the time spent on the task and a questionnaire with various points about their subjective experience under the two conditions, where the answers are "disagree, agree, strongly agree etc."
Assuming nor... |
This is from Hogg and McKean's "Introduction to Mathematical Statistics". At the stage this exercise (number $5.1.1$) is given, he has not yet spoken about convergence in distribution etc. He has only introduced the definition of convergence in probability. We have results from analysis, Chebyshev's theorem, and the co... |
How can I compress a time series so that any large % changes are compressed and so that all the values fall within a a specific range?
At the moment, I have built in a rule that caps the change at 0.05 or 0.25 whenever the absolute % change is greater than 0.25 or smaller than 0.05. Then, if the new adjusted result is ... |
I want to investigate whether there is a difference in median waiting time between different groups in different year. I'll try to explain as best I can.
My data looks like this:
Year
Country
Waiting time in weeks
Variable 1
2005
1
1
Male
2005
1
3
Female
2006
2
2
Female
.
.
.
Male
I have a total of fi... |
I am performing a generic inverse variance random-effects meta-analysis, in order to examine the predictive value of childhood trauma on depression in adulthood. When a full scale of childhood trauma (e.g.: CTQ) is used to predict depression in adulthood, the statistic given can be in the form of an odds ratio, Peason ... |
Suppose I would like to study the association between sex (male and female; independent variable) and taste preference (sweet, bitter, and sour; dependent variable). I have three cross-sectional surveys(i.e., three datasets), respectively from 2010, 2015, and 2021. These surveys uses complex survey design and survey we... |
I'm working on a pre/post analysis of longitudinal healthcare data where an intervention program was implemented on a member by member basis over a period of several years. Some eligible members received the intervention earlier while others received the intervention later in the study period.
Rather than collect addit... |
I'm analyzing the paper "King of the Mountain: The Shiller P/E and Macroeconomic Conditions" for my master's thesis. I would like advice on interpreting the results. The authors perform 2 regressions: 1) future stock market returns (for different time horizons, from $t$ to $k$, with $k=1,6,12,36,60,120$ months) are reg... |
I would like to check, if I run into a linear combination issue regarding the following regression model:
$y_i = \beta_0 + \beta_1Z(\frac{a_i - b_i}{a_i}) - \beta_2Z(\frac{b_i - c_i}{b_i}) + \epsilon_i $
$y_i$ is defined as $\frac{a_i - c_i}{a_i}$
and
$Z$ is the Z-transformation ($\frac{x - \mu}{\sigma}$).
The depende... |
Let’s say I have $n$ independent and identically distributed samples that is, $(X_1,Y_1)$, $(X_2,Y_2)$, ... $(X_n,Y_n)$ which is my dataset. I want to find a condition on $X$ such that the conditional correlation coefficient (say Pearson's correlation) is maximized. Formally, I want to find a function $f: \mathbb{R}^m... |
The model's sample predictions that I'm printing during training are almost perfect but the model generates meaningless tokens during evaluation.
For training I'm feeding it the source and target sequences as was introduced in the original paper, and for autoregressive decoding I'm feeding a source sequence and a BOS t... |
I am currently learning about GLMs. Suppose my predictor variable generates a number of "successes" and "failures" as the response variable. Naturally I want to model the probability of success as a binomial model.
x <- 1:5
y_s <- c(9,6,2,4,1)
y_f <- 10-y_s
A generalised linear model fits a linear regression to the lo... |
I want to perform a proportional hazards model to study if job contracts were affected and became shorter/dismissal was more likely to happen after two labour reforms took place.
I understand that the reforms are my independent variables, but I think that they would be time-varying variables since they only start affec... |
So, this may be a really dumb question but I'd rather ask it now than 3 weeks later when I'm neck deep into problems. The title is kind of self-explanatory but I'll expand a bit :
I've been tasked of doing Proteomic analysis for one of our team's project. That's already a first for me, and while I've done plenty of bas... |
Both according to Wikipedia, and to this blog post, k-fold cross validation seems to require that you shuffle the data. I have two questions:
Firstly, why? If you have a time sequence of training examples where (on average) an individual training example is more similar to other examples that are closer to it temporall... |
I am trying to model mean monthly plankton values across a timeseries with a generalized additive model. My initial model was as follows:
library(mcgv)
m <- gam(phyto ~ s(YEAR, bs = "tp", k = 10) + # smooth for trend across years
s(Month, bs = "cc", k = 12) + # cyclic smooth so values in Dec line... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.