A comparative market analysis is a written estimate of the price at which a property would probably sell, prepared by a real estate licensee from the sale prices of comparable properties, adjusted for the ways those properties differ from the subject. Its ordinary use is pricing: a seller deciding what to list for, or a buyer deciding what to offer. It is not an appraisal, it is not prepared by a licensed or certified appraiser, and no lender relies on it to set the amount of a purchase mortgage.
The naming is worth setting out, because the same document travels under two names and only one of them appears in federal law. "Comparative market analysis" is what the industry calls it when a broker prepares it for a seller or a buyer. When a lender, servicer or investor orders the same kind of estimate, it is ordinarily called a broker price opinion, and that phrase is defined by statute. Note also that the abbreviation "CMA" is not exclusive to real estate: in banking and brokerage it commonly means a cash management account, which is an unrelated product.