# How to project a mxn matrix (m features, n samples) onto a space generated by a mxk matrix (m features, k factors)?

Cross Validated Asked by Minstein on October 20, 2020

I got two matrices A and B, the dimension of A is m x n, where n represents the number of samples, and m represents the number of features. Then after dimensionality reduction, e.g., by NMF, I got B, of which the dimension is m x k, where the m features are the same in A, and k is the number of factors or new basis.

I want to project A onto B to get each sample’s weights on each factor (A = B X C). Previously I obtained weights (C) by linear regression, which aims to reconstruct A. I am wondering if there are any other ways to get the weights because sometimes the linear regression does not work well.

I also tried to get the C by C = A X B, or by calculating similarities between n samples and k factors. I’d like to know whether the above two strategies are reasonable or not?

## Related Questions

### How to predict unknown time series in using Facebook Prophet?

0  Asked on November 20, 2021

### Choosing the right model for prediction

1  Asked on November 18, 2021

### Relation between P-value in a randomness test, number of samples, and entropy

1  Asked on November 18, 2021

### Is there a way to use cor function with factor variables without creating dummy variables? (R)

1  Asked on November 18, 2021 by charles-orlando

### What’s the intuition behind contrastive learning or approach?

2  Asked on November 18, 2021

### What is the difference between econometrics and statistics?

6  Asked on November 18, 2021

### Central limit theorem – num random variables vs. sample size?

1  Asked on November 18, 2021 by imagineerthat

### How to smooth an existing PDF?

1  Asked on November 18, 2021 by crimson_idiot

### Finding variance and mean of an expression?

0  Asked on November 18, 2021

### One-sample t-test on count data

0  Asked on November 16, 2021 by zarya

### Book recommendation for ANOVA and linear models

2  Asked on November 16, 2021 by shial-de

### Can you run intraclass-correlations with different raters, and different numbers of raters per participant?

2  Asked on November 16, 2021 by bruce-rawlings

### How to calculate estimated log-sum coefficient in the context of nested logit model in R?

1  Asked on November 16, 2021

### Classification Problem With Estimated and Dependent Covariates

0  Asked on November 16, 2021 by dimitriy

### Variable of importance and Q2Y in PLSR

0  Asked on November 16, 2021

### Measurement error in one indep variable in OLS with multiple regression

3  Asked on November 16, 2021

### How is sklearn’s Logistic Regression’s Score Calculated?

0  Asked on November 16, 2021 by user291976

### Data Visualization – how to display error of a color scale?

1  Asked on November 16, 2021 by ben-s

### Acceptance sampling

1  Asked on November 16, 2021

### How to handle mixed-models with low sample size as well as low frequency of categorical level of interest?

1  Asked on November 16, 2021 by ashirwad

### Ask a Question

Get help from others!