That’s a graph not a matrix, but OK.
Excellent.
for 0 < x < N, gal_mad = N - (gal_hot + 4) = N - gal_hot - 4.
But it's not linear. It's closer to: gal_mad = N - gal_hot^2.
"Mad" means mental illness not anger.
Crazy is a function of more than one independent variable, hot. It's also a function of intelligence. Dumb broads are loonier than gorgeous babes, although there are plenty of examples of over-indoctrinated women like leftists being nuttier than normal gals. So gal_mad [along the z axis] is at least = f(hot, smart). Plotting this along the x,y,z axes could generate a 3-D printed psychological profile a madfie / hotfie / smartfie which could be worn as a fetching pendant on a necklace, or presented to yer fiancé as a stunning enragement ring. Another excellent business opportunity. Visit us as madhotsmart.com.